/**
 * WeBuyScrapCar.uk (Gpower) — 2026 Modern UI Design System
 * Inspired by Airbnb (clean white surfaces, floating pill search, horizontal icon strip)
 * & TaskFlow (soft indigo #5B67F1 accents, 24px squircle cards, status badges)
 */

:root {
    --bg-page: #F7F8FC;
    --bg-card: #FFFFFF;
    --bg-subtle: #F1F3F9;
    --bg-glass: rgba(255, 255, 255, 0.92);

    --primary: #5B67F1;
    --primary-hover: #4854E0;
    --primary-deep: #3B44D1;
    --primary-soft: #EEF0FF;
    --primary-glow: rgba(91, 103, 241, 0.22);

    --accent-coral: #FF385C;
    --accent-emerald: #10B981;
    --accent-emerald-soft: #ECFDF5;
    --accent-amber: #F59E0B;
    --accent-amber-soft: #FFFBEB;
    --accent-rose: #F43F5E;
    --accent-rose-soft: #FFF1F2;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #8E95A5;

    --border-light: #EAECF4;
    --border-medium: #DDE1EE;

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 26px;
    --radius-xl: 32px;
    --radius-pill: 9999px;

    --shadow-card: 0 10px 30px -6px rgba(17, 24, 39, 0.05), 0 4px 12px -2px rgba(17, 24, 39, 0.03);
    --shadow-float: 0 20px 45px -10px rgba(91, 103, 241, 0.16), 0 8px 20px -4px rgba(17, 24, 39, 0.06);
    --shadow-search: 0 6px 24px rgba(17, 24, 39, 0.08);

    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (Airbnb Clean White Header)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(91, 103, 241, 0.28);
    flex-shrink: 0;
    background: linear-gradient(135deg, #5B67F1 0%, #3B44D1 100%);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-title {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.brand-domain-pill {
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0;
}

.brand-caption {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    flex-shrink: 0;
}

.btn-header-call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-header-call:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 16px var(--primary-glow);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-header-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. AIRBNB-STYLE HORIZONTAL CATEGORY STRIP
   ========================================================================== */
.category-strip-wrap {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
}

.category-strip {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 12px 15px 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.cat-tab svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.cat-tab:hover {
    color: var(--text-primary);
}

.cat-tab:hover svg {
    transform: translateY(-2px);
}

.cat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   3. PAGE LAYOUT & VIEW CONTAINERS
   ========================================================================== */
.main-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.view-section {
    display: none;
    animation: fadeInView 0.24s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. HERO & MODERN SQUIRCLE CARDS (TaskFlow + Airbnb)
   ========================================================================== */
.modern-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 36px;
}

.soft-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 34px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.indigo-feature-card {
    background: linear-gradient(145deg, #5B67F1 0%, #3E4AE0 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.indigo-feature-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.display-title {
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.display-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 620px;
}

/* ==========================================================================
   5. TASKFLOW PILL CHIPS & MODE SWITCHER
   ========================================================================== */
.pill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-chip .chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.pill-chip:hover {
    background: #E8ECF7;
    color: var(--text-primary);
}

.pill-chip.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.pill-chip.active .chip-dot {
    background: #FFFFFF;
}

/* ==========================================================================
   6. MODERN UK REG PLATE INPUT & SOFT FORM CONTROLS
   ========================================================================== */
.modern-plate-wrap {
    display: flex;
    align-items: stretch;
    background: #FFFDF5;
    border: 2px solid #F59E0B;
    border-radius: 18px;
    overflow: hidden;
    height: 64px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modern-plate-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.modern-plate-badge {
    background: #3B44D1;
    color: #FFFFFF;
    width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.modern-plate-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    outline: none;
}

.modern-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.soft-input,
.soft-select {
    height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.soft-input:focus,
.soft-select:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.btn-primary-lg {
    height: 56px;
    border-radius: 16px;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    padding: 0 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px var(--primary-glow);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary-lg:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-soft {
    height: 46px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-medium);
    background: #FFFFFF;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline-soft:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* ==========================================================================
   7. AIRBNB FLOATING SEARCH BAR (Fuel Finder & EV Locator)
   ========================================================================== */
.airbnb-search-bar {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    padding: 8px 8px 8px 24px;
    box-shadow: var(--shadow-search);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.search-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light);
    padding-right: 16px;
    min-width: 120px;
}

.search-segment:last-of-type {
    border-right: none;
}

.seg-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.seg-input,
.seg-select {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-secondary);
    outline: none;
    padding: 0;
    width: 100%;
}

.seg-input::placeholder {
    color: var(--text-muted);
}

.airbnb-search-btn {
    height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.airbnb-search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* ==========================================================================
   8. KPI STAT CARDS & FUEL STATION LISTING CARDS
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.kpi-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kpi-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.kpi-badge.emerald { background: var(--accent-emerald-soft); color: #059669; }
.kpi-badge.indigo { background: var(--primary-soft); color: var(--primary); }
.kpi-badge.rose { background: var(--accent-rose-soft); color: #E11D48; }
.kpi-badge.amber { background: var(--accent-amber-soft); color: #B45309; }

.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
}

.kpi-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Map Container */
.map-card-container {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    margin-bottom: 28px;
}

#fuelMap,
#evMap {
    width: 100%;
    height: 430px;
    border-radius: 18px;
    z-index: 1;
}

/* Station Cards */
.station-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.station-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 22px 26px;
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    transition: all 0.2s ease;
}

.station-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

.station-card.is-cheapest {
    border-color: var(--accent-emerald);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.03), #FFFFFF 35%);
}

.st-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 125px;
}

.st-price-big {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.station-card.is-cheapest .st-price-big {
    color: #059669;
}

.st-price-unit {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.badge-cheapest {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-emerald-soft);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.badge-diff {
    margin-top: 8px;
    display: inline-flex;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.st-info-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.st-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.st-brand-pill {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--text-primary);
    color: #FFFFFF;
}

.st-brand-pill.asda { background: #68A51C; }
.st-brand-pill.tesco { background: #00539F; }
.st-brand-pill.sainsburys { background: #F06C00; }
.st-brand-pill.morrisons { background: #006633; }
.st-brand-pill.shell { background: #DD1D21; }
.st-brand-pill.bp { background: #007F00; }
.st-brand-pill.esso { background: #003399; }

.st-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 3px 9px;
    border-radius: 8px;
}

.st-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
}

.st-address {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.st-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.st-tank-save {
    color: #059669;
    font-weight: 700;
}

.st-actions-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    min-width: 118px;
}

.map-link-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* Custom Leaflet Price Marker & User Search Pin */
.map-price-pin {
    background: var(--text-primary);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    text-align: center;
}

.map-price-pin.cheapest {
    background: #059669;
    transform: scale(1.08);
}

.map-user-pin {
    background: #E11D48;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.28), 0 6px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
}

/* ==========================================================================
   9. VEHICLE REPORT & MOT TIMELINE
   ========================================================================== */
.report-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 24px;
    margin-top: 24px;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 18px;
    font-weight: 700;
}

.status-banner.pass {
    background: var(--accent-emerald-soft);
    color: #065F46;
}

.status-banner.fail {
    background: var(--accent-rose-soft);
    color: #9F1239;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 12px 4px;
    font-size: 0.9rem;
}

.spec-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quick Demo Pills */
.demo-pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.demo-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
}

.demo-pill:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

/* ==========================================================================
   10. CLEAN FOOTER
   ========================================================================== */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    padding: 48px 24px 48px;
    margin-top: 56px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px 0;
    color: var(--text-primary);
}

.footer-col p,
.footer-links {
    font-size: 0.86rem;
    color: var(--text-secondary);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-links button {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--primary);
}

/* Toast Notification */
.wb-toast {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 3000;
    background: var(--text-primary);
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    display: none;
    max-width: 380px;
}

/* ==========================================================================
   11. RESPONSIVE MOBILE & TABLET DESIGN (CLEAN, UNOBSTRUCTED, NO OVERLAPS)
   ========================================================================== */
@media (max-width: 980px) {
    .modern-hero-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .live-status-pill {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 10px 14px;
        gap: 8px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-domain-pill {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .brand-caption {
        font-size: 0.65rem;
        max-width: 175px;
    }

    /* Hide secondary header fuel button on mobile since category strip has it right below */
    .btn-header-primary {
        display: none;
    }

    .btn-header-call {
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 999px;
        background: var(--primary);
        color: #FFFFFF;
        box-shadow: 0 4px 12px var(--primary-glow);
    }

    .category-strip {
        padding: 0 12px;
        gap: 2px;
    }

    .cat-tab {
        padding: 10px 11px 8px;
        font-size: 0.72rem;
    }

    .cat-tab svg {
        width: 18px;
        height: 18px;
    }

    .main-container {
        padding: 16px 12px 48px;
    }

    .soft-card,
    .indigo-feature-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .display-title {
        font-size: 1.48rem;
        line-height: 1.22;
    }

    .display-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .pill-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .pill-chip {
        width: 100%;
        justify-content: flex-start;
        padding: 11px 16px;
    }

    .modern-plate-wrap {
        height: 58px;
    }

    .modern-plate-input {
        font-size: 1.3rem;
        padding: 0 12px;
    }

    .modern-form-grid {
        grid-template-columns: 1fr;
    }

    .airbnb-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 14px;
        align-items: stretch;
        gap: 10px;
    }

    .search-segment {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 10px;
    }

    .airbnb-search-btn {
        width: 100%;
        justify-content: center;
    }

    .station-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .st-actions-col {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }

    .map-link-btn {
        flex: 1;
        min-width: 90px;
    }

    #fuelMap,
    #evMap {
        height: 320px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hide-on-mobile-hero {
        display: none;
    }
}

/* ==========================================================================
   12. ULTRA-SIMPLE 3-STEP HOMEPAGE FUNNEL (REG + MILEAGE -> PHONE/EMAIL -> 10M COUNTDOWN)
   ========================================================================== */
.simple-funnel-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 32px -8px rgba(17, 24, 39, 0.06);
    max-width: 440px;
    width: 100%;
    margin: 24px auto;
}

.minimal-contact-input {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #00A651;
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    background: #FFFFFF;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.minimal-contact-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.16);
}

.uk-reg-box {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border: 2.5px solid #00A651;
    border-radius: 12px;
    height: 76px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0, 166, 81, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uk-reg-box:focus-within {
    border-color: #008C44;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.16);
}

.uk-reg-Side {
    background: #0052CC;
    color: #FFFFFF;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    gap: 2px;
    flex-shrink: 0;
}

.uk-reg-field {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    background: #FFFFFF;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0B0F19;
    text-transform: uppercase;
    outline: none;
    padding: 0 10px;
}

.uk-reg-field::placeholder {
    color: #CBD5E1;
    font-weight: 800;
}

.mileage-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mileage-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2.5px solid #00A651;
    border-radius: 12px;
    height: 60px;
    padding: 0 14px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
    width: 100%;
}

.mileage-box-wrap:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.16);
}

.mileage-icon {
    width: 30px;
    height: 30px;
    color: #00A651;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.mileage-field {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    outline: none;
}

.mileage-check-badge {
    position: absolute;
    top: -9px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00A651;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 166, 81, 0.35);
}

.btn-green-valuation {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    border: none;
    background: #00A651;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 166, 81, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-green-valuation:hover {
    background: #008C44;
    transform: translateY(-1px);
}

/* Step 2: Slide-down Phone & Email Box (Replaces 'Enter details manually') */
.contact-step-drawer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1.5px solid var(--border-light);
    animation: fadeInView 0.2s ease-out;
}

.detected-vehicle-pill {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    color: #065F46;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

/* Step 3: Live 10-Minute Countdown Box */
.countdown-live-box {
    margin-top: 18px;
    background: linear-gradient(145deg, #065F46 0%, #047857 100%);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(4, 120, 87, 0.24);
    animation: fadeInView 0.25s ease-out;
}

.countdown-clock-digits {
    font-family: var(--font-mono);
    font-size: 3.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 8px 22px;
    display: inline-block;
    margin: 12px 0;
    color: #A7F3D0;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .site-header,
    .header-inner,
    .category-strip-wrap,
    .category-strip,
    .main-container,
    .view-section,
    .soft-card,
    .indigo-feature-card,
    .site-footer {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .header-inner {
        padding: 10px 14px;
    }

    .category-strip {
        padding: 0 12px;
        gap: 4px;
    }

    .cat-tab {
        padding: 8px 11px;
        font-size: 0.78rem;
        flex-direction: row;
    }

    .main-container {
        padding: 12px 12px 48px;
        overflow-x: hidden;
    }

    .soft-card,
    .indigo-feature-card {
        padding: 18px 14px;
        border-radius: 18px;
        overflow-x: hidden;
    }

    .spec-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .simple-funnel-card {
        padding: 20px 16px;
        border-radius: 20px;
        margin: 8px auto;
        max-width: 100%;
        overflow: hidden;
    }

    .uk-reg-box {
        height: 64px;
        width: 100%;
    }

    .uk-reg-field {
        font-size: 1.65rem;
        padding: 0 8px;
    }

    .countdown-clock-digits {
        font-size: 2.35rem;
        padding: 6px 16px;
    }
}

