/* =========================================================
   Hotels Listing Page — AdiSom
   ========================================================= */

/* ── Page Layout ────────────────────────────────────────── */
.hotels-page {
    background: var(--warm-sand);
    padding-top: 104px;
    min-height: 100vh;
}

/* ── Page Header Strip ──────────────────────────────────── */
.hotels-header-strip {
    background: var(--ocean-blue);
    color: white;
    padding: 28px 0 20px;
}

.hotels-header-strip h1 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.hotels-header-strip .sub {
    font-size: 0.82rem;
    opacity: 0.65;
    font-weight: 400;
}

/* ── Main Body Grid ─────────────────────────────────────── */
.hotels-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0 64px;
}

@media (max-width: 991.98px) {
    .hotels-body {
        grid-template-columns: 1fr;
    }

    .filter-sidebar-desktop {
        display: none !important;
    }
}

/* ── Filter Sidebar ──────────────────────────────────────── */
.filter-sidebar-desktop {
    background: white;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 116px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 4, 6, 0.15) transparent;
}

.filter-sidebar-desktop .sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--evening-slate);
    opacity: 0.6;
    margin-bottom: 16px;
}

.filter-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-label i {
    color: var(--saffron-gold);
}

/* Star Rating Buttons */
.star-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.star-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(4, 4, 6, 0.18);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ocean-blue);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    background: var(--ocean-blue);
    border-color: var(--ocean-blue);
    color: white;
}

/* Amenity Checkboxes */
.amenity-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--evening-slate);
    cursor: pointer;
    padding: 5px 0;
}

.amenity-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--saffron-gold);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Results Bar ─────────────────────────────────────────── */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ocean-blue);
}

.results-count-text span {
    color: var(--saffron-gold);
}

/* ── Sort Custom Dropdown ────────────────────────────────── */
.sort-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ocean-blue);
    border: 1.5px solid rgba(4, 4, 6, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.sort-trigger-btn:hover {
    border-color: rgba(255, 159, 28, 0.5);
}

.sort-trigger-btn[aria-expanded="true"] {
    border-color: var(--saffron-gold);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.12);
}

.sort-trigger-btn .sort-icon {
    font-size: 0.72rem;
    color: var(--saffron-gold);
}

.sort-trigger-btn .sort-chevron {
    font-size: 0.65rem;
    color: var(--evening-slate);
    transition: transform 0.2s ease;
}

.sort-trigger-btn[aria-expanded="true"] .sort-chevron {
    transform: rotate(180deg);
    color: var(--saffron-gold);
}

.sort-dropdown-wrap .dropdown-menu {
    font-size: 0.82rem;
    min-width: 180px;
}

.sort-option.active {
    color: var(--saffron-gold) !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.sort-option.active:hover {
    background-color: var(--saffron-gold) !important;
    color: white !important;
}

/* ═══════════════════════════════════════════════════════════
   HOTEL CARD — Horizontal Row Style
   ═══════════════════════════════════════════════════════════ */
.hotel-card-row {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    position: relative;
}

.hotel-card-row:hover {
    box-shadow: 0 8px 32px rgba(4, 4, 6, 0.11);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .hotel-card-row {
        grid-template-columns: 1fr;
    }
}

/* ── Card Image ──────────────────────────────────────────── */
.hotel-img-wrap {
    position: relative;
    min-height: 230px;
    overflow: hidden;
}

/* Hotel Card Image Slider */
.hotel-img-wrap .carousel,
.hotel-img-wrap .carousel-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.hotel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hotel-card-row:hover .hotel-img-wrap .carousel-item.active img {
    transform: scale(1.05);
}

/* Hover-only Controls */
.hotel-img-wrap .carousel-control-prev,
.hotel-img-wrap .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 15%;
    /* Limit click area */
    z-index: 10;
}

.hotel-card-row:hover .carousel-control-prev,
.hotel-card-row:hover .carousel-control-next {
    opacity: 0.8;
}

.hotel-card-row .carousel-control-prev:hover,
.hotel-card-row .carousel-control-next:hover {
    opacity: 1;
}

/* Sleek Dots */
.hotel-img-wrap .carousel-indicators {
    margin-bottom: 12px;
    gap: 6px;
    z-index: 10;
}

.hotel-img-wrap .carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0;
    transition: all 0.2s ease;
}

.hotel-img-wrap .carousel-indicators button.active {
    background-color: white;
    transform: scale(1.3);
}

@media (max-width: 767.98px) {
    .hotel-img-wrap {
        min-height: 200px;
        position: relative;
    }

    .hotel-img-wrap img {
        position: absolute;
    }
}

/* Featured Badge */
.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--saffron-gold);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* ── Card Body ───────────────────────────────────────────── */
.hotel-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

/* Hotel Name */
.hotel-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 3px;
    line-height: 1.3;
}

/* Location */
.hotel-location {
    font-size: 0.8rem;
    color: var(--evening-slate);
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotel-location i {
    color: var(--saffron-gold);
    font-size: 0.72rem;
}

/* Star Rating Row */
.hotel-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
}

.hotel-stars i {
    font-size: 0.72rem;
    color: #ddd;
}

.hotel-stars i.active {
    color: var(--saffron-gold);
}

.hotel-star-label {
    font-size: 0.72rem;
    color: var(--evening-slate);
    opacity: 0.6;
    margin-left: 5px;
}

/* Amenities Tags */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hotel-amenity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--evening-slate);
    background: var(--warm-sand);
    border-radius: 20px;
    padding: 4px 10px;
}

.hotel-amenity i {
    color: var(--ocean-blue);
    font-size: 0.65rem;
}

/* Timing Row */
.hotel-timing-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hotel-timing {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.77rem;
    color: var(--evening-slate);
    opacity: 0.8;
}

.hotel-timing i {
    color: var(--ocean-blue);
}

/* Price + CTA Footer */
.hotel-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
    margin-top: 2px;
}

.hotel-price-wrap {
    line-height: 1.2;
}

.hotel-price-from {
    font-size: 0.68rem;
    color: var(--evening-slate);
    opacity: 0.6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hotel-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ocean-blue);
    letter-spacing: -0.5px;
}

.hotel-price sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--evening-slate);
    opacity: 0.6;
    vertical-align: baseline;
}

.hotel-price-note {
    font-size: 0.7rem;
    color: var(--evening-slate);
    opacity: 0.55;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Book Button */
.hotel-book-btn {
    background: var(--saffron-gold);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 11px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    align-self: flex-end;
}

.hotel-book-btn:hover {
    background: #e58d14;
    color: white;
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 159, 28, 0.35);
}

/* Availability Badge */
.hotel-avail-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
}

.hotel-avail-badge.good {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.hotel-avail-badge.low {
    background: rgba(255, 159, 28, 0.15);
    color: #c4731a;
}

/* ── Empty State ─────────────────────────────────────────── */
.hotels-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--evening-slate);
    opacity: 0.7;
}

.hotels-empty i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.hotels-empty h4 {
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 8px;
}

/* ── Mobile Filter FAB ───────────────────────────────────── */
.filter-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    background: var(--ocean-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 13px 28px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(4, 4, 6, 0.25);
    transition: all 0.3s ease;
    gap: 8px;
    align-items: center;
}

@media (max-width: 991.98px) {
    .filter-fab {
        display: inline-flex;
    }
}

.filter-fab:hover {
    background: #111;
    transform: translateX(-50%) translateY(-2px);
}

/* ── Mobile Filter Offcanvas ─────────────────────────────── */
.filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 20px;
}

.filter-offcanvas .offcanvas-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ocean-blue);
}

/* ── Fade-in animation ───────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hotel-card-row {
    animation: fadeInUp 0.4s ease both;
}

.hotel-card-row:nth-child(1) {
    animation-delay: 0.05s;
}

.hotel-card-row:nth-child(2) {
    animation-delay: 0.10s;
}

.hotel-card-row:nth-child(3) {
    animation-delay: 0.15s;
}

.hotel-card-row:nth-child(4) {
    animation-delay: 0.20s;
}

.hotel-card-row:nth-child(5) {
    animation-delay: 0.25s;
}