/* =====================================================================
   Lukay Guest House — style.css
   Plain CSS, mobile-first. No frameworks.
   ===================================================================== */

/* -------------------------------------------------- Design tokens */
:root {
  /* Palette */
  --green-900: #14291C;
  --green-800: #1F3D2B;   /* deep palm */
  --green-600: #35624A;
  --green-500: #4A7C59;   /* mid green */
  --green-100: #DCE7DD;
  --sand-100:  #FBF7EF;
  --sand-200:  #F5EFE3;   /* warm cream */
  --sand-300:  #EBE2D0;
  --gold-500:  #D9A441;   /* sunset accent */
  --gold-600:  #C08F2E;
  --ink-900:   #23271F;   /* soft charcoal */
  --ink-700:   #45483F;
  --ink-500:   #6B6E63;
  --white:     #ffffff;

  /* Typography */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 1.25rem;
  --header-h: 66px;

  /* Radii & shadow */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(20, 41, 28, .08);
  --shadow:    0 12px 34px rgba(20, 41, 28, .12);
  --shadow-lg: 0 24px 60px rgba(20, 41, 28, .22);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--sand-100);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--green-900); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--green-800);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* -------------------------------------------------- Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--green-500);
  margin: 0 0 .6rem;
}

.section-title {
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  margin-bottom: .4rem;
}
.section-title em { font-style: italic; color: var(--green-600); }

.section-lead {
  font-size: 1.075rem;
  color: var(--ink-700);
  max-width: 60ch;
}

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--light .section-title,
.section-head--light .section-lead { color: var(--sand-100); }
.section-head--light .eyebrow { color: var(--gold-500); }

.section-cta { text-align: center; margin-top: 2.75rem; }

/* -------------------------------------------------- Icons */
.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
/* filled glyphs */
svg.icon > use[href="#icon-star"],
svg.icon > use[href="#icon-facebook"] { }
.icon--inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.16em; margin-right: .15em; }

/* star & facebook & pin look better filled */
.hero__rating .icon use,
.score-badge__stars .icon use { }

/* -------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--gold-500); --btn-fg: #3a2c07; }
.btn--accent:hover { --btn-bg: var(--gold-600); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--white);
  border-color: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--green-800);
  border-color: var(--green-500);
}
.btn--outline:hover { background: var(--green-800); --btn-fg: var(--white); border-color: var(--green-800); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, .82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--sand-300);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark { display: inline-flex; align-items: center; gap: .5rem; color: var(--green-900); }
.wordmark__logo { height: 46px; width: auto; display: block; }
.wordmark__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--sand-200);
}
.wordmark__icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; color: var(--green-900); }
.wordmark__sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green-500); margin-top: 2px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 1.4rem; align-items: center; }
.nav__list a {
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-700);
  padding: .35rem 0;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold-500);
  transition: width .22s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--green-800); }
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }

.header-cta { margin-left: .25rem; }

/* Book CTA that JS appends to the nav list — mobile-menu only */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: none; background: transparent;
  color: var(--green-800);
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle .icon { width: 28px; height: 28px; margin-inline: auto; }
.nav-toggle__close { display: none; }

/* -------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/hero-cabin.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,28,20,.55) 0%, rgba(15,28,20,.42) 42%, rgba(15,28,20,.8) 100%),
    linear-gradient(90deg, rgba(15,28,20,.85) 0%, rgba(15,28,20,.55) 42%, rgba(15,28,20,.06) 82%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 6rem; max-width: 760px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .24em;
  font-size: .78rem; font-weight: 700;
  color: var(--gold-500);
  margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  color: var(--white);
  margin: 0 0 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  letter-spacing: -.01em;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 46ch;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.9rem; }
.hero__rating {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .96rem;
  color: rgba(255,255,255,.95);
}
.hero__rating strong { font-size: 1.05rem; }
.hero__rating .icon { width: 20px; height: 20px; fill: var(--gold-500); stroke: var(--gold-500); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll .icon { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* -------------------------------------------------- About */
.about { background: var(--sand-200); }
.about__grid { display: grid; gap: 2.5rem; }
.about__media { position: relative; }
.about__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--gold-500); color: #3a2c07;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .04em;
  padding: .5rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.about__body p { color: var(--ink-700); }
.about__body strong { color: var(--green-800); }
.about__concept {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--green-700, var(--green-600));
  margin-bottom: 1.5rem;
}

.palm-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--green-500); }
.palm-divider::before, .palm-divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: .5;
}
.palm-divider .icon { width: 30px; height: 30px; }

/* -------------------------------------------------- Cabin */
.cabin { background: var(--sand-100); }
.cabin__grid { display: grid; gap: 2rem; align-items: start; }
.cabin__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
}

.facts { display: grid; gap: .95rem; margin-bottom: 1.75rem; }
.facts li { display: flex; gap: .8rem; align-items: flex-start; }
.facts .icon { color: var(--green-500); margin-top: 2px; }
.facts strong { color: var(--green-900); }
.facts span { color: var(--ink-700); }

.price-card {
  background: var(--green-800);
  color: var(--sand-100);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: .35rem;
}
.price-card__label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--green-100); }
.price-card__amount { font-family: var(--font-serif); font-size: 2.3rem; line-height: 1; color: var(--white); }
.price-card__alt { font-size: 1.15rem; color: var(--green-100); }
.price-card__per { color: var(--green-100); font-size: .95rem; margin-bottom: .8rem; }
.price-card .btn { margin-top: .3rem; }
.price-card__note { font-size: .8rem; color: rgba(255,255,255,.72); margin: .7rem 0 0; }

/* Good to know */
.good-to-know {
  margin-top: 3rem;
  background: var(--sand-200);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.good-to-know__title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.good-to-know__grid { display: grid; gap: 1.1rem; }
.good-to-know__grid li { display: flex; gap: .8rem; align-items: flex-start; }
.good-to-know__grid .icon { color: var(--gold-600); margin-top: 2px; }
.good-to-know__grid strong { display: block; color: var(--green-900); }
.good-to-know__grid span { color: var(--ink-500); font-size: .92rem; }

/* -------------------------------------------------- Amenities */
.amenities { background: var(--green-800); color: var(--sand-100); }
.amenities .section-title { color: var(--white); }
.amenities .eyebrow { color: var(--gold-500); }
.amenities .section-lead { color: var(--green-100); }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.amenity {
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.amenity:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); border-color: rgba(217,164,65,.5); }
.amenity .icon { color: var(--gold-500); width: 26px; height: 26px; }
.amenity span { font-size: .95rem; }

/* -------------------------------------------------- Gallery */
.gallery { background: var(--sand-100); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.gallery-item { margin: 0; }
.gallery-item__btn {
  display: block;
  width: 100%;
  padding: 0; border: none; cursor: pointer;
  background: var(--sand-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item__btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item--wide img { aspect-ratio: 3 / 2; }
.gallery-item__btn:hover img,
.gallery-item__btn:focus-visible img { transform: scale(1.06); }

/* -------------------------------------------------- Reviews */
.reviews { background: var(--sand-200); }
.reviews__layout { display: grid; gap: 1.6rem; }

.score-badge {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: .25rem;
  align-content: center;
}
.score-badge__num { font-family: var(--font-serif); font-size: 3.6rem; line-height: 1; }
.score-badge__label { font-size: 1.1rem; font-weight: 600; color: var(--gold-500); letter-spacing: .02em; }
.score-badge__stars { display: inline-flex; gap: .15rem; margin: .35rem 0; }
.score-badge__stars .icon { width: 20px; height: 20px; fill: var(--gold-500); stroke: var(--gold-500); }
.score-badge__src { font-size: .82rem; color: var(--green-100); }

.review-cards { display: grid; gap: 1rem; }
.review-card {
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.review-card p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--green-900);
  margin-bottom: .7rem;
  line-height: 1.5;
}
.review-card__by { font-size: .8rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; }

/* -------------------------------------------------- Location */
.location { background: var(--sand-100); }
.location .section-lead { display: flex; align-items: center; gap: .3rem; color: var(--ink-700); }
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  background: var(--sand-300);
}
.location__map iframe { display: block; width: 100%; }
.location__actions { margin-bottom: 2.75rem; }

.nearby {
  background: var(--sand-200);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.nearby__title { font-size: 1.5rem; margin-bottom: .25rem; }
.nearby__lead { color: var(--ink-500); margin-bottom: 1.5rem; }
.nearby__list { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.nearby__item {
  display: flex; align-items: center; gap: .9rem;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: 14px;
  padding: .7rem .85rem;
}
.nearby__time {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--sand-100);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1;
}
.nearby__time small {
  display: block;
  font-family: var(--font-sans);
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .82;
  margin-top: 2px;
}
.nearby__info strong { display: block; color: var(--green-900); }
.nearby__info span { color: var(--ink-500); font-size: .9rem; }
.nearby__foot { margin: 1.4rem 0 0; text-align: center; color: var(--ink-700); font-size: .95rem; }
.nearby__foot strong { color: var(--green-800); }

/* -------------------------------------------------- Book / Contact */
.book {
  background:
    linear-gradient(180deg, rgba(20,41,28,.84) 0%, rgba(20,41,28,.9) 100%),
    url("../images/palm-grove.jpg") center/cover fixed;
  color: var(--sand-100);
}
.book-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.book-channel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  background: var(--sand-100);
  color: var(--green-900);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.book-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--green-900); border-color: var(--gold-500); }
.book-channel .icon {
  grid-row: 1 / 3;
  width: 30px; height: 30px;
  padding: .55rem;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--sand-100);
}
.book-channel__title { font-weight: 700; font-size: 1.08rem; align-self: end; }
.book-channel__sub { color: var(--ink-500); font-size: .92rem; align-self: start; }
.book-channel--messenger .icon { background: #0866FF; }
.book-channel--booking .icon { background: #003B95; }
.book-channel--call .icon { background: var(--green-600); }
.book-channel--sms .icon { background: var(--gold-600); color: #3a2c07; }

.book-contact {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.75rem;
}
.book-contact p { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .35rem 0; color: var(--sand-100); }
.book-contact a { color: var(--gold-500); }
.book-contact a:hover { color: var(--white); }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--green-900); color: var(--green-100); padding: 2.75rem 0; }
.site-footer__inner { display: grid; gap: 1.5rem; text-align: center; }
.site-footer__brand { display: inline-flex; gap: .8rem; align-items: center; justify-content: center; }
.site-footer__badge { display: block; background: var(--sand-200); border-radius: 12px; padding: 6px; line-height: 0; box-shadow: var(--shadow-sm); }
.site-footer__badge img { height: 46px; width: auto; display: block; border-radius: 6px; }
.site-footer__name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin: 0; }
.site-footer__tag { font-size: .85rem; color: var(--green-100); margin: 0; }
.site-footer__contact { font-style: normal; line-height: 1.9; font-size: .92rem; color: var(--green-100); }
.site-footer__contact a { color: var(--gold-500); }
.site-footer__contact a:hover { color: var(--white); }
.site-footer__copy { font-size: .82rem; color: rgba(220,231,221,.6); margin: 0; }

/* -------------------------------------------------- Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(15, 25, 18, .92);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  grid-column: 2;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .75rem;
  max-height: 100%;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--sand-300);
}
.lightbox__caption { color: rgba(255,255,255,.85); font-size: .92rem; text-align: center; }
.lightbox__close,
.lightbox__nav {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: var(--white);
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { position: absolute; top: clamp(.75rem, 3vw, 1.5rem); right: clamp(.75rem, 3vw, 1.5rem); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

/* -------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------- Book Direct / booking */
.reserve { background: var(--sand-200); }
.booking { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }

/* calendar */
.cal {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal__title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--green-900); }
.cal__nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--sand-300); background: var(--white);
  color: var(--green-800); display: grid; place-items: center; cursor: pointer;
  transition: background .15s var(--ease);
}
.cal__nav:hover:not(:disabled) { background: var(--green-100); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__nav .icon { width: 20px; height: 20px; }
.cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); padding: .3rem 0; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__pad { aspect-ratio: 1; }
.cal__day {
  aspect-ratio: 1; border: none; background: transparent; border-radius: 10px;
  cursor: pointer; font: inherit; font-size: .95rem; color: var(--ink-900);
  display: grid; place-items: center; transition: background .15s var(--ease), color .15s var(--ease);
}
.cal__day:hover:not(:disabled) { background: var(--green-100); }
.cal__day.is-off { color: var(--ink-500); opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.cal__day.is-mid { background: var(--green-100); border-radius: 0; }
.cal__day.is-start, .cal__day.is-end { background: var(--green-800); color: #fff; font-weight: 600; }
.cal__day.is-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal__day.is-end { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal__legend { display: flex; gap: 1.25rem; margin: .8rem 0 0; font-size: .8rem; color: var(--ink-500); }
.cal__legend .key { display: inline-flex; align-items: center; gap: .35rem; }
.swatch { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.swatch--sel { background: var(--green-800); }
.swatch--off { background: var(--sand-300); border: 1px solid #cbb; }

/* form */
.booking__form {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: grid; gap: .85rem;
}
.booking__stay {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--sand-300); border-radius: 12px; padding: .8rem;
}
.staybox { display: grid; gap: 1px; }
.staybox__lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.staybox__val { font-family: var(--font-serif); color: var(--green-900); font-size: 1.02rem; }
.staybox small { color: var(--ink-500); font-size: .72rem; }
.staybox__arrow .icon { color: var(--green-500); width: 20px; height: 20px; }
.booking__row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.field { display: grid; gap: .3rem; }
.field__lbl { font-size: .82rem; font-weight: 600; color: var(--green-900); }
.field__lbl small { font-weight: 400; color: var(--ink-500); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .6rem .7rem;
  border: 1px solid var(--sand-300); border-radius: 10px; background: var(--white);
  color: var(--ink-900); width: 100%;
}
.field textarea { resize: vertical; min-height: 2.6rem; }
.booking__total {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--green-800); color: #fff; border-radius: 12px; padding: .85rem 1.1rem;
}
.booking__total-lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-100); }
.booking__total-sub { font-size: .85rem; color: var(--green-100); }
.booking__total-amt { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; }
.booking__err { background: #fdecea; color: #8a1c1c; border: 1px solid #f2c4c0; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin: 0; }
.booking__fineprint { font-size: .77rem; color: var(--ink-500); margin: .1rem 0 0; text-align: center; }

/* result */
.booking__result {
  background: var(--sand-100); border: 1px solid var(--sand-300);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.booking__result-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.booking__result-tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-500); color: #fff; flex: none; }
.booking__result-tick .icon { width: 20px; height: 20px; }
.booking__result-head h3 { margin: 0; font-size: 1.2rem; }
.booking__result-note { font-size: .92rem; color: var(--ink-700); margin: 0 0 .25rem; }
.booking__result-note strong { color: var(--green-800); }
textarea.booking__summary {
  display: block; width: 100%;
  background: var(--white); border: 1px dashed var(--sand-300); border-radius: 10px;
  padding: .85rem; font-family: var(--font-sans); font-size: .85rem; line-height: 1.55;
  color: var(--ink-700); margin: .75rem 0; resize: vertical;
}
.booking__steps { margin: .5rem 0 0; padding-left: 1.25rem; list-style: decimal; display: grid; gap: .4rem; font-size: .9rem; color: var(--ink-700); }
.booking__steps li strong { color: var(--green-800); }
.booking__result-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.booking__result-actions .btn { flex: 1 1 auto; }
.booking__hint { font-size: .82rem; color: var(--ink-500); margin: .7rem 0 0; }
.booking__restart { margin-top: .5rem; background: none; border: none; color: var(--green-600); cursor: pointer; font: inherit; font-weight: 600; padding: .3rem 0; }
.booking__restart:hover { color: var(--green-800); }

/* -------------------------------------------------- Floating chat button */
.chat-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 95;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #0866FF; color: #fff;
  padding: .75rem 1.05rem; border-radius: 999px;
  box-shadow: var(--shadow); font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.chat-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chat-fab .icon { width: 24px; height: 24px; stroke: #fff; }
@media (max-width: 520px) {
  .chat-fab__label { display: none; }
  .chat-fab { padding: .9rem; }
  .chat-fab .icon { width: 26px; height: 26px; }
}

/* =====================================================================
   RESPONSIVE  — mobile-first; below layers on larger screens
   ===================================================================== */

/* ≥ 600px */
@media (min-width: 600px) {
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
  .good-to-know__grid { grid-template-columns: repeat(2, 1fr); }
  .nearby__list { grid-template-columns: repeat(2, 1fr); }
  .book-channels { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}

/* ≥ 860px  (tablet / desktop nav) */
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .about__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .cabin__grid { grid-template-columns: 1.2fr .8fr; gap: 2.5rem; }
  .reviews__layout { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .location__map iframe { height: 460px; }
  .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ≥ 1040px */
@media (min-width: 1040px) {
  .amenity-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile nav (below 860px) ---------- */
@media (max-width: 859.98px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--sand-100);
    border-bottom: 1px solid var(--sand-300);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav__list li { border-bottom: 1px solid var(--sand-300); }
  .nav__list li:last-child { border-bottom: none; }
  .nav__list a { display: block; padding: .95rem .25rem; font-size: 1.05rem; }
  .nav__list a::after { display: none; }

  .nav__list::after {
    content: "";
    display: block;
  }

  body.nav-open { overflow: hidden; }

  /* Show a Book button inside the open mobile menu */
  .nav__list li.nav__cta { display: block; border: none; padding-top: .9rem; }
  .nav__list li.nav__cta a { text-align: center; }
}

/* Toggle icon swap when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* -------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll { animation: none; }
  .hero__bg { transform: none; }
  .btn:hover, .amenity:hover, .book-channel:hover, .gallery-item__btn:hover img { transform: none; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* -------------------------------------------------- Fixed-bg fallback on mobile */
@media (max-width: 859.98px) {
  .book { background-attachment: scroll; }
}
