/* Chalets Gardenia – landing page */

:root {
  --bg: #f7f4ee;
  --bg-alt: #fdfcf9;
  --card: #fbf9f4;
  --ink: #1e241f;
  --text: #3a3f38;
  --muted: #5b5f57;
  --muted-2: #6b6e66;
  --green: #0d6b37;
  --green-dark: #0a4f29;
  --green-soft: #e4ecdf;
  --gold: #b3aa1e;
  --gold-light: #d8d06a;
  --forest: #16301f;
  --cream: #f4f1e8;
  --cream-muted: #c3c8bd;
  --cream-text: #d5d8cf;
  --line: #e3dccf;
  --line-2: #d9d1c2;
  --sand: #e6dfd3;
  --chip: #ebe5d9;
  --footer: #efe9df;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

img { max-width: 100%; }

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: block;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: 3px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #efe9df; color: var(--ink); }

.btn--ghost-light { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; padding: 14px 26px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--cream { background: var(--cream); color: var(--forest); }
.btn--cream:hover { background: #fff; color: var(--forest); }

.btn--outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 14px 26px;
}
.btn--outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 46px; width: auto; display: block; }

.nav { display: none; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--ink); }
@media (min-width: 980px) { .nav { display: flex; } }

.site-header__actions { display: flex; align-items: center; gap: 18px; }

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 3px;
  color: var(--muted-2);
  text-decoration: none;
}
.lang__item:hover { background: var(--chip); color: var(--ink); text-decoration: none; }
.lang__item[aria-current="true"] { background: var(--chip); color: var(--ink); }
.lang__item img {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.btn--book {
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
}
.btn--book:hover { background: var(--green-dark); color: #fff; }

@media (max-width: 599px) {
  .site-header__inner { gap: 12px; }
  .site-header__logo img { height: 38px; }
  .site-header__actions { gap: 10px; }
  .lang__item { padding: 7px 8px; }
  .lang__item img { display: none; }
  .btn--book { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 379px) {
  .btn--book__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: min(88vh, 860px);
  min-height: 520px;
  overflow: hidden;
  background: #3a2a1c;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 18, 14, 0.78) 0%, rgba(14, 18, 14, 0.35) 38%, rgba(14, 18, 14, 0) 65%);
}
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  color: #fff;
}
.hero__kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 640px;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Facts ---------- */

.facts { background: var(--bg-alt); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.fact { padding: 32px 0; display: flex; align-items: center; gap: 18px; }
.fact .ico { color: var(--green); }
.fact__body { display: flex; flex-direction: column; gap: 6px; }
.fact__value { font-family: var(--serif); font-size: 40px; line-height: 1; }
.fact__label { font-size: 15px; color: var(--muted); }

/* ---------- Sections ---------- */

.section {
  --section-bg: var(--bg);
  scroll-margin-top: 72px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background: var(--section-bg);
  /* full-bleed background, content stays in the 1320px column */
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
  border-top: 1px solid var(--line);
}
.section--alt { --section-bg: var(--bg-alt); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.prose {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}
.prose + .prose { margin-top: 20px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
}

/* ---------- Chalet ---------- */

.chalet__intro { align-items: center; }
.chalet__intro .h2 { margin-bottom: 28px; }

.amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.amenity__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.floors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(72px, 9vw, 120px);
}
.floor { display: flex; flex-direction: column; gap: 24px; }
.media { overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--6x5 { aspect-ratio: 6 / 5; }
.floor__body { display: flex; gap: 20px; align-items: baseline; }
.floor__num { font-family: var(--serif); font-size: 18px; color: var(--green); min-width: 28px; }
.floor__title { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.floor__text { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0; text-wrap: pretty; }

/* ---------- Gallery ---------- */

.tour-link { font-size: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: row dense;
  gap: 12px;
}
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px)  { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery__item {
  padding: 0;
  border: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--sand);
  display: block;
}
.gallery__item[hidden] { display: none; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Fallback spans when JS is off (JS sets exact spans per column count). */
@media (min-width: 640px) {
  .gallery__item[data-shape="wide"] { grid-column: span 2; grid-row: span 2; }
  .gallery__item[data-shape="tall"] { grid-row: span 2; }
}

.gallery__more { display: flex; justify-content: center; margin-top: 32px; }
.gallery__more[hidden] { display: none; }

/* ---------- Pricing ---------- */

.pricing { scroll-margin-top: 72px; background: var(--forest); color: var(--cream); }
.pricing__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) var(--gutter);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
}
.pricing .eyebrow { color: var(--gold-light); }
.pricing .h2 { margin-bottom: 24px; }
.pricing__text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cream-text);
  margin: 0 0 32px;
  max-width: 460px;
  text-wrap: pretty;
}
.pricing__cta { display: flex; }

.rates { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rate {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid rgba(244, 241, 232, 0.25);
}
.rate:last-child { border-bottom: 1px solid rgba(244, 241, 232, 0.25); }
.rate__season { display: flex; gap: 16px; align-items: flex-start; }
.rate__season .ico { color: var(--gold-light); margin-top: 2px; }
.rate__name { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.rate__dates { font-size: 16px; color: var(--cream-muted); }
.rate__price { display: flex; align-items: baseline; gap: 8px; }
.rate__amount { font-family: var(--serif); font-size: 64px; line-height: 1; }
.rate__unit { font-size: 16px; color: var(--cream-muted); }

/* ---------- Booking ---------- */

.booking__alt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 380px;
}
.booking__alt a { font-weight: 600; }

.booking__frame { border: 1px solid var(--line-2); background: #fff; }
.booking__engine { min-height: 560px; }
/* Placeholder until the Previo widget renders into the container */
.booking__engine:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #efe9df 0 12px, #f4efe6 12px 24px);
}
.booking__engine:empty::before {
  content: attr(data-loading);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.booking__noscript { margin: 0; padding: 24px; font-size: 16px; line-height: 1.6; color: var(--text); }

/* ---------- Location ---------- */

.location__intro { align-items: end; }
.location__intro .h2 { margin-bottom: 28px; }

.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 88px);
}
.season { border-top: 2px solid var(--ink); padding-top: 24px; }
.season__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.season__title .ico { color: var(--green); }
.season__text { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0; text-wrap: pretty; }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.contact__info { display: flex; flex-direction: column; gap: 32px; }

.contact__list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 32px;
  row-gap: 18px;
  font-size: 17px;
  line-height: 1.5;
}
.contact__list dt { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.contact__list dt .ico { color: var(--green); }
.contact__list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .contact__list { column-gap: 16px; font-size: 16px; } }

.contact__map {
  min-height: 380px;
  border: 1px solid var(--line-2);
  background: var(--sand);
  overflow: hidden;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.map-consent {
  height: 100%;
  min-height: 380px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: var(--green);
}
.map-consent__text { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--text); }
.map-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }

.btn--text { color: var(--green); padding: 14px 8px; }
.btn--text:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-2); background: var(--footer); }
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__inner img { height: 38px; width: auto; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--muted); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 13, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: var(--cream-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}
@media (max-width: 639px) {
  .lightbox { padding: 64px 12px; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .lightbox__counter { bottom: 22px; }
}
body.lb-open { overflow: hidden; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.legal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.legal .legal__meta { font-size: 15px; color: var(--muted); margin: 0 0 40px; }
.legal .legal__note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 40px;
}
.legal__toc {
  margin: 0 0 48px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.legal .legal__toc h2 { font-family: var(--sans); line-height: 1.4; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.legal .legal__toc ol { margin: 0; padding-left: 20px; columns: 2 240px; column-gap: 32px; font-size: 15px; line-height: 1.8; }
.legal .legal__toc li { margin: 0; font-size: 15px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 48px 0 16px;
  scroll-margin-top: 88px;
}
.legal h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li, .legal dd, .legal td, .legal th { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li > ul, .legal li > ol { margin-top: 8px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 14px; }
.legal dt { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal dd { margin: 0; }
.legal__table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 640px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
@media (max-width: 599px) {
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}
.legal .legal__back { margin: 0 0 32px; font-size: 15px; font-weight: 600; }
.legal__back a { display: inline-flex; align-items: center; gap: 8px; }
.legal td, .legal th { font-size: 15px; line-height: 1.6; }
