/* ============================================================
   La Bastide Boonen — shared stylesheet
   A calm, Provençal palette: cream, olive, terracotta, ochre.
   ============================================================ */

:root {
  --cream:      #f8f4ec;
  --sand:       #efe7d8;
  --sand-deep:  #e3d8c3;
  --ink:        #2c2a25;
  --ink-soft:   #57534a;
  --olive:      #6b7150;
  --olive-deep: #4f553a;
  --terracotta: #b5623c;
  --gold:       #a9884f;
  --line:       #ded3bf;
  --white:      #ffffff;

  --maxw: 1180px;
  --radius: 3px;
  --shadow: 0 18px 40px -22px rgba(44, 42, 37, 0.45);

  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1.1em;
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--olive { background: var(--olive-deep); color: #f4f1e8; }
.section--olive h1,
.section--olive h2,
.section--olive h3 { color: #fff; }
.section--olive .eyebrow { color: #d6c9a6; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.divider { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.6em; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: transparent; color: #fff; }
.btn--terra { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--terra:hover { background: transparent; color: var(--terracotta); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
  margin-right: auto; /* pushes nav + language selector to the right */
}
.brand:hover { text-decoration: none; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.nav-cta { padding: 11px 22px; }
/* keep the dark CTA's label light & legible (overrides .nav-links a colour) */
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: var(--ink); }
/* compact flag language dropdown */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 5px; line-height: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 8px; cursor: pointer;
}
.lang__btn:hover { border-color: var(--gold); }
.lang__btn:focus-visible { outline: 2px solid var(--olive); }
.lang .flag { width: 22px; height: 15px; display: block; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.lang .flag svg { display: block; width: 100%; height: 100%; }
.lang__chev { font-size: .6rem; color: var(--ink-soft); line-height: 1; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; min-width: 168px; display: none; z-index: 60;
}
.lang__menu.open { display: block; }
.lang__opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: transparent; border: 0; padding: 9px 10px; cursor: pointer;
  font-family: var(--sans); font-size: .85rem; color: var(--ink); border-radius: 2px; text-align: left;
}
.lang__opt:hover { background: var(--sand); }
.lang__opt.is-active { background: var(--sand); font-weight: 500; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); line-height: 1;
}

/* ---------- announcement bar ---------- */
.notice-bar { background: var(--olive-deep); color: #f4f1e8; text-align: center; }
.notice-bar p { margin: 0; padding: 13px 0; font-size: .9rem; letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,14,.72) 0%, rgba(20,18,14,.15) 45%, rgba(20,18,14,.28) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(46px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .eyebrow { color: #e7dcbb; }
.hero__sub { font-size: 1.2rem; max-width: 48ch; color: #f2ede1; margin-bottom: 1.8em; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__note { margin: 22px 0 0; font-size: .88rem; letter-spacing: .03em; color: #e7dcbb; }
.hero--short { min-height: 52vh; }
.hero--short h1 { max-width: none; }

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact { background: var(--cream); padding: 30px 22px; text-align: center; }
.fact .num { font-family: var(--serif); font-size: 2.5rem; color: var(--olive-deep); line-height: 1; }
.fact .lbl { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); border-radius: var(--radius); }
.split--reverse .split__media { order: 2; }

/* ---------- amenity grid ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px 34px;
}
.amenity { display: flex; gap: 14px; align-items: flex-start; }
.amenity svg { flex: none; width: 26px; height: 26px; stroke: var(--olive); margin-top: 3px; }
.amenity h4 { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .04em; margin: 0 0 3px; text-transform: uppercase; }
.amenity p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform .6s ease;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 3/4; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,16,12,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.4rem; line-height: 1; padding: 14px; opacity: .8;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 22px; }
.lightbox__nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e6ddc9; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- things to do ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.section--olive .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.section--olive .card p { color: #e2ddce; }
.card .dist { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin: 6px 0 .4em; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.card__link { display: inline-block; margin-top: 16px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.card__price { margin: 16px 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--olive-deep); }
.card__link:hover { text-decoration: none; color: var(--olive-deep); }
.section--olive .card__link { color: #e7c9a0; }
.section--olive .card__link:hover { color: #fff; }
.cards-subhead { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; text-align: center; color: var(--olive-deep); margin: 56px 0 26px; }
.cards-subhead:first-of-type { margin-top: 50px; }

/* ---------- pricing ---------- */
.rate-table { width: 100%; border-collapse: collapse; background: var(--cream); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.rate-table th, .rate-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.rate-table thead th { background: var(--olive-deep); color: #f4f1e8; font-family: var(--sans); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table .season { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.rate-table .season span { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }
.rate-table .price { font-family: var(--serif); font-size: 1.5rem; color: var(--terracotta); white-space: nowrap; }
.rate-table .peak { background: rgba(169,136,79,.08); }
.rate-table .season .tag { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 3px 8px; border-radius: 2px; vertical-align: middle; }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.note-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.note-item dt { color: var(--ink-soft); }
.note-item dd { margin: 0; font-weight: 400; text-align: right; }

/* ---------- forms ---------- */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 1rem; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--olive); border-color: var(--olive); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.form-msg { display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .95rem; }
.form-msg.ok { display: block; background: #eef1e4; border: 1px solid var(--olive); color: var(--olive-deep); }
.estimate { background: var(--sand); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; }
.estimate .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; font-size: .95rem; color: var(--ink-soft); }
.estimate .row > span:first-child { flex: 1; }
.estimate .row > span:last-child { white-space: nowrap; }
.estimate .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; color: var(--ink); }
.estimate .row.total span:last-child { font-family: var(--serif); color: var(--terracotta); font-size: 1.5rem; }
.estimate__onsite { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.estimate__onsite-title { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.estimate__onsite .row { color: var(--ink); align-items: flex-start; }
.estimate__onsite .row small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }

/* ---------- contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; gap: 14px; align-items: center; }
.contact-list .k { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: #cfc39c; min-width: 90px; }

.site-footer { background: var(--ink); color: #cbc6bb; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbc6bb; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; font-size: .8rem; color: #8f897c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- availability calendar ---------- */
.cal { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal__head-label { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.cal__nav {
  width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .2s, color .2s;
}
.cal__nav:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); }
.cal__month-title { font-family: var(--serif); font-size: 1.25rem; text-align: center; margin-bottom: 12px; color: var(--olive-deep); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 6px; }
.cal__day {
  aspect-ratio: 1 / 1; border: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: .9rem; cursor: pointer; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s;
  position: relative;
}
.cal__day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--olive); z-index: 1; }
.cal__day.season-low  { background: #f2efe6; }
.cal__day.season-mid  { background: #e9ecdf; }
.cal__day.season-high { background: #f3e7d8; }
.cal__day.season-peak { background: #f3ddd0; }
.cal__day.is-past { background: transparent; color: #c3bdaf; cursor: default; }
.cal__day.is-booked {
  background: repeating-linear-gradient(-45deg, #e6ddcd, #e6ddcd 4px, #ded3bf 4px, #ded3bf 8px);
  color: #9a9184; cursor: not-allowed; text-decoration: line-through;
}
.cal__day.is-locked { opacity: .4; cursor: not-allowed; }
.cal__day.is-locked:hover { box-shadow: none; }
.cal__day.is-sel { background: var(--olive); color: #fff; opacity: 1; }
.cal__day.is-start, .cal__day.is-end { background: var(--olive-deep); color: #fff; box-shadow: inset 0 0 0 2px var(--gold); z-index: 2; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 24px; font-size: .78rem; color: var(--ink-soft); }
.cal__key { display: inline-flex; align-items: center; gap: 8px; }
.cal__key .sw { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.sw.season-low  { background: #f2efe6; border: 1px solid var(--line); }
.sw.season-mid  { background: #e9ecdf; }
.sw.season-high { background: #f3e7d8; }
.sw.season-peak { background: #f3ddd0; }
.sw.sw--booked  { background: repeating-linear-gradient(-45deg, #e6ddcd, #e6ddcd 3px, #ded3bf 3px, #ded3bf 6px); }

@media (max-width: 620px) {
  .cal__months { grid-template-columns: 1fr; }
}

/* ---------- misc ---------- */
.badge-note { background: rgba(107,113,80,.1); border-left: 3px solid var(--olive); padding: 16px 20px; font-size: .9rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 28px 22px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  /* language selector stays visible in the top bar on mobile */
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tall { grid-row: span 1; }
  .gallery .tall img { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; gap: 10px; }
  .brand { font-size: 1.15rem; }
  /* rate table: keep 3 columns but tighten so it fits small screens */
  .rate-table th, .rate-table td { padding: 13px 12px; }
  .rate-table thead th { font-size: .6rem; letter-spacing: .06em; }
  .rate-table .season { font-size: 1.1rem; }
  .rate-table .season span { font-size: .68rem; }
  .rate-table .price { font-size: 1.15rem; }
  .rate-table .peak .season::after { display: block; margin: 6px 0 0; }
  /* stack the two-up contact block */
  .contact-grid { gap: 30px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero { min-height: 78vh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .nav-cta { width: 100%; text-align: center; }
  .btn { padding: 14px 26px; }
}
