/* ============================================================
   JM Car Rental — design system
   Brand colors come from CSS variables injected by the layout
   (config/brand.php). Never hard-code brand colors here.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--brand-background);
    color: var(--brand-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }

img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: .6rem; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s ease;
    text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); color: #fff; }
.btn-outline { border-color: var(--brand-primary); color: var(--brand-primary); background: transparent; }
.btn-outline:hover { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: #cbd5e1; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; border-radius: .45rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
    background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--brand-text); }
.brand-badge {
    width: 2.4rem; height: 2.4rem; border-radius: .6rem; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff; font-weight: 800; font-size: .95rem;
}
.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a { color: var(--brand-text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--brand-primary); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--brand-text); }

@media (max-width: 860px) {
    .main-nav {
        display: none; position: absolute; top: 4.25rem; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 1rem 1.25rem; gap: .9rem; border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 20px rgba(15,23,42,.08);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--brand-primary-dark), var(--brand-primary) 55%, var(--brand-accent));
    color: #fff; padding: 4.5rem 0 5rem;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 38rem; }
.quote-card {
    background: #fff; color: var(--brand-text); border-radius: 1rem; padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .25); margin-top: 2rem;
}
.quote-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: #fff; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.section-sub { color: #64748b; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: .85rem;
    padding: 1.4rem; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card .muted { color: #64748b; font-size: .92rem; }
.card-icon {
    width: 2.75rem; height: 2.75rem; border-radius: .7rem; display: grid; place-items: center;
    background: var(--brand-primary-light); color: var(--brand-primary); font-size: 1.3rem; margin-bottom: .8rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-control, .form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .65rem .85rem; border: 1px solid #cbd5e1; border-radius: .55rem;
    font-size: .95rem; font-family: inherit; background: #fff; color: var(--brand-text);
}
.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--brand-primary-light); border-color: var(--brand-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #dc2626; font-size: .82rem; margin-top: .3rem; }
.help-text { color: #64748b; font-size: .82rem; margin-top: .3rem; }

/* ---------- Booking wizard ---------- */
.steps { display: flex; gap: .25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step-pill {
    flex: 1; min-width: 90px; text-align: center; padding: .55rem .5rem; font-size: .8rem; font-weight: 600;
    border-radius: .5rem; background: #e2e8f0; color: #64748b;
}
.step-pill.active { background: var(--brand-primary); color: #fff; }
.step-pill.done { background: var(--brand-primary-light); color: var(--brand-primary-dark); }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.map-box { height: 300px; border-radius: .75rem; border: 1px solid #e2e8f0; background: #e2e8f0; margin-top: 1rem; overflow: hidden; }

.fare-summary { background: var(--brand-primary-light); border-radius: .75rem; padding: 1.25rem; }
.fare-line { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .95rem; }
.fare-total { display: flex; justify-content: space-between; padding-top: .6rem; margin-top: .4rem;
    border-top: 2px solid var(--brand-primary); font-weight: 800; font-size: 1.15rem; }
.fare-disclaimer { color: #64748b; font-size: .8rem; margin-top: .5rem; }

.vehicle-option {
    display: block; border: 2px solid #e2e8f0; border-radius: .75rem; padding: 1rem;
    cursor: pointer; margin-bottom: .75rem; transition: border-color .15s ease;
}
.vehicle-option:hover { border-color: var(--brand-primary-light); }
.vehicle-option.selected { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.vehicle-option .veh-head { display: flex; justify-content: space-between; font-weight: 700; }
.vehicle-option .veh-meta { color: #64748b; font-size: .85rem; margin-top: .25rem; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.75rem; gap: 1rem; }

.autocomplete-wrap { position: relative; }
.autocomplete-list {
    position: absolute; z-index: 60; top: 100%; left: 0; right: 0; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 0 0 .55rem .55rem; max-height: 240px; overflow: auto;
    box-shadow: 0 10px 25px rgba(15,23,42,.12); display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item { padding: .6rem .85rem; cursor: pointer; font-size: .9rem; }
.autocomplete-item:hover { background: var(--brand-primary-light); }

/* ---------- Alerts / badges ---------- */
.alert { padding: .9rem 1.1rem; border-radius: .6rem; margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; margin-bottom: .8rem; font-size: .95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .45rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.25rem; font-size: .82rem; color: #94a3b8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: #0f172a; color: #cbd5e1; flex-shrink: 0;
    position: fixed; inset: 0 auto 0 0; overflow-y: auto; padding: 1.25rem 0;
}
.admin-sidebar .brand { padding: 0 1.25rem 1.25rem; color: #fff; }
.admin-nav ul { list-style: none; }
.admin-nav .nav-section { padding: 1rem 1.25rem .35rem; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .08em; color: #64748b; font-weight: 700; }
.admin-nav a { display: block; padding: .55rem 1.25rem; color: #cbd5e1; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(37,99,235,.25); color: #fff; }
.admin-main { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    background: #fff; border-bottom: 1px solid #e2e8f0; height: 3.75rem; display: flex;
    align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 40;
}
.admin-content { padding: 1.75rem 1.5rem; flex: 1; }
.admin-sidebar-toggle { display: none; }
@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; z-index: 60; }
    .admin-sidebar.open { transform: none; }
    .admin-main { margin-left: 0; }
    .admin-sidebar-toggle { display: inline-flex; }
}

.page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.25rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem; }
.page-head .page-title { margin-bottom: 0; }

/* ---------- Admin components ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1.1rem 1.25rem; }
.stat-card .stat-label { font-size: .8rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; margin-top: .2rem; }
.stat-card .stat-value.text-primary { color: var(--brand-primary); }

.table-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; overflow: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.data-table th { text-align: left; padding: .75rem 1rem; background: #f8fafc; font-weight: 700;
    color: #475569; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #f8fafc; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: flex-end; }
.filters .form-group { margin-bottom: 0; min-width: 140px; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-list { list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid #f1f5f9; font-size: .92rem; }
.detail-list li span:first-child { color: #64748b; }

.pagination { display: flex; gap: .35rem; margin-top: 1.25rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .4rem .8rem; border-radius: .45rem; border: 1px solid #e2e8f0; background: #fff; font-size: .85rem; color: var(--brand-text); }
.pagination .active span, .pagination span[aria-current] { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-primary-dark), var(--brand-accent)); padding: 1rem; }
.login-card { background: #fff; border-radius: 1rem; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 25px 60px rgba(15,23,42,.35); }
.login-card h1 { font-size: 1.3rem; margin-bottom: 1.25rem; }

.checkbox-row { display: flex; align-items: center; gap: .5rem; }
.checkbox-row input { width: auto; }

.breadcrumb { font-size: .82rem; color: #64748b; margin-bottom: .75rem; }
.breadcrumb a { color: var(--brand-primary); }

.confirm-banner { background: #fff; border: 1px solid #e2e8f0; border-left: 5px solid var(--brand-primary); border-radius: .75rem; padding: 2rem; }
.confirm-ref { font-size: 1.5rem; font-weight: 800; color: var(--brand-primary); letter-spacing: .04em; }

.text-muted { color: #64748b; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; }
.flex { display: flex; } .gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; } .items-center { align-items: center; }

/* ---------- Homepage fare calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 920px) { .calc-grid { grid-template-columns: 1fr; } }

.trip-toggle { display: flex; gap: .5rem; }
.trip-option {
    flex: 1; text-align: center; padding: .55rem; border: 2px solid #e2e8f0;
    border-radius: .55rem; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .15s ease;
}
.trip-option input { position: absolute; opacity: 0; }
.trip-option:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-primary-light); color: var(--brand-primary-dark); }

.extras-block { border: 1px solid #e2e8f0; border-radius: .6rem; padding: .75rem 1rem; margin-bottom: 1.1rem; }
.extras-block summary { cursor: pointer; font-weight: 600; color: var(--brand-primary-dark); font-size: .92rem; }

.spinner {
    width: 42px; height: 42px; margin: 0 auto; border-radius: 50%;
    border: 4px solid var(--brand-primary-light); border-top-color: var(--brand-primary);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fare-summary .fare-total { font-size: 1.4rem; }
.fare-summary .fare-total span:last-child { color: var(--brand-primary); }

/* ---------- Reservation card (light BEC-style widget) ---------- */
.res-card {
    background: #fff; border-radius: .9rem; overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,23,42,.12); border: 1px solid #e2e8f0;
}
.res-head {
    background: var(--brand-primary, #2563EB); color: #fff;
    text-align: center; padding: .8rem 1rem;
}
.res-title { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.res-sub { font-size: .75rem; font-weight: 600; opacity: .85; }

.res-body { padding: 1rem 1.1rem 1.25rem; }
.res-row { display: grid; gap: .6rem; }
.res-row-2 { grid-template-columns: 1fr 1fr; }
.res-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 480px) { .res-row-2, .res-row-3 { grid-template-columns: 1fr; } }

.res-field { margin-bottom: .7rem; }
.res-field label {
    display: block; font-size: .78rem; font-weight: 600; color: #475569; margin-bottom: .3rem;
}
.res-field input, .res-field select {
    width: 100%; background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a;
    border-radius: .45rem; padding: .6rem .7rem; font-size: .88rem; font-family: inherit;
}
.res-field input:focus, .res-field select:focus {
    outline: none; border-color: var(--brand-primary, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.res-field input::placeholder { color: #94a3b8; }
.res-ic { margin-right: .2rem; }

.res-pills { display: flex; gap: .45rem; margin-bottom: .8rem; }
.res-pill {
    flex: 1; padding: .55rem .3rem; border-radius: .45rem; border: 1px solid #cbd5e1;
    background: #f8fafc; color: #475569; font-weight: 700; font-size: .78rem; cursor: pointer;
    transition: all .15s ease; font-family: inherit;
}
.res-pill.active { background: var(--brand-primary, #2563EB); color: #fff; border-color: var(--brand-primary, #2563EB); }

.res-extras {
    border: 1px solid #e2e8f0; border-radius: .5rem; margin-bottom: .8rem; background: #f8fafc;
}
.res-extras summary {
    padding: .6rem .8rem; cursor: pointer; font-weight: 700; font-size: .85rem;
    color: var(--brand-primary, #2563EB); list-style: none;
}
.res-extra-list { padding: 0 .8rem .6rem; }
.res-extra {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 0; border-bottom: 1px solid #e2e8f0; font-size: .85rem; color: #334155;
}
.res-extra:last-child { border-bottom: none; }
.res-extra-ctl { display: flex; align-items: center; gap: .6rem; }
.res-qty {
    width: 64px; background: #fff; border: 1px solid #cbd5e1; color: #0f172a;
    border-radius: .4rem; padding: .35rem .4rem; font-size: .85rem; font-family: inherit;
}
.res-price {
    min-width: 34px; text-align: center; font-weight: 800; font-size: .8rem;
    color: var(--brand-primary, #2563EB);
}

.res-trip-type { display: flex; gap: .5rem; margin-bottom: .8rem; }
.res-trip-type .trip-option {
    border-color: #cbd5e1; background: #f8fafc; color: #475569; font-size: .85rem;
}
.res-trip-type .trip-option:has(input:checked) {
    border-color: var(--brand-primary, #2563EB); background: var(--brand-primary-light, #DCFCE7); color: var(--brand-primary-dark, #15803D);
}

.res-btn {
    display: block; width: 100%; padding: .9rem; border: none; border-radius: .5rem;
    background: var(--brand-primary, #2563EB); color: #fff; font-weight: 800;
    font-size: 1rem; letter-spacing: .03em; cursor: pointer; font-family: inherit;
    transition: filter .15s ease;
}
.res-btn:hover { filter: brightness(1.07); }
.res-btn:disabled { opacity: .6; cursor: wait; }
.res-note { text-align: center; font-size: .72rem; color: #94a3b8; margin-top: .6rem; margin-bottom: 0; }
.res-hr { border: none; border-top: 1px solid #e2e8f0; margin: .6rem 0; }
.res-h4 { margin: .4rem 0 .2rem; color: #0f172a; font-size: .9rem; }

.res-result { background: #fff; border-radius: .9rem; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.res-result .fare-line { color: #475569; }
.res-result .fare-line strong { color: #0f172a; }
.res-total {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 2px solid var(--brand-primary, #2563EB); margin-top: .5rem; padding-top: .6rem;
    font-weight: 800; font-size: 1.35rem; color: var(--brand-primary, #2563EB);
}

.res-card .form-error { color: #dc2626; }

/* Right-column placeholder visual */
.calc-hero { width: 100%; border-radius: .9rem; border: 1px solid #e2e8f0; display: block; }

/* ---------- Homepage marketing sections ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.trust-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .7rem;
    padding: .6rem 1rem; font-weight: 700; font-size: .85rem; color: #0f172a;
    text-decoration: none; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.trust-badge:hover { border-color: var(--brand-primary, #2563EB); }
.trust-ic {
    width: 24px; height: 24px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
    color: #fff; background: var(--brand-primary, #2563EB);
}
.trust-star { color: #F59E0B; font-size: .8rem; letter-spacing: -.05em; }

.cta-band {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
    background: var(--brand-primary-light, #DCFCE7); border: 1px solid #BBF7D0;
    border-radius: 1rem; padding: 2rem;
}
.cta-band h2 { font-size: 1.6rem; color: var(--brand-text, #0F172A); }
.cta-band-img { width: 100%; border-radius: .8rem; display: block; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band-img { order: -1; } }

.city-pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.city-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.1rem; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 2rem; font-size: .88rem; font-weight: 600; color: #334155;
    text-decoration: none; box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.city-pill:hover { border-color: var(--brand-primary, #2563EB); color: var(--brand-primary, #2563EB); }
.city-pin { font-size: .8rem; }

.svc-card { text-align: center; padding-top: 0; overflow: hidden; }
.svc-thumb {
    height: 110px; margin: -1.4rem -1.4rem 1rem; display: flex; align-items: center;
    justify-content: center; font-size: 2.6rem;
}
.svc-thumb span { filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.svc-thumb-1 { background: linear-gradient(135deg,#BBF7D0,#DCFCE7); }
.svc-thumb-2 { background: linear-gradient(135deg,#86EFAC,#BBF7D0); }
.svc-thumb-3 { background: linear-gradient(135deg,#DCFCE7,#F0FDF4); }
.svc-thumb-4 { background: linear-gradient(135deg,#BBF7D0,#86EFAC); }

.feat-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-img { width: 100%; border-radius: 1rem; border: 1px solid #e2e8f0; }
.feat-list { display: grid; gap: 1.2rem; }
.feat-item { display: flex; gap: 1rem; align-items: flex-start; }
.feat-ic {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: .7rem; font-size: 1.3rem;
    background: var(--brand-primary-light, #DCFCE7); color: var(--brand-primary, #2563EB);
    display: flex; align-items: center; justify-content: center;
}
.feat-item h3 { margin: 0 0 .15rem; font-size: 1.02rem; }
.feat-item p { margin: 0; font-size: .9rem; }

.blog-card { padding-top: 0; overflow: hidden; }
.blog-thumb { height: 140px; margin: -1.4rem -1.4rem 1rem; }
.blog-thumb-1 { background: linear-gradient(135deg,#15803D,#22C55E); }
.blog-thumb-2 { background: linear-gradient(135deg,#4ADE80,#86EFAC); }
.blog-thumb-3 { background: linear-gradient(135deg,#14532D,#166534); }
.blog-meta { font-size: .75rem; color: #94a3b8; margin: 0 0 .25rem; }
.blog-card h3 { font-size: 1rem; margin: 0 0 .4rem; }

/* Right-column hero copy above the placeholder image */
.calc-hero-copy { margin-bottom: 1.2rem; }
.calc-hero-copy h1 { font-size: 2.3rem; line-height: 1.15; margin: .2rem 0 .6rem; color: var(--brand-text, #0F172A); }
.calc-hero-copy p { font-size: 1.05rem; color: #475569; margin: 0; }
@media (max-width: 920px) { .calc-hero-copy h1 { font-size: 1.9rem; } }

/* Page hero heading above the calculator */
.page-hero { text-align: center; margin-bottom: 2rem; }
.page-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1;
    color: var(--brand-primary, #2563EB); margin: 0 0 .6rem; letter-spacing: -.02em;
}
.page-hero-motto {
    font-size: clamp(.95rem, 2vw, 1.1rem); color: #475569; margin: 0 auto;
    max-width: 46rem; line-height: 1.6;
}

/* Fleet vehicle images */
.fleet-card { padding-top: 0; overflow: hidden; text-align: center; }
.fleet-img {
    width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem 1rem; display: block;
    border-bottom: 1px solid #e2e8f0;
}

/* Result column ordering: map beside form on desktop; fare then map on mobile */
#calc-result-col { display: flex; flex-direction: column; gap: 1rem; }
#calc-map { order: 1; }
#calc-loading { order: 2; }
#calc-result { order: 3; }
@media (max-width: 920px) {
    #calc-result { order: 1; }
    #calc-loading { order: 2; }
    #calc-map { order: 3; }
}

/* Route preview info line above the map */
.calc-route-info {
    display: flex; gap: 1.25rem; align-items: center;
    background: var(--brand-primary-light, #DCFCE7); border: 1px solid #BBF7D0;
    color: var(--brand-primary-dark, #15803D); font-weight: 700; font-size: .9rem;
    padding: .55rem .9rem; border-radius: .55rem;
}
