/* =========================================================
   וילת כנען — landing page
   Palette is drawn from Eilat itself: granite (the red-brown
   Eilat mountains), ember (sunset over the gulf), rust,
   linen and sand (the desert), and dusk (the pink the Edom
   mountains turn just before sunset).
   ========================================================= */

@property --wl {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

:root {
  --granite: #3B1E17;     /* Eilat granite at dusk */
  --granite-2: #52291E;
  --ember: #F28C38;       /* sunset over the gulf */
  --rust: #A8431F;
  --linen: #F6ECDF;       /* sun-bleached desert */
  --sand: #EBD8BF;
  --dusk: #E9A48A;
  --ink: #2A1713;
  --ink-soft: #6E544A;
  --line: rgba(59, 30, 23, .16);

  --display: "Karantina", "IBM Plex Sans Hebrew", sans-serif;
  --body: "IBM Plex Sans Hebrew", system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 100;
  padding: 10px 16px; background: var(--granite); color: #fff;
  border-radius: 8px; transform: translateY(-150%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.h-display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.9rem, 5vw, 4.6rem);
  line-height: .86;
  letter-spacing: -.005em;
  color: var(--granite);
  margin: 0 0 .35em;
}
.h-display--light { color: #fff; }

.h-feature {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .9;
  color: var(--granite);
  margin: 0 0 .3em;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--granite);
  --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px;
  padding: 0 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ember { --bg: var(--ember); --fg: var(--granite); }
.btn--ember:hover { --bg: #F7A55E; }

.btn--ghost {
  --bg: transparent; --fg: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { --bg: rgba(255,255,255,.12); }

.btn--glass {
  --bg: rgba(255,255,255,.14); --fg: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--small { min-height: 42px; padding: 0 1.2em; font-size: .95rem; }
.btn--block { width: 100%; }

.wa-ico { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  color: #fff;
  transition: background-color .4s, color .4s, padding .4s, box-shadow .4s;
}
.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  margin-inline-end: auto;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none;
  font-size: .98rem;
  opacity: .88;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav.is-solid {
  background: rgba(246, 236, 223, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--granite);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .btn--glass {
  --bg: var(--granite); --fg: #fff; border-color: var(--granite);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--granite);
}
.hero__media {
  position: absolute; inset: -6% 0 0 0; z-index: -2;
  will-change: transform;
}
.hero__media picture { display: contents; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%;
  transform: scale(1.14);
  animation: heroZoom 3.2s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(36, 15, 9, .78) 0%, rgba(36, 15, 9, .32) 36%, rgba(36, 15, 9, 0) 58%),
    linear-gradient(to bottom, rgba(36, 15, 9, .45) 0%, rgba(36, 15, 9, 0) 22%);
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
}

.hero__place {
  margin: 0 0 .4rem;
  font-size: 1rem;
  letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(36,15,9,.6);
  opacity: 0;
  animation: rise .9s var(--ease) .7s forwards;
}

/* The title sits on a waterline: the lower part is "under water",
   tinted and gently refracted. On load the water rises into place. */
.title {
  --wl: 100%;
  position: relative;
  display: grid;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 12.5rem);
  line-height: .9;
  letter-spacing: -.01em;
  white-space: nowrap;
  /* trim the line box to the letters so the waterline % maps onto the glyphs */
  text-box: trim-both cap alphabetic;
  padding-block: .04em .02em;
  animation: flood 2.4s var(--ease) .35s forwards, bob 7s ease-in-out 2.8s infinite;
}
.title > span { grid-area: 1 / 1; }
.title__dry {
  color: #fff;
  clip-path: inset(-20% -5% calc(100% - var(--wl)) -5%);
  text-shadow: 0 2px 30px rgba(0,0,0,.18);
}
.title__wet {
  color: #F28C38;
  background: linear-gradient(to bottom, #FFD596 42%, #F28C38 72%, #B8461E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(var(--wl) -5% -20% -5%);
  filter: url(#water);
}
/* The line shares the exact same box as the two text layers (same grid
   cell), and is drawn at var(--wl) inside it, so it moves in lockstep
   with the edge of the orange. */
.title__line {
  align-self: stretch;
  margin-inline: -2%;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent calc(var(--wl) - 1.5px),
    rgba(255,255,255,.9) calc(var(--wl) - 1.5px),
    rgba(255,255,255,.9) calc(var(--wl) + 1px),
    transparent calc(var(--wl) + 1px));
  -webkit-mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent);
  opacity: 0;
  animation: fadeIn .5s ease .35s forwards;
}

@keyframes flood {
  from { --wl: 100%; }
  to   { --wl: 64%; }
}
@keyframes bob {
  0%, 100% { --wl: 64%; }
  50%      { --wl: 67%; }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: clamp(20px, 3vw, 36px);
  opacity: 0;
  animation: rise 1s var(--ease) .9s forwards;
}
.hero__lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  font-weight: 300;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__cue {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px;
  opacity: 0; animation: fadeIn 1s ease 2.4s forwards;
  display: none;
}
.hero__cue span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #fff;
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Intro ---------- */

.intro { padding-block: var(--section); }
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.intro__lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--granite);
  max-width: 32ch;
  margin: 0 0 1em;
}
.intro__text > p:not(.intro__lead) { color: var(--ink-soft); max-width: 46ch; margin: 0; }

.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.facts li {
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.facts svg {
  flex: none; width: 26px; height: 26px;
  fill: none; stroke: var(--rust); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.intro__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
  padding-bottom: var(--section);
}
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--gutter);
}
.feature__media {
  grid-column: 1 / span 7;
  grid-row: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.04); }

.feature__text {
  grid-column: 9 / span 4;
  grid-row: 1;
}
.feature__text p { margin: 0; color: var(--ink-soft); max-width: 36ch; font-size: 1.1rem; }

.feature--flip .feature__media { grid-column: 6 / span 7; }
.feature--flip .feature__text { grid-column: 1 / span 4; }

/* Image reveal: a curtain lifting, like a blind rolling up.
   Only applied when JS confirms motion is OK. */
.js-motion .reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js-motion .reveal img { transform: scale(1.15); transition: transform 1.6s var(--ease); }
.js-motion .reveal.is-in { clip-path: inset(0 0 0 0); }
.js-motion .reveal.is-in img { transform: scale(1); }
.js-motion .reveal.is-in:hover img { transform: scale(1.04); }

/* ---------- Rooms ---------- */

.rooms {
  background: var(--granite);
  color: #fff;
  padding-block: var(--section);
  overflow: hidden;
}
.rooms .h-display { color: #fff; }
.rooms__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 40px;
}
.rooms__head .h-display { grid-column: 1 / -1; }
.rooms__head p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.75); }
.rooms__arrows { display: flex; gap: 10px; }

.arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
  cursor: pointer; transition: background-color .25s, border-color .25s;
}
.arrow:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.arrow svg, .lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rooms__track {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 25vw, 320px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
  cursor: grab;
}
.rooms__track::-webkit-scrollbar { display: none; }
.rooms__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.arrow:focus-visible, .gal__track:focus-visible, .rooms__track:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.rooms__track.is-dragging img { pointer-events: none; }

.room { scroll-snap-align: start; }
.room img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px; margin-bottom: 18px;
  cursor: zoom-in;
  user-select: none; -webkit-user-drag: none;
}
.room h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.9rem; line-height: 1; margin: 0 0 4px;
}
.room p { margin: 0; color: rgba(255,255,255,.7); }

/* ---------- Amenities ---------- */

.amenities { padding-block: var(--section); }
.amenities__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.amenities__extra { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.amenities__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.amenities__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.amenities__list svg {
  flex: none; width: 24px; height: 24px;
  fill: none; stroke: var(--rust); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Gallery ---------- */

.gallery { padding-bottom: var(--section); }
.gallery__head, .gallery .wrap:last-child { max-width: calc(min(880px, (100svh - 290px) * 4 / 3) + 2 * var(--gutter)); }

.gal__count {
  flex: none; margin: 0; color: var(--ink-soft); font-size: .95rem;
  direction: ltr; font-variant-numeric: tabular-nums;
}
.gal__stage { position: relative; }
.gal__track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 8px; background: var(--sand);
  cursor: grab;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gal__track.is-dragging img { pointer-events: none; }
.gal__slide { scroll-snap-align: start; }
.gal__slide img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
  user-select: none; -webkit-user-drag: none;
}
.gal__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  color: var(--granite); background: rgba(246,236,223,.88);
  border-color: transparent; box-shadow: 0 4px 18px rgba(42,23,19,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gal__btn:hover { background: var(--linen); border-color: transparent; }
.gal__btn--prev { right: 16px; }
.gal__btn--next { left: 16px; }
.gal__meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 14px; color: var(--ink-soft);
}
.gal__cap { margin: 0; min-height: 1.7em; }
.gal__thumbs {
  display: flex; gap: 8px; margin-top: 14px;
  overflow-x: auto; scrollbar-width: none; padding: 5px;
}
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs button {
  flex: none; width: 76px; aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: var(--sand); opacity: .55;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .25s, outline-color .25s;
}
.gal__thumbs button:hover { opacity: .85; }
.gal__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--ember); }
.gal__thumbs button:focus-visible { outline-color: var(--granite); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* buttons that can't go further fade out */
.arrow:disabled { opacity: .3; cursor: default; }
.arrow:disabled:hover { background: transparent; }
.gal__btn:disabled { opacity: 0; pointer-events: none; }

/* ---------- Location ---------- */

.location {
  background: var(--sand);
  padding-block: var(--section);
}
.location__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.location__addr {
  font-style: normal;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  color: var(--granite);
  font-weight: 500;
  margin-bottom: 28px;
}
.location__near { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.location__near li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.location__near li span:last-child { color: var(--ink-soft); }
.link {
  color: var(--granite); font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--rust); }

.location__map {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #dcc6a8;
}
.location__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.3) sepia(.28) contrast(1.02);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: var(--section);
  background: var(--granite);
  overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(40, 17, 10, .92) 0%, rgba(40, 17, 10, .78) 45%, rgba(40, 17, 10, .55) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.contact__text p { max-width: 40ch; color: rgba(255,255,255,.82); font-size: 1.15rem; margin: 0 0 32px; }
.contact__direct { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.contact__direct a {
  display: inline-block; padding-block: 11px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,255,255,.45);
  font-weight: 500;
}
.contact__direct a:hover { text-decoration-color: var(--ember); color: var(--ember); }
.contact__direct a[data-phone] { direction: ltr; unicode-bidi: isolate; }

.form {
  background: var(--linen);
  color: var(--ink);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.field em { font-style: normal; font-weight: 400; opacity: .75; }

.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(242, 140, 56, .25);
}
.field input.is-invalid { border-color: #B5381F; }

.stepper {
  display: grid; grid-template-columns: 48px 1fr 48px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.stepper button {
  border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--granite);
  transition: background-color .2s;
}
.stepper button:hover { background: rgba(242, 140, 56, .14); }
.stepper input {
  border: 0; border-radius: 0; text-align: center; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form__error { color: #9E2F1E; margin: 0 0 14px; font-size: .95rem; }
.form .btn--ember { --bg: var(--granite); --fg: #fff; }
.form .btn--ember:hover { --bg: var(--granite-2); }

/* ---------- Footer ---------- */

.footer { background: #2A140F; color: rgba(255,255,255,.65); padding-block: 28px; font-size: .95rem; }
.footer__inner { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: center; }
.footer__brand { font-family: var(--display); font-size: 1.7rem; color: #fff; margin-inline-end: auto; line-height: 1; }

/* ---------- Floating WhatsApp ---------- */

.fab {
  position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  display: none; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab.is-visible { transform: scale(1); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #1C0C08;
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img {
  max-width: min(92vw, 1500px); max-height: 82vh;
  object-fit: contain; border-radius: 4px;
  animation: lbIn .45s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  transition: background-color .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 20px; left: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { right: 20px; }
.lightbox__nav--next { left: 20px; }
html:has(dialog[open]) { overflow: hidden; }
.lightbox__cap { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1em; }
.lightbox__cap span { opacity: .6; direction: ltr; unicode-bidi: isolate; }
.lightbox__cap { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline: 0; text-align: center; margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
}

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .intro__grid, .amenities__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature__media, .feature--flip .feature__media { grid-column: 1; grid-row: 1; }
  .feature__text, .feature--flip .feature__text { grid-column: 1; grid-row: 2; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav { padding: 14px var(--gutter); gap: 12px; }
  .nav.is-solid { padding-block: 10px; }
  .nav__brand { font-size: 1.7rem; }
  .hero__inner { padding-bottom: 36px; }
  .hero__media img { object-position: 35% 80%; }
  .title { font-size: 36vw; }
  .intro__media { aspect-ratio: 4 / 3; }
  .facts { gap: 16px 14px; }
  .facts li { font-size: .95rem; gap: 10px; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__ctas .btn { flex: 1; }
  .feature { padding-inline: 0; }
  .feature__text { padding-inline: var(--gutter); }
  .feature__media { border-radius: 0; aspect-ratio: 5 / 4; }
  .rooms__head { grid-template-columns: 1fr; }
  .rooms__arrows { margin-top: 20px; }
  .rooms__arrows .arrow { width: 46px; height: 46px; }
  .rooms__track { grid-auto-columns: 78vw; }
  .amenities__list { grid-template-columns: 1fr; }
  .gallery .wrap:last-child { padding-inline: 0; }
  .gal__track { border-radius: 0; }
  .gal__btn { width: 44px; height: 44px; }
  .gal__btn--prev { right: 10px; }
  .gal__btn--next { left: 10px; }
  .gal__meta, .gal__thumbs { padding-inline: var(--gutter); }
  .gal__meta { font-size: .95rem; margin-top: 12px; }
  .gal__thumbs { margin-top: 10px; scroll-padding-inline: var(--gutter); }
  .gal__thumbs button { width: 64px; }
  .form__row { grid-template-columns: 1fr; }
  .form__row:has(input[type="date"]) { grid-template-columns: 1fr 1fr; gap: 12px; }
  input[type="date"] { min-width: 0; text-align: right; -webkit-appearance: none; appearance: none; }
  .fab { display: grid; }
  .btn--small { min-height: 44px; }
  .location .link { display: inline-block; padding-block: 9px; }
  .amenities__list li { padding: 11px 0; font-size: .95rem; }
  /* lightbox controls move to the bottom, around the counter, off the photo */
  .lightbox__nav { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); translate: none; background: rgba(28,12,8,.6); }
  .lightbox__nav--prev { right: 16px; }
  .lightbox__nav--next { left: 16px; }
  .lightbox__cap { bottom: calc(78px + env(safe-area-inset-bottom)); padding-inline: var(--gutter); }
  .lightbox img { max-height: 76dvh; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .title { --wl: 64%; animation: none; }
  .title__wet { filter: none; }
  .hero__place, .hero__foot, .title__line, .hero__cue { opacity: 1; animation: none; }
  .hero__media img { transform: none; animation: none; }
}

/* ---------- Touch: no hover states stuck after a tap ---------- */
@media (hover: none) {
  .btn:hover { transform: none; }
  .arrow:hover { background: transparent; border-color: rgba(255,255,255,.35); }
  .gal__btn:hover { background: rgba(246,236,223,.88); border-color: transparent; }
  .stepper button:hover { background: transparent; }
  .gal__thumbs button:hover { opacity: .55; }
  .gal__thumbs button[aria-current="true"] { opacity: 1; }
  .feature__media:hover img { transform: none; }
  .lightbox button:hover { background: rgba(255,255,255,.08); }
}

/* ---------- Focus on clickable photos (outline would be clipped) ---------- */
img[data-lightbox]:focus-visible { outline: 3px solid var(--ember); outline-offset: -6px; }

/* Thumbnails fade out where more are waiting (RTL: on the left) */
.gal__thumbs { -webkit-mask-image: linear-gradient(to left, #000 90%, transparent); mask-image: linear-gradient(to left, #000 90%, transparent); }
.gal__thumbs.is-end { -webkit-mask-image: none; mask-image: none; }

/* ---------- Wide screens: all four rooms fit, so no carousel ---------- */
@media (min-width: 1100px) {
  .rooms__arrows { display: none; }
  .rooms__track {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
    overflow: visible; cursor: default;
  }
}
