/* Villa Valsol — theme for the scroll-world engine + the page below the film. */
:root, .sw-root {
  --sw-bg: #F6F1E9;
  --sw-ink: #1E2A2C;
  --sw-ink-soft: #5E6A66;
  --sw-accent: #2C8C99;
  --sw-font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sw-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --sand: #F6F1E9;
  --sand-2: #EEE5D8;
  --stone: #D9CBB6;
  --ink: #1E2A2C;
  --ink-soft: #5E6A66;
  --pool: #1F9CB0;
  --terra: #B5703F;
  --radius: 18px;
}

html { scroll-behavior: auto; }
body { font-family: var(--sw-font-body); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
body.lb-open { overflow: hidden; }

/* ---- engine chrome tweaks ---- */
.sw-brand__mark { width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F4C96B, #D9893B 70%); box-shadow: 0 4px 14px rgba(217, 137, 59, .45); }
.sw-brand__name { font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.sw-copy__title { font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .98; }
.sw-copy__eyebrow { font-family: var(--sw-font-body); font-weight: 600; font-size: .74rem; letter-spacing: .18em; }
.sw-copy__body { font-size: clamp(1rem, 1.2vw, 1.1rem); }
.sw-topcta { background: var(--ink); }
.sw-particles { display: none; }
.sw-topbar { transition: background .35s, box-shadow .35s; }
.past-film .sw-topbar { background: color-mix(in srgb, var(--sand) 88%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
.sw-route, .sw-hint, .sw-copylayer { transition: opacity .35s; }
.sw-root.is-past .sw-route, .sw-root.is-past .sw-hint, .sw-root.is-past .sw-copylayer { opacity: 0 !important; pointer-events: none; }

.lang-toggle { font: 600 .8rem/1 var(--sw-font-body); letter-spacing: .08em; color: var(--ink); text-decoration: none;
  padding: 10px 13px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, #fff 55%, transparent); backdrop-filter: blur(8px); }
.sw-topbar .lang-toggle { margin-left: auto; margin-right: -6px; }
.lang-toggle:hover { border-color: var(--ink); }

/* ---- page below the film ---- */
.site { position: relative; z-index: 45; background: var(--sand);
  box-shadow: 0 -40px 80px -20px rgba(30, 42, 44, .18); border-radius: 28px 28px 0 0; }
.wrap { width: min(1180px, 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.kicker { font: 600 .74rem/1.2 var(--sw-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--pool); margin: 0 0 16px; }
.display { font-family: var(--sw-font-display); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02;
  letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.65; color: var(--ink-soft); max-width: 62ch; margin: 22px 0 0; }
.note { color: var(--ink-soft); margin: 14px 0 0; max-width: 60ch; line-height: 1.6; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

.intro { padding-top: clamp(80px, 11vw, 140px); }
.intro .display { max-width: 20ch; }
.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.rating__score { font: 600 2rem/1 var(--sw-font-display); }
.rating__stars { color: #D9893B; letter-spacing: .12em; }
.rating__meta { color: var(--ink-soft); font-size: .95rem; }

.facts { padding: 0 0 clamp(40px, 6vw, 80px); }
.facts__grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.fact { padding: 26px 8px; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--stone); padding-left: 22px; }
.fact b { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--sw-font-display); font-variant-numeric: lining-nums; }
.fact span { font-size: .88rem; color: var(--ink-soft); }

.gallery { background: var(--sand-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__item { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; background: var(--stone); }
.gallery__item.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; }

.spaces__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.space img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.space h3 { font: 600 1.6rem/1.1 var(--sw-font-display); margin: 20px 0 8px; }
.space p { color: var(--ink-soft); line-height: 1.6; margin: 0; font-size: .97rem; }

.amenities { background: #fff; }
.amenities__list { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 40px; }
.amenities__list li { break-inside: avoid; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--sand-2); position: relative; line-height: 1.45; }
.amenities__list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--pool); }

.reviews__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.big { font-size: 1.5em; }
.host { margin-top: 22px; color: var(--ink); line-height: 1.6; max-width: 52ch; }
.scores { margin: 0; display: grid; gap: 16px; }
.scores div { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 16px; }
.scores dt { color: var(--ink-soft); font-size: .95rem; }
.scores dd { margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scores i { height: 4px; border-radius: 4px; background: var(--sand-2); position: relative; overflow: hidden; }
.scores i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v)); background: var(--ink); }

.location { background: var(--sand-2); }
.location__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.location .btn { margin-top: 30px; }
.distances { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.distances li { background: var(--sand); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.distances b { font: 600 1.7rem/1.1 var(--sw-font-display); }
.distances span { color: var(--ink-soft); }

.book { background: var(--ink); color: var(--sand); text-align: center; }
.book .lead { color: color-mix(in srgb, var(--sand) 75%, transparent); margin-inline: auto; }
.book__inner .display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.book__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.book .btn--ghost { color: var(--sand); border-color: color-mix(in srgb, var(--sand) 35%, transparent); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem; padding: 15px 28px; border-radius: 999px;
  transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #F4C96B; color: var(--ink); }
.btn--primary:hover { background: #F7D78A; }
.btn--ghost { color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); }

.footer { background: var(--ink); color: color-mix(in srgb, var(--sand) 60%, transparent); padding: 0 0 40px; font-size: .85rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
  border-top: 1px solid color-mix(in srgb, var(--sand) 14%, transparent); padding-top: 26px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18, 24, 25, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .sw-hint { display: none; }
}
@media (max-width: 960px) {
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: 0; padding-left: 8px; }
  .fact:nth-child(n + 4) { border-top: 1px solid var(--stone); }
  .spaces__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid, .location__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { border-left: 0; padding-left: 8px; }
  .fact:nth-child(4) { border-left: 1px solid var(--stone); padding-left: 22px; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--stone); }
  .spaces__grid { grid-template-columns: 1fr; }
  .space img { aspect-ratio: 3 / 2; }
  .scores div { grid-template-columns: 8em 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
  .sw-brand__name { font-size: 1.2rem; }
  .sw-topcta { padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item img, .btn { transition: none; }
}
