.booking-page {
    height: calc(100vh - 64px);
    /* Subtract header height */
    position: relative;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.booking-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 350px;
    max-height: calc(100% - 40px);
    background-color: rgba(20, 20, 20, 0.85);
    /* Dark Frosty Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}

.booking-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.input-container {
    position: relative;
    padding: 10px 0;
}

.location-input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.location-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #d4af37;
    outline: none;
}

.location-input::placeholder {
    color: #aaa;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    z-index: 2;
}

.dot-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 24px;
    top: 90px;
    z-index: 2;
    height: 40px;
}

.dot {
    width: 6px;
    height: 6px;
    background: black;
    border-radius: 50%;
}

.line {
    width: 2px;
    height: 25px;
    /* Adjust based on input size */
    background: #ccc;
    margin: 2px 0;
}

.square {
    width: 6px;
    height: 6px;
    background: black;
}

.ride-selector h3 {
    padding: 0 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #aaa;
}

.ride-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 5px;
}

.ride-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ride-option.selected {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.ride-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ride-img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

.ride-details h4 {
    margin-bottom: 4px;
    color: white;
}

.ride-details p {
    font-size: 0.85rem;
    color: #ccc;
}

.ride-price {
    font-weight: 600;
    color: #d4af37;
}

.booking-footer {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-request {
    width: 100%;
    padding: 15px;
    background-color: #d4af37;
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request:hover {
    background-color: #b5952f;
    transform: translateY(-2px);
}

/* Autocomplete Results Dark Mode */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.autocomplete-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

/* Bottom Trip Panel */
.bottom-trip-panel {
    display: none;
    /* Hidden by default */
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.bottom-trip-panel.active {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
    /* Temporarily disable to ensure visibility */
    z-index: 10000;
}

.panel-handle {
    display: none;
    /* Not needed for in-flow */
}

.panel-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.panel-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.metric-label {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.traffic-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #1a1a1a;
    background-color: #d4af37;
}

/* Mobile Responsive Override - Uber Style Bottom Sheet */
@media (max-width: 768px) {
    .booking-page {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 55px);
        /* Full height minus header */
        position: relative;
        overflow: hidden;
    }

    #map {
        /* STRICT 35% HEIGHT - More space for content */
        flex: 0 0 35%;
        height: 35%;
        width: 100%;
        position: relative;
        /* In normal flow */
        z-index: 1;
        order: 1;
        /* FORCE TOP POS */
    }

    /* The Bottom Sheet Container */
    .booking-container {
        /* STRICT 65% HEIGHT */
        flex: 0 0 65%;
        height: 65%;
        width: 100%;
        position: relative;
        /* In normal flow */

        margin: 0;
        background-color: #1a1a1a;
        z-index: 10;
        padding: 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
        order: 2;
        /* FORCE BOTTOM POS */
        box-sizing: border-box;
        /* Prevent width overflow */

        /* Flex setup for inner content */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* 1. Header (Fixed) */
    .booking-header {
        flex-shrink: 0;
        padding: 10px 20px;
        background-color: #1a1a1a;
    }

    .booking-header h2 {
        font-size: 1.2rem;
        margin: 0 0 10px 0;
    }

    .input-container {
        padding: 5px 0;
        /* Reduce padding to save space */
    }

    /* 2. Trip Info (Fixed) */
    .bottom-trip-panel {
        flex-shrink: 0;
        order: 0;
        margin: 0 20px 5px;
        position: relative;
        transform: none;
        width: auto;
        background: rgba(30, 30, 30, 0.5);
        /* Slightly lighter to distinguish */
        border: none;
    }

    .panel-content {
        justify-content: space-around;
        padding: 5px 0;
    }

    .panel-metric {
        transform: scale(0.9);
        /* shrink metrics slightly to fit */
    }

    /* 3. Ride List (Scrolls) */
    .ride-selector {
        flex-grow: 1;
        overflow-y: auto;
        padding: 0 20px 140px;
        /* EXTRA padding for footer overlap */
        background-color: #1a1a1a;
        /* Smooth scrolling */
        -webkit-overflow-scrolling: touch;
    }

    .ride-selector h3 {
        padding: 10px 0;
        margin: 0;
        font-size: 0.9rem;
        position: sticky;
        top: 0;
        background: #1a1a1a;
        z-index: 5;
    }

    /* 4. Footer Button (Fixed) */
    .booking-footer {
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 15px 20px 25px;
        background-color: #1a1a1a;
        /* Opaque to cover scrolling list */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 20;
    }

    /* Utilities */
    .weather-widget {
        top: 10px !important;
        right: 10px !important;
        transform: scale(0.8);
    }
}

/* Map Animations */
/* Map Animations */
.pulsing-icon {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Custom Leaflet Popup - Frosty Glass */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6) !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
}

.leaflet-popup-content {
    margin: 15px !important;
}

.leaflet-popup-content p {
    color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: 12px !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #aaa !important;
    font-size: 1.2rem !important;
    padding: 8px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #d4af37 !important;
}

/* --- Modals for Reservation & Flow --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.modal-content h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.4rem;
}

.btn-option {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-option.selected {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #d4af37;
}

.schedule-inputs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.modal-input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

/* Checkout Styles */
.order-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-pay {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-pay:hover {
    transform: scale(1.02);
}

.apple-pay {
    background-color: #000;
    color: white;
    border: 1px solid #333;
}

.google-pay {
    background-color: #000;
    color: white;
    border: 1px solid #333;
}

.google-pay i {
    color: white;
    /* Simulating the colored logo usually is images */
}