/* ===========================================================================
   civic.css — Correus.cc "Civic Teal+" shared components
   ---------------------------------------------------------------------------
   Ported from the claude.ai/design kit's civic-plus.css, mapped onto the app's
   warm Bootstrap theme tokens (--bs-*) and RENAMED with a cv- prefix where the
   kit's class names would collide with Bootstrap (.row/.btn/.card). Loaded
   globally from base.html.twig; used by the detail / buzones / postal-code /
   tracking pages. Entity triad + status semantics match the design decisions.
   =========================================================================== */
:root {
    --cv-office: #1f7a4d;
    --cv-buzon: #3a6ea5;
    --cv-citypaq: #e0801f;
    --cv-citypaq-ink: #b8661a;
    --cv-danger: #c0413c;
    --cv-shadow: 0 1px 2px rgba(70, 54, 24, 0.05), 0 10px 26px rgba(70, 54, 24, 0.07);
    --cv-r-card: 20px;
    /* Card surface — own token, because Bootstrap only defines --bs-card-bg INSIDE
       .card, so var(--bs-card-bg) would fall back to the light value everywhere else. */
    --cv-card: #fffdf8;
}

[data-bs-theme="dark"] {
    --cv-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.4);
    --cv-card: #262219;
}

/* ---- generic rounded card surface (kit .card2) ---- */
.cv-card {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 22px;
    box-shadow: var(--cv-shadow);
    padding: 24px;
}

.cv-card h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ---- breadcrumbs ---- */
.cv-crumbs {
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.cv-crumbs a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.cv-crumbs a:hover {
    color: var(--bs-primary);
}

.cv-crumbs .sep {
    opacity: 0.5;
}

/* ---- summary card (status + Cori) ---- */
.cv-summary {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 880px) {
    .cv-summary {
        grid-template-columns: 1fr;
    }
}

.cv-summary-card {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 24px;
    box-shadow: var(--cv-shadow);
    padding: 26px;
    border-top: 5px solid var(--cv-office);
}

.cv-summary-card.closed {
    border-top-color: var(--cv-danger);
}

.cv-stwrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-stwrap img {
    width: 74px;
    flex: none;
}

.cv-bigstatus {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cv-bigstatus.open {
    color: var(--cv-office);
}

.cv-bigstatus.closed {
    color: var(--cv-danger);
}

.cv-summary-card .sub {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    margin-top: 2px;
}

.cv-summary-card h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.85rem;
    margin: 20px 0 4px;
}

.cv-summary-card .addr {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
}

.cv-summary-card .cat {
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
    font-style: italic;
    margin-top: 2px;
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

/* ---- aside: facts-mini list ---- */
.cv-facts-mini {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 18px;
    box-shadow: var(--cv-shadow);
    overflow: hidden;
}

.cv-facts-mini .fr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.85rem;
}

.cv-facts-mini .fr:last-child {
    border-bottom: 0;
}

.cv-facts-mini .fr .lab {
    color: var(--bs-secondary-color);
    width: 96px;
    flex: none;
}

.cv-facts-mini .fr .val {
    font-weight: 600;
}

.cv-facts-mini .fr .val.mono {
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ---- hours table ---- */
.cv-hours {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cv-hours td {
    padding: 11px 6px;
    border-bottom: 1px solid var(--bs-border-color);
}

.cv-hours tr:last-child td {
    border-bottom: 0;
}

.cv-hours .day {
    font-weight: 600;
    width: 130px;
}

.cv-hours .hh {
    font-family: var(--font-mono);
    font-weight: 500;
    text-align: right;
}

.cv-hours tr.today {
    background: var(--bs-secondary-bg);
}

.cv-hours tr.today .day {
    color: var(--bs-primary);
}

.cv-hours .cl {
    color: var(--bs-secondary-color);
}

.cv-hours-note {
    margin-top: 14px;
    display: flex;
    gap: 11px;
    align-items: center;
    background: var(--bs-secondary-bg);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.82rem;
}

.cv-hours-note .dotwarn {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cv-citypaq);
    flex: none;
}

/* ---- services pills ---- */
.cv-svc {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cv-svc span {
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    padding: 8px 12px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cv-svc span .b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-primary);
}

/* ---- contact rows ---- */
.cv-contact .cr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.92rem;
}

.cv-contact .cr:last-child {
    border-bottom: 0;
}

.cv-contact .cr .lab {
    color: var(--bs-secondary-color);
    width: 110px;
    flex: none;
    font-size: 0.82rem;
}

.cv-contact .cr .v {
    font-weight: 600;
}

.cv-contact .cr .v.mono {
    font-family: var(--font-mono);
}

/* ===========================================================================
   ENTITY LIST — panel + rows (kit .panel/.rows/.row, renamed .cv-row)
   =========================================================================== */
.cv-panel {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 24px;
    box-shadow: var(--cv-shadow);
    overflow: hidden;
}

.cv-panel .ph {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--bs-border-color);
}

.cv-panel .ph .t {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.cv-panel .ph .c {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.cv-rows {
    display: flex;
    flex-direction: column;
}

.cv-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bs-border-color);
    border-left: 4px solid transparent;
    transition: background 0.12s;
    cursor: pointer;
    color: var(--bs-body-color);
    text-decoration: none;
}

.cv-row:last-child {
    border-bottom: 0;
}

.cv-row:hover {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.cv-row.open {
    border-left-color: var(--cv-office);
}

.cv-row.closed {
    border-left-color: var(--cv-danger);
}

.cv-row.buzon {
    border-left-color: var(--cv-buzon);
}

.cv-row.citypaq {
    border-left-color: var(--cv-citypaq);
}

.cv-row .pin {
    width: 34px;
    height: 34px;
    flex: none;
    object-fit: contain;
}

.cv-row .info {
    min-width: 0;
    flex: 1;
}

.cv-row .nm {
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cv-ent {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.6rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 5px;
}

.cv-ent.of {
    background: rgba(31, 122, 77, 0.14);
    color: var(--cv-office);
}

.cv-ent.bz {
    background: rgba(58, 110, 165, 0.16);
    color: var(--cv-buzon);
}

.cv-ent.cp {
    background: rgba(224, 128, 31, 0.16);
    color: var(--cv-citypaq-ink);
}

.cv-row .ad {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-row .meta {
    text-align: right;
    flex: none;
}

.cv-pill {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 50rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cv-pill .d {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.cv-pill.open {
    background: rgba(31, 122, 77, 0.14);
    color: var(--cv-office);
}

.cv-pill.open .d {
    background: var(--cv-office);
}

.cv-pill.closed {
    background: rgba(92, 111, 106, 0.18);
    color: var(--bs-secondary-color);
}

.cv-pill.closed .d {
    background: var(--bs-secondary-color);
}

.cv-pill.h24 {
    background: rgba(15, 118, 110, 0.14);
    color: var(--bs-primary);
}

.cv-pill.h24 .d {
    background: var(--bs-primary);
}

.cv-row .dist {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    margin-top: 6px;
}

.cv-row .next {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.68rem;
    color: var(--cv-buzon);
    margin-top: 6px;
}

/* ---- section heading (kicker + h2) ---- */
.cv-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cv-kicker {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin: 0 0 6px;
}

/* ---- Cori tip strip (shared) ---- */
.cori-tip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 20px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--bs-body-color);
}

.cori-tip:hover {
    color: var(--bs-body-color);
    border-color: var(--bs-primary);
}

.cori-tip img {
    width: 64px;
    flex: none;
}

.cori-tip b {
    font-family: var(--font-display);
}

/* ===========================================================================
   POSTAL CODE anatomy + province explorer
   =========================================================================== */
.cv-cp-anatomy {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.cv-cp-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cv-cp-group .digits {
    display: flex;
    gap: 9px;
    padding: 12px;
    border: 1.5px dashed var(--bs-border-color);
    border-radius: 18px;
}

.cv-cp-digit {
    width: 62px;
    height: 80px;
    border-radius: 13px;
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--cv-shadow);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--bs-emphasis-color);
}

.cv-cp-digit.teal {
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.cv-cp-group .glab {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.66rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bs-primary);
    padding-left: 4px;
}

.cv-cp-group .gsub {
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
    max-width: 24ch;
    padding-left: 4px;
}

@media (max-width: 560px) {
    .cv-cp-digit {
        width: 50px;
        height: 66px;
        font-size: 2.1rem;
    }
}

.cv-prov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 820px) {
    .cv-prov-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cv-prov {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    padding: 13px 15px;
    box-shadow: var(--cv-shadow);
    cursor: pointer;
    text-decoration: none;
    color: var(--bs-body-color);
    transition: transform 0.12s, border-color 0.12s;
}

.cv-prov:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

.cv-prov .cc2 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: var(--bs-primary);
    width: 42px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
}

.cv-prov .pn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.1;
}

.cv-prov .pp {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    margin-top: 2px;
}

/* ===========================================================================
   TRACKING — status card + progress + located timeline
   (cori.js animates `.prog .fill` and `.tl-step`, so those names are kept.)
   =========================================================================== */
.cv-status-card {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 24px;
    box-shadow: var(--cv-shadow);
    padding: 26px;
    border-top: 5px solid var(--bs-primary);
}

.cv-status-card .stwrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-status-card .stwrap img {
    width: 78px;
    flex: none;
}

.cv-status-card .lbl {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.cv-status-card .big {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.75rem;
    color: var(--bs-primary);
    margin-top: 4px;
}

.cv-status-card .sub {
    color: var(--bs-secondary-color);
    font-size: 0.92rem;
    margin-top: 3px;
}

.prog {
    height: 9px;
    border-radius: 50rem;
    background: var(--bs-secondary-bg);
    overflow: hidden;
    margin-top: 20px;
}

.prog .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cv-office), var(--bs-primary));
    border-radius: 50rem;
}

.prog-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.66rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prog-marks span.on {
    color: var(--bs-primary);
}

.tl-steps {
    margin-top: 4px;
}

.tl-step {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 0 0 22px;
}

.tl-step:last-child {
    padding-bottom: 0;
}

.tl-step .rail {
    position: relative;
    flex: none;
    width: 36px;
    display: flex;
    justify-content: center;
}

.tl-step .rail::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: -4px;
    width: 2px;
    background: var(--bs-border-color);
}

.tl-step:last-child .rail::before {
    display: none;
}

.tl-step .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex: none;
    z-index: 1;
    border: 2px solid var(--cv-card);
}

.tl-step.done .dot {
    background: var(--cv-office);
    color: #fff;
}

.tl-step.current .dot {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.16);
}

.tl-step.pending .dot {
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.tl-step .body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.tl-step .when {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}

.tl-step .h {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin: 5px 0 3px;
}

.tl-step.current .h {
    color: var(--bs-primary);
}

.tl-step.pending .h {
    color: var(--bs-secondary-color);
}

.tl-step .place {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
}

.tl-step .place .cp {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ===========================================================================
   STATE box (empty / error) with a Cori pose
   =========================================================================== */
.cv-statebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 46px 28px;
}

.cv-statebox img {
    height: 120px;
}

.cv-statebox .h {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.cv-statebox .s {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    max-width: 38ch;
}

/* ===========================================================================
   HERO — shared pine-gradient landing hero (home / buzones / tracking …)
   Matches the design kit's .hero. Pair with `.full-bleed` to span the viewport.
   =========================================================================== */
.cv-hero {
    position: relative;
    overflow: hidden;
    color: #eafaf6;
    background: linear-gradient(165deg, #0d6b63, #083f3a 72%);
    margin-bottom: 8px;
}

[data-bs-theme="dark"] .cv-hero {
    background: linear-gradient(165deg, #0b554e, #06302c 72%);
}

.cv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 6px 6px, rgba(255, 255, 255, 0.15) 1.3px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(160deg, #000, transparent 78%);
    mask-image: linear-gradient(160deg, #000, transparent 78%);
    opacity: 0.6;
    pointer-events: none;
}

.cv-hero-in {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 28px 48px;
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 24px;
    align-items: center;
}

@media (max-width: 840px) {
    .cv-hero-in {
        grid-template-columns: 1fr;
    }

    .cv-hero-cori {
        display: none;
    }
}

.cv-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.13);
    padding: 7px 12px;
    border-radius: 50rem;
    color: #bff3e9;
}

.cv-hero .eyebrow .live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7CFFB0;
}

@media (prefers-reduced-motion: no-preference) {
    .cv-hero .eyebrow .live {
        animation: cv-live-pulse 2s infinite;
    }
}

@keyframes cv-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 255, 176, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(124, 255, 176, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 255, 176, 0);
    }
}

.cv-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: 2.7rem;
    line-height: 1.03;
    margin: 16px 0 0;
    max-width: 18ch;
    color: #fff;
}

.cv-hero h1 a {
    color: #fff;
    text-decoration: none;
}

.cv-hero h1 .q {
    color: #ffd9a8;
}

.cv-hero .sub {
    font-size: 1.05rem;
    max-width: 52ch;
    margin: 14px 0 0;
    color: #cdeee7;
}

.cv-hero .sub b {
    color: #fff;
}

.cv-search {
    margin-top: 22px;
    max-width: 620px;
}

.cv-search .bar {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.cv-search .bar .ic {
    display: grid;
    place-items: center;
    width: 46px;
    color: var(--bs-primary);
    font-size: 1.05rem;
    flex: none;
}

.cv-search .bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 1rem;
    color: #13302c;
    background: transparent;
}

.cv-search .bar input::placeholder {
    color: #8aa39d;
}

/* multi-line variant (tracking: paste several codes, one per line) */
.cv-search .bar textarea {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: #13302c;
    background: transparent;
    resize: none;
    padding: 7px 4px;
    align-self: center;
}

.cv-search .bar textarea::placeholder {
    color: #8aa39d;
}

.cv-search .bar button {
    border: 0;
    background: var(--bs-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 22px;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.15s;
}

.cv-search .bar button:hover {
    background: #0c5d57;
}

.cv-search .autocomplete {
    position: relative;
}

/* hero autocomplete dropdown — rounded + shadowed, sits just under the white bar */
.cv-search .autocomplete-menu {
    border-radius: 12px;
    border-color: var(--bs-border-color);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    margin-top: 8px;
    overflow: hidden;
}

.cv-search .autocomplete-item {
    padding: 10px 16px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cv-chips a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #eafaf6;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 13px;
    border-radius: 50rem;
    text-decoration: none;
    transition: 0.15s;
}

.cv-chips a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.cv-chips a.solid {
    background: #fff;
    color: #0c5d57;
    border-color: #fff;
    font-weight: 600;
}

.cv-hero .disc {
    margin-top: 18px;
    font-size: 0.78rem;
    color: #a9dcd3;
}

.cv-hero .disc b {
    color: #eafaf6;
}

.cv-hero-cori {
    justify-self: center;
}

.cv-hero-cori img {
    width: 200px;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.3));
}

/* full-bleed helper (shared) — lets a hero/band span the viewport from inside a container */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* The canonical centered content column (base default `containerClass`) — a 1280px column
   matching the design kit's `main` / hero / editorial inner width, so pages don't sprawl
   edge to edge like a `container-fluid`. `.full-bleed` children still break out to the
   viewport. Also wraps the navbar + footer contents so the chrome lines up with the page. */
.cv-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 575.98px) {
    .cv-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* The dark bar stays full-width; its contents centre at the column (mirrors Bootstrap's
   own `.navbar > .container` flex rule, which a non-Bootstrap `.cv-page` wouldn't get). */
.navbar > .cv-page {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

/* ===========================================================================
   HOME map/list split — the design kit's `.split`: a balanced two-column grid
   (list slightly wider than map) instead of a full-bleed col-3 / col-9 row, so
   the map no longer eats the fold. On phones the list leads and the map is one
   tap away via the "Ver mapa" toggle (#toggle-map).
   =========================================================================== */
.cv-home-split {
    display: grid;
    /* Map is the star here, so give it the room: narrow list (min 300px so the rows stay
       readable), wide map. */
    grid-template-columns: minmax(300px, 1fr) 1.9fr;
    gap: 22px;
    align-items: start;
}

.cv-home-split #list-col,
.cv-home-split #map-col {
    height: clamp(440px, 64vh, 640px);
    min-height: 0;
}

.cv-home-split #list-col {
    overflow-y: auto;
}

.cv-home-split #map {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--cv-shadow);
    background-color: var(--bs-tertiary-bg);
}

@media (max-width: 991.98px) {
    .cv-home-split {
        grid-template-columns: 1fr;
    }

    /* List-first on phones: the WebGL map is heavy, so it's hidden until toggled. */
    .cv-home-split #map-col {
        display: none;
    }

    body.map-mobile-mode .cv-home-split #map-col {
        display: block;
        height: 70vh;
    }

    body.map-mobile-mode .cv-home-split #list-col {
        display: none;
    }
}

/* ===========================================================================
   HOME LIST — the office sidebar styled as a panel of entity rows
   (#list-col is the panel frame; rows are .cv-row; hooks preserved by the JS).
   =========================================================================== */
.cv-list {
    background: var(--cv-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 24px;
    box-shadow: var(--cv-shadow);
    padding: 0;
}

/* rows are wrapped in .post-office-detail-<id> hooks, so target nested .cv-row */
.cv-list .cv-row {
    cursor: default;
}

.cv-list .pin {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(31, 122, 77, 0.1);
}

.cv-list .selected-post-office-detail .cv-row,
.selected-post-office-detail .cv-row {
    background: var(--bs-secondary-bg);
    box-shadow: inset 3px 0 0 0 var(--bs-primary);
}

/* chevron → detail page */
.cv-row-go {
    color: var(--bs-secondary-color);
    padding: 2px 4px;
    display: inline-flex;
    align-self: center;
    text-decoration: none;
}

.cv-row-go:hover {
    color: var(--bs-primary);
}

/* extra pill states for the office list */
.cv-pill.warn {
    background: rgba(224, 128, 31, 0.16);
    color: var(--cv-citypaq-ink);
}

.cv-pill.warn .d {
    background: var(--cv-citypaq);
}

.cv-pill.danger {
    background: rgba(192, 65, 60, 0.15);
    color: var(--cv-danger);
}

.cv-pill.danger .d {
    background: var(--cv-danger);
}

/* the "+N más cerca" grouping toggle, restyled to sit inside the panel */
.pod-more-toggle {
    display: inline-block;
    margin: 2px 0 10px 62px;
    color: var(--bs-primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.pod-more-toggle:hover {
    text-decoration: underline;
}
