/* =============================================
   ROOMS PAGE STYLES (DYNAMICALLY TETHERED)
   ============================================= */

:root {
    /* Map lookups to layout-injected theme variables with custom system fallbacks */
    --mmt-primary: var(--hotel-secondary, #135846); /* Dynamic secondary base color */
    --mmt-accent: var(--hotel-primary, #E23428); /* Dynamic primary accent color */
    --mmt-yellow: var(--hotel-accent, #f5a623);
    --mmt-border: var(--hotel-border, #e8e8e8);
    --mmt-bg: var(--hotel-bg, #f5f6fa);
    --mmt-card: var(--hotel-card-bg, #ffffff);
    --mmt-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,0.08));
    --mmt-shadow-hov: var(--shadow-md, 0 8px 28px rgba(0,0,0,0.14));
    --mmt-radius: var(--radius-md, 12px);
    --mmt-text: var(--hotel-text-main, #1a1a2e);
    --mmt-muted: var(--hotel-text-muted, #7b8490);
}

.rooms-page {
    background: var(--mmt-bg);
    min-height: 100vh;
}

/* ─────────────────────────────────────────
   HERO BANNER
───────────────────────────────────────── */
.rooms-hero {
    position: relative;
    /* Soft blending color gradient transitioning out from primary theme base token color */
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, var(--mmt-primary) 60%, var(--mmt-primary) 100%);
    padding: 60px 16px;
    overflow: hidden;
}

    .rooms-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

.rooms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}

    .rooms-hero-content .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.2);
        color: #fff;
        padding: 5px 14px;
        border-radius: 50px;
        font-size: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        margin-bottom: 14px;
    }

    .rooms-hero-content h1 {
        font-family: var(--font-heading, 'Playfair Display', serif);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: #fff !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .rooms-hero-content p {
        font-size: 1.05rem;
        color: rgba(255,255,255,.85);
        line-height: 1.6;
        margin-bottom: 20px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-trust-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .85rem;
}

    .hero-trust-strip span {
        color: #4cde97;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }

/* ─────────────────────────────────────────
   STICKY SEARCH
───────────────────────────────────────── */
.sticky-search-wrapper {
    position: relative;
    margin-top: -30px;
    z-index: 10;
    padding: 0 16px;
}

#roomSearchForm {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--mmt-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border: 1px solid var(--mmt-border);
    padding: 10px;
}

.sticky-search-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.ss-field {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

.ss-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--mmt-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ss-input {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--mmt-text);
    background: transparent;
    outline: none;
    transition: .2s;
}

    .ss-input:focus {
        border-color: var(--mmt-primary);
    }

.ss-divider {
    width: 1px;
    height: 40px;
    background: var(--mmt-border);
    margin: 0 10px;
    display: none;
}

@media (min-width: 768px) {
    .ss-divider {
        display: block;
    }
}

.ss-btn-search {
    background: var(--mmt-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
    cursor: pointer;
    white-space: nowrap;
}

    .ss-btn-search:hover {
        filter: brightness(0.9);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.ss-btn-clear {
    background: rgba(0,0,0,0.05);
    color: var(--mmt-text);
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: .2s;
    cursor: pointer;
}

    .ss-btn-clear:hover {
        background: rgba(0,0,0,0.1);
    }

.active-filter-strip {
    display: flex;
    gap: 8px;
    padding: 0 20px 10px;
    flex-wrap: wrap;
}

.af-pill {
    background: #e6f4ef;
    color: var(--mmt-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.af-remove {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: .7;
}

    .af-remove:hover {
        opacity: 1;
    }

/* ─────────────────────────────────────────
   ROOMS BODY LAYOUT
───────────────────────────────────────── */
.rooms-body {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .rooms-body {
        grid-template-columns: 280px 1fr;
    }

    .filter-sidebar {
        position: sticky;
        top: 90px;
        align-self: start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

        .filter-sidebar::-webkit-scrollbar {
            width: 4px;
        }

        .filter-sidebar::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.1);
            border-radius: 4px;
        }
}

/* ─────────────────────────────────────────
   SIDEBAR FILTERS
───────────────────────────────────────── */
.filter-panel {
    background: var(--mmt-card);
    border: 1px solid var(--mmt-border);
    border-radius: var(--mmt-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.filter-panel-head {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
}

.fp-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--mmt-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-arrow {
    transition: .3s;
    color: var(--mmt-muted);
    font-size: .8rem;
}

.filter-panel-head.open .fp-arrow {
    transform: rotate(180deg);
}

.filter-panel-body {
    padding: 16px;
    border-top: 1px solid var(--mmt-border);
}

.filter-check-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

    .filter-check-item:last-child {
        margin-bottom: 0;
    }

    .filter-check-item input {
        margin-right: 10px;
        width: 16px;
        height: 16px;
        accent-color: var(--mmt-primary);
    }

.filter-check-label {
    flex: 1;
    font-size: .85rem;
    color: var(--mmt-text);
}

.filter-check-count {
    font-size: .75rem;
    color: var(--mmt-muted);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.price-range-slider {
    width: 100%;
    accent-color: var(--mmt-primary);
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--mmt-text);
    font-weight: 600;
    margin-top: 5px;
}

/* ─────────────────────────────────────────
   RESULTS AREA
───────────────────────────────────────── */
.sort-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mmt-card);
    padding: 12px 20px;
    border-radius: var(--mmt-radius);
    border: 1px solid var(--mmt-border);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.result-text {
    font-size: .95rem;
    color: var(--mmt-text);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: .85rem;
    color: var(--mmt-muted);
    font-weight: 600;
}

.sort-select {
    border: 1px solid var(--mmt-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--mmt-text);
    outline: none;
}

.view-btn-group {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--mmt-muted);
    cursor: pointer;
    transition: .2s;
}

    .view-btn.active {
        background: #fff;
        color: var(--mmt-primary);
        box-shadow: 0 2px 6px rgba(0,0,0,.1);
    }

/* ─────────────────────────────────────────
   ROOM GRID CARDS
───────────────────────────────────────── */
.mmt-room-card {
    background: var(--mmt-card);
    border: 1px solid var(--mmt-border);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s;
    display: flex;
    flex-direction: column;
}

    .mmt-room-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--mmt-shadow-hov);
    }

.mmt-card-img {
    position: relative;
    height: 220px;
}

    .mmt-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mmt-img-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mmt-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.mmt-badge-avail {
    background: rgba(0,0,0,0.65);
}

.mmt-badge-booked {
    background: var(--mmt-accent);
}

.mmt-badge-deal {
    background: var(--mmt-accent);
}

.mmt-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: .2s;
}

    .mmt-wish-btn:hover {
        transform: scale(1.1);
        color: var(--mmt-accent);
    }

    .mmt-wish-btn.saved {
        color: var(--mmt-accent);
    }

.mmt-img-thumbs {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.mmt-img-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

    .mmt-img-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

.mmt-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mmt-room-type-tag {
    font-size: .75rem;
    font-weight: 700;
    color: var(--mmt-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.mmt-room-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mmt-text);
    margin-bottom: 8px;
}

.mmt-room-desc {
    font-size: .85rem;
    color: var(--mmt-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mmt-occupancy {
    display: flex;
    gap: 12px;
    font-size: .8rem;
    color: var(--mmt-text);
    margin-bottom: 12px;
}

.mmt-occ-item i {
    color: var(--mmt-primary);
    margin-right: 4px;
}

.mmt-amenity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mmt-chip {
    font-size: .75rem;
    color: var(--mmt-text);
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .mmt-chip i {
        color: var(--mmt-primary);
    }

.mmt-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--mmt-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-label {
    font-size: .75rem;
    color: var(--mmt-muted);
    font-weight: 600;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mmt-text);
    line-height: 1;
    margin-top: 2px;
}

.price-total {
    font-size: .75rem;
    color: var(--mmt-muted);
    margin-top: 4px;
}

.mmt-rating-pill {
    display: inline-flex;
    align-items: center;
    background: #fff5e6;
    color: #d97706;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    border: 1px solid #fde68a;
}

.mmt-btn-book {
    background: var(--mmt-accent);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
    display: inline-block;
}

    .mmt-btn-book:hover {
        filter: brightness(0.9);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

.mmt-btn-view {
    background: #e6f4ef;
    color: var(--mmt-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: .2s;
}

    .mmt-btn-view:hover {
        background: var(--mmt-primary);
        color: #fff;
    }

/* ─────────────────────────────────────────
   LIST VIEW CARDS
───────────────────────────────────────── */
.mmt-list-card {
    display: flex;
    background: var(--mmt-card);
    border: 1px solid var(--mmt-border);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: .3s;
}

    .mmt-list-card:hover {
        box-shadow: var(--mmt-shadow-hov);
    }

.mmt-list-img {
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

    .mmt-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mmt-list-body {
    padding: 24px;
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.mmt-list-footer {
    min-width: 200px;
    border-left: 1px solid var(--mmt-border);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .mmt-list-card {
        flex-direction: column;
    }

    .mmt-list-img {
        width: 100%;
        height: 220px;
    }

    .mmt-list-body {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .mmt-list-footer {
        border-left: none;
        border-top: 1px solid var(--mmt-border);
        padding-left: 0;
        padding-top: 16px;
        align-items: flex-start;
        flex-direction: row;
    }
}

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.mmt-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.mmt-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mmt-card);
    border: 1px solid var(--mmt-border);
    border-radius: 8px;
    color: var(--mmt-text);
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

    .mmt-page-btn:hover {
        border-color: var(--mmt-primary);
        color: var(--mmt-primary);
    }

    .mmt-page-btn.active {
        background: var(--mmt-primary);
        color: #fff;
        border-color: var(--mmt-primary);
    }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--mmt-card);
    border-radius: 16px;
    border: 1px dashed #ccc;
}

.empty-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}
