:root {
    --primary: #3f6b4c;
    --primary-dark: #274034;
    --accent: #d78b4d;
    --bg: #f6f2eb;
    --card-bg: #fffaf3;
    --text: #2f3437;
    --muted: #6a7075;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    --page-background-image: url('/background.jpg');
    background-color: var(--bg);
    background-image: var(--page-background-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.6;
    position: relative;
}

/* Same soft overlay as home page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(246, 242, 235, 0.5);
    backdrop-filter: blur(2px);
    z-index: -1;
}

@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }

    body::before {
        position: absolute;
        backdrop-filter: none;
    }
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.room-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 242, 235, 0.95);
    border-bottom: 1px solid rgba(39, 64, 52, 0.12);
    backdrop-filter: blur(8px);
}

.room-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
}

.back-link {
    color: var(--primary-dark);
    font-weight: 600;
}

.lang-switcher {
    display: grid;
    grid-template-columns: repeat(8, minmax(1.9rem, max-content));
    align-items: center;
    gap: .25rem;
    border: 1px solid rgba(39, 64, 52, 0.18);
    background: rgba(255, 250, 243, 0.95);
    border-radius: 1rem;
    padding: .25rem;
    max-width: none;
    overflow: visible;
    flex-shrink: 0;
    width: max-content;
}

.header-lang-rail {
    max-width: none;
    width: max-content;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.65rem;
    padding: 0 .35rem;
    border-radius: 999px;
    font-size: .64rem;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.lang-link.active {
    background: var(--primary-dark);
    color: #fff;
}

.room-page {
    padding: 1.2rem 0 2.4rem;
}

.room-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(63, 107, 76, 0.08);
    color: var(--primary-dark);
}

.room-hero h1 {
    margin: .8rem 0 .45rem;
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.room-hero p {
    margin: 0;
    max-width: 46rem;
    color: #3f4549;
}

.room-subtitle {
    margin-top: 1rem !important;
    font-size: .98rem;
    color: #3f4549;
    text-shadow: 0 1px 2px rgba(255, 250, 243, 0.6);
    max-width: 32rem !important;
}

.room-description {
    margin-top: .7rem !important;
    font-size: .95rem;
    color: #4f555a !important;
}

.room-content {
    margin-top: 1.6rem;
}

.room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 1.4rem;
    align-items: flex-start;
}

.room-main-card,
.room-side-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid rgba(39, 64, 52, .12);
    box-shadow: 0 12px 30px rgba(39, 64, 52, .12);
}

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

.room-main-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
}

.room-main-card h2 {
    margin: 1rem 0 .7rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

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

.room-thumb {
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.room-thumb img {
    width: 100%;
    height: 102px;
    object-fit: cover;
    display: block;
}

.room-thumb span {
    position: absolute;
    bottom: .35rem;
    right: .35rem;
    font-size: .68rem;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    border-radius: 999px;
    padding: .15rem .5rem;
}

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

.room-side-card h3,
.room-side-card h4 {
    color: var(--primary-dark);
    margin: 0 0 .6rem;
}

.facts-list,
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facts-list {
    margin-bottom: 1rem;
    border: 1px solid rgba(39, 64, 52, .14);
    border-radius: 12px;
    overflow: hidden;
}

.facts-list li {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid rgba(39, 64, 52, .1);
}

.facts-list li:last-child {
    border-bottom: 0;
}

.facts-list span {
    color: var(--muted);
}

.feature-list {
    display: grid;
    gap: .45rem;
}

.feature-list li {
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(39, 64, 52, .1);
    padding: .45rem .6rem;
    font-size: .9rem;
}

.room-note {
    margin-top: .9rem;
    font-size: .82rem;
    color: var(--muted);
}

.room-info-box {
    margin-top: 1rem;
    border: 1px solid rgba(39, 64, 52, .14);
    border-radius: 12px;
    padding: .75rem;
    background: #fff;
}

.room-info-box p {
    margin: 0;
    font-size: .9rem;
    color: var(--text);
}

.room-cta {
    display: block;
    margin-top: .45rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

.mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.95);
    border: 1px solid rgba(39, 64, 52, 0.18);
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.mail-icon-sm {
    width: 1.7rem;
    height: 1.7rem;
    font-size: .9rem;
}

.js-mail-link:hover .mail-icon,
.js-mail-link:focus-visible .mail-icon {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(39, 64, 52, 0.22);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,.6);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
    left: 1.25rem;
}

.lightbox-next {
    right: 1.25rem;
}

@media (max-width: 960px) {
    .room-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .room-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: .6rem;
    }

    .lightbox-next {
        right: .6rem;
    }
}
