
/* ========== BỘ LỌC DESKTOP ========== */
.hotel-filter {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
}
.filter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}
.filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f1f1;
}
.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-group h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
}
.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff7a00;
    flex-shrink: 0;
}
.clear-filter {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.clear-filter:hover {
    color: #ff7a00;
}
input[type="checkbox"] + label:before,
input[type="checkbox"] + span:before {
    content: none !important;
}

/* ========== LOADING ========== */
.loading-overlay {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
.loading-overlay.active {
    display: block;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff7a00;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}
#product-list-wrapper {
    display: none;
}
#product-list-wrapper.show {
    display: block;
}

/* ========== MOBILE FILTER POPUP ========== */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: #ff7a00;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,122,0,0.4);
    cursor: pointer;
    align-items: center;
    gap: 6px;
}
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}
.mobile-filter-overlay.active {
    display: block;
}
.mobile-filter-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    transition: bottom 0.35s ease;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-filter-panel.active {
    bottom: 0;
}
.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}
.mobile-filter-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.mobile-filter-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.mobile-filter-body {
    padding: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-filter-btn {
        display: flex;
    }
    /* Ẩn bộ lọc desktop trên mobile */
    .hotel-filter {
        display: none !important;
    }
}

/* R23: Hotel-only sidebar; preserve product cards and non-Hotel archives. */
.eh-sf-box,.eh-sf-support{background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:16px;margin-bottom:14px;color:#17314d}
.eh-sf-box h2{font-size:17px;margin:0 0 14px;text-transform:none}
.eh-sf-support{display:flex;flex-direction:column;gap:8px;font-size:13px}.eh-sf-support a{color:#245773}
.eh-sf-group{padding:12px 0;border-top:1px solid #edf1f5}.eh-sf-group summary{font-size:14px;font-weight:600;cursor:pointer;margin-bottom:10px}.eh-sf-group p{font-size:12px;color:#63778b;margin:0 0 10px}
.eh-sf-form .filter-item{min-height:25px}.eh-sf-description{font-size:13px;line-height:1.6}
.eh-sf-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.eh-sf-chips a{padding:6px 10px;border:1px solid #dce5ed;border-radius:20px;background:#fff;color:#17314d;font-size:12px;text-decoration:none}
.eh-sf-form .eh-hotel-filter-apply{width:100%;min-height:44px;border:0;border-radius:8px;background:#e97608;color:#fff;font-weight:700;cursor:pointer}
@media(max-width:991px){.eh-hotel-catalog .eh-sf-sidebar{display:none!important}}

/* R24: Keep native submit fallback; screen-reader status and fetch state. */
.eh-sf-status{font-size:13px;color:#476477;margin:0 0 10px}.eh-sf-status:empty{display:none}.eh-sf-status a{color:#17517d;text-decoration:underline}
#product-list-wrapper[aria-busy=true]{opacity:.6}

/* R25: Category form wrappers; original Hotel/Home/landing rules stay unchanged. */
.eh-category-search-auto{padding:12px 0}.eh-category-search-auto .eh-ps{max-width:none;width:100%;margin:0}.eh-category-search-auto .eh-ps-form{background:#eaf0f3;border:1px solid #dce5ed}.eh-category-search-auto .eh-ps-status{color:#476477}
.eh-category-search-hotel{padding:0}

/* R26 — 15/10/2026: One compact desktop row for the category auto-search forms only. */
@media(min-width:992px){
 .eh-category-search-auto:not(.eh-category-search-hotel){padding:6px 0}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ps-form{display:grid;align-items:stretch;gap:6px;padding:6px;border-radius:10px}
 .eh-category-search-tour .eh-ps-form{grid-template-columns:minmax(160px,1.15fr) minmax(170px,1fr) minmax(170px,1fr) 132px}
 .eh-category-search-cruise .eh-ps-form{grid-template-columns:minmax(160px,1.1fr) minmax(245px,1.25fr) minmax(190px,1fr) 132px}
 .eh-category-search-ticket .eh-ps-form{grid-template-columns:minmax(0,1fr) 150px}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ps-bottom{display:contents}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ts-destination{min-width:0}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ps-destination{height:100%;min-height:48px;padding:6px 10px;border-radius:8px}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ps-destination input{font-size:14px;min-width:0}
 .eh-category-search-auto:not(.eh-category-search-hotel) .eh-ps-submit{min-height:48px;margin:0;padding:6px 8px;border-radius:8px;font-size:14px;white-space:nowrap}
 .eh-category-search-tour .eh-ts-picker{padding:4px 10px}
 .eh-category-search-tour .eh-ts-picker>label{font-size:11px;line-height:14px;margin-bottom:0}
 .eh-category-search-tour .eh-ts-picker>select{min-height:24px;font-size:13px}
 .eh-category-search-tour .eh-ts.is-enhanced .eh-ts-picker{padding:0}
 .eh-category-search-tour .eh-ts-picker-button{min-height:48px;padding:4px 10px;gap:8px}
 .eh-category-search-tour .eh-ts-picker-button small{font-size:11px;line-height:15px}
 .eh-category-search-tour .eh-ts-picker-button b{font-size:13px;line-height:18px}
 .eh-category-search-cruise .eh-cs-date-area,.eh-category-search-cruise .eh-ps-guests{min-width:0}
 .eh-category-search-cruise .eh-cs-date-buttons{height:100%}
 .eh-category-search-cruise .eh-cs-date-buttons>button{min-height:48px;padding:5px 10px}
 .eh-category-search-cruise .eh-cs-date-buttons>button:last-child{padding-left:14px}
 .eh-category-search-cruise .eh-cs-date-buttons>button>span,.eh-category-search-cruise .eh-cs-field-label{margin-left:10px;font-size:11px;line-height:15px}
 .eh-category-search-cruise .eh-cs-date-buttons strong{margin-left:10px;font-size:13px;line-height:18px;margin-top:0}
 .eh-category-search-cruise .eh-ps-guests summary{min-height:48px;padding:5px 10px;line-height:1.35}
 .eh-category-search-cruise [data-eh-guest-summary]{margin-left:10px;font-size:12px;line-height:18px;margin-top:0}
 .eh-category-search-cruise .eh-cs-stay-note{display:none}
 .eh-category-search-auto .eh-ps-status{grid-column:1/-1;margin:0}
}

/* R27: Reuse the existing filter UI for legacy Tour categories. */
.eh-tour-catalog #product-list-wrapper{display:block!important}
@media(max-width:991px){.eh-tour-catalog .eh-sf-sidebar{display:none!important}}

/* R27: Tour uses the same accessible hidden/open mobile panel states as Hotel. */
.eh-hotel-filter-scope .mobile-filter-panel{display:none;bottom:0;max-height:85vh;max-height:85dvh;overscroll-behavior:contain}
.eh-hotel-filter-scope .mobile-filter-panel.active{display:block}

/* R31: Keep long Hotel area lists usable without moving support above filters. */
.eh-hotel-catalog .eh-area-options{overflow-y:auto;overscroll-behavior:contain}
.eh-hotel-catalog .eh-area-options .filter-item{align-items:flex-start;line-height:1.5}

/* R32 — 15/10/2026: Compact average nightly price on mobile; preserve desktop units. */
.eh-hotel-catalog .eh-hotel-price-night{display:none}
@media(max-width:767px){
.eh-hotel-catalog .eh-hotel-price-copy--average .eh-hotel-price-night{display:inline}
.eh-hotel-catalog .eh-hotel-price-copy--average .eh-hotel-price-unit{display:none}
}

/* R34: Cruise reuses the shared sidebar while preserving its existing product cards. */
.eh-cruise-catalog #product-list-wrapper{display:block!important}
@media(max-width:991px){.eh-cruise-catalog .eh-sf-sidebar{display:none!important}}

/* R35 — 15/10/2026: Filter items min-height 25px; desktop Cruise labels/date/guest summary offset 10px. */

/* R37: Ticket budget sidebar shares desktop/mobile filtering and leaves existing cards intact. */
.eh-ticket-catalog #product-list-wrapper{display:block!important}
@media(max-width:991px){.eh-ticket-catalog .eh-sf-sidebar{display:none!important}}
