/* =========================================
   CHAMBRES PAGE - GLOBAL
========================================= */
.rooms-page {
    background: #fff;
    overflow-x: hidden;
}

.room-lightbox-open {
    overflow: hidden;
}

.rooms-grid-view,
.rooms-list-view {
    display: none;
}

.rooms-grid-view.active,
.rooms-list-view.active {
    display: block;
}

/* =========================================
   HERO
========================================= */
.rooms-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/rooms/royale/10.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.rooms-hero-detail {
    min-height: 500px;
    background-size: cover;
    background-position: center center;
}

.rooms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.58));
}

.rooms-hero .container {
    position: relative;
    z-index: 2;
}

.rooms-hero-content {
    text-align: center;
    color: #fff;
    max-width: 920px;
    margin: 0 auto;
    padding: 100px 0 60px;
}

.rooms-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.12;
    margin-bottom: 16px;
    color: #fff;
}

.rooms-hero-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin: 0 auto;
}

.rooms-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.rooms-breadcrumbs a,
.rooms-breadcrumbs strong {
    color: #fff;
}

.rooms-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* =========================================
   BUTTONS
========================================= */
.rooms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.28s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.rooms-btn-primary {
    background: #c4a262;
    color: #fff;
    border-color: #c4a262;
}

.rooms-btn-primary:hover {
    background: #b08f4f;
    border-color: #b08f4f;
    color: #fff;
}

.rooms-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.28);
}

.rooms-btn-secondary:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.rooms-btn-full {
    width: 100%;
}

/* =========================================
   LISTING SECTION
========================================= */
.rooms-listing-section {
    padding: 70px 0 90px;
    background: #fff;
}

.rooms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.rooms-toolbar-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #232323;
    line-height: 1.2;
    margin: 0;
}

.rooms-view-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rooms-view-switcher span {
    font-size: 0.92rem;
    color: #6f6f6f;
    font-weight: 600;
}

.rooms-view-btn {
    border: 1px solid rgba(196,162,98,0.35);
    background: #fff;
    color: #565656;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.28s ease;
    cursor: pointer;
}

.rooms-view-btn:hover {
    border-color: #c4a262;
    color: #c4a262;
}

.rooms-view-btn.active {
    background: #c4a262;
    border-color: #c4a262;
    color: #fff;
}

/* =========================================
   GRID VIEW
========================================= */
.rooms-grid-view {
    display: none;
}

.rooms-grid-view.active {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.room-card-grid {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.11);
}

.room-card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.room-card-image-link img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.room-card-grid:hover .room-card-image-link img {
    transform: scale(1.04);
}

.room-card-capacity {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c4a262;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.room-card-body {
    padding: 22px 22px 24px;
}

.room-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #232323;
}

.room-card-body h3 a {
    color: #232323;
}

.room-card-subline {
    font-size: 0.98rem;
    color: #c4a262;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.5;
}

.room-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    color: #555;
    font-size: 0.95rem;
}

.room-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.room-card-meta i {
    color: #c4a262;
}

.room-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.room-card-amenities span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #666;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.86rem;
    line-height: 1.3;
}

.room-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.room-card-price strong {
    font-size: 1.35rem;
    color: #232323;
}

.room-card-price span {
    color: #777;
    font-size: 0.92rem;
}

.room-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   LIST VIEW
========================================= */
.rooms-list-view {
    display: none;
}

.rooms-list-view.active {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.room-card-list {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.11);
}

.room-card-list-image-link {
    display: block;
}

.room-card-list-image-link img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.room-card-list-content {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-card-list-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.room-card-list-top h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #232323;
}

.room-card-list-top h3 a {
    color: #232323;
}

.room-card-list-price {
    text-align: right;
    min-width: 160px;
}

.room-card-list-price strong {
    display: block;
    font-size: 1.2rem;
    color: #232323;
    margin-bottom: 4px;
}

.room-card-list-price span {
    color: #777;
    font-size: 0.9rem;
}

.room-card-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    color: #555;
    font-size: 0.95rem;
}

.room-card-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.room-card-list-meta i {
    color: #c4a262;
}

.room-card-list-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* =========================================
   DETAIL PAGE
========================================= */
.room-detail-section {
    padding: 70px 0 90px;
    background: #fff;
}

.room-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.room-detail-main,
.room-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.room-detail-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.room-detail-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #232323;
    margin-bottom: 18px;
}

.room-detail-description {
    color: #5f5f5f;
    font-size: 1rem;
    line-height: 1.95;
    margin-bottom: 24px;
}

.room-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.room-meta-item {
    background: #f8f6f2;
    border-radius: 14px;
    padding: 16px 18px;
}

.room-meta-label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.room-meta-item strong {
    color: #232323;
    font-size: 1rem;
    line-height: 1.5;
}

.room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.room-gallery-item {
    border: none;
    background: #f6f6f6;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    aspect-ratio: 1 / 1; /* يخليها carré */
    position: relative;
}

.room-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.room-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: 0.4s ease;
}

.room-amenities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.room-amenities-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.7;
}

.room-amenities-list i {
    width: 18px;
    color: #c4a262;
}

/* =========================================
   FAQ SECTION
========================================= */
.rooms-faq-section {
    padding: 20px 0 90px;
    background: #fff;
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    color: #232323;
    line-height: 1.2;
    margin: 0;
}

.rooms-faq-list {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rooms-faq-item {
    background: #fff;
    border: 1px solid #ece7de;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.28s ease;
}

.rooms-faq-item.active {
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.rooms-faq-question {
    width: 100%;
    border: none;
    background: #fff;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: #232323;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.rooms-faq-question i {
    color: #c4a262;
    transition: transform 0.28s ease;
}

.rooms-faq-item.active .rooms-faq-question i {
    transform: rotate(45deg);
}

.rooms-faq-answer {
    display: none;
    padding: 0 24px 22px;
}

.rooms-faq-item.active .rooms-faq-answer {
    display: block;
}

.rooms-faq-answer p {
    color: #666;
    font-size: 0.98rem;
    line-height: 1.9;
    margin: 0;
}

/* =========================================
   LIGHTBOX
========================================= */
.room-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.room-lightbox.active {
    display: flex;
}

.room-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 94vw;
    max-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.room-lightbox-content img {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}

.room-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.28s ease;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-lightbox-close:hover {
    background: rgba(255,255,255,0.26);
    transform: scale(1.06);
}

/* =========================================
   RESPONSIVE - LARGE LAPTOP
========================================= */
@media (max-width: 1200px) {
    .rooms-grid-view.active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-detail-grid {
        grid-template-columns: 1fr 320px;
    }
}

/* =========================================
   RESPONSIVE - TABLET
========================================= */
@media (max-width: 992px) {
    .rooms-hero {
        min-height: 340px;
    }

    .rooms-hero-detail {
        min-height: 400px;
    }

    .room-card-list {
        grid-template-columns: 1fr;
    }

    .room-card-list-image-link img {
        min-height: 260px;
    }

    .room-detail-grid {
        grid-template-columns: 1fr;
    }

    .room-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-detail-meta {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   RESPONSIVE - MOBILE
========================================= */
@media (max-width: 768px) {
    .rooms-listing-section,
    .room-detail-section {
        padding: 52px 0 70px;
    }

    .rooms-faq-section {
        padding: 10px 0 70px;
    }

    .rooms-hero {
        min-height: 280px;
    }

    .rooms-hero-detail {
        min-height: 320px;
    }

    .rooms-hero-content {
        padding: 80px 0 40px;
    }

    .rooms-hero-content p {
        font-size: 0.96rem;
    }

    .rooms-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rooms-view-switcher {
        justify-content: flex-start;
    }

    .rooms-grid-view.active {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .room-card-image-link img {
        height: 240px;
    }

    .room-card-list-content,
    .room-card-body,
    .room-detail-card {
        padding: 22px 18px;
    }

    .room-card-list-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .room-card-list-price {
        text-align: left;
        min-width: auto;
    }

    .room-detail-meta {
        grid-template-columns: 1fr;
    }

    .room-gallery-grid {
        grid-template-columns: 1fr;
    }

    .room-gallery-item img {
        height: 240px;
    }

    .rooms-faq-question {
        padding: 18px 18px;
        font-size: 0.95rem;
    }

    .rooms-faq-answer {
        padding: 0 18px 18px;
    }

    .room-lightbox {
        padding: 10px;
    }

    .room-lightbox-content img {
        max-width: 96vw;
        max-height: 82vh;
    }

    .room-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* =========================================
   RESPONSIVE - SMALL PHONE
========================================= */
@media (max-width: 520px) {
    .rooms-btn {
        width: 100%;
    }

    .rooms-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .room-card-body h3,
    .room-card-list-top h3 {
        font-size: 1.55rem;
    }
}