/* ==========================================================================
   NEW CHARLES — ROOMS LISTING & DETAIL STYLES
   ========================================================================== */

/* ==========================================================================
   [SECTION 1] PAGE HEADER
   ========================================================================== */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
}

.page-header .overline {
    display: block;
    margin-bottom: 16px;
}

.page-header .display-md {
    color: var(--ink);
    margin-bottom: 20px;
}

.page-header-desc {
    max-width: 560px;
    margin: 0 auto;
    color: var(--ink-soft);
}

/* ==========================================================================
   [SECTION 2] ROOM LISTING CARDS
   ========================================================================== */
.rooms-listing {
    padding: 0 0 80px;
}

.rooms-grid-listing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background-color: var(--hairline);
}

.room-card-listing {
    background-color: var(--canvas);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.room-card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--hairline);
}

.room-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.2s var(--ease-out-expo);
}

.room-card-listing:hover .room-card-image-wrap img {
    transform: scale(1);
}

.room-card-body {
    padding: 30px 30px 35px;
}

.room-card-body .overline {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.room-card-body h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 10px;
}

.room-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted-light);
}

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

.room-card-body p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 20px;
}

.room-card-body .btn-text {
    font-size: 10px;
}

/* ==========================================================================
   [SECTION 3] ROOM DETAIL PAGE
   ========================================================================== */
.room-detail-hero {
    margin-top: calc(var(--header-height) * -1);
    position: relative;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
    background-color: var(--ink);
}

.room-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-detail-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.room-detail-hero .hero-label {
    position: absolute;
    bottom: 40px;
    left: var(--gutter);
    z-index: 2;
}

.room-detail-hero .overline-light {
    display: block;
    margin-bottom: 12px;
}

.room-detail-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--canvas);
}

/* Room detail body */
.room-detail-body {
    padding: 80px 0 40px;
}

.room-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.room-detail-desc h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}

.room-detail-desc p {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 24px;
}

.room-detail-sidebar {
    border-left: 1px solid var(--hairline);
    padding-left: 30px;
}

.room-stat {
    margin-bottom: 30px;
}

.room-stat-label {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.room-stat-value {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    line-height: 1.4;
}

/* Amenities list */
.room-amenities {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--hairline);
}

.room-amenities h3 {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenities-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-soft);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.amenities-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 1px;
    background-color: var(--muted);
}

/* Gallery */
.room-gallery {
    padding: 0 0 80px;
}

.room-gallery h3 {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 30px;
    text-align: center;
}

.room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background-color: var(--hairline);
}

.room-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Back link */
.room-back-link {
    padding: 0 0 60px;
    text-align: center;
}

.room-back-link .btn-text {
    font-size: 10px;
}

/* ==========================================================================
   [SECTION 4] RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .rooms-grid-listing {
        grid-template-columns: 1fr;
    }

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

    .room-detail-sidebar {
        border-left: none;
        border-top: 1px solid var(--hairline);
        padding-left: 0;
        padding-top: 30px;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .room-stat {
        flex: 1;
        min-width: 120px;
    }

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

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }

    .room-card-body {
        padding: 25px 20px;
    }

    .room-card-body h3 {
        font-size: 22px;
    }

    .room-detail-hero {
        height: 45vh;
        min-height: 300px;
    }

    .room-detail-body {
        padding: 50px 0 20px;
    }

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

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

/* ==========================================================================
   [SECTION 5] GALLERY LIGHTBOX
   ========================================================================== */

/* --- Thumbnail affordance ---------------------------------------------- */
.room-gallery-grid img {
    cursor: zoom-in;
    transition: transform 0.6s var(--ease-out-expo);
}

.room-gallery-grid img:hover {
    transform: scale(1.04);
}

/* --- Overlay shell ------------------------------------------------------ */
.nc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000; /* above header (1000) and mobile menu (3000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px var(--gutter) 50px;
    background-color: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.nc-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* --- Stage -------------------------------------------------------------- */
.nc-lb-stage {
    position: relative;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nc-lb-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.nc-lb-counter {
    font-family: var(--font-structural);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons ------------------------------------------------------------ */
.nc-lb-close,
.nc-lb-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--canvas);
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.25s ease,
        background-color 0.25s ease, border-color 0.25s ease;
}

.nc-lb-close:focus-visible,
.nc-lb-nav:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.nc-lb-close {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    z-index: 2;
}

.nc-lb-close:hover {
    background-color: var(--canvas);
    border-color: var(--canvas);
    color: var(--ink);
}

/* Prev / next — subtle: revealed on hover (desktop) or focus */
.nc-lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 17px;
    opacity: 0;
    border-color: transparent;
}

.nc-lb-prev {
    left: 24px;
}

.nc-lb-next {
    right: 24px;
}

.nc-lightbox:hover .nc-lb-nav,
.nc-lb-nav:focus-visible {
    opacity: 1;
}

.nc-lb-nav:hover {
    background-color: var(--canvas);
    border-color: var(--canvas);
    color: var(--ink);
}

/* --- Single-photo room (207b): no navigator, no counter ------------------ */
.nc-lightbox.nc-lb-single .nc-lb-nav,
.nc-lightbox.nc-lb-single .nc-lb-counter {
    display: none;
}

/* --- Touch devices: arrows always visible -------------------------------- */
@media (hover: none), (pointer: coarse) {
    .nc-lb-nav {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nc-lightbox {
        padding: 64px 14px 30px;
    }

    .nc-lb-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .nc-lb-nav {
        width: 44px;
        height: 44px;
    }

    .nc-lb-prev {
        left: 8px;
    }

    .nc-lb-next {
        right: 8px;
    }

    .nc-lb-img {
        max-height: calc(100vh - 150px);
    }
}
