/* =========================================================
   DriveSpot — main stylesheet
   Brand colors live in :root so they can be changed in one place.
   ========================================================= */
:root {
    --navy: #0b2545;
    --navy-700: #13315c;
    --green: #1fb57a;
    --green-600: #17975f;
    --green-50: #e7f7f0;
    --blue: #2f6fed;
    --blue-50: #eaf1fe;
    --orange: #ff8a3d;

    --text: #0b2545;
    --text-muted: #5b6b7f;
    --bg: #ffffff;
    --bg-alt: #f5f8fb;
    --border: #e1e8ef;

    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
    --shadow-md: 0 8px 28px rgba(11, 37, 69, .10);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1140px;
    --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
    text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; min-height: 46px;
    font: inherit; font-weight: 600; text-decoration: none;
    border: 2px solid transparent; border-radius: 999px; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 28px; min-height: 54px; font-size: 1.05rem; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31, 181, 122, .3); }
.btn-primary:hover { background: var(--green-600); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--green-50); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
    color: var(--navy); text-decoration: none;
}
.brand-light { color: #fff; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
    color: var(--text); text-decoration: none; font-weight: 500;
    padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover { background: var(--bg-alt); }
.site-nav a.is-active { background: var(--green-50); color: var(--green-600); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        padding: 8px var(--gutter) 16px;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 12px; border-radius: 10px; }
}

/* ---------- Alerts ---------- */
.alert { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.alert-success { background: var(--green-50); border-color: #bfe9d6; }
.alert-error { background: #fdecec; border-color: #f5c2c2; }
.alert-info { background: var(--blue-50); border-color: #c9dafc; }

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 400px at 85% 0%, var(--green-50), transparent 70%),
        radial-gradient(700px 400px at 0% 100%, var(--blue-50), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--green-600);
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.locate-status { min-height: 1.6em; font-size: .95rem; color: var(--text-muted); }
.locate-status.is-error { color: #c0392b; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 12px 0 0; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; }
.check {
    width: 20px; height: 20px; border-radius: 50%; background: var(--green-50); position: relative; flex: none;
}
.check::after {
    content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
    border: solid var(--green-600); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.hero-visual { filter: drop-shadow(0 24px 48px rgba(11, 37, 69, .14)); }
.map-illustration { width: 100%; height: auto; }
.map-illustration .pulse { transform-origin: 250px 210px; animation: pulse 2.2s ease-out infinite; }
.map-illustration .pin { animation: drop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.map-illustration .pin-2 { animation-delay: .15s; }
.map-illustration .pin-3 { animation-delay: .3s; }
.map-illustration .pin-4 { animation-delay: .45s; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
    .map-illustration .pulse, .map-illustration .pin { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
    .hero { padding: 36px 0 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 520px; }
}
@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.how-card {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 32px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.how-card .btn { margin-top: auto; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.tag-blue { background: var(--blue-50); color: var(--blue); }
.tag-green { background: var(--green-50); color: var(--green-600); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 28px; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before {
    content: counter(step); grid-row: span 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: #fff; font-weight: 700;
}
.steps strong { display: block; }
.steps span { color: var(--text-muted); }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } .how-card { padding: 24px; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    padding: 28px 24px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon {
    width: 48px; height: 48px; margin-bottom: 18px; padding: 12px;
    border-radius: 14px; background: var(--green-50); color: var(--green-600);
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 48px; border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, #1a5c55 100%);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-band .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0 20px;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
    font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; font-weight: 400; color: var(--green-600);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* ---------- Placeholder pages ---------- */
.placeholder { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.placeholder .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { max-width: 26em; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 6px; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 24px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* =========================================================
   Phase 2 — navigation extras, forms, account pages
   ========================================================= */
.site-nav { align-items: center; }
.btn-nav { min-height: 40px; padding: 8px 18px; margin-left: 4px; box-shadow: none; }
.site-nav a.btn-nav { color: #fff; }
.site-nav a.btn-nav:hover { background: var(--green-600); }
.nav-form { margin: 0; display: contents; }
.nav-link-btn {
    font: inherit; font-weight: 500; color: var(--text); background: none; border: 0; cursor: pointer;
    padding: 8px 14px; border-radius: 999px; text-align: left;
}
.nav-link-btn:hover { background: var(--bg-alt); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.avatar {
    width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700;
}
@media (max-width: 820px) {
    .site-nav { align-items: stretch; }
    .btn-nav { margin: 8px 0 0; }
    .nav-link-btn { padding: 14px 12px; border-radius: 10px; }
}

/* ---------- Forms ---------- */
.auth-section, .account-section { background: var(--bg-alt); padding: 48px 0 72px; min-height: 60vh; }
.form-card {
    max-width: 460px; margin: 0 auto 24px; padding: 36px 32px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.form-card-wide { max-width: none; }
.form-card h1 { font-size: 1.8rem; }
.form-card h2 { font-size: 1.35rem; }
.form-intro { color: var(--text-muted); margin-bottom: 24px; }
.form-footer { text-align: center; margin: 22px 0 0; color: var(--text-muted); }
.text-center { text-align: center; }
@media (max-width: 520px) { .form-card { padding: 26px 20px; } }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--text-muted); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: .9rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    font: inherit; color: var(--text); background-color: #fff;
    border: 1.5px solid #cdd7e1; border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.field select {
    appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b7f' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .15);
}
.field [aria-invalid="true"] { border-color: #d64545; }
.field-hint { font-size: .88rem; color: var(--text-muted); margin: 6px 0 0; }
.field-error { font-size: .9rem; color: #c0392b; margin: 6px 0 0; font-weight: 500; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row-plate { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 600px) { .field-row, .field-row-3, .field-row-plate { grid-template-columns: 1fr; } }

.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 2; }

.password-wrap { position: relative; }
.field .password-wrap input { padding-right: 72px; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font: inherit; font-size: .85rem; font-weight: 600; color: var(--blue);
    background: none; border: 0; padding: 8px 10px; cursor: pointer; border-radius: 8px;
}

.field .input-plate { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.field .choice { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px;
    padding: 10px; border: 1.5px solid #cdd7e1; border-radius: 12px; transition: border-color .15s, background-color .15s;
}
.choice input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green-600); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-danger-text { background: none; border: 0; color: #c0392b; font-weight: 600; padding: 8px 0; min-height: 0; }
.btn-danger-text:hover { text-decoration: underline; transform: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.danger-zone { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; }

/* ---------- Account ---------- */
.account-head { margin-bottom: 20px; }
.back-link { margin-bottom: 16px; }
.back-link a { text-decoration: none; font-weight: 600; }

.notice {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; margin-bottom: 16px; border-radius: var(--radius); border: 1px solid;
}
.notice p { margin: 4px 0 0; color: var(--text-muted); }
.notice form { margin: 0; }
.notice-warn { background: #fff8e6; border-color: #f3dc9c; }
.notice-info { background: var(--blue-50); border-color: #c9dafc; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.panel-muted { background: rgba(255, 255, 255, .6); box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-note { font-size: .88rem; color: var(--text-muted); margin: 14px 0 0; }
.link-btn { font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.link-btn:hover { background: var(--blue-50); }
.empty-state { color: var(--text-muted); margin: 0; }

.detail-list { margin: 0; display: grid; gap: 12px; }
.detail-list div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.detail-list dt { color: var(--text-muted); }
.detail-list dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 420px) { .detail-list div { grid-template-columns: 1fr; gap: 0; } }

.badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-amber { background: #fff1d6; color: #9a6400; }

.vehicle-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vehicle { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.vehicle-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vehicle-info span { font-size: .88rem; color: var(--text-muted); }
.plate {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 92px; padding: 4px 8px; border: 2px solid var(--navy); border-radius: 8px; background: #fff; line-height: 1.15;
}
.plate-state { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--blue); }
.plate-number { font-size: 1rem; font-weight: 800; letter-spacing: .08em; }

/* =========================================================
   Phase 3 — listings, map search, driveway pages
   ========================================================= */
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .92rem; }
.muted { color: var(--text-muted); }
.lead-center { margin-left: auto; margin-right: auto; }
.hero-actions-center { justify-content: center; }
.hero-host { padding: 64px 0; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .feature-grid-3 { grid-template-columns: 1fr; } }

.status-line { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; margin: 0; }
.status-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-open { color: var(--green-600); }
.status-later { color: #b7791f; }
.status-closed { color: var(--text-muted); }

.photo-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-50), var(--blue-50));
    color: var(--green-600); font-weight: 800; font-size: 1.6rem;
}
.photo-placeholder-lg { font-size: 4rem; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); }

/* ---------- My driveways ---------- */
.account-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.empty-panel { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; }
.empty-panel img { margin-bottom: 14px; }
.empty-panel p { color: var(--text-muted); max-width: 30em; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.listing-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.listing-card.is-paused .listing-photo img, .listing-card.is-paused .photo-placeholder { filter: grayscale(1); opacity: .6; }
.listing-photo { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-badge { position: absolute; top: 12px; left: 12px; margin: 0; }
.listing-body { padding: 18px 20px 8px; flex: 1; }
.listing-body h2 { font-size: 1.1rem; margin-bottom: 4px; }
.listing-address, .listing-hours { color: var(--text-muted); font-size: .92rem; margin: 0 0 6px; }
.listing-meta { margin: 0 0 6px; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px 14px; border-top: 1px solid var(--border); }
.listing-actions form { margin: 0; }
.listing-actions .link-btn { font: inherit; font-weight: 600; font-size: .92rem; color: var(--blue); background: none; border: 0; cursor: pointer; }
.listing-actions .link-danger { color: #c0392b; }
.listing-actions .link-danger:hover { background: #fdecec; }

/* ---------- Driveway form ---------- */
.stacked-form .form-head { margin-bottom: 16px; }
.form-step { border: 1px solid var(--border); }
.form-step legend {
    float: left; width: 100%; display: flex; align-items: center; gap: 10px;
    font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; padding: 0;
}
.form-step legend + * { clear: both; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--navy); color: #fff; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.form-actions-end { justify-content: flex-end; align-items: center; margin-bottom: 24px; }
@media (max-width: 520px) { .form-actions-end { flex-direction: column-reverse; align-items: stretch; } }

.map-picker { margin-top: 4px; }
.map-picker-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.map-picker-bar .field-hint { margin: 0; flex: 1; min-width: 200px; }
.pin-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 0; }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.field .input-prefix input { padding-left: 30px; }

.file-input { display: block; width: 100%; padding: 12px; border: 1.5px dashed #cdd7e1; border-radius: 12px; background: var(--bg-alt); font: inherit; }
.current-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.current-photo img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.field-check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400 !important; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--navy);
}
.chip:hover { border-color: var(--green); background: var(--green-50); }

.hours-table { display: grid; gap: 6px; }
.hours-row {
    display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: 12px; background: var(--bg-alt);
}
.day-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.day-toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.hours-times { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-muted); }
.hours-times input {
    min-height: 42px; padding: 6px 10px; font: inherit; color: var(--text);
    border: 1.5px solid #cdd7e1; border-radius: 10px; background: #fff;
}
.hours-off { display: none; color: var(--text-muted); font-size: .92rem; }
.hours-row.is-off { background: transparent; border: 1px dashed var(--border); }
.hours-row.is-off .hours-times { display: none; }
.hours-row.is-off .hours-off { display: block; }
@media (max-width: 520px) { .hours-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Find parking ---------- */
.page-find .site-footer { display: none; }
.find { display: flex; flex-direction: column; height: calc(100vh - 69px); height: calc(100dvh - 69px); min-height: 520px; }
.find-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 12px var(--gutter); background: #fff; border-bottom: 1px solid var(--border); z-index: 2;
}
.find-search {
    flex: 1 1 380px; display: flex; align-items: center; gap: 8px;
    padding: 4px 4px 4px 14px; border: 1.5px solid #cdd7e1; border-radius: 999px; background: #fff;
}
.find-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, .15); }
.find-search svg { color: var(--text-muted); flex: none; }
.find-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; padding: 8px 0; background: transparent; }
.find-search .btn { min-height: 42px; padding: 8px 20px; box-shadow: none; }
.find-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.radius-select { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.radius-select select {
    font: inherit; padding: 7px 10px; border: 1.5px solid #cdd7e1; border-radius: 10px; background: #fff; color: var(--text);
}
.open-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.open-toggle input { width: 18px; height: 18px; accent-color: var(--green); }

.find-layout { flex: 1; display: grid; grid-template-columns: 400px 1fr; min-height: 0; }
.find-list { order: -1; overflow-y: auto; padding: 16px; background: var(--bg-alt); border-right: 1px solid var(--border); }
.find-map-wrap { position: relative; min-height: 0; }
.find-map { position: absolute; inset: 0; z-index: 0; }
.map-float-btn { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: var(--shadow-md); min-height: 40px; padding: 8px 18px; }
.map-float-btn:hover { transform: translateX(-50%) translateY(-1px); }
.find-summary { font-weight: 600; margin: 0 0 12px; }
.find-empty { padding: 20px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }
.find-empty p { margin: 0 0 6px; color: var(--text-muted); }

@media (max-width: 900px) {
    .find { height: auto; min-height: 0; }
    .find-layout { grid-template-columns: 1fr; }
    .find-map-wrap { height: 55vh; min-height: 320px; }
    .find-list { order: 0; border-right: 0; overflow: visible; }
    .page-find .site-footer { display: block; }
}

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result-card {
    width: 100%; display: flex; gap: 12px; padding: 10px; text-align: left; cursor: pointer;
    font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.result-card:hover { border-color: #b9c6d3; box-shadow: var(--shadow-sm); }
.result-card.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 181, 122, .15); }
.result-photo { flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.result-photo img { width: 100%; height: 100%; object-fit: cover; }
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.result-title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.result-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.result-price small { font-weight: 500; color: var(--text-muted); }
.result-meta { font-size: .88rem; color: var(--text-muted); }

/* Map markers */
.price-icon { background: none; border: 0; }
.price-pin {
    position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px));
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
    font: 800 13px/1.3 var(--font); color: #fff; background: var(--green);
    border: 2px solid #fff; box-shadow: 0 3px 10px rgba(11, 37, 69, .3);
}
.price-pin::after {
    content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: inherit; border-bottom: 0;
}
.price-pin.is-open::after { border-top-color: var(--green); }
.price-pin.is-later { background: #d69e2e; }
.price-pin.is-later::after { border-top-color: #d69e2e; }
.price-pin.is-closed { background: #8a9bb0; }
.price-pin.is-closed::after { border-top-color: #8a9bb0; }
.leaflet-marker-icon:hover .price-pin, .leaflet-marker-icon:focus .price-pin { background: var(--navy); }
.leaflet-marker-icon:hover .price-pin::after, .leaflet-marker-icon:focus .price-pin::after { border-top-color: var(--navy); }

.you-icon { background: none; border: 0; }
.you-dot {
    display: block; width: 22px; height: 22px; border-radius: 50%;
    background: var(--blue); border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(47, 111, 237, .25), 0 2px 6px rgba(0, 0, 0, .3);
}

.pin-popup { display: flex; flex-direction: column; gap: 4px; font-family: var(--font); }
.pin-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.pin-popup strong { font-size: 1rem; color: var(--navy); }
.pin-popup span { color: var(--text-muted); font-size: .88rem; }
.pin-popup .btn { margin-top: 6px; color: #fff; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px; }

/* ---------- Driveway detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; background: var(--bg-alt); }
.detail-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 4px; }
.detail-address { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 8px; }
.detail-subhead { font-size: 1.15rem; margin: 28px 0 12px; }
.fact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact-list li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.fact-list strong { font-size: 1.05rem; }
.fact-list span { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 600px) { .fact-list { grid-template-columns: repeat(2, 1fr); } }
.hours-list { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.hours-list div:last-child { border-bottom: 0; }
.hours-list .is-today { background: var(--green-50); font-weight: 600; }
.hours-list dd { margin: 0; text-align: right; }
.detail-map { height: 280px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 0; margin-bottom: 6px; }
.book-card {
    position: sticky; top: 90px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md);
}
.book-price { font-size: 1.1rem; margin: 0; }
.book-price strong { font-size: 1.8rem; }
.book-sub { color: var(--text-muted); margin: 4px 0 18px; }
.book-note { font-size: .88rem; color: var(--text-muted); margin: 12px 0 0; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
