/* Shared styles for Eikendal Lodge room-detail pages
   (/stay/luxury-king-room, /stay/superior-twin-room, etc.) */

:root {
  --estate-cream: #faf5ea;
  --estate-cream-warm: #f4eede;
  --estate-deep: #1d2723;
  --estate-line: #e6dcc6;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body-font);
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Buttons ============================================ */
.room-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--body-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.room-btn:hover { background: var(--gold-hover, #A37C30); border-color: var(--gold-hover, #A37C30); }
.room-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.room-btn--ghost:hover { background: var(--ink); color: #fff; }

/* === Shared eyebrow + heading scaffold ================ */
.room-eyebrow {
  margin: 0 0 12px;
  font-family: var(--body-font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* === Hero (centered editorial intro) ==================== */
.room-hero {
  padding: clamp(112px, 12vw, 160px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.room-hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.room-hero h1 {
  margin: 0 0 18px;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
  color: var(--ink);
}
.room-hero-sub {
  margin: 0 auto 28px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--muted, #756a61);
  max-width: 56ch;
}

/* === Feature image (full-bleed) ======================= */
.room-feature {
  padding: 0 clamp(20px, 5vw, 64px);
}
.room-feature-image {
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* === Editorial split sections ========================= */
.room-split { padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 64px); }
.room-split--alt { background: var(--estate-cream); }
.room-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.room-split-grid--reverse > .room-split-image { order: 2; }
.room-split-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.room-split-text h2 {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  color: var(--ink);
}
.room-split-text p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted, #756a61);
  max-width: 52ch;
}
@media (max-width: 880px) {
  .room-split-grid { grid-template-columns: 1fr; }
  .room-split-grid--reverse > .room-split-image { order: 0; }
  .room-split-image { aspect-ratio: 16 / 10; }
}

/* === Section heads shared ============================ */
.room-amenities,
.room-gallery-section,
.room-rates,
.room-highlights {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}
.room-amenities-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.room-amenities-head h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  color: var(--ink);
}
.room-amenities-head .room-eyebrow { margin-bottom: 12px; }

/* === Room amenities list ============================= */
.room-amenities-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
  max-width: 980px;
}
.room-amenities-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.room-amenities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.room-amenities-meta {
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 24px 32px;
  background: var(--estate-cream);
  border-radius: 8px;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px 28px;
}
.room-meta-label {
  display: block;
  font-family: var(--body-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.room-meta-value {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .room-amenities-list { grid-template-columns: 1fr 1fr; }
  .room-amenities-meta { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .room-amenities-list { grid-template-columns: 1fr; }
}

/* === Gallery ========================================= */
.room-gallery-section { background: var(--estate-cream); max-width: none; }
.room-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.room-gallery-tile {
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  min-height: 220px;
}
.room-gallery-tile--lg { grid-row: 1 / 3; min-height: 460px; }
@media (max-width: 900px) {
  .room-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .room-gallery-tile--lg { grid-row: auto; grid-column: 1 / -1; min-height: 280px; }
}
@media (max-width: 540px) {
  .room-gallery { grid-template-columns: 1fr; }
}

/* === Rates =========================================== */
.room-rates-table {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--estate-line);
}
.room-rates-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--estate-line);
  align-items: center;
  font-size: 0.98rem;
  color: var(--ink);
}
.room-rates-row--head {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.room-rates-row > div[role="cell"]:not(:first-child) { font-variant-numeric: tabular-nums; }
.room-rates-note {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
}
.room-rates-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted, #756a61);
  font-style: italic;
}
.room-rates-cta {
  margin: 36px 0 0;
  text-align: center;
}
.room-rates-sub {
  margin: 12px auto 0;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted, #756a61);
}
@media (max-width: 720px) {
  .room-rates-row { grid-template-columns: 1fr; gap: 4px; }
  .room-rates-row--head { display: none; }
  .room-rates-row > div[role="cell"]::before {
    content: attr(data-label) " ";
    font-family: var(--body-font);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-right: 4px;
  }
}

/* === Highlights ====================================== */
.room-highlights { background: var(--estate-cream-warm); max-width: none; }
.room-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}
.room-highlight-card {
  background: #fff;
  border: 1px solid var(--estate-line);
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 22px;
}
.room-highlight-image {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
}
.room-highlight-card h3 {
  margin: 0 22px 6px;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
}
.room-highlight-card p {
  margin: 0 22px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted, #756a61);
}
@media (max-width: 880px) {
  .room-highlights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .room-highlights-grid { grid-template-columns: 1fr; }
}

/* === Final CTA ======================================= */
.room-final {
  background: var(--estate-deep);
  color: var(--estate-cream);
  text-align: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 60px);
}
.room-final h2 {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  color: var(--estate-cream);
}
.room-final p {
  margin: 0 auto 28px;
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.6;
  color: rgba(250, 245, 234, 0.78);
}
.room-final-ctas { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.room-final .room-btn--ghost { color: var(--estate-cream); border-color: rgba(250, 245, 234, 0.55); background: transparent; }
.room-final .room-btn--ghost:hover { background: rgba(250, 245, 234, 0.08); color: var(--estate-cream); border-color: var(--estate-cream); }

/* === Password gate — page-content visibility ========= */
/* Hide room content while auth is being checked or when locked */
body.is-checking .room-main { visibility: hidden; }
body.is-locked .room-main { display: none; }

/* === Footer ========================================== */
.site-footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted, #756a61);
  font-size: 0.86rem;
  border-top: 1px solid rgba(45, 37, 31, 0.08);
}
.site-footer a { color: var(--gold); }
