:root {
    --green-950: #04351f;
    --green-900: #07512e;
    --green-850: #075d33;
    --green-800: #0a6b3a;
    --green-700: #0f8047;
    --green-650: #12914f;
    --green-600: #159d56;
    --green-500: #25b96b;
    --green-400: #55c98a;
    --green-300: #8bd9b0;
    --green-200: #bce9d1;
    --green-100: #ddf4e8;
    --green-75: #eaf8f0;
    --green-50: #f5fbf7;
    --white: #ffffff;
    --ink: #092b1b;
    --muted: #486858;
    --line: #cfe5d8;
    --shadow: 0 24px 60px rgba(4, 53, 31, .13);
    --shadow-soft: 0 12px 34px rgba(4, 53, 31, .09);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--green-950); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--green-950); line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); margin-bottom: 1.35rem; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.18rem; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow-container { max-width: 820px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; background: var(--green-950); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin-bottom: .65rem; color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead, .hero-lead { color: var(--muted); font-size: 1.14rem; }
.optional { color: var(--green-700); font-size: .76rem; font-weight: 600; }

.top-notice { background: var(--green-950); color: var(--green-100); font-size: .82rem; padding: 8px 0; text-align: center; }
.top-notice strong { color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green-950); }
.site-brand > span:last-child { display: grid; line-height: 1.05; }
.site-brand strong { font-size: 1.02rem; }
.site-brand small { margin-top: 5px; color: var(--green-700); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--white); background: linear-gradient(145deg, var(--green-700), var(--green-950)); border-radius: 13px; box-shadow: 0 8px 20px rgba(4,53,31,.2); font-weight: 900; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 13px; color: var(--muted); border-radius: 10px; font-size: .91rem; font-weight: 700; }
.site-nav a:hover, .site-nav a.active { color: var(--green-900); background: var(--green-75); }
.site-nav .nav-admin { margin-left: 8px; color: var(--white); background: var(--green-800); }
.site-nav .nav-admin:hover { color: var(--white); background: var(--green-950); }
.nav-toggle, .admin-menu-toggle { display: none; color: var(--green-900); background: var(--green-75); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 800; }

.hero-section { overflow: hidden; padding: 74px 0 46px; background: radial-gradient(circle at 80% 0%, var(--green-100), transparent 35%), linear-gradient(180deg, var(--green-50), var(--white)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.hero-copy h1 { max-width: 760px; }
.hero-copy .hero-lead { max-width: 650px; font-size: 1.18rem; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% 7%; z-index: -1; background: var(--green-100); border-radius: 42% 58% 56% 44% / 48% 43% 57% 52%; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.hero-points div { padding: 15px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hero-points strong, .hero-points span { display: block; }
.hero-points strong { color: var(--green-900); font-size: .9rem; }
.hero-points span { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.4; }

.calculator-section { padding: 56px 0 82px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); align-items: start; gap: 28px; }
.calculator-card, .result-panel, .content-card, .info-card, .printable-estimate { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.calculator-card { padding: clamp(22px, 4vw, 42px); }
.result-panel { position: sticky; top: 114px; min-height: 480px; overflow: hidden; background: linear-gradient(155deg, var(--green-950), var(--green-800)); color: var(--green-100); border-color: var(--green-800); }
.empty-result { min-height: 480px; display: grid; align-content: center; justify-items: center; padding: 38px; text-align: center; }
.empty-result h2, .result-content h2 { color: var(--white); }
.empty-result p { color: var(--green-200); }
.result-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 20px; color: var(--green-950); background: var(--green-100); border-radius: 22px; font-size: 2rem; font-weight: 900; }
.result-content { padding: 30px; }
.result-top { padding-bottom: 23px; border-bottom: 1px solid rgba(255,255,255,.22); }
.result-top .result-label { margin: 0; color: var(--green-200); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.result-total { color: var(--white); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.result-route { margin-top: 16px; color: var(--green-100); font-weight: 700; }
.result-transport { color: var(--green-200); font-size: .84rem; }
.result-breakdown { margin: 22px 0; }
.result-breakdown div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; color: var(--green-100); }
.result-breakdown span:last-child { color: var(--white); font-weight: 800; }
.result-breakdown .result-discount span:last-child { color: var(--green-200); }
.result-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.result-meta span { padding: 6px 9px; color: var(--green-100); background: rgba(255,255,255,.11); border-radius: 999px; font-size: .72rem; }
.result-notice { margin-top: 18px; padding: 14px; color: var(--green-100); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-size: .76rem; }
.result-reference { margin: 14px 0 0; color: var(--green-200); font-size: .72rem; }
.result-error { min-height: 480px; display: grid; align-content: center; padding: 36px; text-align: center; }
.result-error strong { color: var(--white); font-size: 1.3rem; }
.result-error p { color: var(--green-200); }

.section-heading { margin-bottom: 28px; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.centered { max-width: 700px; margin-inline: auto; text-align: center; }
.form-grid, .fare-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; align-content: start; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--green-950); font-size: .86rem; font-weight: 800; }
.field small { color: var(--muted); font-size: .75rem; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; outline: 0; transition: border-color .18s, box-shadow .18s, background .18s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.field input::placeholder, .field textarea::placeholder { color: #759484; }
.field textarea { resize: vertical; }
.input-suffix, .input-prefix { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.input-suffix:focus-within, .input-prefix:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.input-suffix input, .input-prefix input { border: 0; box-shadow: none !important; }
.input-suffix span, .input-prefix span { padding: 0 13px; color: var(--green-800); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.checkbox-field label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.privacy-note { max-width: 420px; margin: 0; color: var(--muted); font-size: .74rem; }
.section-label { margin-top: 8px; padding-bottom: 8px; color: var(--green-800); border-bottom: 1px solid var(--line); font-weight: 900; }

.transport-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.transport-option { cursor: pointer; }
.transport-option input { position: absolute; opacity: 0; pointer-events: none; }
.transport-option-card { min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.transport-option:hover .transport-option-card { transform: translateY(-2px); border-color: var(--green-400); }
.transport-option input:checked + .transport-option-card { background: var(--green-50); border: 2px solid var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.transport-option input:focus-visible + .transport-option-card { outline: 3px solid var(--green-300); outline-offset: 2px; }
.transport-option-card > span:last-child { display: grid; }
.transport-option-card strong { color: var(--green-950); font-size: .88rem; line-height: 1.3; }
.transport-option-card small { color: var(--muted); font-size: .72rem; }
.transport-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-800); background: var(--green-100); border-radius: 13px; }
.transport-icon svg { width: 31px; height: 31px; fill: currentColor; }
.transport-icon.large { width: 64px; height: 64px; border-radius: 18px; }
.transport-icon.large svg { width: 43px; height: 43px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 850; line-height: 1.2; transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--green-800); box-shadow: 0 9px 20px rgba(10,107,58,.18); }
.button-primary:hover { color: var(--white); background: var(--green-950); }
.button-light { color: var(--green-950); background: var(--white); }
.button-light:hover { color: var(--green-950); background: var(--green-100); }
.button-outline { color: var(--green-900); background: var(--white); border-color: var(--green-300); }
.button-outline:hover { color: var(--green-950); background: var(--green-50); border-color: var(--green-700); }
.button-large { min-height: 52px; padding-inline: 24px; }
.button-small { min-height: 36px; padding: 8px 12px; font-size: .78rem; }
.button-block { width: 100%; }
.button[disabled] { opacity: .65; cursor: wait; transform: none; }

.trust-section, .page-section { padding: 76px 0; }
.trust-section { background: var(--green-50); border-block: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid article { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.steps-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; color: var(--white); background: var(--green-800); border-radius: 12px; font-weight: 900; }
.steps-grid p { margin-bottom: 0; color: var(--muted); }
.cta-section { padding: 70px 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(28px, 5vw, 56px); color: var(--green-100); background: linear-gradient(135deg, var(--green-950), var(--green-700)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cta-card h2 { color: var(--white); }
.cta-card .eyebrow { color: var(--green-200); }
.cta-card p:last-child { max-width: 720px; margin-bottom: 0; }

.page-hero { padding: 70px 0; background: linear-gradient(145deg, var(--green-950), var(--green-700)); color: var(--green-100); }
.page-hero.compact { padding: 48px 0; }
.page-hero h1 { max-width: 920px; color: var(--white); font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p:last-child { max-width: 820px; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--green-200); }
.fare-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.fare-rate-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.fare-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 16px; }
.fare-card-head h2 { margin-bottom: 6px; font-size: 1.25rem; }
.fare-card-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.rate-highlight { display: grid; padding: 20px 24px; background: var(--green-50); border-block: 1px solid var(--line); }
.rate-highlight span, .rate-highlight small { color: var(--muted); }
.rate-highlight strong { color: var(--green-900); font-size: 2.6rem; line-height: 1.1; letter-spacing: -.04em; }
.rate-details { margin: 0; padding: 18px 24px; }
.rate-details div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--green-100); }
.rate-details div:last-child { border-bottom: 0; }
.rate-details dt { color: var(--muted); }
.rate-details dd { margin: 0; color: var(--green-950); font-weight: 800; }
.rate-source { display: grid; gap: 5px; padding: 17px 24px 22px; color: var(--green-900); background: var(--green-75); border-top: 1px solid var(--line); font-size: .76rem; }
.rate-source span, .rate-source small { color: var(--muted); }
.soft-section { background: var(--green-50); border-block: 1px solid var(--line); }
.two-column-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.two-column-info p:last-child { color: var(--muted); }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.content-card { padding: clamp(22px, 4vw, 40px); }
.info-sidebar { display: grid; gap: 18px; }
.info-card { padding: 24px; }
.info-card p { color: var(--muted); }
.success-state { padding: 30px; text-align: center; }
.success-state .result-icon { margin-inline: auto; color: var(--white); background: var(--green-700); }

.notice { margin-bottom: 22px; padding: 16px 18px; color: var(--green-950); background: var(--green-75); border: 1px solid var(--green-300); border-left: 5px solid var(--green-700); border-radius: 12px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-success { background: var(--green-100); border-color: var(--green-500); }
.notice-error { background: var(--green-50); border-color: var(--green-800); border-left-color: var(--green-950); }
.notice-info { background: var(--green-50); }

.printable-estimate { overflow: hidden; padding: clamp(24px, 5vw, 46px); }
.estimate-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.estimate-header > div:last-child { display: grid; justify-items: end; gap: 8px; text-align: right; }
.estimate-total { color: var(--green-900); font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.route-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 32px 0; padding: 20px; color: var(--green-950); background: var(--green-50); border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
.route-line span:nth-child(2) { color: var(--green-700); }
.breakdown-list { margin: 0; }
.breakdown-list div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.breakdown-list dt { color: var(--muted); }
.breakdown-list dd { margin: 0; color: var(--green-950); font-weight: 800; }
.breakdown-list .total-row { margin-top: 8px; border-bottom: 0; font-size: 1.25rem; }
.breakdown-list .total-row dt, .breakdown-list .total-row dd { color: var(--green-900); font-weight: 900; }
.estimate-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.estimate-meta span { padding: 7px 10px; color: var(--green-800); background: var(--green-75); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.estimate-notice { margin: 20px 0; padding: 14px; color: var(--muted); background: var(--green-50); border-radius: 10px; font-size: .8rem; }

.site-footer { padding-top: 58px; color: var(--green-200); background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .7fr; gap: 46px; }
.site-footer h2 { color: var(--white); font-size: .96rem; }
.site-footer p, .site-footer a { color: var(--green-200); font-size: .84rem; }
.site-footer a { display: block; margin-bottom: 7px; }
.site-footer a:hover { color: var(--white); }
.footer-brand strong { color: var(--white); }
.footer-brand small { color: var(--green-300); }
.footer-bottom { margin-top: 42px; padding: 19px 0; color: var(--green-300); border-top: 1px solid rgba(255,255,255,.13); font-size: .75rem; }

/* Admin */
.admin-body { background: var(--green-50); }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; color: var(--green-100); background: var(--green-950); }
.admin-brand { margin: 0 10px 28px; }
.admin-brand strong { color: var(--white); }
.admin-brand small { color: var(--green-300); }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { padding: 11px 13px; color: var(--green-200); border-radius: 10px; font-size: .87rem; font-weight: 750; }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.11); }
.admin-sidebar-footer { display: grid; gap: 6px; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.admin-sidebar-footer small { color: var(--green-300); }
.admin-sidebar-footer strong { color: var(--white); }
.admin-sidebar-footer a { color: var(--green-200); font-size: .78rem; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 18px; padding: 24px clamp(20px, 4vw, 46px); background: var(--white); border-bottom: 1px solid var(--line); }
.admin-topbar h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.admin-topbar .eyebrow { margin-bottom: 4px; }
.admin-content { padding: 30px clamp(20px, 4vw, 46px) 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 28px; }
.stat-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.stat-card span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.stat-card strong { display: block; margin-top: 6px; color: var(--green-900); font-size: 2rem; line-height: 1.1; }
.admin-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.admin-card-header h2 { margin: 0; font-size: 1.1rem; }
.admin-card-body { padding: 21px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--green-900); background: var(--green-50); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table td { color: var(--muted); font-size: .82rem; }
.data-table td strong { color: var(--green-950); }
.data-table tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; padding: 5px 8px; color: var(--green-900); background: var(--green-100); border: 1px solid var(--green-300); border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.status-muted { background: var(--green-50); color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-form { padding: 22px; }
.admin-form .form-grid { gap: 17px; }
.admin-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.empty-table { padding: 36px; color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.login-shell, .install-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 20% 10%, var(--green-100), transparent 30%), linear-gradient(155deg, var(--green-50), var(--white)); }
.login-card, .install-card { width: min(100%, 560px); padding: clamp(26px, 5vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.login-card .brand-mark, .install-card .brand-mark { margin-bottom: 22px; }
.install-card { width: min(100%, 760px); }
.login-card .form-grid { grid-template-columns: 1fr; }

@media (max-width: 980px) {
    .hero-grid, .calculator-layout, .report-layout { grid-template-columns: 1fr; }
    .hero-art { max-width: 620px; margin-inline: auto; }
    .result-panel { position: static; min-height: 0; }
    .empty-result, .result-error { min-height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: -280px; z-index: 300; width: 255px; transition: left .2s; }
    .admin-body.admin-menu-open .admin-sidebar { left: 0; box-shadow: 20px 0 60px rgba(4,53,31,.22); }
    .admin-menu-toggle { display: inline-flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .top-notice { text-align: left; }
    .nav-toggle { display: inline-flex; }
    .site-nav { position: absolute; top: calc(100% + 1px); left: 16px; right: 16px; display: none; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
    .site-nav.open { display: grid; }
    .site-nav .nav-admin { margin-left: 0; text-align: center; }
    .hero-section { padding-top: 50px; }
    .hero-points, .steps-grid, .fare-card-grid, .two-column-info, .footer-grid, .admin-grid { grid-template-columns: 1fr; }
    .form-grid, .fare-form { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .transport-selector { grid-template-columns: 1fr; }
    .cta-card, .estimate-header { align-items: flex-start; flex-direction: column; }
    .estimate-header > div:last-child { justify-items: start; text-align: left; }
    .route-line { grid-template-columns: 1fr; }
    .route-line span:nth-child(2) { transform: rotate(90deg); width: max-content; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-content { padding-inline: 16px; }
    .admin-topbar { padding-inline: 16px; }
}

@media print {
    .top-notice, .site-header, .site-footer, .page-hero, .no-print { display: none !important; }
    .page-section { padding: 0; }
    .printable-estimate { border: 0; box-shadow: none; }
    body { background: var(--white); }
}

/* 2026 route calculator base styles */
.route-hero { padding: 64px 0 48px; overflow: hidden; background: radial-gradient(circle at 86% 18%, var(--green-200), transparent 28%), linear-gradient(155deg, var(--green-50), var(--white)); border-bottom: 1px solid var(--line); }
.route-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 50px; }
.route-hero h1 { max-width: 850px; margin-bottom: 1rem; }
.route-hero .hero-lead { max-width: 790px; }
.live-rate-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.live-rate-strip span { display: grid; min-width: 180px; padding: 12px 14px; color: var(--green-900); background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 13px; font-size: .83rem; }
.live-rate-strip strong { color: var(--muted); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }
.hero-route-badge { width: 210px; height: 210px; display: grid; place-content: center; justify-items: center; margin-left: auto; color: var(--white); background: linear-gradient(145deg, var(--green-600), var(--green-950)); border: 12px solid var(--green-100); border-radius: 50%; box-shadow: var(--shadow); }
.hero-route-badge span { padding: 3px 9px; color: var(--green-950); background: var(--green-200); border-radius: 999px; font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.hero-route-badge strong { font-size: 3.6rem; line-height: 1; letter-spacing: -.08em; }
.hero-route-badge small { color: var(--green-200); font-weight: 700; }

.route-calculator-section { padding: 52px 0 84px; background: var(--white); }
.route-calculator-shell { display: grid; grid-template-columns: minmax(390px, .82fr) minmax(0, 1.18fr); align-items: start; gap: 26px; }
.route-controls-card, .map-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.route-controls-card { padding: clamp(22px, 3.5vw, 38px); }
.route-map-column { display: grid; gap: 22px; min-width: 0; }
.route-fare-form { display: grid; gap: 19px; }
.route-transport-selector { grid-template-columns: 1fr; }
.route-transport-selector .transport-option-card { min-height: 72px; }
.location-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 13px; }
.location-step-number { width: 34px; height: 34px; display: grid; place-items: center; margin-top: 28px; color: var(--white); background: var(--green-800); border-radius: 11px; font-size: .82rem; font-weight: 900; }
.location-step-content { min-width: 0; display: grid; gap: 7px; }
.location-step-content > label { color: var(--green-950); font-size: .86rem; font-weight: 800; }
.location-step-content > small { color: var(--muted); font-size: .75rem; }
.location-button { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px; text-align: left; color: var(--green-950); background: var(--green-50); border: 1px solid var(--green-300); border-radius: 14px; }
.location-button:hover { background: var(--green-100); border-color: var(--green-600); }
.location-button:disabled { opacity: .6; cursor: not-allowed; }
.location-button > span:last-child { display: grid; }
.location-button small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.location-pulse { position: relative; width: 19px; height: 19px; flex: 0 0 auto; background: var(--green-700); border: 5px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 3px var(--green-400); }
.location-pulse::after { content: ""; position: absolute; inset: -9px; border: 2px solid var(--green-500); border-radius: 50%; animation: gps-pulse 1.9s infinite; }
@keyframes gps-pulse { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.route-actions { display: grid; }
.route-actions .button { width: 100%; }
.api-warning { margin-bottom: 20px; }

.map-card { overflow: hidden; }
.map-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.map-card-header h2 { margin: 0; font-size: 1.2rem; }
.map-card-header .eyebrow { margin-bottom: 3px; }
.map-area-pill { display: inline-flex; padding: 6px 9px; color: var(--green-900); background: var(--green-100); border: 1px solid var(--green-300); border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.route-map { height: 520px; min-height: 420px; background: var(--green-50); }
.map-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.map-placeholder span { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 15px; color: var(--white); background: var(--green-800); border-radius: 22px; font-weight: 900; }
.map-placeholder strong { color: var(--green-950); font-size: 1.1rem; }
.map-placeholder small { margin-top: 4px; }
.tracking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--green-50); border-top: 1px solid var(--line); }
.tracking-toolbar > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.tracking-toolbar strong { color: var(--green-950); font-size: .86rem; }
.tracking-toolbar small { grid-column: 2; color: var(--muted); font-size: .7rem; }
.tracking-dot { width: 10px; height: 10px; grid-row: 1 / 3; background: var(--green-600); border-radius: 50%; box-shadow: 0 0 0 5px var(--green-100); }
.tracking-buttons { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.route-result-panel { position: static; min-height: 0; }
.route-result-panel .empty-result, .route-result-panel .result-error { min-height: 340px; }
.route-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 4px; }
.route-summary-grid div { padding: 11px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.route-summary-grid small, .route-summary-grid strong { display: block; }
.route-summary-grid small { color: var(--green-200); font-size: .65rem; }
.route-summary-grid strong { color: var(--white); font-size: .9rem; }
.route-pin { width: 30px; height: 30px; display: grid; place-items: center; color: var(--white); background: var(--green-800); border: 4px solid var(--white); border-radius: 50% 50% 50% 8px; box-shadow: 0 5px 14px rgba(4,53,31,.28); transform: rotate(-45deg); }
.route-pin > * { transform: rotate(45deg); }
.route-pin-current { border-radius: 50%; transform: none; }
.route-pin-current > * { width: 9px; height: 9px; background: var(--white); border-radius: 50%; transform: none; }
.route-pin-destination strong { font-size: .72rem; }
.admin-help { color: var(--muted); font-size: .84rem; }

@media (max-width: 1040px) {
    .route-calculator-shell { grid-template-columns: 1fr; }
    .route-controls-card { order: 1; }
    .route-map-column { order: 2; }
    .route-map { height: 480px; }
}

@media (max-width: 760px) {
    .route-hero { padding-top: 42px; }
    .route-hero-grid { grid-template-columns: 1fr; }
    .hero-route-badge { display: none; }
    .live-rate-strip { display: grid; grid-template-columns: 1fr; }
    .live-rate-strip span { min-width: 0; }
    .route-calculator-section { padding-top: 28px; }
    .route-controls-card { padding: 20px 16px; border-radius: 20px; }
    .map-card { border-radius: 20px; }
    .map-card-header { align-items: flex-start; }
    .map-area-pill { white-space: normal; text-align: center; }
    .route-map { height: 430px; min-height: 360px; }
    .tracking-toolbar { align-items: flex-start; flex-direction: column; }
    .tracking-buttons { width: 100%; }
    .tracking-buttons .button { flex: 1; }
    .route-summary-grid { grid-template-columns: 1fr; }
    .location-step { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
    .location-step-number { width: 28px; height: 28px; margin-top: 29px; }
}

/* Leaflet production redesign — premium Tagum green interface */
body { background: #f3faf6; }
.site-header { box-shadow: 0 8px 30px rgba(4,53,31,.055); }
.route-hero {
    position: relative;
    isolation: isolate;
    padding: 78px 0 122px;
    color: var(--green-100);
    background:
        radial-gradient(circle at 9% 12%, rgba(85,201,138,.32), transparent 26%),
        radial-gradient(circle at 88% 30%, rgba(21,157,86,.3), transparent 31%),
        linear-gradient(128deg, #032d1a 0%, #075d33 55%, #0a7841 100%);
    border: 0;
}
.route-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; z-index: -1; background: linear-gradient(to bottom right, transparent 49%, #f3faf6 50%); }
.route-hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.route-hero-orbit-one { width: 460px; height: 460px; right: -160px; top: -170px; }
.route-hero-orbit-two { width: 280px; height: 280px; left: -120px; bottom: -120px; }
.route-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(42px, 7vw, 90px); }
.route-hero-copy { position: relative; z-index: 2; }
.route-hero h1 { max-width: 790px; color: var(--white); font-size: clamp(2.65rem, 5.8vw, 5.15rem); text-wrap: balance; }
.route-hero .hero-lead { max-width: 720px; color: var(--green-100); font-size: clamp(1rem, 1.8vw, 1.22rem); }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 7px 12px; color: var(--green-100); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker-dot { width: 8px; height: 8px; background: #8ff0b8; border-radius: 50%; box-shadow: 0 0 0 5px rgba(143,240,184,.13); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button-ghost-light { color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); }
.button-ghost-light:hover { color: var(--white); background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.44); }
.route-hero .live-rate-strip { gap: 10px; margin-top: 34px; }
.route-hero .live-rate-strip span { min-width: 160px; padding: 13px 15px; color: var(--white); background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.route-hero .live-rate-strip small { color: var(--green-200); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.route-hero .live-rate-strip strong { margin-top: 3px; color: var(--white); font-size: .84rem; letter-spacing: 0; text-transform: none; }

.hero-map-visual { position: relative; min-height: 410px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)); border: 1px solid rgba(255,255,255,.18); border-radius: 36px; box-shadow: 0 32px 70px rgba(1,31,17,.28); backdrop-filter: blur(16px); transform: rotate(1.5deg); }
.hero-map-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 42px 42px; }
.hero-map-grid::after { content: ""; position: absolute; inset: 32px; background: radial-gradient(circle at 28% 65%, rgba(111,217,155,.45), transparent 16%), radial-gradient(circle at 72% 28%, rgba(111,217,155,.35), transparent 18%); border: 1px dashed rgba(255,255,255,.2); border-radius: 28px; }
.hero-route-line { position: absolute; left: 19%; top: 29%; width: 64%; height: 43%; border: 5px solid transparent; border-top-color: #9df0bd; border-right-color: #9df0bd; border-radius: 0 90px 0 0; transform: rotate(10deg); filter: drop-shadow(0 0 9px rgba(157,240,189,.38)); }
.hero-route-line::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 48%; height: 5px; background: #9df0bd; border-radius: 999px; transform: rotate(38deg); transform-origin: right; }
.hero-route-line i { position: absolute; width: 9px; height: 9px; background: var(--white); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.hero-route-line i:nth-child(1) { left: 14%; top: -7px; }
.hero-route-line i:nth-child(2) { left: 54%; top: -7px; }
.hero-route-line i:nth-child(3) { right: -7px; top: 48%; }
.hero-location-pin { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; color: var(--green-950); background: var(--white); border: 7px solid rgba(255,255,255,.22); border-radius: 50% 50% 50% 10px; box-shadow: 0 14px 32px rgba(2,35,19,.28); transform: rotate(-45deg); }
.hero-location-pin span { transform: rotate(45deg); font-weight: 950; }
.hero-location-pin-a { left: 14%; bottom: 20%; }
.hero-location-pin-b { right: 12%; top: 15%; background: #a6f3c4; }
.hero-map-card { position: absolute; left: 50%; bottom: 33px; min-width: 210px; display: grid; justify-items: center; padding: 18px 22px; color: var(--green-100); background: rgba(3,45,26,.82); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; box-shadow: 0 20px 40px rgba(2,34,19,.25); transform: translateX(-50%) rotate(-1.5deg); backdrop-filter: blur(12px); }
.hero-map-card span { padding: 4px 8px; color: var(--green-950); background: #9df0bd; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.hero-map-card strong { margin-top: 6px; color: var(--white); font-size: 2.2rem; letter-spacing: -.06em; }
.hero-map-card small { color: var(--green-200); }

.route-calculator-section { position: relative; z-index: 4; margin-top: -58px; padding: 0 0 92px; background: transparent; }
.route-calculator-shell { grid-template-columns: minmax(380px, .78fr) minmax(0, 1.22fr); gap: 28px; }
.route-controls-card, .map-card { border-color: rgba(10,107,58,.13); box-shadow: 0 22px 60px rgba(4,53,31,.12); }
.route-controls-card { position: relative; overflow: hidden; padding: clamp(24px, 3.5vw, 39px); }
.card-accent { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--green-950), var(--green-500), var(--green-950)); }
.compact-heading { margin-bottom: 24px; }
.compact-heading h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-badge { padding: 4px 8px; color: var(--green-800); background: var(--green-100); border: 1px solid var(--green-200); border-radius: 999px; font-size: .64rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.muted-badge { color: var(--muted); background: var(--green-50); }
.route-transport-selector { gap: 9px; }
.route-transport-selector .transport-option-card { position: relative; min-height: 76px; padding: 13px 44px 13px 13px; border-radius: 16px; }
.transport-check { position: absolute; right: 14px; width: 22px; height: 22px; display: grid !important; place-items: center; color: transparent; background: var(--white); border: 2px solid var(--green-200); border-radius: 50%; font-size: .72rem; }
.transport-option input:checked + .transport-option-card .transport-check { color: var(--white); background: var(--green-700); border-color: var(--green-700); }
.transport-option input:checked + .transport-option-card { background: linear-gradient(135deg, var(--green-50), #edfaf3); }
.location-step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
.location-step-number { width: 38px; height: 38px; margin-top: 26px; background: linear-gradient(145deg, var(--green-650), var(--green-950)); border-radius: 13px; box-shadow: 0 8px 18px rgba(4,53,31,.16); }
.location-button { min-height: 66px; padding: 13px 14px; background: linear-gradient(135deg, var(--green-50), #fff); border-color: var(--green-200); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.location-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(4,53,31,.09); }
.location-button.is-complete { background: var(--green-100); border-color: var(--green-500); }
.location-button > span:nth-child(2) { min-width: 0; display: grid; }
.location-button .button-arrow { margin-left: auto; color: var(--green-700); font-size: 1.6rem; line-height: 1; }
.destination-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.destination-search-row input { width: 100%; min-height: 52px; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 13px; outline: 0; }
.destination-search-row input:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.destination-search-row .button { min-width: 86px; }
.destination-results { display: grid; gap: 6px; max-height: 290px; overflow: auto; padding: 7px; background: var(--green-50); border: 1px solid var(--line); border-radius: 14px; }
.destination-result-item { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; color: var(--ink); text-align: left; background: var(--white); border: 1px solid transparent; border-radius: 11px; }
.destination-result-item:hover { background: var(--green-100); border-color: var(--green-300); }
.destination-result-item > span:nth-child(2) { min-width: 0; display: grid; }
.destination-result-item strong { overflow: hidden; color: var(--green-950); font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.destination-result-item small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .7rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.destination-result-number { width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--green-800); border-radius: 9px; font-size: .7rem; font-weight: 900; }
.destination-empty { padding: 14px; color: var(--muted); font-size: .78rem; text-align: center; }
.route-submit { display: flex; justify-content: space-between; padding-inline: 20px; border-radius: 14px; }
.route-submit span:last-child { font-size: 1.25rem; }
.privacy-note strong { color: var(--green-900); }

.map-card { overflow: hidden; background: var(--white); }
.map-card-header { padding: 17px 20px; background: linear-gradient(180deg, #fff, #fbfefc); }
.map-header-actions { display: flex; align-items: center; gap: 8px; }
.map-reset-button { padding: 6px 10px; color: var(--green-800); background: var(--white); border: 1px solid var(--green-300); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.map-reset-button:hover { color: var(--white); background: var(--green-800); }
.map-instruction { display: flex; align-items: center; gap: 9px; padding: 9px 18px; color: var(--muted); background: var(--green-50); border-bottom: 1px solid var(--line); font-size: .72rem; }
.map-instruction span { padding: 3px 7px; color: var(--white); background: var(--green-800); border-radius: 999px; font-size: .61rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.route-map { height: 560px; min-height: 440px; background: #dcefe3; }
.route-map .leaflet-control-container { font-family: inherit; }
.route-map .leaflet-bar { overflow: hidden; border: 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(4,53,31,.18); }
.route-map .leaflet-bar a { color: var(--green-950); background: var(--white); border-bottom-color: var(--line); }
.route-map .leaflet-bar a:hover { color: var(--white); background: var(--green-800); }
.route-map .leaflet-control-attribution { padding: 4px 7px; color: var(--muted); background: rgba(255,255,255,.9); border-radius: 8px 0 0 0; font-size: 9px; }
.route-map .leaflet-control-attribution a { color: var(--green-800); }
.route-map .leaflet-control-scale-line { color: var(--green-950); background: rgba(255,255,255,.85); border-color: var(--green-800); }
.leaflet-custom-marker-wrap { background: transparent !important; border: 0 !important; }
.leaflet-custom-marker { display: grid; place-items: center; box-shadow: 0 8px 22px rgba(4,53,31,.3); }
.leaflet-custom-marker-current { position: relative; width: 32px; height: 32px; background: var(--green-700); border: 6px solid var(--white); border-radius: 50%; }
.leaflet-custom-marker-current::after { content: ""; position: absolute; inset: -11px; border: 2px solid rgba(21,157,86,.45); border-radius: 50%; animation: gps-pulse 1.9s infinite; }
.leaflet-custom-marker-current span { width: 7px; height: 7px; background: var(--white); border-radius: 50%; }
.leaflet-custom-marker-destination { width: 40px; height: 40px; color: var(--white); background: linear-gradient(145deg, var(--green-600), var(--green-950)); border: 5px solid var(--white); border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); }
.leaflet-custom-marker-destination strong { transform: rotate(45deg); font-size: .8rem; }
.tracking-toolbar { padding: 15px 18px; background: linear-gradient(180deg, var(--green-50), #edf9f2); }
.tracking-dot { position: relative; }
.tracking-dot::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--green-500); border-radius: 50%; animation: gps-pulse 1.9s infinite; }
.route-result-panel { overflow: hidden; background: linear-gradient(145deg, #032f1c, #08653a 58%, #0b7a43); border-color: rgba(8,101,58,.7); box-shadow: 0 22px 58px rgba(4,53,31,.18); }
.result-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.route-provider-badge { padding: 5px 8px; color: var(--green-950); background: #9df0bd; border-radius: 999px; font-size: .62rem; font-weight: 900; white-space: nowrap; }
.result-route span { color: #9df0bd; }
.result-reference strong { color: var(--white); }
.calculating-state { min-height: 340px; }
.route-loader { width: 58px; height: 58px; margin-bottom: 21px; border: 6px solid rgba(255,255,255,.16); border-top-color: #9df0bd; border-radius: 50%; animation: route-spin .8s linear infinite; }
@keyframes route-spin { to { transform: rotate(360deg); } }
.feature-steps article { position: relative; overflow: hidden; box-shadow: 0 12px 32px rgba(4,53,31,.07); }
.feature-steps article::after { content: ""; position: absolute; right: -30px; bottom: -35px; width: 110px; height: 110px; background: var(--green-50); border-radius: 50%; }
.feature-steps article > span { position: relative; z-index: 1; }

@media (max-width: 1040px) {
    .route-hero { padding-bottom: 102px; }
    .route-hero-grid { grid-template-columns: 1fr; }
    .hero-map-visual { min-height: 330px; max-width: 720px; width: 100%; margin-inline: auto; }
    .route-calculator-section { margin-top: -44px; }
    .route-calculator-shell { grid-template-columns: 1fr; }
    .route-map { height: 510px; }
}

@media (max-width: 760px) {
    .route-hero { padding: 48px 0 86px; }
    .route-hero::after { height: 55px; }
    .route-hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .button { width: 100%; }
    .hero-map-visual { min-height: 270px; border-radius: 26px; }
    .hero-map-card { min-width: 175px; padding: 13px 17px; }
    .hero-map-card strong { font-size: 1.75rem; }
    .hero-location-pin { width: 39px; height: 39px; }
    .route-calculator-section { margin-top: -25px; padding-bottom: 68px; }
    .route-controls-card { padding: 24px 16px; }
    .location-step { grid-template-columns: 32px minmax(0,1fr); gap: 8px; }
    .location-step-number { width: 30px; height: 30px; margin-top: 28px; border-radius: 10px; }
    .destination-search-row { grid-template-columns: 1fr; }
    .destination-search-row .button { width: 100%; }
    .map-card-header { align-items: flex-start; }
    .map-header-actions { align-items: flex-end; flex-direction: column; }
    .map-instruction { align-items: flex-start; }
    .route-map { height: 410px; min-height: 360px; }
    .result-label-row { align-items: flex-start; flex-direction: column; }
    .route-provider-badge { white-space: normal; }
}

/* ========================================================================== 
   Tagum FareGuide 2026 — Public UI V4
   Stronger green-and-white design + visible live-tracking dashboard
   ========================================================================== */

[hidden] { display: none !important; }

:root {
    --public-bg: #eef8f2;
    --public-card: #ffffff;
    --public-dark: #032f1c;
    --public-green: #087a43;
    --public-green-2: #0ca45a;
    --public-mint: #dff5e8;
    --public-line: #c8e4d4;
    --public-shadow: 0 24px 70px rgba(3, 47, 28, .12);
}

body:not(.admin-body) {
    background:
        radial-gradient(circle at 3% 36%, rgba(37, 185, 107, .08), transparent 22rem),
        radial-gradient(circle at 100% 70%, rgba(8, 122, 67, .07), transparent 28rem),
        var(--public-bg);
}

.top-notice {
    padding: 9px 0;
    background: #022617;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header {
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 34px rgba(3,47,28,.06);
}

.brand-mark {
    background: linear-gradient(145deg, #10a85e, #04351f);
    box-shadow: 0 10px 24px rgba(4,53,31,.23);
}

.route-hero {
    padding: 78px 0 132px;
    background:
        radial-gradient(circle at 15% 0%, rgba(101, 225, 151, .25), transparent 26rem),
        radial-gradient(circle at 88% 30%, rgba(91, 213, 142, .18), transparent 25rem),
        linear-gradient(125deg, #022b19 0%, #064f2d 48%, #0a7842 100%);
}

.route-hero::after {
    height: 88px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--public-bg) 50%);
}

.route-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
    gap: 62px;
}

.route-hero-copy h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.65rem, 5.4vw, 5rem);
    letter-spacing: -.055em;
}

.route-hero-copy .hero-lead {
    max-width: 730px;
    color: #d4f0df;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-kicker {
    width: fit-content;
    padding: 8px 12px;
    color: #e7fff0;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-actions { margin-top: 28px; }
.hero-actions .button { min-height: 52px; border-radius: 15px; }

.live-rate-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    max-width: 790px;
    margin-top: 34px;
}

.live-rate-strip span {
    min-width: 0;
    padding: 13px 15px;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.13);
    backdrop-filter: blur(11px);
}

.live-rate-strip small { color: #bde8ce; }
.live-rate-strip strong { color: #fff; font-size: .84rem; letter-spacing: 0; text-transform: none; }

.hero-map-visual {
    min-height: 370px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.12);
}

.route-calculator-section {
    margin-top: -58px;
    padding: 0 0 90px;
    background: transparent;
}

.route-calculator-shell {
    grid-template-columns: minmax(360px, .76fr) minmax(0, 1.24fr);
    gap: 28px;
}

.route-controls-card,
.map-card,
.route-result-panel {
    border: 1px solid rgba(8,122,67,.16);
    box-shadow: var(--public-shadow);
}

.route-controls-card {
    position: relative;
    padding: 34px 30px;
    border-radius: 26px;
}

.card-accent { height: 6px; }
.compact-heading h2 { margin-bottom: 9px; }
.compact-heading p:last-child { color: var(--muted); }

.route-transport-selector .transport-option-card {
    min-height: 80px;
    border-width: 1px;
    box-shadow: 0 7px 18px rgba(3,47,28,.045);
}

.transport-option input:checked + .transport-option-card {
    border-color: var(--public-green-2);
    box-shadow: 0 0 0 3px rgba(12,164,90,.12), 0 12px 28px rgba(3,47,28,.08);
}

.location-step-number {
    background: linear-gradient(145deg, #11a85e, #04351f);
}

.location-button,
.destination-search-row input,
.field select {
    min-height: 54px;
    border-color: #bedfcf;
    border-radius: 14px;
}

.location-button {
    min-height: 70px;
    background: linear-gradient(135deg, #f4fcf7, #fff);
}

.route-submit {
    min-height: 56px;
    background: linear-gradient(135deg, #0aa65a, #056638);
    box-shadow: 0 14px 28px rgba(5,102,56,.22);
}

.route-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0ab562, #044f2d);
    box-shadow: 0 18px 34px rgba(5,102,56,.28);
}

.route-map-column { gap: 24px; }
.map-card { border-radius: 27px; }
.map-card-header { padding: 19px 21px; }
.map-card-header h2 { font-size: 1.38rem; }
.map-instruction { padding: 10px 20px; }

.route-map-wrap { position: relative; isolation: isolate; }
.route-map {
    height: 570px;
    min-height: 440px;
    border-top: 1px solid #d6ebdf;
    border-bottom: 1px solid #d6ebdf;
    background:
        linear-gradient(45deg, rgba(8,122,67,.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(8,122,67,.035) 25%, transparent 25%),
        #deefe4;
    background-size: 34px 34px;
}

.live-map-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 10px 13px;
    color: #0b482c;
    background: rgba(255,255,255,.93);
    border: 1px solid rgba(8,122,67,.2);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(3,47,28,.16);
    backdrop-filter: blur(12px);
}

.live-map-hud > span:last-child { display: grid; }
.live-map-hud small { color: #5f7d6d; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-map-hud strong { font-size: .78rem; line-height: 1.25; }
.live-map-pulse { position: relative; width: 11px; height: 11px; flex: 0 0 auto; background: #d49313; border-radius: 50%; box-shadow: 0 0 0 5px rgba(212,147,19,.12); }
.live-map-hud.is-live .live-map-pulse { background: #0caf5d; box-shadow: 0 0 0 5px rgba(12,175,93,.14); }
.live-map-hud.is-live .live-map-pulse::after { content:""; position:absolute; inset:-7px; border:1px solid rgba(12,175,93,.5); border-radius:50%; animation:gps-pulse 1.7s infinite; }
.live-map-hud.has-warning .live-map-pulse { background: #c76020; }

.tracking-toolbar {
    display: block;
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,185,107,.10), transparent 18rem),
        linear-gradient(180deg, #f8fdf9, #eef9f3);
    border-top: 0;
}

.tracking-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tracking-panel-head h3 { margin: 2px 0 5px; font-size: 1.15rem; }
.tracking-panel-head p { margin-bottom: 0; }
.tracking-panel-head > div > p:last-child { color: var(--muted); font-size: .76rem; }
.tracking-kicker { display: flex; align-items: center; gap: 8px; color: #087a43; font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.tracking-dot { width: 9px; height: 9px; display: inline-block; flex: 0 0 auto; background: #0caf5d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(12,175,93,.11); }
.tracking-dot::after { display: none; }

.tracking-state-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 900;
    white-space: nowrap;
}
.tracking-state-badge.is-waiting { color: #77540f; background: #fff5cf; border-color: #eedb95; }
.tracking-state-badge.is-ready { color: #086236; background: #dff6e8; border-color: #aee1c2; }
.tracking-state-badge.is-live { color: #fff; background: #078346; box-shadow: 0 0 0 5px rgba(7,131,70,.10); }
.tracking-state-badge.is-updating { color: #07512e; background: #bff0d2; border-color: #79d39d; }
.tracking-state-badge.is-arrived { color: #fff; background: #04351f; }
.tracking-state-badge.is-error { color: #8b2f16; background: #fff0e8; border-color: #efbea9; }

.tracking-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
    margin-top: 17px;
}

.tracking-metrics div {
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #d1e8db;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(3,47,28,.045);
}

.tracking-metrics small,
.tracking-metrics strong { display: block; }
.tracking-metrics small { color: #648171; font-size: .62rem; font-weight: 760; }
.tracking-metrics strong { margin-top: 3px; overflow: hidden; color: #04351f; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }

.tracking-progress-row { margin-top: 16px; }
.tracking-progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #547261; font-size: .7rem; }
.tracking-progress-label strong { color: #075d33; }
.tracking-progress { height: 9px; overflow: hidden; background: #d4eadf; border-radius: 999px; box-shadow: inset 0 1px 2px rgba(3,47,28,.12); }
.tracking-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #31c97b, #087a43); border-radius: inherit; transition: width .45s ease; }

.tracking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #d2e8dc;
}

.tracking-footer p { max-width: 600px; margin: 0; color: #587566; font-size: .72rem; }
.tracking-footer p strong { color: #04351f; }
.tracking-buttons { flex: 0 0 auto; }
.tracking-buttons .button { min-height: 38px; border-radius: 10px; }
.tracking-buttons .button:disabled { opacity: .52; cursor: not-allowed; transform: none; }

.route-result-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(88,220,143,.18), transparent 18rem),
        linear-gradient(140deg, #022b19, #075f35 62%, #098147);
    border-radius: 27px;
}

.route-result-panel .empty-result,
.route-result-panel .result-error { min-height: 310px; }

.result-content { padding: 31px; }
.result-total { text-shadow: 0 5px 22px rgba(0,0,0,.15); }
.route-summary-grid div { background: rgba(255,255,255,.1); }

.trust-section { padding: 78px 0; background: transparent; }
.feature-steps article { background: rgba(255,255,255,.92); border-color: rgba(8,122,67,.13); }
.cta-section { padding-bottom: 88px; }
.cta-card { border-radius: 28px; box-shadow: var(--public-shadow); }

@media (min-width: 1041px) {
    .route-controls-card { position: sticky; top: 105px; }
}

@media (max-width: 1040px) {
    .route-hero { padding-bottom: 106px; }
    .route-hero-grid { grid-template-columns: 1fr; }
    .hero-map-visual { min-height: 330px; }
    .route-calculator-section { margin-top: -42px; }
    .route-calculator-shell { grid-template-columns: 1fr; }
    .route-map { height: 520px; }
}

@media (max-width: 760px) {
    .route-hero { padding: 52px 0 88px; }
    .route-hero::after { height: 52px; }
    .route-hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
    .live-rate-strip { grid-template-columns: 1fr; }
    .hero-map-visual { min-height: 260px; border-radius: 25px; }
    .route-calculator-section { margin-top: -24px; }
    .route-controls-card { padding: 25px 16px; border-radius: 21px; }
    .map-card, .route-result-panel { border-radius: 21px; }
    .route-map { height: 420px; min-height: 360px; }
    .live-map-hud { top: 10px; left: 10px; min-width: 165px; max-width: calc(100% - 72px); padding: 9px 11px; }
    .tracking-toolbar { padding: 17px 14px; }
    .tracking-panel-head { flex-direction: column; gap: 9px; }
    .tracking-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tracking-footer { align-items: stretch; flex-direction: column; }
    .tracking-buttons { width: 100%; }
    .tracking-buttons .button { flex: 1; }
    .result-content { padding: 24px 18px; }
}

@media (max-width: 430px) {
    .tracking-metrics { grid-template-columns: 1fr 1fr; }
    .map-card-header { gap: 9px; }
    .map-header-actions { align-items: flex-end; }
    .map-area-pill { display: none; }
}


/* Production mobile navigation: right-side drawer with click-outside close. */
.nav-backdrop { display: none; }
.nav-toggle-label { line-height: 1; }
.nav-toggle-icon { width: 18px; display: grid; gap: 4px; }
.nav-toggle-icon i { width: 100%; height: 2px; display: block; background: currentColor; border-radius: 999px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 760px) {
    body.public-nav-open { overflow: hidden; }
    .site-header { z-index: 1000; background: #fff; backdrop-filter: none; }
    .nav-toggle {
        position: relative;
        z-index: 1003;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 46px;
        padding: 10px 14px;
        color: var(--green-950);
        background: var(--green-50);
        border-color: var(--green-200);
        border-radius: 14px;
        box-shadow: 0 7px 18px rgba(3,47,28,.07);
    }
    .nav-toggle[aria-expanded="true"] { color: #fff; background: var(--green-800); border-color: var(--green-800); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        position: fixed;
        top: var(--public-nav-top, 76px);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1002;
        width: min(86vw, 350px);
        display: flex !important;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
        overflow-y: auto;
        color: var(--ink);
        background: #fff;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: -24px 0 60px rgba(2,43,25,.22);
        opacity: 0;
        visibility: hidden;
        transform: translateX(104%);
        transition: transform .24s ease, opacity .2s ease, visibility .24s;
    }
    .site-nav.open { opacity: 1; visibility: visible; transform: translateX(0); }
    .site-nav a {
        width: 100%;
        padding: 14px 15px;
        color: var(--green-950);
        background: var(--green-50);
        border: 1px solid transparent;
        border-radius: 13px;
        font-size: .95rem;
    }
    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.active { color: var(--green-950); background: var(--green-100); border-color: var(--green-200); outline: 0; }

    .nav-backdrop {
        position: fixed;
        top: var(--public-nav-top, 76px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1001;
        display: block;
        background: rgba(1,26,14,.52);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s;
        backdrop-filter: blur(2px);
    }
    body.public-nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 430px) {
    .site-nav { width: min(90vw, 340px); }
    .nav-toggle { min-width: 102px; }
}

/* ========================================================================== 
   Tagum FareGuide 2026 — Responsive UI v2026.6
   Public website + administrator dashboard, optimized for phone, tablet,
   laptop, and wide desktop screens.
   ========================================================================== */

:root {
    --container: 1240px;
    --page-gutter: clamp(16px, 3vw, 32px);
    --admin-sidebar-width: 280px;
    --focus-ring: 0 0 0 4px rgba(37, 185, 107, .22);
}

html {
    min-width: 320px;
    overflow-x: clip;
}

body {
    min-width: 320px;
    text-rendering: optimizeLegibility;
}

.container {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(37, 185, 107, .38);
    outline-offset: 2px;
}

button,
.button,
.nav-toggle,
.admin-menu-toggle {
    -webkit-tap-highlight-color: transparent;
}

/* Public desktop and laptop layout */
body:not(.admin-body) .site-header {
    isolation: isolate;
}

body:not(.admin-body) .nav-wrap {
    min-height: 80px;
}

body:not(.admin-body) .site-brand {
    min-width: 0;
}

body:not(.admin-body) .site-brand > span:last-child {
    min-width: 0;
}

body:not(.admin-body) .site-brand strong,
body:not(.admin-body) .site-brand small {
    overflow-wrap: anywhere;
}

body:not(.admin-body) .route-hero-grid,
body:not(.admin-body) .route-calculator-shell,
body:not(.admin-body) .calculator-layout,
body:not(.admin-body) .report-layout {
    min-width: 0;
}

body:not(.admin-body) .route-calculator-shell {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: clamp(22px, 2.5vw, 34px);
}

body:not(.admin-body) .route-controls-card,
body:not(.admin-body) .map-card,
body:not(.admin-body) .route-result-panel,
body:not(.admin-body) .calculator-card,
body:not(.admin-body) .content-card,
body:not(.admin-body) .info-card,
body:not(.admin-body) .fare-rate-card {
    min-width: 0;
}

body:not(.admin-body) .route-map-column {
    min-width: 0;
}

body:not(.admin-body) .route-controls-card {
    overflow: hidden;
}

body:not(.admin-body) .field input,
body:not(.admin-body) .field select,
body:not(.admin-body) .field textarea,
body:not(.admin-body) .destination-search-row input {
    min-height: 48px;
}

body:not(.admin-body) .result-route,
body:not(.admin-body) .result-reference,
body:not(.admin-body) .result-notice,
body:not(.admin-body) .tracking-footer p,
body:not(.admin-body) .route-line,
body:not(.admin-body) .rate-source {
    overflow-wrap: anywhere;
}

body:not(.admin-body) .result-breakdown div,
body:not(.admin-body) .breakdown-list div,
body:not(.admin-body) .rate-details div {
    min-width: 0;
}

body:not(.admin-body) .result-breakdown span:first-child,
body:not(.admin-body) .breakdown-list dt,
body:not(.admin-body) .rate-details dt {
    min-width: 0;
    overflow-wrap: anywhere;
}

body:not(.admin-body) .result-breakdown span:last-child,
body:not(.admin-body) .breakdown-list dd,
body:not(.admin-body) .rate-details dd {
    flex: 0 0 auto;
    text-align: right;
}

body:not(.admin-body) .tracking-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body:not(.admin-body) .site-footer {
    overflow: hidden;
}

/* Administrator desktop shell */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 185, 107, .08), transparent 34rem),
        var(--green-50);
}

.admin-layout {
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    padding: 24px 18px 20px;
    background:
        radial-gradient(circle at 15% 0%, rgba(85, 201, 138, .18), transparent 17rem),
        linear-gradient(180deg, #04351f, #022617);
    box-shadow: inset -1px 0 rgba(255, 255, 255, .06);
}

.admin-brand {
    min-width: 0;
    margin: 0 8px 27px;
}

.admin-brand > span:last-child {
    min-width: 0;
}

.admin-nav {
    gap: 7px;
}

.admin-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-nav a:hover {
    transform: translateX(2px);
}

.admin-nav a:hover,
.admin-nav a.active {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .11);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 18px 12px 2px;
}

.admin-sidebar-footer a {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.admin-main {
    min-width: 0;
    background: transparent;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: 91px;
    padding: 20px clamp(24px, 3vw, 48px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 28px rgba(4, 53, 31, .055);
    backdrop-filter: blur(18px);
}

.admin-topbar > div {
    min-width: 0;
}

.admin-topbar h1 {
    overflow-wrap: anywhere;
}

.admin-content {
    width: min(100%, 1540px);
    margin-inline: auto;
    padding: 32px clamp(24px, 3vw, 48px) 72px;
}

.stats-grid {
    gap: 20px;
}

.stat-card {
    min-width: 0;
    padding: 23px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(4, 53, 31, .075);
}

.stat-card span,
.stat-card strong {
    overflow-wrap: anywhere;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    align-items: start;
    gap: 24px;
}

.admin-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(4, 53, 31, .075);
}

.admin-card-header {
    min-height: 66px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #fff, #fbfefc);
}

.admin-card-header > * {
    min-width: 0;
}

.admin-card-header h2,
.admin-card-header a {
    overflow-wrap: anywhere;
}

.admin-card-body,
.admin-form {
    padding: 22px;
}

.admin-form .form-grid,
.admin-card-body .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
    min-height: 47px;
    background: #fff;
}

.admin-body .field textarea {
    min-height: 116px;
}

.admin-form-actions {
    padding-top: 14px;
}

.table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--green-300) var(--green-50);
    -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
    height: 9px;
}

.table-wrap::-webkit-scrollbar-track {
    background: var(--green-50);
}

.table-wrap::-webkit-scrollbar-thumb {
    background: var(--green-300);
    border: 2px solid var(--green-50);
    border-radius: 999px;
}

.data-table {
    min-width: 720px;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 13px 15px;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:hover {
    background: #fbfefc;
}

.admin-help {
    position: sticky;
    top: 118px;
}

.admin-menu-toggle {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.admin-menu-toggle::before {
    content: "☰";
    font-size: 1rem;
    line-height: 1;
}

.admin-menu-toggle[aria-expanded="true"]::before {
    content: "✕";
}

.admin-backdrop,
.admin-sidebar-close {
    display: none;
}

/* Laptop and tablet */
@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-help {
        position: static;
    }
}

@media (max-width: 1040px) {
    body:not(.admin-body) .route-calculator-shell,
    body:not(.admin-body) .calculator-layout,
    body:not(.admin-body) .report-layout {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .route-controls-card {
        position: static;
    }

    body:not(.admin-body) .route-map {
        height: clamp(440px, 58vh, 560px);
    }
}

@media (max-width: 980px) {
    body.admin-menu-open {
        overflow: hidden;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 910;
        width: min(86vw, var(--admin-sidebar-width));
        height: 100dvh;
        padding-top: max(18px, env(safe-area-inset-top));
        overflow-y: auto;
        transform: translateX(-104%);
        transition: transform .24s ease;
        box-shadow: 22px 0 65px rgba(1, 32, 18, .25);
    }

    .admin-body.admin-menu-open .admin-sidebar {
        left: 0;
        transform: translateX(0);
    }

    .admin-backdrop {
        position: fixed;
        inset: 0;
        z-index: 900;
        display: block;
        background: rgba(1, 29, 16, .54);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
        backdrop-filter: blur(2px);
    }

    .admin-body.admin-menu-open .admin-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .admin-sidebar-close {
        position: absolute;
        top: max(16px, env(safe-area-inset-top));
        right: 14px;
        z-index: 2;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        color: var(--white);
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 12px;
        font-size: 1.15rem;
    }

    .admin-brand {
        padding-right: 42px;
    }

    .admin-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .admin-topbar {
        min-height: 82px;
    }
}

/* Phone layout */
@media (max-width: 760px) {
    :root {
        --page-gutter: 12px;
    }

    body:not(.admin-body) .top-notice {
        padding: 8px 0;
        font-size: .72rem;
        line-height: 1.4;
        text-align: center;
    }

    body:not(.admin-body) .nav-wrap {
        min-height: 68px;
        gap: 10px;
    }

    body:not(.admin-body) .site-brand {
        gap: 9px;
        max-width: calc(100% - 102px);
    }

    body:not(.admin-body) .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: .95rem;
    }

    body:not(.admin-body) .site-brand strong {
        font-size: clamp(.88rem, 4vw, 1rem);
        white-space: nowrap;
    }

    body:not(.admin-body) .site-brand small {
        margin-top: 4px;
        font-size: .57rem;
        letter-spacing: .08em;
        white-space: normal;
    }

    body:not(.admin-body) .nav-toggle {
        min-width: 92px;
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 12px;
    }

    body:not(.admin-body) .site-nav {
        width: min(88vw, 360px);
        padding-inline: 15px;
    }

    body:not(.admin-body) .route-hero {
        padding: 42px 0 78px;
    }

    body:not(.admin-body) .route-hero-copy h1,
    body:not(.admin-body) .page-hero h1 {
        font-size: clamp(2.05rem, 10.8vw, 3.25rem);
        line-height: 1.04;
    }

    body:not(.admin-body) .hero-lead,
    body:not(.admin-body) .lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    body:not(.admin-body) .hero-actions,
    body:not(.admin-body) .form-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    body:not(.admin-body) .hero-actions .button,
    body:not(.admin-body) .form-actions > .button,
    body:not(.admin-body) .cta-card > .button {
        width: 100%;
    }

    body:not(.admin-body) .route-calculator-section {
        padding-bottom: 56px;
    }

    body:not(.admin-body) .route-controls-card,
    body:not(.admin-body) .calculator-card,
    body:not(.admin-body) .content-card,
    body:not(.admin-body) .printable-estimate {
        padding: 22px 15px;
        border-radius: 20px;
    }

    body:not(.admin-body) .section-heading {
        margin-bottom: 22px;
    }

    body:not(.admin-body) .section-heading h2,
    body:not(.admin-body) .map-card-header h2 {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    body:not(.admin-body) .form-grid,
    body:not(.admin-body) .fare-form,
    body:not(.admin-body) .transport-selector,
    body:not(.admin-body) .fare-card-grid,
    body:not(.admin-body) .steps-grid,
    body:not(.admin-body) .two-column-info,
    body:not(.admin-body) .footer-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .field input,
    body:not(.admin-body) .field select,
    body:not(.admin-body) .field textarea,
    body:not(.admin-body) .destination-search-row input {
        min-height: 50px;
        font-size: 16px;
    }

    body:not(.admin-body) .transport-option-card {
        min-height: 78px;
        padding: 12px;
    }

    body:not(.admin-body) .location-step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 9px;
    }

    body:not(.admin-body) .location-step-number {
        width: 30px;
        height: 30px;
        margin-top: 29px;
    }

    body:not(.admin-body) .location-button {
        min-height: 68px;
        padding: 12px;
    }

    body:not(.admin-body) .destination-search-row {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .destination-search-row .button {
        width: 100%;
        min-height: 48px;
    }

    body:not(.admin-body) .map-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 16px;
    }

    body:not(.admin-body) .map-header-actions {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    body:not(.admin-body) .map-instruction {
        padding: 10px 14px;
        line-height: 1.45;
    }

    body:not(.admin-body) .route-map {
        height: clamp(350px, 56vh, 470px);
        min-height: 350px;
    }

    body:not(.admin-body) .tracking-toolbar {
        padding: 16px 13px;
    }

    body:not(.admin-body) .tracking-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body) .tracking-metrics div {
        padding: 11px;
    }

    body:not(.admin-body) .tracking-footer {
        align-items: stretch;
        flex-direction: column;
    }

    body:not(.admin-body) .tracking-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body:not(.admin-body) .tracking-buttons .button {
        width: 100%;
    }

    body:not(.admin-body) .result-content {
        padding: 23px 17px;
    }

    body:not(.admin-body) .result-total {
        font-size: clamp(3rem, 17vw, 4.35rem);
    }

    body:not(.admin-body) .result-route {
        font-size: .92rem;
        line-height: 1.55;
    }

    body:not(.admin-body) .result-breakdown div,
    body:not(.admin-body) .breakdown-list div,
    body:not(.admin-body) .rate-details div {
        gap: 12px;
        font-size: .88rem;
    }

    body:not(.admin-body) .route-summary-grid,
    body:not(.admin-body) .hero-points {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .cta-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    body:not(.admin-body) .page-section,
    body:not(.admin-body) .trust-section,
    body:not(.admin-body) .cta-section {
        padding-block: 56px;
    }

    body:not(.admin-body) .site-footer {
        padding-top: 46px;
    }

    body:not(.admin-body) .footer-grid {
        gap: 30px;
    }

    /* Administrator phone view */
    .admin-topbar {
        min-height: 76px;
        gap: 12px;
        padding: 13px 14px;
    }

    .admin-topbar .eyebrow {
        display: none;
    }

    .admin-topbar h1 {
        font-size: clamp(1.35rem, 7vw, 1.85rem);
        line-height: 1.15;
    }

    .admin-menu-toggle {
        min-width: 84px;
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 12px;
    }

    .admin-content {
        padding: 18px 12px 54px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        margin-bottom: 18px;
    }

    .stat-card {
        padding: 16px 14px;
        border-radius: 15px;
    }

    .stat-card span {
        font-size: .7rem;
        line-height: 1.35;
    }

    .stat-card strong {
        font-size: 1.65rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-card {
        border-radius: 16px;
    }

    .admin-card-header {
        min-height: 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 15px;
    }

    .admin-card-header h2 {
        font-size: 1rem;
    }

    .admin-card-body,
    .admin-form {
        padding: 15px;
    }

    .admin-form .form-grid,
    .admin-card-body .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-body .field-full,
    .admin-body .section-label.field-full {
        grid-column: auto;
    }

    .admin-body .field input,
    .admin-body .field select,
    .admin-body .field textarea {
        min-height: 49px;
        font-size: 16px;
    }

    .admin-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .admin-form-actions .button {
        width: 100%;
    }

    .data-table {
        min-width: 680px;
    }

    .data-table th,
    .data-table td {
        padding: 11px 12px;
        font-size: .76rem;
    }

    .inline-actions {
        min-width: 145px;
    }

    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .login-shell,
    .install-shell {
        align-items: start;
        padding: 22px 12px;
    }

    .login-card,
    .install-card {
        margin-top: max(10px, env(safe-area-inset-top));
        padding: 25px 17px;
        border-radius: 20px;
    }
}

@media (max-width: 430px) {
    body:not(.admin-body) .site-brand {
        max-width: calc(100% - 88px);
    }

    body:not(.admin-body) .site-brand strong {
        font-size: .86rem;
    }

    body:not(.admin-body) .site-brand small {
        font-size: .53rem;
    }

    body:not(.admin-body) .nav-toggle {
        min-width: 82px;
        padding-inline: 10px;
    }

    body:not(.admin-body) .nav-toggle-label {
        font-size: .82rem;
    }

    body:not(.admin-body) .tracking-metrics,
    body:not(.admin-body) .tracking-buttons {
        grid-template-columns: 1fr 1fr;
    }

    body:not(.admin-body) .map-area-pill {
        display: inline-flex;
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-sidebar {
        width: min(90vw, var(--admin-sidebar-width));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 350px) {
    body:not(.admin-body) .site-brand small {
        display: none;
    }

    body:not(.admin-body) .tracking-metrics,
    body:not(.admin-body) .tracking-buttons,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1440px) {
    .admin-content {
        padding-top: 38px;
    }

    .stat-card {
        padding: 26px;
    }

    body:not(.admin-body) .route-calculator-shell {
        grid-template-columns: minmax(390px, 440px) minmax(0, 1fr);
    }
}

@media (hover: none) {
    .button:hover,
    .admin-nav a:hover,
    .location-button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ========================================================================== 
   Sticky header reliability patch — v2026.7
   Keeps the full public notice/header stack and the admin top bar visible
   across mobile, tablet, and desktop without covering page content.
   ========================================================================== */

.public-header-shell {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    isolation: isolate;
}

.public-header-shell .top-notice,
.public-header-shell .site-header {
    position: relative;
    top: auto;
    width: 100%;
}

.public-header-shell .top-notice {
    z-index: 2;
}

.public-header-shell .site-header {
    z-index: 3;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.admin-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 850;
    align-self: start;
    width: 100%;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

/* Anchor links and focused controls remain visible below sticky headers. */
body:not(.admin-body) {
    scroll-padding-top: 128px;
}

.admin-body {
    scroll-padding-top: 104px;
}

@media (max-width: 760px) {
    .public-header-shell .site-header {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body:not(.admin-body) {
        scroll-padding-top: 112px;
    }

    .admin-body {
        scroll-padding-top: 84px;
    }
}

@media print {
    .public-header-shell {
        position: static !important;
    }
}



/* ========================================================================== 
   Header and navigation reliability patch — v2026.8
   Fixes Android landscape/tablet header overflow and keeps the public header
   visible while the mobile drawer is open.
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.public-header-shell {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
}

.public-header-shell .site-header {
    position: relative;
    z-index: 2;
    background: #ffffff;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

@media (min-width: 981px) {
    body:not(.admin-body) .nav-toggle {
        display: none !important;
    }

    body:not(.admin-body) .site-nav {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        max-height: none;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    body:not(.admin-body) .nav-backdrop {
        display: none !important;
    }
}

/* Use the drawer on landscape phones, tablets, and compact laptops too. */
@media (max-width: 980px) {
    body.public-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body:not(.admin-body) .nav-wrap {
        min-height: 72px;
        gap: 12px;
    }

    body:not(.admin-body) .site-brand {
        min-width: 0;
        max-width: calc(100% - 110px);
    }

    body:not(.admin-body) .site-brand > span:last-child {
        min-width: 0;
    }

    body:not(.admin-body) .site-brand strong {
        display: block;
        overflow: hidden;
        font-size: clamp(.9rem, 2.25vw, 1.02rem);
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.admin-body) .site-brand small {
        display: block;
        overflow: hidden;
        font-size: clamp(.55rem, 1.5vw, .68rem);
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.admin-body) .nav-toggle {
        position: relative;
        z-index: 5;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        gap: 9px;
        min-width: 96px;
        min-height: 44px;
        padding: 9px 12px;
        color: var(--green-950);
        background: var(--green-50);
        border: 1px solid var(--green-200);
        border-radius: 12px;
        box-shadow: 0 7px 18px rgba(3,47,28,.07);
    }

    body:not(.admin-body) .site-nav {
        position: fixed;
        top: var(--public-nav-top, 108px);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 4;
        width: min(88vw, 370px);
        height: calc(100dvh - var(--public-nav-top, 108px));
        max-height: calc(100dvh - var(--public-nav-top, 108px));
        display: flex !important;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        color: var(--ink);
        background: #ffffff;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: -24px 0 60px rgba(2,43,25,.22);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(104%, 0, 0);
        transition: transform .24s ease, opacity .2s ease, visibility .24s;
        -webkit-overflow-scrolling: touch;
    }

    body:not(.admin-body) .site-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
    }

    body:not(.admin-body) .site-nav a {
        width: 100%;
        min-height: 54px;
        display: flex;
        align-items: center;
        padding: 14px 15px;
        color: var(--green-950);
        background: var(--green-50);
        border: 1px solid transparent;
        border-radius: 14px;
        font-size: .96rem;
        line-height: 1.35;
    }

    body:not(.admin-body) .site-nav a:hover,
    body:not(.admin-body) .site-nav a:focus-visible,
    body:not(.admin-body) .site-nav a.active {
        color: var(--green-950);
        background: var(--green-100);
        border-color: var(--green-200);
        outline: 0;
    }

    body:not(.admin-body) .nav-backdrop {
        position: fixed;
        top: var(--public-nav-top, 108px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 3;
        display: block;
        background: rgba(1,26,14,.52);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    body.public-nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 560px) {
    body:not(.admin-body) .nav-wrap {
        min-height: 68px;
    }

    body:not(.admin-body) .site-brand {
        max-width: calc(100% - 88px);
    }

    body:not(.admin-body) .nav-toggle {
        min-width: 82px;
        padding-inline: 10px;
    }

    body:not(.admin-body) .site-nav {
        width: min(90vw, 350px);
        padding: 18px 14px calc(22px + env(safe-area-inset-bottom));
    }
}

/* Keep the admin heading usable with browser text scaling and long titles. */
.admin-topbar {
    overflow: clip;
}

.admin-topbar h1 {
    max-width: 100%;
    line-height: 1.12;
}

/* ========================================================================== 
   Fixed public header + compact fare notification — v2026.9
   The previous sticky stack could be measured incorrectly by some Android
   browsers while the page was scrolled, causing the drawer to start halfway
   down the screen. The header is now fixed, the content offset is measured,
   and the fare notice is a dismissible floating panel instead of a full-width
   strip above the header.
   ========================================================================== */

:root {
    --public-header-height: 80px;
    --public-nav-top: 80px;
}

body:not(.admin-body) .top-notice {
    display: none !important;
}

body:not(.admin-body) .public-header-shell {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    width: 100%;
    height: auto;
    isolation: isolate;
}

body:not(.admin-body) .public-header-shell .site-header {
    position: relative;
    inset: auto;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, .985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(4, 53, 31, .09);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body:not(.admin-body) main {
    padding-top: var(--public-header-height, 80px);
}

body:not(.admin-body) {
    scroll-padding-top: calc(var(--public-header-height, 80px) + 18px);
}

body:not(.admin-body) .site-nav,
body:not(.admin-body) .nav-backdrop {
    top: var(--public-nav-top, var(--public-header-height, 80px));
}

body:not(.admin-body) .site-nav {
    height: calc(100dvh - var(--public-nav-top, var(--public-header-height, 80px)));
    max-height: calc(100dvh - var(--public-nav-top, var(--public-header-height, 80px)));
}

.fare-notice-toast {
    position: fixed;
    top: calc(var(--public-header-height, 80px) + 12px);
    right: max(12px, calc((100vw - var(--container)) / 2));
    z-index: 1180;
    width: min(430px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    align-items: start;
    gap: 11px;
    padding: 14px;
    color: var(--green-950);
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--green-200);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(2, 43, 25, .19);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.fare-notice-toast[hidden],
.fare-notice-toast.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
}

.fare-notice-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--green-700), var(--green-950));
    border-radius: 11px;
    font-size: .92rem;
    font-weight: 900;
    font-style: normal;
    box-shadow: 0 7px 16px rgba(4, 53, 31, .2);
}

.fare-notice-copy {
    min-width: 0;
}

.fare-notice-copy strong {
    display: block;
    margin: 1px 0 3px;
    color: var(--green-950);
    font-size: .84rem;
    line-height: 1.25;
}

.fare-notice-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.fare-notice-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--green-900);
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
}

.fare-notice-close:hover,
.fare-notice-close:focus-visible {
    color: #fff;
    background: var(--green-800);
    border-color: var(--green-800);
}

body.public-nav-open .fare-notice-toast {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
}

@media (max-width: 980px) {
    body:not(.admin-body) .public-header-shell .site-header {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body:not(.admin-body) .site-nav,
    body:not(.admin-body) .nav-backdrop {
        top: var(--public-nav-top, var(--public-header-height, 72px));
    }

    body:not(.admin-body) .site-nav {
        height: calc(100dvh - var(--public-nav-top, var(--public-header-height, 72px)));
        max-height: calc(100dvh - var(--public-nav-top, var(--public-header-height, 72px)));
    }
}

@media (max-width: 560px) {
    .fare-notice-toast {
        top: calc(var(--public-header-height, 68px) + 9px);
        right: 10px;
        width: calc(100vw - 20px);
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 9px;
        padding: 12px;
        border-radius: 15px;
    }

    .fare-notice-icon,
    .fare-notice-close {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .fare-notice-copy strong {
        font-size: .8rem;
    }

    .fare-notice-copy p {
        font-size: .7rem;
        line-height: 1.4;
    }
}

@media print {
    body:not(.admin-body) .public-header-shell {
        position: static !important;
    }

    body:not(.admin-body) main {
        padding-top: 0 !important;
    }

    .fare-notice-toast {
        display: none !important;
    }
}


/* ========================================================================== 
   Viewport-safe header, drawer, and centered fare notice — v2026.10
   Prevents transformed navigation from creating a horizontal page scroll on
   Android browsers and keeps all public content aligned to the viewport.
   ========================================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}

@supports (overflow: clip) {
    html {
        overflow-x: clip !important;
    }
}

body:not(.admin-body) {
    position: relative;
}

body:not(.admin-body) .public-header-shell {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    transform: translateZ(0);
}

body:not(.admin-body) .public-header-shell .site-header,
body:not(.admin-body) .nav-wrap,
body:not(.admin-body) main,
body:not(.admin-body) .route-hero,
body:not(.admin-body) .route-calculator-section,
body:not(.admin-body) .site-footer {
    width: 100%;
    max-width: 100%;
}

body:not(.admin-body) .container {
    max-width: calc(100vw - (var(--page-gutter) * 2));
}

body:not(.admin-body) .route-hero-grid,
body:not(.admin-body) .route-hero-copy,
body:not(.admin-body) .route-map-column,
body:not(.admin-body) .route-calculator-shell,
body:not(.admin-body) .live-rate-strip,
body:not(.admin-body) .tracking-panel-head,
body:not(.admin-body) .tracking-footer {
    min-width: 0;
    max-width: 100%;
}

body:not(.admin-body) .route-hero-copy h1,
body:not(.admin-body) .route-hero-copy p,
body:not(.admin-body) .live-rate-strip strong,
body:not(.admin-body) .live-rate-strip small {
    overflow-wrap: anywhere;
}

/* The closed drawer remains inside the viewport and is revealed with a clip
   animation. It no longer sits 104% off-screen, which caused the whole page
   to retain a horizontal scroll offset after closing on some Android phones. */
@media (max-width: 980px) {
    body.public-nav-open {
        overflow: hidden !important;
        touch-action: pan-y;
    }

    body:not(.admin-body) .site-nav {
        right: 0;
        left: auto;
        width: min(88vw, 370px);
        max-width: calc(100vw - 28px);
        margin: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none !important;
        -webkit-clip-path: inset(0 0 0 100%);
        clip-path: inset(0 0 0 100%);
        contain: layout paint;
        transition: clip-path .24s ease, opacity .18s ease, visibility .24s;
    }

    body:not(.admin-body) .site-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        -webkit-clip-path: inset(0 0 0 0);
        clip-path: inset(0 0 0 0);
    }

    body:not(.admin-body) .nav-backdrop {
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
    }
}

@media (max-width: 560px) {
    :root {
        --public-header-height: 68px;
        --public-nav-top: 68px;
    }

    body:not(.admin-body) .site-nav {
        width: min(90vw, 350px);
        max-width: calc(100vw - 18px);
    }
}

/* Centered in-page notification panel for both phone and desktop. */
.fare-notice-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1450;
    width: 100vw;
    height: 100dvh;
    background: rgba(1, 29, 16, .42);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}

.fare-notice-toast {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 1460;
    width: min(470px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: clamp(16px, 3vw, 22px);
    overflow-y: auto;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 13px;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(1, 29, 16, .34);
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.fare-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.fare-notice-close {
    width: 34px;
    height: 34px;
}

.fare-notice-copy strong {
    margin-top: 2px;
    font-size: .94rem;
}

.fare-notice-copy p {
    font-size: .82rem;
    line-height: 1.55;
}

.fare-notice-backdrop[hidden],
.fare-notice-backdrop.is-dismissed,
.fare-notice-toast[hidden],
.fare-notice-toast.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fare-notice-toast[hidden],
.fare-notice-toast.is-dismissed {
    transform: translate3d(-50%, calc(-50% - 10px), 0);
}

body.public-nav-open .fare-notice-backdrop,
body.public-nav-open .fare-notice-toast {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.public-nav-open .fare-notice-toast {
    transform: translate3d(-50%, calc(-50% - 10px), 0);
}

@media (max-width: 560px) {
    .fare-notice-toast {
        top: 50%;
        right: auto;
        left: 50%;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 16px 14px;
        grid-template-columns: 34px minmax(0, 1fr) 32px;
        gap: 10px;
        border-radius: 17px;
        transform: translate3d(-50%, -50%, 0);
    }

    .fare-notice-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .fare-notice-close {
        width: 32px;
        height: 32px;
    }

    .fare-notice-copy strong {
        font-size: .86rem;
    }

    .fare-notice-copy p {
        font-size: .76rem;
        line-height: 1.5;
    }

    .fare-notice-toast[hidden],
    .fare-notice-toast.is-dismissed,
    body.public-nav-open .fare-notice-toast {
        transform: translate3d(-50%, calc(-50% - 8px), 0);
    }
}

@media print {
    .fare-notice-backdrop,
    .fare-notice-toast {
        display: none !important;
    }
}
