/* modern_style.css - London Luxury Edition (Black & Gold) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Palette: London Luxury */
    --gold-primary: #d4af37;
    /* Classic Metallic Gold */
    --gold-hover: #b4942b;
    --gold-light: #f3e5ab;

    --black-deep: #050505;
    /* Rich Black */
    --black-surface: #111111;
    /* Dark Charcoal for cards */
    --black-overlay: rgba(0, 0, 0, 0.7);

    --text-white: #ffffff;
    --text-gray: #b0b0b0;

    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
    --border-dark: 1px solid #222;

    --font-main: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--black-deep);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Transparent Navbar Refined --- */
.hs_navigation_header_wrapper {
    background: transparent !important;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding-top: 40px;
    border: none !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    /* Ensure no shadow creates a 'box' look */
}

/* ... (Logo and Nav styles remain similar, verifying below) ... */

/* --- PREMIUM GLASSMORPHISM BOOKING FORM --- */
.sidebar-booking-box {
    background: rgba(30, 30, 30, 0.6);
    /* Semi-transparent dark */
    backdrop-filter: blur(20px);
    /* Heavy blur for glass effect */
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Modern rounded corners */
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Deep shadow for depth */
}

.sidebar-title {
    color: white;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.form-group-premium {
    margin-bottom: 25px;
    position: relative;
}

.form-group-premium label {
    display: block;
    color: #ccc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
    margin-left: 5px;
}

/* Modern Inputs */
.form-control-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 20px;
    /* Comfortable padding */
    font-size: 1rem;
    border-radius: 12px;
    /* Smooth rounding */
    transition: all 0.3s ease;
}

/* Optimized Select Dropdown */
select.form-control-premium {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
    /* Space for arrow */
    cursor: pointer;
}

/* Fix for options in some browsers to ensure readability */
select.form-control-premium option {
    background-color: #050505;
    /* Hardcoded black deep */
    color: white;
    padding: 10px;
    font-size: 1rem;
}

.form-control-premium:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    /* Soft gold glow */
}

.form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Gradient Gold Button */
.btn-book-premium {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b4942b 100%);
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-book-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #e5c54f 0%, #c4a43b 100%);
    /* Lighter gold */
}


.nav-link-london {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link-london:hover {
    color: var(--gold-primary) !important;
}

/* Book Button refined */
.btn-book-nav {
    background: transparent !important;
    border: 1px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
    padding: 10px 25px !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.btn-book-nav:hover {
    background: var(--gold-primary) !important;
    color: black !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Responsive Navbar Fixes (Force Logic) */
@media (max-width: 768px) {
    #desktop-nav {
        display: none !important;
    }
}

@media (min-width: 769px) {
    #desktop-nav {
        display: block !important;
    }
}

/* --- London Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin-top: -50px;
    /* Slight offset up */
}

.hero-pretitle {
    font-size: 1rem;
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-highlight-gold {
    color: white;
    -webkit-text-stroke: 1px var(--gold-primary);
    /* Outline effect */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.btn-hero {
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    /* Boxy luxury */
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: black;
    border: 1px solid var(--gold-primary);
}

.btn-gold:hover {
    background-color: white;
    color: black;
    border-color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* --- Integrated Search Strip --- */
.hero-search-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box-inner-london {
    padding: 20px 0;
}

.search-col {
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.search-btn-col {
    padding-left: 15px;
}

.search-box-inner-london label {
    display: block;
    color: var(--gold-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-control-london {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    border-radius: 0;
}

.form-control-london::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control-london:focus {
    outline: none;
    border-bottom: 1px solid var(--gold-primary);
}

/* Fix Date Inputs specific styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.btn-search-london {
    width: 100%;
    background: var(--gold-primary);
    color: black;
    border: none;
    padding: 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-search-london:hover {
    background: white;
}

/* --- Feature Section (Dark) --- */
.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: 10px;
}

.feature-card {
    background: var(--black-surface);
    padding: 40px 30px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 25px;
}

.feature-card h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #888;
}

/* --- Car Listing (Premium Grid) --- */
.x_offer_car_main_wrapper {
    background-color: #0b0b0b !important;
    padding-top: 150px;
    /* Increased from 80px to prevent overlap with header */
}

.car-card {
    background: var(--black-surface);
    border: 1px solid #1a1a1a;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 0;
}

.car-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.car-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.car-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.car-card:hover .car-img-wrapper img {
    transform: scale(1.1);
    filter: brightness(1);
}

.car-details {
    padding: 25px;
    text-align: center;
}

.car-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.car-subtitle {
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.car-specs {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 15px 0;
    margin-bottom: 20px;
}

.spec-item {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
}

.spec-item i {
    color: var(--gold-primary);
    margin-right: 5px;
}

/* Price Badge Over Image */
.car-price-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold-primary);
    color: black;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 1rem;
}

.btn-book-card {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-book-card:hover {
    background: white;
    color: black;
    border-color: white;
}

/* --- Custom Nice Select Styling to match Premium Theme --- */
.nice-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 1rem !important;
    height: 52px !important;
    line-height: 50px !important;
    padding-left: 20px !important;
    float: none !important;
    /* Fix potential layout issues */
    width: 100% !important;
}

.nice-select:after {
    border-color: var(--gold-primary) !important;
    height: 10px !important;
    width: 10px !important;
    right: 20px !important;
    margin-top: -6px !important;
}

.nice-select .list {
    background-color: #111 !important;
    /* Dark surface */
    border: 1px solid var(--gold-primary) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    width: 100% !important;
}

.nice-select .option {
    color: #ccc !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    min-height: 40px;
    line-height: 40px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-color: var(--gold-primary) !important;
    color: black !important;
}

/* Fix Vertical Alignment for Nice Select Text (Flexbox) */
.nice-select .current {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    text-align: left;
    width: 100%;
    padding-right: 30px;
    /* Compensate for arrow */
}

/* --- Premium Date Picker Styling --- */
input[type="date"].form-control-premium {
    background-color: rgba(255, 255, 255, 0.05);
    /* Match dropdowns */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    height: 52px;
    padding-left: 20px;
    padding-right: 15px;
    font-size: 1rem;
    color-scheme: dark;
    /* Forces browser calendar to be dark */
}

input[type="date"].form-control-premium:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* Custom Calendar Icon Color (Webkit only) */
input[type="date"].form-control-premium::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(500%) hue-rotate(5deg) brightness(90%) contrast(90%);
    /* The filter above approximates the gold color #d4af37 from white */
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

input[type="date"].form-control-premium::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* --- Footer --- */
.x_footer_top_main_wrapper {
    border-top: 1px solid #222;
    background: black !important;
}

/* --- Car Details Page Specifics --- */
.car-hero-mini {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    min-height: 850px;
    /* Ensure it covers the form on all screens */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    /* Reduced gap: just enough for header */
    padding-top: 0;
    border-radius: 20px;
    margin-left: 15px;
    margin-right: 15px;
}

.car-hero-mini .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay for text readability */
}

.car-details-container {
    margin-top: -750px;
    /* Deep overlap as requested */
    position: relative;
    z-index: 5;
    padding-bottom: 60px;
    /* Reduced space before footer */
}

/* Sidebar styles moved to top of file (Glassmorphism) */

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        /* Smaller font for mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-buttons .btn-hero {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .hero-search-wrapper {
        position: relative;
        /* Not absolute on mobile */
        background: #000;
        padding-bottom: 20px;
    }

    .search-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }

    .search-btn-col {
        padding: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Car Details Mobile */
    .car-hero-mini {
        height: 60vh;
        min-height: auto;
        margin-top: 60px;
    }

    .car-details-container {
        margin-top: -100px;
        /* Less overlap on mobile */
    }

    .col-md-6.overlap-col {
        margin-top: 0 !important;
        /* Reset overlap for responsive stacking */
    }

    .sidebar-booking-box {
        margin-top: 30px;
        position: relative;
        top: 0;
    }

    /* Mobile Menu Flags */
    #london-mobile-menu .flag-icon {
        font-size: 1.5rem;
    }
}