/* ==========================================================================
   Geo coverage: modal, editor bar, dashboard card
   Markup: home/pixlel/website_editor/_partials/_geo_modal.html,
           home/pixlel/user/_geo_card.html
   Logic:  home/pixlel/website_editor/_js/_geo.js
   Spec:   GEO_RADIUS_HANDOFF.md phase 4 (modal) and phase 6b (bar, card)
   Mobile first at 390px; two columns from 900px.
   ========================================================================== */

.gc-overlay, .gc-bar, .gc-card, .gc-page, .gc-optin {
    --gc-ink: #1A1A1A;
    --gc-cream: #FAF8F5;
    --gc-sand: #E8E2D9;
    --gc-muted: #5A5650;
    --gc-blue: #4D66DD;
    --gc-blue-dark: #3F55C4;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gc-ink);
}
.gc-overlay *, .gc-bar *, .gc-card *, .gc-page *, .gc-optin * { box-sizing: border-box; }
.gc-overlay svg, .gc-bar svg, .gc-card svg { flex: 0 0 auto; }

/* ========== OVERLAY + SHEET ========== */
.gc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10012;
    background: rgba(26, 26, 26, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
.gc-overlay.open { opacity: 1; pointer-events: auto; }
.gc-overlay.hidden { display: none; }

.gc-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: calc(100dvh - 12px - env(safe-area-inset-top, 0px));
    background: var(--gc-cream);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.gc-overlay.open .gc-sheet { transform: translateY(0); }

/* ========== HEADER ========== */
.gc-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 10px 20px;
}
.gc-head-text { flex: 1 1 auto; min-width: 0; }
.gc-title { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.gc-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--gc-muted); font-weight: 500; }
.gc-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 26, 26, .06);
    color: var(--gc-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gc-close:hover { background: rgba(26, 26, 26, .12); }
.gc-close svg { width: 18px; height: 18px; }

/* ========== MAP ========== */
.gc-mapcol {
    flex: 0 0 auto;
    position: relative;
    height: 178px;
    margin: 0 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #E9E7E3;
    border: 1px solid var(--gc-sand);
}
.gc-map { position: absolute; inset: 0; }
.gc-map .leaflet-container, .gc-map.leaflet-container { background: #E9E7E3; font-family: inherit; }
.gc-map-empty {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gc-muted);
    background:
        radial-gradient(circle at 1px 1px, rgba(26, 26, 26, .10) 1px, transparent 0) 0 0 / 14px 14px,
        #F1EEEA;
}
.gc-map-empty svg { width: 28px; height: 28px; color: var(--gc-blue); }
.gc-overlay[data-nozip="1"] .gc-map-empty { display: flex; }
.gc-legend {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 500;
    display: flex;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(250, 248, 245, .94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    font-size: 11px;
    font-weight: 600;
    color: var(--gc-ink);
}
.gc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gc-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); display: inline-block; }
.gc-overlay[data-nozip="1"] .gc-legend,
.gc-overlay[data-nozip="1"] .leaflet-control-container { display: none; }

/* Leaflet pins (divIcon html) */
.gc-pin { width: 18px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.gc-pin.off { width: 12px; height: 15px; opacity: .75; }
.gc-pin svg { display: block; width: 100%; height: 100%; }
.gc-center-pin { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--gc-ink, #1A1A1A); box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.gc-pop-name { font-weight: 700; font-size: 13px; }
.gc-pop-meta { font-size: 12px; color: #5A5650; margin-top: 1px; }
.gc-overlay .leaflet-popup-content, .gc-card .leaflet-popup-content { margin: 8px 12px !important; line-height: 1.35; }
.gc-overlay .leaflet-bar a { width: 30px; height: 30px; line-height: 30px; }

/* ========== SCROLL BODY ========== */
.gc-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 16px;
}
.gc-panel { display: none; }
.gc-overlay[data-view="choose"] .gc-panel[data-panel="choose"],
.gc-overlay[data-view="success"] .gc-panel[data-panel="success"],
.gc-overlay[data-view="consult"] .gc-panel[data-panel="consult"],
.gc-overlay[data-view="purchased"] .gc-panel[data-panel="purchased"],
.gc-overlay[data-view="manage"] .gc-panel[data-panel="manage"],
.gc-overlay[data-view="book"] .gc-panel[data-panel="book"] { display: block; }

/* ZIP */
.gc-zip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gc-zip label { font-size: 13px; font-weight: 700; }
.gc-zip input {
    width: 148px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #D6CFC4;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 16px;            /* 16px keeps iOS from zooming on focus */
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gc-ink);
    font-variant-numeric: tabular-nums;
}
.gc-zip input:focus { outline: none; border-color: var(--gc-blue); box-shadow: 0 0 0 3px rgba(77, 102, 221, .2); }
.gc-zip input::placeholder { color: #A39C92; font-weight: 500; letter-spacing: 0; }
.gc-zip-hint { font-size: 12px; line-height: 1.3; color: var(--gc-muted); flex: 1 1 110px; }
.gc-zip-note { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--gc-blue-dark); min-height: 0; }
.gc-zip-note:empty { display: none; }
.gc-zip-note.err { color: #B4372B; }
.gc-overlay[data-nozip="1"] .gc-zip input { border-color: var(--gc-blue); box-shadow: 0 0 0 3px rgba(77, 102, 221, .18); }

/* Tier cards */
.gc-tiers { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.gc-tier {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    column-gap: 12px;
    align-items: start;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    font: inherit;
    color: var(--gc-ink);
    background: #fff;
    border: 1.5px solid #DDD6CB;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gc-tier:hover { border-color: #C4B8A8; }
.gc-tier[aria-checked="true"] { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 22%, transparent); }
.gc-radio {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid #C4BCB0;
}
.gc-tier[aria-checked="true"] .gc-radio { border-color: var(--tc); background: radial-gradient(circle, var(--tc) 0 4.5px, transparent 5.5px); }
.gc-tier-name { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.gc-tier-name i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); display: inline-block; }
.gc-tier-line { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--gc-muted); }
.gc-tier-why { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: #3E3B37; }
.gc-tier-price { text-align: right; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.gc-tier-price small { display: block; font-size: 11px; font-weight: 600; color: var(--gc-muted); letter-spacing: 0; }
.gc-badge {
    position: absolute;
    right: 12px;
    top: -10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gc-blue);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
}
.gc-badge.custom { background: var(--gc-ink); }

/* Town chips */
.gc-towns { margin: 18px 0 0; }
.gc-h3 { margin: 0; font-size: 14px; font-weight: 800; }
.gc-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--gc-muted); }
.gc-note.warn {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #FFF6E5;
    border: 1px solid #F1D9A8;
    color: #6B4A10;
    font-weight: 600;
}
.gc-note.warn svg { width: 16px; height: 16px; margin-top: 1px; }
.gc-note:empty, .gc-note[hidden] { display: none; }
.gc-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #DDD6CB;
    font-size: 12.5px;
    font-weight: 600;
}
.gc-chips li i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); display: inline-block; }
.gc-chips li.center { background: var(--gc-ink); color: #fff; border-color: var(--gc-ink); }
.gc-chips li small { font-weight: 500; color: var(--gc-muted); }
.gc-chips li.center small { color: rgba(255, 255, 255, .7); }

/* Includes + SMS */
.gc-incl { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--gc-sand); }
.gc-incl ul { list-style: none; margin: 8px 0 0; padding: 0; }
.gc-incl li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 13px; line-height: 1.35; font-weight: 500; }
.gc-incl li svg { width: 15px; height: 15px; margin-top: 1px; color: var(--gc-blue); }
.gc-sms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 14px;
    background: #F3F0EB;
    cursor: pointer;
}
.gc-sms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gc-blue); flex: 0 0 auto; }
.gc-sms b { display: block; font-size: 13px; font-weight: 700; }
.gc-sms small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: var(--gc-muted); }
/* Phase 6b: the texts opt-in, a toggle (_geo_sms_consent.html, the contact step after publishing). */
.gc-optin { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; text-align: left; }
.gc-switch { position: relative; flex: 0 0 auto; width: 40px; height: 24px; margin-top: 1px; }
.gc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.gc-switch-track { position: absolute; inset: 0; border-radius: 999px; background: #D9D3CA; transition: background .2s ease; }
.gc-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.gc-switch input:checked + .gc-switch-track { background: var(--gc-blue); }
.gc-switch input:checked + .gc-switch-track::after { transform: translateX(16px); }
.gc-switch input:focus-visible + .gc-switch-track { outline: 2px solid var(--gc-blue); outline-offset: 2px; }
.gc-switch input[disabled] { cursor: default; }
.gc-switch input[disabled] + .gc-switch-track { opacity: .5; }
.gc-optin-text { min-width: 0; }
.gc-optin-text > label { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.gc-optin-text small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: var(--gc-muted); }
.gc-optin-text small a, .gc-optin-text small .gc-textlink { font-size: 11.5px; font-weight: 600; color: var(--gc-muted); text-decoration: underline; text-underline-offset: 2px; }
.gc-sms-phone { display: flex; gap: 8px; margin-top: 8px; }
.gc-sms-phone[hidden] { display: none; }
.gc-sms-phone input { flex: 1 1 auto; min-width: 0; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--gc-sand); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--gc-ink); }
.gc-sms-phone input:focus { outline: 2px solid var(--gc-blue); outline-offset: 1px; }
.gc-sms-save { flex: 0 0 auto; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--gc-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Result panels (success, consult, purchased) */
.gc-result { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--gc-sand); }
.gc-result-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(77, 102, 221, .12); color: var(--gc-blue); flex: 0 0 auto; }
.gc-result-icon svg { width: 18px; height: 18px; }
.gc-result-icon.ok { background: rgba(42, 157, 110, .14); color: #1F7A55; }
.gc-result b { display: block; font-size: 14px; font-weight: 800; }
.gc-result p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: #3E3B37; }
.gc-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.gc-steps li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; font-weight: 600; }
.gc-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--gc-sand); }
.gc-steps li.done span { background: #1F7A55; color: #fff; }
.gc-steps li.now span { background: var(--gc-blue); color: #fff; }
.gc-steps li.now span svg { width: 12px; height: 12px; animation: gcSpin 1s linear infinite; }
.gc-order { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.gc-order dt { color: var(--gc-muted); font-weight: 600; }
.gc-order dd { margin: 0; font-weight: 700; }
.gc-manage { margin: 14px 0 0; }
.gc-textlink { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--gc-blue-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ========== FOOTER (thumb zone) ========== */
.gc-footer {
    flex: 0 0 auto;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--gc-cream);
    border-top: 1px solid var(--gc-sand);
}
.gc-foot { display: none; }
.gc-overlay[data-view="choose"] .gc-foot[data-panel="choose"],
.gc-overlay[data-view="success"] .gc-foot[data-panel="done"],
.gc-overlay[data-view="purchased"] .gc-foot[data-panel="done"],
.gc-overlay[data-view="consult"] .gc-foot[data-panel="consult"],
.gc-overlay[data-view="manage"] .gc-foot[data-panel="manage"],
.gc-overlay[data-view="book"] .gc-foot[data-panel="book"] { display: block; }
.gc-cta[hidden] { display: none; }

.gc-cta, .gc-cta2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, transform .15s ease;
}
.gc-cta { background: var(--gc-blue); color: #fff; box-shadow: 0 6px 18px rgba(77, 102, 221, .35); }
.gc-cta:hover { background: var(--gc-blue-dark); }
.gc-cta:active, .gc-cta2:active { transform: scale(.99); }
.gc-cta[disabled] { background: #9AA7DE; box-shadow: none; cursor: default; }
.gc-cta[data-loading="1"] { background: var(--gc-blue); cursor: wait; }
.gc-cta-text { display: flex; flex-direction: column; line-height: 1.2; }
.gc-cta-main { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.gc-cta-sub { font-size: 12.5px; font-weight: 600; opacity: .88; margin-top: 2px; }
.gc-cta-sub:empty { display: none; }
.gc-cta svg { width: 18px; height: 18px; }
.gc-cta .gc-spin { display: none; animation: gcSpin 1s linear infinite; }
.gc-cta[data-loading="1"] .gc-spin { display: block; }
.gc-cta[data-loading="1"] .gc-arrow { display: none; }
@keyframes gcSpin { to { transform: rotate(360deg); } }
.gc-cta2 { margin-top: 8px; min-height: 48px; background: #fff; color: var(--gc-ink); border: 1.5px solid var(--gc-ink); }
.gc-cta2:hover { background: #F3F0EB; }
.gc-cta2 svg { width: 17px; height: 17px; }
.gc-cta2 .gc-cta-sub { opacity: 1; color: var(--gc-muted); }
.gc-cta2[hidden] { display: none; }
.gc-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 14px; margin-top: 6px; }
.gc-link {
    min-height: 34px;
    padding: 6px 2px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gc-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.gc-link.strong { color: var(--gc-ink); font-size: 13px; }
.gc-link[hidden] { display: none; }

/* Toast */
.gc-toast {
    position: absolute;
    left: 50%;
    bottom: 96px;
    z-index: 900;
    max-width: calc(100% - 32px);
    transform: translate(-50%, 12px);
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--gc-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.gc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ========== TABLET ========== */
@media (min-width: 640px) {
    .gc-overlay { align-items: center; padding: 24px; }
    .gc-sheet { border-radius: 24px; height: min(92vh, 860px); }
}

/* ========== DESKTOP: map left, everything else right ========== */
@media (min-width: 900px) {
    .gc-sheet {
        max-width: 1040px;
        height: min(90vh, 740px);
        display: grid;
        grid-template-columns: 1fr 460px;
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "map head" "map scroll" "map foot";
    }
    .gc-head { grid-area: head; padding: 24px 20px 6px 28px; }
    .gc-title { font-size: 24px; }
    .gc-sub { font-size: 14px; }
    .gc-mapcol { grid-area: map; height: auto; margin: 0; border: 0; border-radius: 0; border-right: 1px solid var(--gc-sand); }
    .gc-legend { left: 14px; bottom: 14px; padding: 7px 12px; font-size: 12px; }
    .gc-scroll { grid-area: scroll; padding: 12px 28px 18px; }
    .gc-footer { grid-area: foot; padding: 14px 28px 18px; }
    .gc-toast { bottom: 120px; left: auto; right: 230px; transform: translate(50%, 12px); }
    .gc-toast.show { transform: translate(50%, 0); }
}

/* ==========================================================================
   EDITOR BAR (phase 6b degraded surface). Uses the launch bar's 44px slot:
   _geo.js adds body.has-launch-bar so every editor offset applies, and
   body.gc-bar-on hides the (empty) launch bar element.
   ========================================================================== */
body.gc-bar-on #launchOfferBar { display: none !important; }
.gc-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 8px 0 12px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #EEF1FC;
    border-bottom: 1px solid #D9DFF8;
}
body.gc-bar-on .gc-bar { display: flex; }
.gc-bar-pin { width: 18px; height: 18px; color: var(--gc-blue); }
.gc-bar-text { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gc-bar-text .short { display: none; }
.gc-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--gc-blue);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.gc-bar-btn:hover { background: var(--gc-blue-dark); }
.gc-bar-btn svg { width: 14px; height: 14px; }
.gc-bar-x {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--gc-muted);
    cursor: pointer;
    white-space: nowrap;
}
.gc-bar-x svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
    .gc-bar { justify-content: space-between; gap: 8px; }
    .gc-bar-text { white-space: normal; font-size: 12.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .gc-bar-text .long { display: none; }
    .gc-bar-text .short { display: inline; }
    .gc-bar-x span { display: none; }
    .gc-bar-pin { display: none; }
}

/* ==========================================================================
   DASHBOARD CARD (phase 6b degraded surface)
   ========================================================================== */
.gc-card { margin-top: 24px; padding: 20px; display: grid; gap: 16px; }
.gc-card-map { position: relative; height: 170px; border-radius: 16px; overflow: hidden; background: #E9E7E3; border: 1px solid var(--gc-sand); }
.gc-card-map .leaflet-container { background: #E9E7E3; }
.gc-card-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gc-blue-dark); }
.gc-card-kicker svg { width: 14px; height: 14px; }
.gc-card-title { margin: 6px 0 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.gc-card-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--gc-muted); font-weight: 500; }
.gc-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.gc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--gc-blue);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}
.gc-card-btn:hover { background: var(--gc-blue-dark); }
.gc-card-btn svg { width: 16px; height: 16px; }
.gc-card .gc-sms { margin-top: 14px; background: #F3F0EB; }
@media (min-width: 900px) {
    .gc-card { grid-template-columns: 300px 1fr; align-items: center; padding: 28px 32px; gap: 28px; }
    .gc-card-map { height: 190px; }
}

/* ========== MANAGE TOWNS (phase 7) ========== */
/* The legend names the tiers; the manage map shows one order's ring. */
.gc-overlay[data-view="manage"] .gc-legend { display: none; }
.gc-mg-status {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(77, 102, 221, .08);
    border: 1px solid rgba(77, 102, 221, .25);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.gc-mg-status[hidden] { display: none; }
.gc-mg-status svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gc-blue); }
.gc-mg-status.busy svg { animation: gcSpin 1s linear infinite; }
.gc-mg-status.ok { background: rgba(42, 157, 110, .10); border-color: rgba(42, 157, 110, .3); }
.gc-mg-status.ok svg { color: #1F7A55; }
.gc-mg-status.err { background: #FFF6E5; border-color: #F1D9A8; color: #6B4A10; }
.gc-mg-status.err svg { color: #B7791F; }
.gc-mg-list, .gc-mg-cands { list-style: none; margin: 10px 0 0; padding: 0; }
.gc-mg-town { border: 1px solid var(--gc-sand); border-radius: 14px; background: #fff; margin: 0 0 8px; }
.gc-mg-town.out { border-color: #D98324; box-shadow: 0 0 0 2px rgba(217, 131, 36, .18); }
.gc-mg-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.gc-mg-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; }
.gc-mg-name small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--gc-muted); }
.gc-mg-lock { font-size: 12px; font-weight: 700; color: var(--gc-muted); display: inline-flex; gap: 5px; align-items: center; }
.gc-mg-lock svg { width: 13px; height: 13px; }
.gc-mg-swap {
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--gc-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.gc-mg-swap:hover { background: #F3F0EB; }
.gc-mg-swap[disabled] { opacity: .45; cursor: default; }
.gc-mg-town.out .gc-mg-swap { border-color: #D98324; color: #8A4E0F; }
.gc-mg-jobs { border-top: 1px solid var(--gc-sand); padding: 0 12px; }
.gc-mg-jobs summary { cursor: pointer; padding: 9px 0; font-size: 12.5px; font-weight: 700; color: var(--gc-blue-dark); list-style: none; }
.gc-mg-jobs summary::-webkit-details-marker { display: none; }
.gc-mg-jobs summary small { font-weight: 600; color: var(--gc-muted); }
.gc-mg-jobs[open] { padding-bottom: 12px; }
.gc-mg-jobs textarea {
    width: 100%;
    min-height: 74px;
    padding: 9px 11px;
    border: 1.5px solid #DDD6CB;
    border-radius: 12px;
    font: inherit;
    font-size: 16px; /* no iOS zoom */
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}
.gc-mg-jobs textarea:focus { outline: none; border-color: var(--gc-blue); box-shadow: 0 0 0 3px rgba(77, 102, 221, .2); }
.gc-mg-jobs p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--gc-muted); }
.gc-mg-jobs .gc-cta2 { min-height: 42px; }
.gc-mg-pick { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gc-sand); }
.gc-mg-pick[hidden] { display: none; }
.gc-mg-cands li { margin: 0 0 6px; }
.gc-mg-cands button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--gc-sand);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.gc-mg-cands button:hover { border-color: #BDB4A6; }
.gc-mg-cands button[aria-pressed="true"] { border-color: var(--gc-blue); box-shadow: 0 0 0 2px rgba(77, 102, 221, .25); }
.gc-mg-cands b { font-size: 13.5px; font-weight: 700; }
.gc-mg-cands small { font-size: 12px; color: var(--gc-muted); white-space: nowrap; }

/* ========== CONSULTATION SLOTS (phase 7) ========== */
.gc-bk-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
.gc-bk-days button {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 56px;
    padding: 6px 10px;
    border: 1.5px solid var(--gc-sand);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    cursor: pointer;
    line-height: 1.15;
}
.gc-bk-days button b { display: block; font-size: 12px; font-weight: 700; color: var(--gc-muted); }
.gc-bk-days button span { display: block; font-size: 15px; font-weight: 800; }
.gc-bk-days button[aria-checked="true"] { border-color: var(--gc-blue); background: rgba(77, 102, 221, .08); }
.gc-bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.gc-bk-slots button {
    min-height: 44px;
    border: 1.5px solid var(--gc-sand);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.gc-bk-slots button[aria-checked="true"] { border-color: var(--gc-blue); background: var(--gc-blue); color: #fff; }
.gc-bk-zone { margin: 10px 0 0; font-size: 12px; color: var(--gc-muted); }
.gc-bk-zone:empty { display: none; }

/* ========== ADD TO CALENDAR (phase 7: modal after booking, and the texted page) ========== */
.gc-cal { display: grid; gap: 8px; margin-top: 10px; }
.gc-cal-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--gc-sand);
    border-radius: 14px;
    background: #fff;
    color: var(--gc-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
}
.gc-cal-btn:hover { border-color: #BDB4A6; }
.gc-cal-btn svg { width: 18px; height: 18px; color: var(--gc-blue); flex: 0 0 auto; }
.gc-cal-title { margin: 16px 0 0; }

/* The page the confirmation text links to (funnels/geo_consult_page.html) */
.gc-page-body { margin: 0; background: #FAF8F5; }
.gc-page { max-width: 460px; margin: 0 auto; padding: 28px 16px 40px; }
.gc-page-logo { display: block; width: 40px; height: 40px; margin-bottom: 18px; }
.gc-page .gc-title { margin: 0; }
.gc-page .gc-sub { margin: 6px 0 18px; }
.gc-page-when { margin-bottom: 14px; }
.gc-page-btn { text-decoration: none; }
.gc-page-h { margin: 22px 0 0; }
.gc-page-foot { margin: 22px 0 0; font-size: 13px; color: var(--gc-muted); }
.gc-page a:not(.gc-cta):not(.gc-cal-btn) { color: var(--gc-blue-dark); }
