/* ================================================================
1. GLOBAL & CONTAINER STYLES
================================================================
*/
.search-body-wrapper {
    background-color: #fcfcfc;
    padding-bottom: 80px;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
2. HORIZONTAL FILTER BAR (Top Bar)
================================================================
*/
.horizontal-filter-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-bar-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-count { font-size: 13px; color: #666; }

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

/* ================================================================
   ACTIVE FILTER CHIPS (Selection Criteria)
   ================================================================ */

/* Custom utility to replace UIkit .uk-hidden */
.filter-hidden {
    display: none !important;
}

.active-filters-bar {
    background: #fcfcfc; /* Matches your bento background */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    animation: fadeInDown 0.3s ease-out; /* Smooth entrance when filters appear */
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.active-filters-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-size: 11px;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 50px; /* Pill shape */
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #b38e5d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-chip i {
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: color 0.2s;
}

.filter-chip i:hover {
    color: #e74c3c; /* Red on hover to indicate removal */
}

.clear-all-link {
    background: none;
    border: none;
    color: #b38e5d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.clear-all-link:hover {
    background: rgba(179, 142, 93, 0.05);
}

/* ================================================================
3. DROPDOWN LOGIC & ALIGNMENT
================================================================
*/
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown-btn {
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Arrow Rotation */
.filter-dropdown i.zmdi-chevron-down {
    transition: transform 0.3s ease;
}
.filter-dropdown.is-open i.zmdi-chevron-down {
    transform: rotate(180deg);
}

.filter-dropdown.is-open .filter-dropdown-btn,
.filter-dropdown-btn:hover { border-color: #b38e5d; color: #b38e5d; }

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 320px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0px 12px 30px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-top: 10px;
}

/* FIX: Price Range Shift (Forces last dropdown to open towards the left) */
.filter-bar-flex .filter-dropdown:last-child .filter-dropdown-content,
.filter-dropdown.align-right .filter-dropdown-content {
    left: auto !important;
    right: 0 !important;
}

.filter-dropdown.is-open .filter-dropdown-content { display: block !important; }

/* ================================================================
4. FILTER LIST ITEMS (Destinations, Activities, etc.)
================================================================
*/
.custom-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-check:hover { color: #b38e5d; }

.check-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Fixed space between box and text */
    flex-grow: 1;
    text-align: left;
}

.custom-check input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #b38e5d;
    cursor: pointer;
}

/* FIX: Force Left Alignment for all filter text */
.label-text {
    flex-grow: 1;
    text-align: left !important;
    color: #444;
    font-weight: 500;
    display: block;
}

/* Spacing between text and count */
.facet-count {
    /* color: #b38e5d; */
    font-size: 11px;
    font-weight: 600;
    margin-left: 15px;
    background: #fdfaf5;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #f3eada;
    min-width: 30px;
    text-align: center;
}

/* ================================================================
5. SIDEBAR & ACCORDIONS
================================================================
*/
#side-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
#side-panel.is-active { right: 0 !important; }

#side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(2px);
}
#side-overlay.is-active { display: block !important; }

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Close Button */
#btn-close-sidebar {
    background: #f8f8f8;
    border: 1px solid #eee;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
#btn-close-sidebar:hover { background: #b38e5d; color: #fff; border-color: #b38e5d; }

.sidebar-content { padding: 0 25px; overflow-y: auto; flex: 1; }

.accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.accordion-header span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b38e5d;
    letter-spacing: 1px;
}

.accordion-body { display: none; padding: 20px 0; }
.filter-group.active .accordion-body { display: block; }
.filter-group.active .accordion-header i { transform: rotate(180deg); color: #b38e5d; }

/* Sidebar Footer */
.sidebar-footer { padding: 20px; border-top: 1px solid #eee; display: flex; gap: 12px; background: #fff; }
.btn-clear { flex: 1; background: #fff; border: 1px solid #ddd; padding: 12px; border-radius: 4px; font-weight: 600; cursor: pointer; }
.btn-apply { flex: 2; background: #b38e5d; color: #fff; border: none; padding: 12px; border-radius: 4px; font-weight: 700; text-transform: uppercase; cursor: pointer; }

/* ================================================================
6. FORMS & DATE PICKER
================================================================
*/
.date-input-group { margin-bottom: 20px; }
.date-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.filter-date-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

/* Flatpickr Custom Theme */
.flatpickr-calendar { border: 1px solid #b38e5d !important; border-radius: 8px !important; }
.flatpickr-months { background: #2c3e50; border-radius: 8px 8px 0 0; }
.flatpickr-month, .flatpickr-current-month { color: #fff !important; fill: #fff !important; }
.flatpickr-day.selected { background: #b38e5d !important; border-color: #b38e5d !important; }

/* ================================================================
   7. BENTO GRID RESULTS (Refined for Shared Layout)
   ================================================================ */
/* 1. Main Container */
/* 1. Main Container - Kept your radius and shadow, added smoother transition */
.bento-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Polished Hover: Slightly more lift (8px) and a deeper shadow */
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* 2. Image Area - Added the Zoom Effect */
.bc-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.bc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Smooth transition for zoom */
}

/* This makes the image zoom in slightly when the card is hovered */
.bento-card:hover .bc-img {
    transform: scale(1.05);
}

.bc-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.bc-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* 3. Body Content */
.bc-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bc-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.bc-activity-tag {
    color: #777;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.bc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bc-count {
    font-size: 11px;
    color: #aaa;
}

.bc-title {
    font-size: 19px;
    margin: 8px 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.bc-title a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
}

/* 4. Meta Grid (Vertical Dividers) - Kept your padding/border logic */
.bc-meta {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.bc-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
}

.bc-meta-item + .bc-meta-item {
    border-left: 1px solid #eee;
}

.bc-meta-label {
    font-size: 9px;
    font-weight: 800;
    color: #bbb;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bc-meta-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* 5. Departure & Duration */
.bc-departure-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: auto;
    margin-bottom: 0;
}

.bc-dep-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.bc-dep-value {
    font-size: 12px;
    font-weight: 700;
    color: #e67e22;
}

/* 6. Footer */
.bc-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bc-duration-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.bc-days {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-inclusive {
    font-size: 11px;
    color: #888;
    border-left: 1px solid #eee;
    padding-left: 10px;
}

.bc-btn {
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.bc-btn:hover {
    background: #333;
    transform: scale(1.05); /* Slightly bigger pop on button hover */
}

/* Icon Global Styling - Added Stroke Width for that "Bold" premium feel */
.package-svg-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    stroke-width: 2.5px; /* Makes icons more visible and high-end */
}

/* ================================================================
8. UTILITIES & SCROLLBARS
================================================================
*/
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #b38e5d; border-radius: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }

/* ================================================================
9. Search_Ajax
================================================================
*/

/* --- Base Grid (Desktop 3-columns) --- */
.package-results-grid {
    display: grid;
    /* This creates the 3-column layout you wanted */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    align-items: stretch; /* Ensures cards in a row have equal height */
}

/* --- Tablets & Smaller Screens (Your existing breakpoint) --- */
@media (max-width: 1100px) {
    .package-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- Mobile (Your existing breakpoint) --- */
@media (max-width: 700px) {
    .package-results-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #side-panel {
        width: 100%;
        right: -100%;
    }
}

/* --- Empty State Styling --- */
.search-empty-state {
    grid-column: 1 / -1; /* Spans across all columns */
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 2px dashed #eee;
}

.search-empty-state i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
}

/* ============================================================
   PREMIUM BENTO PAGINATION (Bootstrap Override)
   ============================================================ */
.search-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 40px;
}

/* The <ul> element */
.search-pagination ul.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

/* The <li> element */
.search-pagination .page-item {
    margin: 0;
}

/* The <a> or <span> element */
.search-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State (The current page) */
.search-pagination .page-item.active .page-link {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Disabled State (The arrows when at start/end) */
.search-pagination .page-item.disabled .page-link {
    background: #fdfdfd;
    color: #ccc;
    border-color: #f5f5f5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Hover State */
.search-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #fff;
    border-color: #333;
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Customizing the arrows (‹ and ›) */
.search-pagination .page-link[aria-hidden="true"],
.search-pagination .page-link[rel="next"],
.search-pagination .page-link[rel="prev"] {
    font-size: 20px;
    font-weight: 400;
}
