/* ==========================================================================
   Desert Beach House — stylesheet
   Palette pulled from the property itself: terracotta jaali, teak, pool blue.
   ========================================================================== */

:root {
  --sand:        #faf7f2;
  --sand-deep:   #f2ece3;
  --ink:         #1c1917;
  --ink-soft:    #57504a;
  --muted:       #8a8079;
  --line:        #e5ddd2;
  --terracotta:  #b4552d;
  --terracotta-d:#8f4223;
  --forest:      #2f4739;
  --white:       #ffffff;

  --shadow-sm: 0 1px 2px rgba(28,25,23,.06), 0 4px 12px rgba(28,25,23,.05);
  --shadow-md: 0 2px 6px rgba(28,25,23,.07), 0 18px 40px rgba(28,25,23,.10);
  --shadow-lg: 0 30px 70px rgba(28,25,23,.18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: clamp(64px, 9vw, 130px); }
section.tight { padding-block: clamp(48px, 6vw, 84px); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }

/* Justified body copy — flowing prose ONLY.
   Two rules here matter. `hyphens` lets the browser break words; without it
   justification opens rivers of white space. And nothing containing a manual
   <br> may be justified: each fragment becomes its own line and gets stretched
   edge to edge, which is what makes justified addresses and opening hours look
   broken. Those blocks stay ragged-right deliberately. */
@media (min-width: 900px) {
  .story p:not(.eyebrow),
  .villa__body > p,
  .lede {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.7em;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font: inherit; font-size: .93rem; font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-d); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--wa { background: #1faa54; color: #fff; }
.btn--wa:hover { background: #17913f; }
.btn--sm { padding: .6em 1.15em; font-size: .84rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--pad);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav__brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em;
  text-decoration: none; color: #fff; white-space: nowrap;
  transition: color .3s ease;
}
/* The logo art is a circle on a square white plate — clip it back to the circle. */
.nav__logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.nav__brand small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: rgba(255,255,255,.9); text-decoration: none; font-size: .87rem; font-weight: 500;
  transition: color .2s ease, opacity .2s ease;
}
.nav__links a:hover { opacity: .65; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }

.nav.is-stuck { background: rgba(250,247,242,.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; }
.nav.is-stuck .nav__brand,
.nav.is-stuck .nav__links a { color: var(--ink); }
.nav.is-stuck .btn--light { background: var(--terracotta); border-color: transparent; color: #fff; }

.nav__burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: background .3s ease; }
.nav.is-stuck .nav__burger span { background: var(--ink); }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { background: var(--sand); }
  .nav.is-open .nav__brand { color: var(--ink); }
  .nav.is-open .nav__burger span { background: var(--ink); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; inset: 100% 0 auto 0;
    background: var(--sand); padding: 1rem var(--pad) 2rem;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a { color: var(--ink); font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 0 0 clamp(48px, 8vw, 92px);
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.55) 0%, rgba(20,17,15,.12) 32%, rgba(20,17,15,.72) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.hero h1 { margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__sub { font-size: clamp(1rem, 1.7vw, 1.22rem); max-width: 46ch; color: rgba(255,255,255,.92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: .84rem; letter-spacing: .04em;
}
.hero__facts span { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.88); }
.hero__facts svg { flex: none; opacity: .8; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story__media { position: relative; }
.story__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story__badge {
  position: absolute; right: -18px; bottom: 28px;
  background: var(--forest); color: #fff;
  border-radius: var(--r-md); padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md); max-width: 210px;
}
.story__badge strong { font-family: var(--serif); font-size: 1.9rem; display: block; line-height: 1; }
.story__badge span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
@media (max-width: 520px) { .story__badge { right: 12px; } }

/* ---------- villas ---------- */
.villas { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: 3rem; }
@media (max-width: 880px) { .villas { grid-template-columns: 1fr; } }

.villa {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.villa:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.villa__gallery { position: relative; aspect-ratio: 4/3; background: var(--sand-deep); }
.villa__gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.villa__gallery img.is-active { opacity: 1; }
.villa__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.villa__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s, width .2s;
}
.villa__dots button.is-active { background: #fff; width: 20px; border-radius: var(--r-full); }
.villa__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(20,17,15,.62); backdrop-filter: blur(6px);
  color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .42em .9em; border-radius: var(--r-full);
}
.villa__body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.villa__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.villa__price { text-align: right; white-space: nowrap; }
.villa__price strong { font-family: var(--serif); font-size: 1.5rem; }
.villa__price span { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.villa__specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.2rem; padding: 0; list-style: none; }
.villa__specs li {
  font-size: .78rem; background: var(--sand-deep); color: var(--ink-soft);
  padding: .38em .85em; border-radius: var(--r-full);
}
.villa__amenities { columns: 2; column-gap: 1.4rem; padding: 0; margin: 0 0 1.6rem; list-style: none; font-size: .87rem; color: var(--ink-soft); }
.villa__amenities li { break-inside: avoid; padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.villa__amenities li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }
.villa__foot { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- availability ---------- */
.avail { background: var(--sand-deep); }
.avail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

.tabs { display: inline-flex; background: var(--white); padding: 5px; border-radius: var(--r-full); box-shadow: var(--shadow-sm); margin: 2rem 0 1.4rem; }
.tabs button {
  border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--ink-soft); padding: .62em 1.5em; border-radius: var(--r-full); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .8rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: .45rem; vertical-align: -2px; }
.legend .k-free    { background: var(--white); border: 1px solid var(--line); }
.legend .k-booked  { background: #e9d5cd; border: 1px solid #d9b8ac; }
.legend .k-turn    { background: linear-gradient(135deg, #e9d5cd 0 50%, #fff 50% 100%); border: 1px solid var(--line); }
.legend .k-sel     { background: var(--terracotta); }

.cal { background: var(--white); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.cal__nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 1.1rem; color: var(--ink);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.cal__nav button:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal__months { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 44px); }
@media (max-width: 760px) { .cal__months { grid-template-columns: 1fr; } }

.month__name { font-family: var(--serif); font-size: 1.18rem; text-align: center; margin-bottom: .8rem; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.month__dow { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: .5rem; }

.day {
  aspect-ratio: 1; border: 0; background: transparent; font: inherit; font-size: .87rem;
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink);
  display: grid; place-items: center; position: relative;
  transition: background .15s ease, color .15s ease;
}
.day:hover:not(:disabled) { background: var(--sand-deep); }
.day.is-empty { visibility: hidden; cursor: default; }
.day.is-past { color: #c9c2ba; cursor: not-allowed; }
.day.is-booked { background: #e9d5cd; color: #8f4223; cursor: pointer; }
.day.is-booked:hover { background: #e0c4b9; }
.day.is-turnover { background: linear-gradient(135deg, #e9d5cd 0 50%, transparent 50% 100%); }
.day.is-inrange { background: rgba(180,85,45,.14); border-radius: 0; }
.day.is-selected { background: var(--terracotta); color: #fff; font-weight: 600; }
.day.is-start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.day.is-end   { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.day.is-today::after {
  content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; opacity: .55;
}

.cal__panel {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--sand); display: flex; flex-wrap: wrap;
  gap: 1rem; align-items: center; justify-content: space-between;
}
.cal__panel[hidden] { display: none; }
.cal__panel.is-blocked { background: #fbf0ec; border-color: #e8cfc5; }
.cal__panel h4 { margin: 0 0 .2rem; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.cal__panel p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.cal__panel .actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.cal__hint { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.cal__stamp { font-size: .74rem; color: var(--muted); text-align: right; margin-top: 1rem; }

/* ---------- gallery ---------- */
.grid-gallery { columns: 3; column-gap: 14px; margin-top: 2.6rem; }
@media (max-width: 900px) { .grid-gallery { columns: 2; } }
@media (max-width: 520px) { .grid-gallery { columns: 1; } }
.grid-gallery figure { margin: 0 0 14px; break-inside: avoid; }
.grid-gallery img {
  width: 100%; border-radius: var(--r-md); cursor: zoom-in;
  transition: transform .35s ease, box-shadow .35s ease; box-shadow: var(--shadow-sm);
}
.grid-gallery img:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(16,14,12,.94);
  display: grid; place-items: center; padding: 3vw;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; backdrop-filter: blur(8px); transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-close { top: 3vw; right: 3vw; }
.lightbox .lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }

/* ---------- amenities ---------- */
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 2.6rem; }
.amen div { background: var(--sand); padding: 1.6rem 1.4rem; }
.amen h4 { margin: .6rem 0 .3rem; font-size: .96rem; font-family: var(--sans); font-weight: 600; }
.amen p { margin: 0; font-size: .84rem; color: var(--muted); }
.amen svg { color: var(--terracotta); }

/* ---------- google rating ---------- */
.rating {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(22px, 4vw, 54px); align-items: center;
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm);
  margin-top: 2.6rem;
}
@media (max-width: 860px) { .rating { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.rating__score { font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: .95; }
.rating__stars { display: flex; gap: 3px; color: #f0a63a; margin: .5rem 0 .35rem; }
@media (max-width: 860px) { .rating__stars { justify-content: center; } }
.rating__count { font-size: .82rem; color: var(--muted); }

.bars { display: grid; gap: 7px; width: 100%; max-width: 340px; }
.bars div { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; font-size: .78rem; color: var(--muted); }
.bars i { display: block; height: 7px; border-radius: var(--r-full); background: var(--sand-deep); overflow: hidden; }
.bars i span { display: block; height: 100%; background: #f0a63a; border-radius: var(--r-full); }

.rating__actions { display: flex; flex-direction: column; gap: .6rem; }
@media (max-width: 860px) { .rating__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; } }

/* ---------- location ---------- */
.loc { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .loc { grid-template-columns: 1fr; } }
.loc__map { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.dist { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.dist li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dist li:last-child { border-bottom: 0; }
.dist strong { font-weight: 500; }
.dist span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- know ---------- */
.know { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 2.6rem; }
.know h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 .7rem; }
.know p, .know li { font-size: .9rem; color: var(--ink-soft); }
.know ul { padding-left: 1.1rem; margin: 0; }
.know li { margin-bottom: .4rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding-block: clamp(56px, 7vw, 96px) 2rem; }
.foot h2 { color: #fff; }
.foot a { color: #fff; }
.foot__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 780px) { .foot__top { grid-template-columns: 1fr; } }
.foot__col h5 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 .9rem; font-weight: 600; }
.foot__col p, .foot__col a { font-size: .93rem; line-height: 1.9; text-decoration: none; display: block; }
.foot__col a:hover { text-decoration: underline; }
.foot__bar {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.foot__bar a { color: rgba(255,255,255,.45); }

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1faa54; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(31,170,84,.42); text-decoration: none;
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.07); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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