/* ==========================================================================
   ParkNow — Premium Native Mobile App Experience CSS Design System
   Brand Palette:
     --brand-purple: #4B3F72;
     --brand-action: #59468F;
     --brand-emerald: #168567;
     --brand-lavender: #F0ECF8;
     --brand-bg: #FAF9FC;
     --brand-charcoal: #242536;
     --brand-amber: #E5A340;
     --brand-red: #C73E50;
   ========================================================================== */

:root {
    --brand-purple: #4B3F72;
    --brand-action: #59468F;
    --brand-emerald: #168567;
    --brand-lavender: #F0ECF8;
    --brand-bg: #FAF9FC;
    --brand-charcoal: #242536;
    --brand-muted: #6B7280;
    --brand-amber: #E5A340;
    --brand-red: #C73E50;
    --brand-border: #ECE8F4;
    --brand-white: #FFFFFF;
    
    --shadow-soft: 0 4px 16px rgba(75, 63, 114, 0.06);
    --shadow-elevated: 0 10px 28px rgba(75, 63, 114, 0.12);
    --shadow-sheet: 0 -10px 30px rgba(36, 37, 54, 0.14);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --app-header-height: 60px;
    --app-bottom-nav-height: 68px;
}

/* Base Mobile-First Resets */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Anek Bangla', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-charcoal);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom, 16px));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   1. App Header (Mobile & Desktop)
   ========================================================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--brand-border);
    height: var(--app-header-height);
    display: flex;
    align-items: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-shadow: 0 2px 10px rgba(75, 63, 114, 0.04);
}

.app-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--brand-purple);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.brand-badge-pill img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(75, 63, 114, 0.2);
}

.brand-badge-pill img.brand-custom-logo {
    width: auto;
    max-width: 145px;
    height: 34px;
    border-radius: 6px;
    box-shadow: none;
}

.location-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-lavender);
    border: 1px solid rgba(75, 63, 114, 0.12);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-purple);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-picker-chip:hover, .location-picker-chip:active {
    background: #E8E2F4;
    transform: translateY(-1px);
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--brand-border);
    background: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-charcoal);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.header-action-btn:active {
    transform: scale(0.95);
    background: var(--brand-lavender);
}

.unread-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red);
    border: 1.5px solid #ffffff;
}

/* ==========================================================================
   2. Sticky Mobile Bottom Navigation
   ========================================================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--brand-border);
    height: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow-sheet);
}

@media (min-width: 992px) {
    .app-bottom-nav {
        display: none !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #8C8A9E;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-item svg, .bottom-nav-item i {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--brand-action);
    font-weight: 700;
}

.bottom-nav-item.active svg {
    transform: translateY(-2px);
    stroke: var(--brand-action);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    width: 18px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--brand-action);
}

/* ==========================================================================
   3. Smart Location Hero & Instant Search Box
   ========================================================================== */
.hero-app-container {
    background: linear-gradient(180deg, rgba(75, 63, 114, 0.05) 0%, rgba(250, 249, 252, 0) 100%);
    padding: 16px 16px 8px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-heading-box {
    margin-bottom: 14px;
}

.hero-title-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-purple);
    line-height: 1.25;
    margin: 0 0 4px 0;
}

.hero-subtitle-sub {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin: 0;
}

/* Smart Search Input Card */
.search-input-card {
    background: var(--brand-white);
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 6px 10px 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.search-input-card:focus-within {
    border-color: var(--brand-action);
    box-shadow: 0 0 0 3px var(--brand-lavender);
}

.search-input-field {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-charcoal);
    font-family: inherit;
}

.search-input-field::placeholder {
    color: #9CA3AF;
}

/* GPS Quick Trigger Pill */
.gps-quick-btn {
    border: none;
    background: var(--brand-lavender);
    color: var(--brand-purple);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.gps-quick-btn:active {
    transform: scale(0.96);
    background: #E4DCF3;
}

/* Location Suggestion Chips */
.location-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.location-chips-scroll::-webkit-scrollbar {
    display: none;
}

.location-chip {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    color: var(--brand-charcoal);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.location-chip:hover, .location-chip.active {
    background: var(--brand-purple);
    color: var(--brand-white);
    border-color: var(--brand-purple);
}

/* ==========================================================================
   4. Native Mobility Vehicle Segmented Control Bar
   ========================================================================== */
.vehicle-selector-section {
    margin-bottom: 16px;
}

.vehicle-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.vehicle-selector-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-purple);
}

.vehicle-rate-pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-action);
    background: var(--brand-lavender);
    border: 1px solid rgba(75, 63, 114, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vehicle-segmented-bar {
    background: #FFFFFF;
    border: 1.5px solid #EAE6F4;
    border-radius: 18px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(75, 63, 114, 0.04);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.vehicle-segmented-bar::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .vehicle-segmented-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        padding: 5px;
    }
}

.vehicle-segment-item {
    flex: 0 0 auto;
    min-width: 155px;
    scroll-snap-align: start;
    min-height: 52px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--brand-charcoal);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

@media (min-width: 992px) {
    .vehicle-segment-item {
        min-width: 0;
        justify-content: flex-start;
    }
}

.vehicle-segment-item:hover:not(.active) {
    background: #FAF8FE;
    border-color: #E2DBEE;
    transform: translateY(-1px);
}

.vehicle-segment-item:active {
    transform: scale(0.97);
}

.vehicle-segment-item.active {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-action) 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(75, 63, 114, 0.28);
}

.veh-segment-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-lavender);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.vehicle-segment-item.active .veh-segment-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.veh-segment-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
    text-align: left;
}

.veh-segment-name {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.veh-segment-sub {
    font-size: 0.7rem;
    color: var(--brand-muted);
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-segment-item.active .veh-segment-sub {
    color: rgba(255, 255, 255, 0.85);
}

.veh-segment-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--brand-action);
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    margin-left: auto;
}

.vehicle-segment-item.active .veh-segment-badge {
    display: flex;
}

/* Backward compatibility fallbacks */
.vehicle-selector-track { display: flex; gap: 8px; overflow-x: auto; }
.vehicle-card-item { min-height: 50px; }

/* ==========================================================================
   5. Smart Saved Vehicle Card (Native Mobility & Wallet Design)
   ========================================================================== */
.smart-vehicle-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FE 100%);
    border: 1.5px solid #EAE5F3;
    border-top: 3.5px solid #DDD6EB;
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(75, 63, 114, 0.05), 0 1px 3px rgba(75, 63, 114, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 240px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.smart-vehicle-card:hover {
    box-shadow: 0 10px 30px rgba(75, 63, 114, 0.09), 0 2px 6px rgba(75, 63, 114, 0.04);
    border-color: #D3C9E3;
}

.smart-veh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.smart-veh-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.smart-veh-heading {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-purple);
}

.badge-default-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F0ECF8;
    color: var(--brand-purple);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid #E2DBEE;
}

.btn-change-veh {
    background: #FAF8FE;
    border: 1.5px solid #DDD6EB;
    color: var(--brand-action);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-change-veh:hover {
    background: var(--brand-lavender);
    color: var(--brand-purple);
    border-color: var(--brand-action);
    transform: translateY(-1px);
}

.smart-veh-body {
    margin-bottom: 10px;
}

.smart-veh-media-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.smart-veh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F0ECF8;
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #E2DBEE;
}

.smart-veh-details {
    min-width: 0;
    flex-grow: 1;
}

.smart-veh-model {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.smart-veh-plate-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FAF8FE;
    border: 1.5px solid #DDD6EB;
    border-radius: 8px;
    padding: 3px 10px;
    font-family: 'Inter', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    color: #242536;
    letter-spacing: 0.2px;
}

.plate-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    flex-shrink: 0;
}

.smart-veh-status-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--brand-purple);
    font-weight: 600;
    background: #FAF8FE;
    border: 1px solid #EAE5F3;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 10px;
}

.badge-ready-indicator {
    font-size: 0.68rem;
    font-weight: 700;
    color: #168567;
    background: #E8F7F0;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(22, 133, 103, 0.2);
}

.smart-veh-actions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.btn-smart-quick-book {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-action) 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    height: 46px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(75, 63, 114, 0.22);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-smart-quick-book:hover {
    background: linear-gradient(135deg, #3E3360 0%, #4B3F72 100%);
    box-shadow: 0 6px 18px rgba(75, 63, 114, 0.32);
    transform: translateY(-1px);
}

.btn-smart-quick-book:active {
    transform: scale(0.97);
}

.btn-smart-manage {
    background: #FAF8FE;
    color: var(--brand-purple) !important;
    border: 1.5px solid #DDD6EB;
    border-radius: 12px;
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-smart-manage:hover {
    background: var(--brand-lavender);
    border-color: var(--brand-action);
    transform: translateY(-1px);
}

.btn-smart-manage:active {
    transform: scale(0.97);
}

/* ==========================================================================
   6. Active Parking Status Card (Clean & Premium Native App Style)
   ========================================================================== */
.active-parking-card {
    background: linear-gradient(180deg, #FAF8FE 0%, #FFFFFF 32%);
    border: 1.5px solid #EAE5F3;
    border-top: 3.5px solid var(--brand-purple);
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(75, 63, 114, 0.05), 0 1px 3px rgba(75, 63, 114, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 240px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.active-parking-card:hover {
    box-shadow: 0 10px 30px rgba(75, 63, 114, 0.09), 0 2px 6px rgba(75, 63, 114, 0.04);
    border-color: #D3C9E3;
}

.active-parking-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.active-live-badge {
    background: #F0ECF8;
    border: 1px solid #E2DBEE;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-purple);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

.pulse-indicator.pulse-emerald {
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.pulse-indicator.pulse-white {
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.pulse-indicator.pulse-amber {
    background: #F59E0B;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

.pulse-indicator.pulse-red {
    background: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Prominent Remaining Time Pill & Adaptive Status Styles */
.active-timer-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.active-timer-badge.timer-normal {
    background: #F0ECF8;
    border: 1px solid #DDD6EB;
    color: var(--brand-purple);
}

.active-timer-badge.timer-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #B45309;
}

.active-timer-badge.timer-urgent {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.active-timer-badge.timer-overstay {
    background: #DC2626;
    border: 1px solid #B91C1C;
    color: #FFFFFF;
}

.active-parking-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    margin: 4px 0 3px 0;
    line-height: 1.3;
}

.active-parking-location-sub {
    font-size: 0.78rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.active-card-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.active-meta-chip {
    background: #FAF8FE;
    border: 1px solid #EAE5F3;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.74rem;
    color: #3E3852;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.active-meta-chip strong {
    color: #242536;
    font-weight: 700;
}

.active-meta-chip.chip-copyable {
    cursor: pointer;
    background: #F0ECF8;
    border-color: #DDD6EB;
    color: var(--brand-purple);
}

.active-meta-chip.chip-copyable:hover {
    background: #E8E2F4;
    border-color: var(--brand-action);
}

.active-parking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

@media (min-width: 576px) {
    .active-parking-actions {
        grid-template-columns: 1.15fr 1fr 1fr;
        gap: 8px;
    }
}

.active-btn-action {
    height: 46px;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.active-btn-action:active {
    transform: scale(0.97);
}

/* Primary: Digital Pass */
.active-btn-action.action-pass {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-action) 100%);
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 4px 14px rgba(75, 63, 114, 0.22);
}

@media (min-width: 576px) {
    .active-btn-action.action-pass {
        grid-column: auto;
    }
}

.active-btn-action.action-pass:hover {
    background: linear-gradient(135deg, #3E3360 0%, #4B3F72 100%);
    box-shadow: 0 6px 18px rgba(75, 63, 114, 0.32);
    transform: translateY(-1px);
}

/* Secondary: Navigation & Extend Time */
.active-btn-action.action-nav,
.active-btn-action.action-extend {
    background: #FAF8FE;
    color: var(--brand-purple) !important;
    border: 1.5px solid #DDD6EB;
    box-shadow: none;
}

.active-btn-action.action-nav:hover,
.active-btn-action.action-extend:hover {
    background: var(--brand-lavender);
    border-color: var(--brand-action);
    color: var(--brand-purple) !important;
    transform: translateY(-1px);
}

/* Backward compatibility */
.active-btn-action.secondary-ghost {
    background: #FAF8FE;
    color: var(--brand-purple) !important;
    border: 1.5px solid #DDD6EB;
    box-shadow: none;
}

/* ==========================================================================
   7. Empty & Discovery Prompt States
   ========================================================================== */
.empty-status-card {
    background: #FFFFFF;
    border: 1.5px dashed #DDD6EB;
    border-radius: 22px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 240px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.empty-status-card:hover {
    border-color: var(--brand-action);
    background: #FAF9FC;
}

.empty-status-media {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.empty-status-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-lavender);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empty-status-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    margin-bottom: 2px;
}

.empty-status-desc {
    font-size: 0.76rem;
    color: var(--brand-muted);
}

.btn-empty-cta {
    background: var(--brand-lavender);
    color: var(--brand-purple);
    border: 1px solid rgba(75, 63, 114, 0.16);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    min-height: 40px;
    flex-shrink: 0;
}

.btn-empty-cta:hover {
    background: var(--brand-action);
    color: #FFFFFF;
    border-color: var(--brand-action);
}

/* Authentic Wallet Pass Details Inside Bottom Sheet */
.pass-sheet-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 30px rgba(75, 63, 114, 0.08);
}

.pass-sheet-header {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-action) 100%);
    color: #FFFFFF;
    padding: 18px 20px;
    position: relative;
}

.pass-sheet-perforation {
    position: relative;
    height: 20px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pass-sheet-notch-left, .pass-sheet-notch-right {
    width: 20px;
    height: 20px;
    background: var(--brand-bg);
    border-radius: 50%;
    position: absolute;
    top: 0;
    z-index: 2;
}

.pass-sheet-notch-left { left: -10px; }
.pass-sheet-notch-right { right: -10px; }

.pass-sheet-dash-line {
    width: 100%;
    height: 0px;
    border-top: 2px dashed #E5E7EB;
    margin: 0 16px;
}

.pass-qr-wrapper {
    background: #FFFFFF;
    border: 1.5px solid #EAE5F3;
    border-radius: 16px;
    padding: 14px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Toast Notification */
.app-copy-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #242536;
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   6. Horizontal Section Carousels & Mobile Marketplace Cards
   ========================================================================== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 12px 0;
    padding: 0 4px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-purple);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-see-all-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-action);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.snap-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 14px 4px;
    scrollbar-width: none;
}

.snap-carousel::-webkit-scrollbar {
    display: none;
}

.parking-card-mobile {
    flex: 0 0 270px;
    scroll-snap-align: start;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.2s ease;
}

@media (max-width: 380px) {
    .parking-card-mobile {
        flex: 0 0 250px;
    }
}

.parking-card-mobile:active {
    transform: scale(0.98);
}

.parking-card-mobile:hover {
    box-shadow: var(--shadow-elevated);
    border-color: #D3CCE5;
}

/* Card Photo Header */
.card-media-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #E5E7EB;
    overflow: hidden;
}

.card-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.parking-card-mobile:hover .card-media-img {
    transform: scale(1.04);
}

.card-area-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(36, 37, 54, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2px;
}

.card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s;
    z-index: 5;
}

.card-fav-btn:active {
    transform: scale(0.9);
}

.card-body-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    margin: 0 0 2px 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-address-text {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Availability Pill */
.avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    width: fit-content;
    margin-bottom: 10px;
}

.avail-pill.available {
    background: rgba(22, 133, 103, 0.12);
    color: var(--brand-emerald);
}

.avail-pill.limited {
    background: rgba(229, 163, 64, 0.15);
    color: #B45309;
}

.avail-pill.full {
    background: rgba(199, 62, 80, 0.12);
    color: var(--brand-red);
}

.card-bottom-row {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F3F0F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price-block {
    display: flex;
    flex-direction: column;
}

.card-price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-purple);
    line-height: 1;
}

.card-price-unit {
    font-size: 0.68rem;
    color: var(--brand-muted);
}

.card-cta-btn {
    background: var(--brand-action);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(89, 70, 143, 0.25);
    transition: all 0.2s;
}

.card-cta-btn:active {
    transform: scale(0.96);
    background: var(--brand-purple);
}

/* ==========================================================================
   7. Interactive Map Screen & Floating Controls
   ========================================================================== */
.map-view-shell {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--app-header-height) - var(--app-bottom-nav-height));
    min-height: 480px;
}

#leafletMapInstance {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-search-area-btn {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--brand-white);
    color: var(--brand-purple);
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-elevated);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-search-area-btn:active {
    transform: translateX(-50%) scale(0.96);
}

.view-mode-floating-toggle {
    position: fixed;
    bottom: calc(var(--app-bottom-nav-height) + 14px);
    right: 16px;
    z-index: 20;
    background: var(--brand-purple);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(75, 63, 114, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-mode-floating-toggle:active {
    transform: scale(0.96);
}

/* Custom Leaflet Map Marker Pins */
.custom-price-pin {
    background: var(--brand-white);
    border: 2px solid var(--brand-action);
    color: var(--brand-purple);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.custom-price-pin:hover, .custom-price-pin.selected {
    transform: scale(1.1);
    background: var(--brand-purple);
    color: #ffffff;
    border-color: #ffffff;
}

.marker-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-emerald);
}

.marker-status-dot.full {
    background: var(--brand-red);
}

/* ==========================================================================
   8. Mobile Bottom Sheets (Modal Alternative)
   ========================================================================== */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(36, 37, 54, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--brand-white);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    box-shadow: var(--shadow-sheet);
    max-height: 85vh;
    overflow-y: auto;
    padding: 12px 18px 24px 18px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 600px;
    margin: 0 auto;
}

.bottom-sheet-backdrop.show .bottom-sheet-container {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 44px;
    height: 5px;
    background: #E5E7EB;
    border-radius: var(--radius-pill);
    margin: 0 auto 14px auto;
}

/* ==========================================================================
   9. Touch-Friendly Buttons & Inputs
   ========================================================================== */
.btn-mobile-primary {
    background: var(--brand-action);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    border: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(89, 70, 143, 0.3);
    cursor: pointer;
    min-height: 48px;
    transition: all 0.2s ease;
}

.btn-mobile-primary:active {
    transform: scale(0.98);
    background: var(--brand-purple);
}

.btn-mobile-secondary {
    background: var(--brand-lavender);
    color: var(--brand-purple);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(75, 63, 114, 0.14);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.2s;
}

.btn-mobile-secondary:active {
    transform: scale(0.98);
    background: #E8E0F4;
}

/* ==========================================================================
   10. Skeleton Loading Shimmers
   ========================================================================== */
.skeleton-box {
    background: #EAE6F2;
    background-image: linear-gradient(90deg, #EAE6F2 0px, #F5F2FA 50px, #EAE6F2 100px);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ==========================================================================
   11. Desktop Split Map & List View Responsive Grid
   ========================================================================== */
@media (min-width: 992px) {
    .desktop-split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 1300px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .desktop-map-sticky {
        position: sticky;
        top: calc(var(--app-header-height) + 16px);
        height: calc(100vh - var(--app-header-height) - 40px);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--brand-border);
        box-shadow: var(--shadow-soft);
    }
}

/* Shared site footer */
.app-footer {
    display: none;
    flex: none;
    background: #fff;
    border-top: 1px solid var(--brand-border);
    color: #666477;
}

.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
    width: 100%;
    max-width: var(--discovery-max-width, 1240px);
    margin-inline: auto;
    padding-inline: max(var(--discovery-gutter, 16px), env(safe-area-inset-left))
                   max(var(--discovery-gutter, 16px), env(safe-area-inset-right));
}

.app-footer-brand,
.app-footer-links {
    font-size: .78rem;
    line-height: 1.35;
}

.app-footer-brand {
    padding-block: 8px;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 14px;
}

.app-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-purple);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: .18em;
}

.app-footer-links a:is(:hover, :focus-visible) {
    text-decoration: underline;
}

.app-footer-links a:focus-visible {
    outline: 2px solid var(--brand-action);
    outline-offset: 2px;
    border-radius: 4px;
}

.booking-receipt .app-footer {
    max-width: 680px;
    margin: 12px auto 0;
}

@media screen and (min-width: 992px) and (any-hover: hover) and (any-pointer: fine) {
    .app-footer { display: block; }
}
