/* Hotels Page Redesign Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #007bff;
    --primary-green: #1a8209;
    --text-dark: #161616;
    --text-muted: #666;
    --price-red: #d9534f;
    --bg-light: #f8f9fa;
    --border-color: #ddd;
    --font-poppins: 'Poppins', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-poppins);
}

/* Banner Section */
.hotels-banner {
    max-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/ancient-caves.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hotels-banner h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hotels-banner p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar Blue Redesign - Exact Match to Image */
.search-bar-blue {
    background: #0077da;
    padding: 15px 0;
    margin-top: -50px;
    position: relative;
    z-index: 1000;
}

.search-form-row {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.search-col {
    flex: 1;
}

.search-col-btn {
    margin-left: 10px;
}

.input-group-custom {
    background: #fff;
    padding: 10px 10px;
    border-radius: 4px;
    margin-left: 10px;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    cursor: pointer;

}

.input-group-custom label {
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.input-group-custom label i {
    font-size: 10px;
    color: #999;
}

.input-group-custom .form-control,
.input-group-custom .form-select {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    height: 22px !important;
    line-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.btn-modify {
    background: #0077da;
    color: #fff;
    height: 56px;
    padding: 0 40px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #fff;
    text-transform: capitalize;
    font-size: 18px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modify:hover {
    background: #0066c0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .search-form-row {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .search-col,
    .search-col-btn {
        width: 100%;
        margin-left: 0;
    }

    .btn-modify {
        width: 100%;
    }
}

/* Main Layout */
.hotels-container {
    padding: 40px 0;
    background-color: #f1f4f7;
}

/* Sidebar Filters */
.filter-sidebar {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

.filter-sidebar h5 {
    display: none;
    /* Removed the "Filter By" title if it's not in the image */
}

.filter-group {
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-transform: none;
}

.filter-header::after {
    content: '\f077';
    /* Up Chevron */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #333;
}

.filter-group.active .filter-header::after {
    transform: rotate(0deg);
    /* It's already UP by default in image */
}

.filter-group:not(.active) .filter-header::after {
    transform: rotate(180deg);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #c0c9d5;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    background: #fff;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #0077da;
    border-color: #0077da;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.star-rating {
    color: #ffb400;
    /* Golden stars */
    font-size: 16px;
    display: flex;
    gap: 2px;
}

/* Hotel Listing */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.listing-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* Hotel Card */
.hotel-card-new {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    overflow: hidden;
    transition: transform 0.2s;
}

.hotel-card-new:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hotel-gallery-col {
    width: 300px;
    padding: 10px;
}

.main-img-wrap {
    position: relative;
    height: 180px;
    margin-bottom: 5px;
}

.featured-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary-green);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 2px;
}

.main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-strip {
    display: flex;
    gap: 5px;
}

.thumb-strip img {
    width: 71px;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
}

.view-all-overlay {
    position: relative;
}

.view-all-overlay::after {
    content: 'View All';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 2px;
}

.hotel-info-col {
    flex: 1;
    padding: 15px;
    border-right: 1px solid #eee;
}

.hotel-info-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.hotel-info-col .stars {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 10px;
}

.location-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.policy-tags {
    margin-bottom: 15px;
}

.policy-tag {
    font-size: 12px;
    color: var(--primary-green);
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.policy-tag i {
    margin-right: 5px;
}

.highlight-snippet {
    font-size: 13px;
    color: var(--text-muted);
}

.hotel-price-col {
    width: 180px;
    padding: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.score-badge-wrap {
    display: flex;
    justify-content: flex-end;
}

.score-badge {
    background: var(--primary-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.price-details {
    margin-bottom: 15px;
}

.old-price {
    color: var(--price-red);
    text-decoration: line-through;
    font-size: 13px;
}

.final-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 5px 0;
}

.tax-info {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-more-room {
    background: var(--primary-green);
    color: #fff;
    border: none;
    width: 100%;
    padding: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Travallers Dropdown */
.traveller-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 350px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 24px;
    display: none;
    z-index: 2000;
    border: 1px solid #eee;
}

.traveller-dropdown.active {
    display: block;
}

.input-group-custom:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.02);
}

@media (max-width: 991px) {
    .traveller-dropdown {
        width: 100%;
    }
}

.room-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.guest-row label {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-dark);
}

.guest-row small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.counter-btns {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.counter-btn {
    background: #f8f9fa;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
}

.counter-btns input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    font-size: 14px;
    height: 30px;
}

.btn-add-room {
    color: var(--primary-green);
    background: transparent;
    border: 1px solid var(--primary-green);
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 4px;
}

.btn-done {
    background: #ef6c00;
    color: #fff;
    border: none;
    padding: 5px 25px;
    border-radius: 4px;
    font-size: 14px;
}

/* Cleanup: Removed old Accordion definitions */

.filter-content {
    display: none;
}

.filter-group.active .filter-content {
    display: block;
}

/* Range Slider Styles */
.range-slider-wrapper {
    position: relative;
    padding-top: 10px;
}

.slider-labels-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.price-tooltip {
    background: #c5a172;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.price-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #c5a172;
}

/* Dual Range Slider Styles */
.dual-range-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin: 10px 0;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 10px;
    background: #e0e6ed;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    margin: 0;
}

.range-input::-webkit-slider-thumb {
    height: 18px;
    width: 8px;
    border-radius: 1px;
    background: #c5a172;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.range-input::-moz-range-thumb {
    height: 18px;
    width: 8px;
    border-radius: 1px;
    background: #c5a172;
    cursor: pointer;
    border: 1.5px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.slider-ticks span {
    font-size: 11px;
    color: #999;
}

.btn-apply-filter {
    color: #d36d5b !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background: none;
    float: right;
    cursor: pointer;
    padding: 0;
    margin-top: 20px;
}

.btn-apply-filter:hover {
    color: #b35a4a !important;
}

/* Flatpickr Custom */
.flatpickr-day.selected {
    background: var(--primary-blue) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hotel-card-new {
        flex-direction: column;
    }

    .hotel-gallery-col {
        width: 100%;
    }

    .thumb-strip img {
        width: 24%;
        height: 60px;
    }

    .hotel-info-col {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .hotel-price-col {
        width: 100%;
        text-align: left;
    }

    .score-badge-wrap {
        justify-content: flex-start;
        margin-bottom: 10px;
    }
}