/* ==========================================================
   FlyAsia Travel - Responsive Breakpoints & Mobile Drawer
   ========================================================== */

/* Mobile Drawer Menu */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    height: 100%;
    background: #ffffff;
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-drawer-overlay.active .mobile-drawer {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 20px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.mobile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary);
}

.mobile-nav-list li a:hover {
    color: var(--secondary);
}

.mobile-submenu {
    padding-left: 14px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li {
    border-bottom: none;
}

.mobile-submenu li a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 6px;
}

.mobile-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.mobile-drawer-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-drawer-auth a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.mobile-login-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary);
}

.mobile-signup-btn {
    background: var(--secondary);
    color: #ffffff;
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .visa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape & Small Desktop */
@media (max-width: 992px) {
    .main-nav, .topbar-right, .topbar-left .topbar-socials, .topbar-divider {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dest-card.large {
        grid-column: span 12;
    }

    .dest-card.small {
        grid-column: span 6;
    }

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

    .airport-services-grid, .events-grid, .news-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .search-form-row, .search-form-row.cols-4, .search-form-row.cols-5 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* Mobile Devices */
@media (max-width: 640px) {
    .hero-section {
        padding: 40px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .search-widget-container {
        border-radius: 14px;
    }

    .search-tab-pane {
        padding: 16px;
    }

    .dest-card.small {
        grid-column: span 12;
    }

    .cards-grid, .airport-services-grid, .events-grid, .news-grid, .reviews-grid, .visa-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .promo-banner {
        padding: 30px 20px;
    }

    .promo-banner-title {
        font-size: 22px;
    }

    .floating-widgets {
        bottom: 16px;
        right: 16px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
