/* ---------- tokens: theme the engine ---------- */
:root {
  --sc-canvas: #141311;          /* dark ground behind the video; also the scrim colour */
  --sc-surface: #1d1b18;
  --sc-ink: #f6f3ee;
  --sc-ink-soft: #a89f94;
  --sc-accent: #b8925a;
  --sc-accent-ink: #141311;
  --sc-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sc-font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ink: #141311;
  --ink-soft: #4a4642;
  --paper: #f6f3ee;
  --white: #ffffff;
  --nav-h: 72px;
}

a { text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.nav.is-solid {
  background: rgba(246,243,238,.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20,19,17,.08);
}
.nav__brand { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { opacity: .85; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Hero captions (the stage itself is the engine's) ---------- */
.hero { color: var(--white); }
/* Light at the end of the tunnel: fades to white as the camera reaches the
   front door, and the page below emerges out of the white. */
.hero__white {
  position: absolute; inset: 0; z-index: 2;
  background: #fff; opacity: 0; pointer-events: none; will-change: opacity;
}
body.hero-white .nav { color: var(--ink); }
body.hero-white .hero__scroll { opacity: 0 !important; }
.hero__scroll { transition: opacity .4s ease; }
.hero__caps {
  position: absolute; z-index: var(--sc-z-copy);
  left: clamp(20px, 4.5vw, 64px);
  bottom: clamp(40px, 9vh, 96px);
  width: min(36rem, 82vw);
  pointer-events: none;
}
.cap {
  position: absolute; left: 0; bottom: 0;
  width: 100%;
  opacity: 0; will-change: opacity, transform;
}
.cap { text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 28px rgba(0,0,0,.35); }
.cap__eyebrow {
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  margin: 0 0 14px; color: rgba(255,255,255,.9);
}
.cap__title {
  font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(3.2rem, 6.2vw, 5.8rem); line-height: .98; letter-spacing: -.01em;
  -webkit-text-stroke: .6px currentColor;   /* Instrument Serif has no bold cut; this thickens the strokes */
  margin: 0 0 18px; max-width: 12ch; text-wrap: balance;
}
.cap__sub {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem); line-height: 1.45; font-weight: 600;
  max-width: 40ch; margin: 0; color: #fff;
}
.cap__cta {
  display: inline-flex; align-items: center; margin-top: 22px;
  padding: 13px 24px; border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  pointer-events: auto;
}
.hero__scroll {
  position: absolute; z-index: var(--sc-z-copy);
  left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); pointer-events: none; will-change: opacity;
}
.hero__scroll span { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.hero__scroll i {
  position: relative; display: block; width: 18px; height: 28px;
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 10px;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 2px; background: #fff;
  animation: heroWheel 1.8s cubic-bezier(.45,0,.2,1) infinite;
}
@keyframes heroWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i::after { animation: none; } }
@media (max-width: 860px) {
  .hero__caps { left: 20px; bottom: 14vh; width: calc(100vw - 40px); }
  .hero__scroll { bottom: 20px; }
}

/* ---------- Page below the hero ---------- */
.page {
  position: relative; z-index: 2;
  background: var(--paper);
  color: var(--ink);
}
.section { padding: clamp(80px, 12vh, 160px) 0; }
.container { width: min(1200px, 100% - clamp(40px, 8vw, 112px)); margin: 0 auto; }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sc-accent); margin: 0 0 18px; }
.h2 { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; max-width: 18ch; margin: 0 0 24px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; font-weight: 300; margin: 0; }

/* ---------- Gallery (Airbnb-style grid) ---------- */
.gallery { padding: clamp(24px, 4vh, 40px) 0 0; }

.gallery__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 2 / 1;
  border-radius: 14px; overflow: hidden;
}
.gallery__cell { display: block; position: relative; overflow: hidden; background: #e6e1d9; }
.gallery__cell--main { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter .25s ease, transform .6s var(--sc-ease-out);
}
.gallery__cell:hover img { filter: brightness(.9); }

.gallery__all {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 8px;
  padding: 8px 14px; font-size: .85rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .2s, background .2s;
}
.gallery__all:hover { background: #f4f1ec; transform: scale(1.02); }
.gallery__all svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .gallery { padding-top: 0; }
  .gallery .container { width: 100%; }
  .gallery__head { padding: 20px 20px 16px; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
  .gallery__grid {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 4px;
    aspect-ratio: auto; border-radius: 0;
  }
  .gallery__cell--main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__cell:not(.gallery__cell--main) { aspect-ratio: 1; }
  .gallery__cell:nth-child(n+4) { display: none; }
  .gallery__all { right: 12px; bottom: 12px; }
}

/* ---------- All photos overlay ---------- */
.photos {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.photos__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 3vw, 40px);
  background: rgba(246,243,238,.92); backdrop-filter: blur(10px);
}
.photos__close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
}
.photos__close:hover { background: rgba(20,19,17,.06); }
.photos__close svg { width: 22px; height: 22px; }
.photos__count { font-size: .9rem; color: var(--ink-soft); }
.photos__list {
  width: min(880px, 100% - 32px); margin: 0 auto; padding: 8px 0 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.photos__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photos__list img:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
body.photos-open { overflow: hidden; }
body.photos-open .nav, body.photos-open [data-sc-progress] { visibility: hidden; }

/* ---------- Shared wrap ---------- */
.wrap { width: min(1120px, 100% - clamp(40px, 8vw, 112px)); margin: 0 auto; }
.gallery .container { width: auto; }
@media (max-width: 760px) { .gallery .wrap { width: 100%; } }

/* ---------- Details: content left, booking card pinned right ---------- */
.details { padding: clamp(28px, 4vh, 48px) 0 clamp(64px, 8vh, 96px); color: #222; }
.details__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.details__main { min-width: 0; }
.details__side { position: sticky; top: calc(var(--nav-h) + 24px); }

.host { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 0 24px; border-bottom: 1px solid rgba(0,0,0,.1); }
.host__title { font-family: var(--sc-font-text); font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.host__meta { margin: 0; color: #6a6a6a; font-size: .95rem; }
img.host__avatar { object-fit: cover; padding: 0; background: #e6e1d9; }
.host__avatar, .reviews__avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #e0245e; color: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 1.05rem;
}

.highlights { list-style: none; margin: 0; padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,.1); display: grid; gap: 18px; }
.highlights li { display: flex; gap: 16px; align-items: flex-start; }
.highlights svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; color: #222; }
.highlights strong { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 2px; }
.highlights span { color: #6a6a6a; font-size: .92rem; line-height: 1.45; }

.sec { padding: 32px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.sec--last { border-bottom: 0; }
.sec__title { font-family: var(--sc-font-text); font-size: 1.35rem; font-weight: 600; margin: 0 0 16px; letter-spacing: -.01em; }
.sec__sub { margin: -10px 0 18px; color: #6a6a6a; font-size: .95rem; }
.sec p { margin: 0 0 14px; line-height: 1.6; color: #333; font-size: .98rem; font-weight: 300; }
.sec p:last-child { margin-bottom: 0; }
.star { color: #222; }

.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.amenities li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: #222; }
.amenities svg { width: 22px; height: 22px; flex-shrink: 0; }

.sleep { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sleep li { display: grid; gap: 2px; }
.sleep svg { width: 26px; height: 26px; margin-bottom: 10px; }
.sleep strong { font-weight: 600; font-size: .98rem; }
.sleep span { color: #6a6a6a; font-size: .9rem; }

.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reviews li {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(20,19,17,.04), 0 6px 18px -8px rgba(20,19,17,.12);
  transition: transform .35s var(--sc-ease-out), box-shadow .35s var(--sc-ease-out), border-color .35s;
}
.reviews li:hover {
  transform: translateY(-4px);
  border-color: rgba(184,146,90,.45);
  box-shadow: 0 2px 4px rgba(20,19,17,.05), 0 22px 44px -16px rgba(20,19,17,.28);
}
.reviews__stars { font-size: .78rem; letter-spacing: .12em; color: var(--sc-accent); }
.reviews li p { margin: 0; color: #333; font-size: .95rem; line-height: 1.6; font-weight: 300; flex: 1; }
.reviews footer { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.reviews__avatar { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; flex-shrink: 0; transition: transform .35s var(--sc-ease-out); }
.reviews li:hover .reviews__avatar { transform: scale(1.06); }
.reviews footer strong { display: block; font-size: .92rem; font-weight: 600; }
.reviews footer div span { color: #6a6a6a; font-size: .85rem; }

.where { padding: 0 0 clamp(56px, 8vh, 96px); color: #222; }
.map { height: clamp(300px, 36vw, 460px); border-radius: 14px; overflow: hidden; background: #e6ece2; box-shadow: 0 1px 2px rgba(20,19,17,.04), 0 10px 24px -12px rgba(20,19,17,.18); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__note { margin: 12px 0 0 !important; font-size: .82rem !important; color: #6a6a6a !important; }

/* ---------- Booking card ---------- */
.book { font-family: var(--sc-font-text); color: #222; }
.book__card {
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.06);
}
.book__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.book__price { margin: 0; font-size: 1.05rem; }
.book__price strong { font-size: 1.4rem; font-weight: 600; }
.book__price span { color: #6a6a6a; }
.book__rating { margin: 0; font-size: .85rem; white-space: nowrap; }
.book__rating a { color: #6a6a6a; text-decoration: underline; text-underline-offset: 2px; }

.book__fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #6a6a6a; border-radius: 8px; overflow: hidden; }
.book__field { display: flex; flex-direction: column; padding: 10px 12px; position: relative; }
.book__field + .book__field:not(.book__field--wide) { border-left: 1px solid #6a6a6a; }
.book__field--wide { grid-column: 1 / -1; border-top: 1px solid #6a6a6a; }
.book__field span { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.book__field input, .book__field select { border: 0; padding: 0; margin: 0; background: transparent; font-size: .9rem; color: #222; width: 100%; appearance: none; -webkit-appearance: none; outline: none; }
.book__field select { padding-right: 24px; cursor: pointer; }
.book__field--wide::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid #222; border-bottom: 1.6px solid #222; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.book__reserve {
  width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 8px; cursor: pointer;
  color: #fff; font-size: 1rem; font-weight: 600;
  background: linear-gradient(90deg, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  transition: transform .15s, filter .2s;
}
.book__reserve:hover { filter: brightness(1.05); }
.book__reserve:active { transform: scale(.985); }
.book__note { text-align: center; font-size: .85rem; margin: 12px 0 0; color: #6a6a6a; }

.book__lines { margin: 20px 0 0; display: grid; gap: 12px; font-size: .95rem; }
.book__lines div { display: flex; justify-content: space-between; gap: 16px; }
.book__lines dt { color: #222; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.35); font-weight: 300; }
.book__lines dd { margin: 0; }
.book__total { padding-top: 14px; border-top: 1px solid rgba(0,0,0,.12); font-weight: 600; }
.book__total dt { text-decoration: none; font-weight: 600; }
.book__report { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-size: .9rem; color: #6a6a6a; text-decoration: underline; text-underline-offset: 3px; }
.book__report svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid rgba(0,0,0,.1); padding: 28px 0 40px; color: #6a6a6a; font-size: .85rem; }
.foot__grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot__brand { font-family: var(--sc-font-display); font-size: 1.3rem; color: var(--ink); }
.foot__copy { margin: 0; }
.foot__links { display: flex; gap: 18px; }
.foot__links a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .details__grid { grid-template-columns: 1fr; }
  .details__side { position: static; }
}
@media (max-width: 640px) {
  .amenities, .sleep, .reviews { grid-template-columns: 1fr; }
  .foot__grid { flex-direction: column; align-items: flex-start; }
}
