﻿/* ==========================================================================
   Styling Travels - Responsive & Mobile Layout Engine
   Breakpoints: 1920px, 1440px, 1280px, 1024px, 768px, 430px, 414px, 390px, 375px, 360px
   ========================================================================== */

/* Laptop & Large Screens (1024px - 1280px) */
@media (max-width: 1280px) {
    .container {
        padding: 0 var(--space-5);
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .footer-top-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
        gap: var(--space-6);
    }
}

/* Tablet Screens (768px - 1023px) */
@media (max-width: 1024px) {
    .main-navbar {
        height: 68px;
    }

    .nav-links {
        display: none; /* Collapsed into mobile drawer */
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-form-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .form-group.col-span-3 { grid-column: span 3; }
    .form-group.col-span-2 { grid-column: span 3; }
    .form-group.col-span-4 { grid-column: span 6; }

    .results-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        display: none; /* Controlled via mobile modal filter toggle */
    }

    .filter-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        overflow-y: auto;
        border-radius: 0;
    }

    .flight-card-main {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: center;
    }

    .flight-airline-info {
        justify-content: center;
    }

    .flight-price-action {
        border-left: none;
        border-top: 1px solid var(--neutral-200);
        padding-left: 0;
        padding-top: var(--space-4);
        text-align: center;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

/* Mobile Screens (up to 767px) - 430px, 414px, 390px, 375px, 360px */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px; /* Account for sticky mobile bottom CTA bar */
    }

    .header-top-bar {
        display: none; /* Streamline mobile header */
    }

    .hero-section {
        padding: var(--space-8) 0 var(--space-12) 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .search-widget-card {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        margin-top: -20px;
    }

    .search-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: var(--space-3);
    }

    .tab-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.9rem;
    }

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

    .form-group.col-span-3,
    .form-group.col-span-2,
    .form-group.col-span-4 {
        grid-column: span 1;
    }

    .form-control {
        height: 52px; /* Touch target enhancement */
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .phone-assistance-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    /* Mobile Bottom Sticky CTA */
    .mobile-sticky-callbar {
        display: block;
    }
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.mobile-drawer-overlay.active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 2001;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: var(--space-6);
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--neutral-700);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex-grow: 1;
}

.mobile-drawer-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-800);
    padding: var(--space-2) 0;
}
/* Mobile Help Section */
.mobile-help-section {
    display: none;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.help-profile-img {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}
.help-profile-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    object-fit: cover;
}
.help-profile-img .online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}
.help-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.help-phone-btn {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-bottom: 12px;
}
.help-trust-text {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 20px;
}
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.help-card {
    background: #fff;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #f1f5f9;
}
.help-icon {
    font-size: 1.5rem;
    background: #f0f9ff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Sticky Bottom Callbar New */
.mobile-sticky-callbar-new {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}
.sticky-profile {
    position: relative;
    width: 45px;
    height: 45px;
}
.sticky-profile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.sticky-profile .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}
.sticky-text {
    flex-grow: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}
.sticky-phone {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
}
.sticky-subtext {
    font-size: 0.7rem;
    color: #64748b;
}
.sticky-call-btn {
    width: 45px;
    height: 45px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(34,197,94,0.4);
}

@media (max-width: 768px) {
    .mobile-help-section {
        display: block;
    }
    .mobile-sticky-callbar-new {
        display: flex;
    }
    
}

