/* ==========================================================================
   AMB TRAVELS BHATKAL - RESPONSIVE STYLESHEET
   Ensures seamless usability from 320px mobile screens to 1920px+ 4K monitors.
   Zero horizontal overflow guaranteed.
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .hero-layout,
    .feature-grid,
    .feature-grid.reverse-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-visual-card {
        order: -1;
    }

    .hero-image-wrapper {
        height: 320px;
    }

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

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

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

    .custom-form .form-group:last-child {
        grid-column: span 2;
    }

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

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

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

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --space-4xl: 48px;
        --space-3xl: 36px;
    }

    .nav-links,
    .header-cta {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .announcement-strip .ticker-inner {
        height: var(--ticker-height-mobile);
    }

    .ticker-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
        margin-right: 8px;
    }

    .ticker-item {
        font-size: 0.8rem;
    }

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

    .quick-enquiry-grid {
        grid-template-columns: 1fr;
    }

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

    .custom-form .form-group:last-child {
        grid-column: span 1;
    }

    .form-action {
        justify-content: stretch;
    }

    .form-action .btn {
        width: 100%;
    }

    .packages-grid,
    .why-grid,
    .process-grid,
    .map-hubs-grid {
        grid-template-columns: 1fr;
    }

    /* Convert Fares Table to Cards on Mobile */
    .fares-table-wrapper {
        display: none;
    }

    .fares-mobile-list {
        display: flex;
    }

    .fares-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fare-filter-tabs {
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: nowrap;
    }

    .fare-filter-btn {
        white-space: nowrap;
    }

    .fares-search-box {
        width: 100%;
    }

    .pamphlet-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .map-visual-container {
        padding: var(--space-md);
    }

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

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

    .floating-actions-wrap {
        bottom: 16px;
        right: 16px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Admin Mobile Sidebar & Layout */
    .admin-mobile-bar {
        display: flex;
    }

    .admin-layout {
        flex-direction: column;
        position: relative;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 999;
        transform: translateX(-100%);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-content {
        padding: var(--space-lg);
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-quick-links {
        grid-template-columns: 1fr;
    }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand-logo-circle {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-sub {
        font-size: 0.65rem;
    }

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

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

    .pamphlet-card {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .admin-content {
        padding: var(--space-md);
    }
}
