/* ── Section Header ─────────────────────────────────────────────── */

.rooms-section-header {
    text-align    : center;
    position      : relative;
    margin-bottom : 2.5rem;
}

.rooms-watermark {
    position      : absolute;
    top           : -10px;
    left          : 50%;
    transform     : translateX(-50%);
    font-size     : 5rem;
    font-weight   : 800;
    color         : rgba(200, 169, 110, 0.10);
    white-space   : nowrap;
    pointer-events: none;
    z-index       : 0;
    line-height   : 1;
}

.rooms-eyebrow {
    font-size     : 0.68rem;
    font-weight   : 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color         : var(--accent);
    margin-bottom : 0.5rem;
    position      : relative;
    z-index       : 1;
}

.rooms-heading {
    font-size     : 2rem;
    font-weight   : 700;
    color         : var(--ink);
    line-height   : 1.25;
    position      : relative;
    z-index       : 1;
}

/* ── Card Grid ──────────────────────────────────────────────────── */

.room-cards-grid {
    display               : grid;
    grid-template-columns : repeat(3, 1fr);
    gap                   : 1.5rem;
}

/* ── Room Card ──────────────────────────────────────────────────── */

.room-card {
    background   : white;
    border-radius: 6px;
    overflow     : hidden;
    box-shadow   : 0 2px 12px rgba(0,0,0,0.08);
    transition   : transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform : translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.room-card-img-wrap {
    position  : relative;
    overflow  : hidden;
}

.room-card-img-wrap img {
    width     : 100%;
    height    : 200px;
    object-fit: cover;
    display   : block;
    transition: transform 0.3s ease;
}

.room-card:hover .room-card-img-wrap img {
    transform: scale(1.05);
}

.room-card-badge {
    position        : absolute;
    bottom          : 10px;
    left            : 10px;
    background-color: var(--accent);
    color           : white;
    font-size       : 0.7rem;
    font-weight     : 500;
    padding         : 3px 10px;
    border-radius   : 3px;
    letter-spacing  : 0.05em;
}

/* ── Card Body ──────────────────────────────────────────────────── */

.room-card-body {
    padding: 1rem;
}

.room-card-day-type {
    display        : flex;
    align-items    : center;
    gap            : 0.4rem;
    font-size      : 0.68rem;
    color          : var(--ink-muted);
    letter-spacing : 0.04em;
    margin-bottom  : 0.5rem;
}

.room-card-day-type i {
    font-size: 0.7rem;
    color    : var(--accent);
}

.room-card-day-label {
    font-weight: 500;
    color      : var(--ink-muted);
}

.room-card-price {
    font-size    : 1.1rem;
    font-weight  : 700;
    color        : var(--accent);
    margin-bottom: 0.2rem;
}

.room-card-price small {
    font-size  : 0.72rem;
    font-weight: 400;
    color      : var(--ink-muted);
}

.room-card-name {
    font-size    : 0.95rem;
    font-weight  : 600;
    color        : var(--ink);
    margin-bottom: 0.75rem;
}

.room-card-meta {
    display    : flex;
    gap        : 0.5rem;
    flex-wrap  : wrap;
}

.room-meta-tag {
    display        : inline-flex;
    align-items    : center;
    gap            : 0.3rem;
    font-size      : 0.68rem;
    color          : var(--ink-muted);
    background     : #f5f0e6;
    border         : 1px solid var(--border);
    border-radius  : 3px;
    padding        : 3px 8px;
}

.room-meta-tag i {
    color    : var(--accent);
    font-size: 0.65rem;
}

/* ── Pagination ─────────────────────────────────────────────────── */

.rooms-pagination {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 1rem;
    margin-top     : 2.5rem;
}

.rooms-pagination a {
    font-size     : 0.72rem;
    font-weight   : 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color         : var(--ink-muted);
    text-decoration: none;
    display       : flex;
    align-items   : center;
    gap           : 0.4rem;
    transition    : color 0.2s;
}

.rooms-pagination a:hover {
    color: var(--accent);
}

.rooms-pagination a.disabled {
    opacity       : 0.35;
    pointer-events: none;
}

.rooms-pagination-dots {
    display  : flex;
    gap      : 0.35rem;
    font-size: 0.75rem;
    color    : var(--ink-muted);
}

.rooms-page-section .section-container {
    max-width: 1200px;
    margin   : 0 auto;
    padding  : 0 2rem;
}

/* ── Filter Bar (rooms page only) ───────────────────────────────── */
/* ── Card Actions ───────────────────────────────────────────────── */

.room-card-actions {
    display        : flex;
    align-items    : center;
    gap            : 0.5rem;
    margin-top     : 1rem;
    padding-top    : 0.75rem;
    border-top     : 1px solid var(--border);
}

.btn-card-book {
    display        : inline-block;
    background     : var(--ink);
    color          : #faf6ef;
    font-family    : 'Jost', sans-serif;
    font-size      : 0.7rem;
    font-weight    : 500;
    letter-spacing : 0.12em;
    text-transform : uppercase;
    text-decoration: none;
    padding        : 0.5rem 1.1rem;
    border-radius  : 3px;
    border         : 1px solid var(--ink);
    transition     : background 0.2s, color 0.2s;
}

.btn-card-book:hover {
    background : var(--accent);
    border-color: var(--accent);
    color      : white;
}

.btn-card-details {
    display        : inline-block;
    background     : transparent;
    color          : var(--ink-muted);
    font-family    : 'Jost', sans-serif;
    font-size      : 0.7rem;
    font-weight    : 500;
    letter-spacing : 0.12em;
    text-transform : uppercase;
    text-decoration: none;
    padding        : 0.5rem 1.1rem;
    border-radius  : 3px;
    border         : 1px solid var(--border);
    transition     : color 0.2s, border-color 0.2s;
}

.btn-card-details:hover {
    color        : var(--accent);
    border-color : var(--accent);
}

.rooms-filter-bar {
    position     : relative;
    margin-bottom: 1.5rem;
    display      : flex;
    justify-content: flex-end;
    right        : 0;
    left         : auto;
}

.btn-filter {
    display        : inline-flex;
    align-items    : center;
    gap            : 0.4rem;
    font-family    : 'Jost', sans-serif;
    font-size      : 0.72rem;
    font-weight    : 500;
    letter-spacing : 0.12em;
    text-transform : uppercase;
    color          : var(--accent);
    background     : transparent;
    border         : 1px solid var(--accent);
    border-radius  : 3px;
    padding        : 0.45rem 1rem;
    cursor         : pointer;
    transition     : color 0.2s, border-color 0.2s;
}

.btn-filter:hover {
    color        : var(--accent);
    border-color : var(--accent);
}

/* ══════════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════════ */
.filter-overlay {
    display   : none;
    position  : fixed;
    inset     : 0;
    background: rgba(0, 0, 0, 0.35);
    z-index   : 100;
}

.filter-overlay.active {
    display: block;
}

/* ══════════════════════════════════════════════
   FILTER PANEL
══════════════════════════════════════════════ */
.filter-panel {
    position     : fixed;
    top          : 0;
    right        : -420px;
    width        : 380px;
    height       : 100vh;
    background   : #faf6ef;
    z-index      : 101;
    padding      : 28px 24px;
    overflow-y   : auto;
    box-shadow   : -4px 0 24px rgba(0,0,0,0.12);
    transition   : right 0.3s ease;
    border-radius: 16px 0 0 16px;
}

.filter-panel.active {
    right: 0;
}

.filter-panel-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 20px;
}

.filter-panel-title {
    font-size  : 1.1rem;
    font-weight: 700;
    color      : #2e2a24;
}

.filter-panel-icon {
    color    : #c9a96e;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════
   DROPDOWN PANEL
══════════════════════════════════════════════ */
.filter-dropdown {
    display      : none;
    position     : absolute;
    top          : calc(100% + 8px);
    right        : 0;
    left         : auto;
    width        : 320px;
    background   : #faf6ef;
    border       : 1px solid #e8ddd0;
    border-radius: 12px;
    box-shadow   : 0 8px 32px rgba(0,0,0,0.12);
    padding      : 20px 18px;
    z-index      : 200;
}

.filter-dropdown.active {
    display: block;
}

.filter-panel-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 14px;
}

.filter-panel-title {
    font-size  : 0.95rem;
    font-weight: 700;
    color      : #2e2a24;
}

.filter-panel-icon {
    color    : #c9a96e;
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════════
   SEARCH
══════════════════════════════════════════════ */
.filter-search-wrap {
    display      : flex;
    align-items  : center;
    gap          : 7px;
    background   : #fff;
    border       : 1px solid #e0d5c8;
    border-radius: 7px;
    padding      : 7px 12px;
    margin-bottom: 14px;
}

.filter-search-wrap i {
    color    : #9ca3af;
    font-size: 12px;
}

.filter-search-wrap input {
    border    : none;
    outline   : none;
    font-size : 0.82rem;
    color     : #374151;
    width     : 100%;
    background: transparent;
}

/* ══════════════════════════════════════════════
   FILTER SECTIONS
══════════════════════════════════════════════ */
.filter-section {
    margin-bottom: 14px;
}

.filter-section-title {
    font-size    : 0.82rem;
    font-weight  : 700;
    color        : #2e2a24;
    margin-bottom: 8px;
}

/* ── Room Type ── */
.filter-type-btns {
    display  : flex;
    flex-wrap: wrap;
    gap      : 6px;
}

.filter-type-btn {
    background   : #fff;
    border       : 1px solid #e0d5c8;
    color        : #4a3f32;
    padding      : 5px 14px;
    border-radius: 6px;
    font-size    : 0.78rem;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all 0.2s;
}

.filter-type-btn.active {
    background  : #c9a96e;
    border-color: #c9a96e;
    color       : #fff;
}

.filter-type-btn:hover:not(.active) {
    background: #fdf6ee;
}

/* ── Amenities — scrollable ── */
.filter-amenities {
    display       : flex;
    flex-direction: column;
    gap           : 7px;
    max-height    : 130px;
    overflow-y    : auto;
    padding-right : 4px;
}

.filter-amenities::-webkit-scrollbar {
    width: 3px;
}

.filter-amenities::-webkit-scrollbar-thumb {
    background   : #e0d5c8;
    border-radius: 4px;
}

.filter-amenity-item {
    display    : flex;
    align-items: center;
    gap        : 8px;
    font-size  : 0.82rem;
    color      : #4a3f32;
    cursor     : pointer;
}

.filter-amenity-item input[type="checkbox"] {
    width       : 14px;
    height      : 14px;
    accent-color: #c9a96e;
    cursor      : pointer;
    flex-shrink : 0;
}

/* ── Price Range ── */
.filter-price-inputs {
    display    : flex;
    align-items: center;
    gap        : 6px;
}

.filter-price-input-group {
    display       : flex;
    flex-direction: column;
    gap           : 3px;
    flex          : 1;
}

.filter-price-input-group label {
    font-size     : 0.62rem;
    font-weight   : 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color         : #9ca3af;
}

.filter-price-input-wrap {
    display      : flex;
    align-items  : center;
    background   : #fff;
    border       : 1px solid #e0d5c8;
    border-radius: 6px;
    padding      : 5px 8px;
    gap          : 3px;
}

.filter-price-input-wrap span {
    font-size  : 0.7rem;
    color      : #9ca3af;
    white-space: nowrap;
}

.filter-price-input-wrap input {
    border    : none;
    outline   : none;
    font-size : 0.78rem;
    color     : #4a3f32;
    width     : 100%;
    background: transparent;
    font-weight: 500;
}

.filter-price-input-wrap input::-webkit-outer-spin-button,
.filter-price-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin            : 0;
}

.filter-price-input-wrap input[type=number] {
    -moz-appearance: textfield;
}

.filter-price-divider {
    color      : #9ca3af;
    font-size  : 0.82rem;
    margin-top : 16px;
    flex-shrink: 0;
}

/* ── Apply Button ── */
.filter-apply-btn {
    width         : 100%;
    padding       : 10px;
    background    : #c9a96e;
    color         : #fff;
    border        : none;
    border-radius : 7px;
    font-size     : 0.75rem;
    font-weight   : 700;
    letter-spacing: 0.12em;
    cursor        : pointer;
    transition    : background 0.2s;
    margin-top    : 6px;
}

.filter-apply-btn:hover {
    background: #b8956a;
}

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

.btn-clear-filter {
    background     : transparent;
    border         : 1px solid #e0d5c8;
    color          : #9ca3af;
    padding        : 7px 14px;
    border-radius  : 6px;
    font-size      : 0.78rem;
    font-weight    : 500;
    cursor         : pointer;
    display        : inline-flex;
    align-items    : center;
    gap            : 5px;
    text-decoration: none;
    transition     : all 0.2s;
}

.btn-clear-filter:hover {
    background: #fdf6ee;
    color     : #c9a96e;
    border-color: #c9a96e;
}

.filter-active-dot {
    width        : 7px;
    height       : 7px;
    border-radius: 50%;
    background   : #e53935;
    display      : inline-block;
    margin-left  : 2px;
}

@media (max-width: 768px) {

    .rooms-page-section {
        overflow-x: hidden;
    }

    .rooms-page-section .section-container {
        padding: 0 1rem;
    }

    .rooms-section-header {
        margin-top: 2rem !important;
    }

    .rooms-watermark {
        font-size  : 2.5rem;
        white-space: normal;
        text-align : center;
    }

    .rooms-filter-bar {
        margin-bottom: 1rem;
    }

    .filter-dropdown {
        width    : calc(100vw - 2rem);
        right    : 0;
        left     : auto;
        max-width: 100%;
    }

    .room-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .room-card-img-wrap img {
        height: 160px;
    }

    .room-card-body {
        padding: 0.75rem;
    }

    .room-card-price {
        font-size: 1rem;
    }

    .room-card-name {
        font-size: 0.85rem;
    }

    .room-card-actions {
        flex-direction: column;
        gap           : 0.4rem;
    }

    .btn-card-book,
    .btn-card-details {
        width     : 100%;
        text-align: center;
    }

    .rooms-pagination {
        gap: 0.75rem;
    }
}

@media (max-width: 420px) {
    .room-cards-grid {
        grid-template-columns: 1fr;
    }
}