/* ============================================================
   SEARCH TABS (booking-tabs) — MOBILE RESPONSIVE
   Shared component: Hotels, Event, Explore, Packages tabs
   Loaded globally via layouts/app.blade.php
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .booking-tabs {
        gap: 14px !important;
    }
    .booking-tabs .tab {
        min-width: 100px !important;
        height: 65px !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
    }
    .booking-tabs .tab svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Small tablet */
@media (max-width: 768px) {
    .booking-tabs {
        gap: 10px !important;
        top: -32px !important;
    }
    .booking-tabs .tab {
        min-width: 78px !important;
        height: 62px !important;
        padding: 8px 8px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }
    .booking-tabs .tab svg {
        width: 24px !important;
        height: 24px !important;
    }
    .booking-tabs .tab .tab-text {
        font-size: 11px !important;
        font-weight: 600 !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .booking-tabs {
        gap: 8px !important;
        top: -28px !important;
    }
    .booking-tabs .tab {
        min-width: 72px !important;
        height: 58px !important;
        padding: 7px 6px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
        gap: 3px !important;
    }
    .booking-tabs .tab svg {
        width: 22px !important;
        height: 22px !important;
    }
    .booking-tabs .tab .tab-text {
        font-size: 10.5px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .booking-tabs {
        gap: 6px !important;
        top: -26px !important;
        flex-wrap: nowrap !important;
    }
    .booking-tabs .tab {
        min-width: 68px !important;
        height: 56px !important;
        padding: 6px 5px !important;
        font-size: 10.5px !important;
        border-radius: 9px !important;
        gap: 3px !important;
    }
    .booking-tabs .tab svg {
        width: 20px !important;
        height: 20px !important;
    }
    .booking-tabs .tab .tab-text {
        font-size: 10px !important;
        font-weight: 600 !important;
    }
}

/* Extra small mobile */
@media (max-width: 375px) {
    .booking-tabs {
        gap: 5px !important;
        top: -24px !important;
    }
    .booking-tabs .tab {
        min-width: 62px !important;
        height: 52px !important;
        padding: 5px 4px !important;
        border-radius: 8px !important;
        gap: 2px !important;
    }
    .booking-tabs .tab svg {
        width: 18px !important;
        height: 18px !important;
    }
    .booking-tabs .tab .tab-text {
        font-size: 9.5px !important;
    }
}


/* ============================================================
   TRIP BUTTONS (All / Luxury / Deluxe etc.) — SCROLLABLE PILLS
   ============================================================ */
@media (max-width: 768px) {
    .search-box, section.hero-section .search-box {
        padding-top: 80px !important;
        padding-bottom: 24px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .trip-buttons {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 22px !important;
        gap: 8px !important;
        padding-bottom: 4px;
        margin-left: -4px !important;
        margin-right: -4px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .trip-buttons::-webkit-scrollbar {
        display: none;
    }
    .trip-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 7px 16px !important;
        font-size: 12.5px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 480px) {
    .trip-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
}


/* ============================================================
   SEARCH FORM GRID — 2-column compact layout on mobile
   ============================================================ */
@media (max-width: 992px) {
    section.hero-section .search-box .form-field {
        min-height: 78px !important;
        padding: 10px 12px !important;
    }
}

@media (max-width: 768px) {
    .hero-section .search-form,
    section.hero-section .search-form {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    /* Location field spans full width */
    .hero-section .search-form > .form-field:first-of-type {
        grid-column: 1 / -1 !important;
    }
    /* Search button spans full width */
    .hero-section .search-form > .search-btn-square,
    section.hero-section .search-form > .search-btn-square {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: 52px !important;
        min-width: 0 !important;
        border-radius: 12px !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    section.hero-section .search-form > .search-btn-square i {
        font-size: 18px !important;
    }
    section.hero-section .search-form > .search-btn-square .search-text {
        font-size: 15px !important;
        font-weight: 600 !important;
    }
    section.hero-section .search-box .form-field {
        min-height: 70px !important;
        padding: 10px 12px !important;
    }
    section.hero-section .search-box .field-top-row {
        gap: 4px !important;
    }
    section.hero-section .search-box .field-location-img {
        width: 14px !important;
        height: 14px !important;
    }
    .field-main {
        font-size: 13px !important;
    }
    .field-sub {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    section.hero-section .search-box .form-field {
        min-height: 64px !important;
        padding: 8px 10px !important;
    }
    .field-main {
        font-size: 12px !important;
    }
    .field-sub {
        font-size: 10px !important;
    }
    section.hero-section .search-box .field-arrow {
        font-size: 10px !important;
    }
}


/* ============================================================
   POPOVERS (Location dropdown, Persons counter) — Mobile sized
   ============================================================ */
@media (max-width: 768px) {
    .custom-popover {
        width: calc(100vw - 40px) !important;
        max-width: 320px;
        max-height: 45vh !important;
    }
    .custom-popover[id*="Persons"],
    .custom-popover[id*="persons"] {
        width: calc(100vw - 40px) !important;
        max-width: 280px;
        padding: 16px !important;
    }
    .popover-list li {
        padding: 10px 14px !important;
    }
    .popover-list li .pop-title {
        font-size: 14px !important;
    }
    .popover-list li .pop-sub {
        font-size: 11px !important;
    }
    .counter-row {
        margin-bottom: 12px !important;
    }
    .counter-btns button {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .custom-popover {
        max-width: 280px;
        max-height: 40vh !important;
    }
    .popover-list li {
        padding: 8px 12px !important;
    }
    .popover-list li .pop-title {
        font-size: 13px !important;
    }
    .popover-list li .pop-sub {
        font-size: 10px !important;
    }
}
