/* ==========================================================================
   CarRental - Complete Responsive CSS
   This file fixes horizontal scrolling and ensures all pages adapt perfectly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL OVERFLOW FIX (Locks horizontal scrolling permanently)
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

/* Fix viewport-width elements pushing past the screen bounds */
.marquee-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
}

.hero-video {
    width: 100% !important;
    height: 100vh;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   2. TABLET & SMALL DESKTOP (Max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    
    /* Navigation & Dynamic Island */
    .dynamic-island-nav {
        width: 90%;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    /* Hero Section & Booking Panel */
    .cinematic-hero {
        height: auto;
        padding-bottom: 40px;
    }
    .text-content-row {
        padding-top: 150px;
        padding-bottom: 120px;
    }
    .cinematic-booking-wrapper {
        position: relative;
        bottom: 0;
        margin-top: -60px;
        padding: 0 15px;
    }
    .glass-booking-panel {
        border-radius: 16px;
    }
    .booking-field {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
    }
    .btn-cinematic-submit {
        border-radius: 0 0 16px 16px;
        min-height: 60px;
        padding: 20px;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }

    /* Stats Section */
    .trust-stats-section {
        margin-top: 40px;
    }
    .stats-banner {
        padding: 30px 15px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px 0;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .stat-title {
        font-size: 1.25rem;
    }

    /* Featured Fleet (Editorial Stage) */
    .featured-data-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .featured-action, .btn-editorial-book {
        width: 100%;
        justify-content: center;
    }
    .featured-img-wrapper {
        height: 250px;
    }
    .fleet-queue-list {
        max-height: 400px;
    }

    /* Expanding Services Gallery */
    .service-gallery {
        flex-direction: column;
        height: 800px;
    }
    .gallery-panel {
        flex: 1;
        transition: flex 0.5s ease;
    }
    .gallery-panel:hover, .gallery-panel.active-panel {
        flex: 3; 
    }
    .panel-content {
        padding: 20px;
    }
    .panel-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.2rem;
    }
    .panel-title {
        font-size: 1.4rem;
    }
    .panel-desc {
        display: none; 
    }
    .panel-text-wrapper {
        transform: translateY(10px);
    }
    .gallery-panel:hover .panel-text-wrapper, 
    .gallery-panel.active-panel .panel-text-wrapper {
        transform: translateY(0);
    }

    /* Service Spotlights */
    .spotlight-row {
        margin-bottom: 80px;
    }
    .image-accent-border {
        display: none;
    }

    /* Elite Fleet Cards */
    .car-card-content {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.8) 70%, transparent 100%);
    }
    .car-hover-details {
        opacity: 1;
    }
    .car-bg-img {
        opacity: 0.7;
    }

    /* Reviews */
    .side-card, .center-card {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--shadow-sm);
    }
    .center-card {
        border-top: 1px solid var(--border-light);
    }

    /* Contact Form & Pages */
    .premium-form-card {
        padding: 30px;
    }
    .contact-bento-section {
        margin-top: 20px;
    }

    /* Location Bento Map */
    .location-bento-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .map-container {
        position: relative;
        height: 350px;
        order: 1;
    }
    .location-glass-panel {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        border-radius: 0 0 30px 30px;
        border: none;
        border-top: 1px solid var(--border-light);
        order: 2;
        box-shadow: none;
        padding: 40px 30px;
    }

    /* Footer */
    .footer-giant-watermark {
        font-size: 16vw;
        bottom: -2vw;
    }
}

/* --------------------------------------------------------------------------
   3. MOBILE PHONES (Max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    
    /* Typography Scaling */
    .cinematic-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    .section-title, .section-title-dark, .section-title-light, .manifesto-headline {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .cinematic-subtitle, .cta-subtitle, .spotlight-text p {
        font-size: 1rem;
    }

    /* Hero Padding */
    .text-content-row {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    /* About Page Tweaks */
    .about-hero-section {
        height: auto;
        min-height: 450px;
        padding-top: 120px;
        padding-bottom: 50px;
    }
    .stat-glass-card {
        padding: 20px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .value-card {
        padding: 30px 20px;
    }

    /* Contact Channels (Mobile) */
    .channel-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    .channel-icon {
        margin: 0 auto 15px;
    }
    .channel-card:hover {
        transform: translateY(-5px); /* Vertical instead of horizontal shift */
    }
    .static-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    .static-icon {
        margin: 0 auto;
    }

    /* Filters */
    .fleet-filter-controls {
        gap: 10px;
    }
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex-grow: 1;
    }

    /* CTA Section Buttons */
    .cta-wrapper {
        padding: 40px 20px;
    }
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Marquee Text */
    .marquee-text {
        font-size: 1.8rem;
    }
    .marquee-icon {
        margin: 0 20px;
    }

    /* Footer Realignment */
    .premium-site-footer {
        text-align: center;
    }
    .footer-mission-text {
        margin: 0 auto;
    }
    .d-flex.gap-3.mt-4 {
        justify-content: center;
    }
    .footer-heading-sleek {
        margin-top: 30px;
    }
    .footer-whatsapp-link {
        justify-content: center;
        width: 100%;
    }
    .bottom-copyright-row {
        text-align: center !important;
    }
    .bottom-copyright-row .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}

/* --------------------------------------------------------------------------
   4. SMALL MOBILE PHONES (Max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    
    .dynamic-island-nav {
        width: 95%;
        padding: 8px 15px;
    }
    
    .island-brand .logo-top {
        font-size: 1.1rem;
    }
    
    .island-btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .featured-img-wrapper {
        height: 200px;
    }
    
    .map-container {
        height: 300px;
    }

    .location-glass-panel {
        padding: 30px 20px;
    }

    .location-title {
        font-size: 1.4rem;
    }
    
    .marquee-text {
        font-size: 1.5rem;
    }

    .manifesto-headline {
        font-size: 1.8rem;
    }

    .btn-cinematic-submit, .btn-cta-primary, .btn-editorial-book {
        font-size: 0.9rem;
    }
}