/* Modern House — site styles built on tokens.css + motion.css */

:root {
  --container-wide: 1240px;
  --gutter: 40px;
  --section-y: 112px;
  --tint: var(--palette-pale-orange-12); /* #f4f0e9 warm paper */
  --ink-soft: var(--palette-dark-gray-10);
}

@media (max-width: 1023px) { :root { --gutter: 28px; --section-y: 88px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; --section-y: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-ring); border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--color-foreground); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--text-label-2-size); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-muted); margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.78); }
.h-display {
  font-family: var(--font-display);
  font-weight: var(--text-display-weight);
  font-size: clamp(36px, 4.6vw, var(--text-display-size));
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.h-display--sm { font-size: clamp(32px, 3.4vw, 44px); }
.h-card { font-size: var(--text-heading-2-size); font-weight: var(--text-heading-2-weight); line-height: var(--text-heading-2-leading); margin-bottom: 8px; }
.lead { font-size: var(--text-heading-3-size); line-height: var(--text-heading-3-leading); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--color-muted); }
.center { text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px 0 24px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-secondary) var(--ease-default-2), color var(--duration-secondary) var(--ease-default-2), transform var(--duration-fast) var(--ease-out-strong);
}
.btn--sm { height: 44px; padding: 0 18px 0 22px; font-size: 14px; }
.btn--light { background: #fff; color: var(--color-foreground); }
.btn--dark { background: var(--color-foreground); color: #fff; }
.btn--accent { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform var(--duration-base) var(--ease-out-strong); }

.link-underline {
  font-weight: 600; font-size: 15px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--palette-pale-orange-12); }
  .btn--dark:hover { background: var(--palette-dark-gray-16); }
  .btn--accent:hover { background: var(--color-accent-hover); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
  .link-underline:hover { color: var(--color-accent-hover); }
  .link-underline--light:hover { color: var(--palette-pale-orange-15); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color var(--duration-six) var(--ease-default), color var(--duration-six) var(--ease-default), box-shadow var(--duration-six) var(--ease-default);
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto;
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.is-solid { background: rgba(255, 255, 255, 0.97); color: var(--color-foreground); box-shadow: var(--shadow-xl); }
.site-header.is-solid .btn--light { background: var(--color-foreground); color: #fff; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.01em; }
.wordmark__mark { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; opacity: 0.86; transition: opacity var(--duration-secondary) var(--ease-default); }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { opacity: 1; } }
@media (max-width: 1023px) { .site-nav { display: none; } }
@media (max-width: 479px) {
  .site-header__inner { height: 68px; }
  .wordmark { font-size: 19px; }
  .site-header .btn--sm { height: 40px; padding: 0 14px 0 16px; font-size: 13px; }
  .site-header .btn--sm .btn__arrow { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--palette-dark-gray-2); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.5) 0%, rgba(12, 14, 18, 0) 26%),
    linear-gradient(0deg, rgba(12, 14, 18, 0.82) 0%, rgba(12, 14, 18, 0.5) 34%, rgba(12, 14, 18, 0.12) 62%, rgba(12, 14, 18, 0) 80%);
}
.hero__content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end;
  padding-bottom: 72px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144; text-wrap: balance;
}
.hero__aside p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; }
.hero__sentinel { position: absolute; bottom: 80px; left: 0; width: 1px; height: 1px; }
@media (max-width: 899px) {
  .hero__content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-settle var(--duration-quaternary) var(--ease-custom-1) both; }
  .hero__in { animation: hero-in var(--duration-primary) var(--ease-custom-1) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Facts ---------- */
.facts { border-bottom: 1px solid var(--color-border); }
.facts__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts__list li { display: flex; flex-direction: column; gap: 2px; padding: 28px 0 28px 24px; border-left: 1px solid var(--color-border); }
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__value { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 1.2; }
.facts__star { font-size: 18px; margin-left: 4px; color: var(--color-accent); vertical-align: 6px; }
.facts__label { font-size: 14px; color: var(--color-muted); }
@media (max-width: 767px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li { padding: 20px 0 20px 16px; border-top: 1px solid var(--color-border); }
  .facts__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(-n+2) { border-top: 0; }
  .facts__list li:last-child { grid-column: 1 / -1; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.intro { display: grid; gap: 20px; max-width: 760px; margin-bottom: 56px; }
.intro .eyebrow { margin-bottom: -4px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
@media (max-width: 767px) { .section-head { flex-direction: column; align-items: start; } }

/* Rooms */
.rooms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.room { display: flex; flex-direction: column; gap: 20px; }
.room__media { border-radius: 24px; overflow: hidden; background: var(--color-surface); aspect-ratio: 3 / 2; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-quaternary) var(--ease-custom-1); }
.room__body { max-width: 52ch; }
.room__body p { color: var(--ink-soft); }
.room--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.room--wide .room__media { aspect-ratio: 16 / 10; }
.room--flip .room__media { order: 2; aspect-ratio: 4 / 3; }
.room--flip .room__media img { object-position: 50% 30%; }
@media (hover: hover) and (pointer: fine) { .room:hover .room__media img { transform: scale(1.03); } }
@media (max-width: 767px) {
  .rooms { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .room--wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .room--flip .room__media { order: 0; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.gallery__item { border-radius: 20px; overflow: hidden; background: var(--color-surface); }
.gallery__item--a { grid-column: span 2; grid-row: span 2; }
.gallery__item--b { grid-row: span 2; }
.gallery__item--c { grid-column: span 2; }
.gallery__btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -4px; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-quaternary) var(--ease-custom-1), filter var(--duration-tertiary) var(--ease-custom-1); }
@media (hover: hover) and (pointer: fine) { .gallery__btn:hover img { transform: scale(1.04); } }
@media (max-width: 899px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gallery__item--c { grid-column: span 1; }
}
@media (max-width: 479px) { .gallery { grid-auto-rows: 140px; gap: 8px; } }

/* Split / amenities */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.amenities li { padding: 18px 0; border-bottom: 1px solid var(--color-border); font-size: 16px; display: flex; align-items: center; gap: 14px; }
.amenities li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--color-foreground); flex: none; }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 479px) { .amenities { grid-template-columns: minmax(0, 1fr); } }

/* Reviews */
.score { text-align: center; margin-bottom: 48px; }
.score__value { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 300; }
.score__value > span:first-child { font-family: var(--font-display); font-size: clamp(64px, 9vw, 112px); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.score__of { font-size: 15px; color: var(--color-muted); font-family: var(--font-sans); }
.ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-bottom: 56px; }
.rating { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; font-size: 15px; }
.rating dt { color: var(--ink-soft); }
.rating dd { font-weight: 600; }
.rating::after {
  content: ""; grid-column: 1 / -1; height: 2px; border-radius: 2px;
  background: linear-gradient(var(--color-foreground), var(--color-foreground)) 0 0 / 100% 100% no-repeat, var(--color-surface);
  background-size: calc(var(--v) * 100%) 100%, auto;
}
@media (max-width: 767px) { .ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; } }

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.quote { background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 21px; line-height: 1.5; font-variation-settings: "opsz" 48; }
.quote figcaption { font-size: 14px; font-weight: 600; color: var(--color-muted); }
@media (max-width: 767px) { .quotes { grid-template-columns: minmax(0, 1fr); } .quote { padding: 24px; } }

/* Location */
.place { position: relative; overflow: hidden; border-radius: 28px; background: var(--palette-dark-gray-2); color: #fff; padding: clamp(32px, 6vw, 80px); }
.place__glow { position: absolute; inset: 0; background: var(--gradient-3); pointer-events: none; }
.place__body { position: relative; max-width: 640px; display: grid; gap: 20px; justify-items: start; }
.place__lead { color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.place__list { width: 100%; margin: 8px 0 16px; }
.place__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; }
.place__list li span:last-child { color: rgba(255, 255, 255, 0.72); text-align: right; }

/* Good to know */
.know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.know__card { background: #fff; border-radius: 24px; padding: 28px; }
.know__card ul { display: grid; gap: 10px; margin-top: 12px; }
.know__card li, .know__card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.know__card p { margin-top: 12px; }
@media (max-width: 899px) { .know { grid-template-columns: minmax(0, 1fr); } }

/* Host */
.host { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.host__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); }
.host .h-display { margin-bottom: 12px; }
@media (max-width: 599px) { .host { grid-template-columns: minmax(0, 1fr); gap: 24px; } .host__photo { width: 88px; height: 88px; } }

/* CTA */
.cta { padding-block: var(--section-y); background: var(--palette-dark-gray-2); color: #fff; }
.cta__inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.cta .lead { color: rgba(255, 255, 255, 0.78); }
.cta .btn { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--palette-dark-gray-2); color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 14, 18, 0.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1440px); max-height: 86dvh; width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  transition: background-color var(--duration-secondary) var(--ease-default);
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); } }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: lb-in var(--duration-base) var(--ease-out-strong); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; }
