/* ==========================================================================
   Manak House — "Modern Heritage" stylesheet
   Earthy adobe tones + deep turquoise accents, RTL-first.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Adobe / desert */
  --cream: #f7f1e7;
  --sand-50: #fbf8f2;
  --sand-100: #f1e7d7;
  --sand-200: #e5d4bb;
  --sand-300: #d6bd9b;
  --adobe-500: #a97c57;
  --adobe-600: #8d6444;
  --adobe-800: #5a3f2c;
  --ink: #2e241c;
  --ink-soft: #6a5949;

  /* Turquoise / azure (kashi tiles) */
  --turq-900: #083f47;
  --turq-800: #0b5560;
  --turq-700: #0f6c76;
  --turq-500: #1c9197;
  --turq-300: #7cc4c3;
  --turq-100: #dcefec;

  --brand: #1f5f35;          /* logo green */
  --gold: #c39b52;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(58, 40, 25, .06), 0 2px 8px rgba(58, 40, 25, .06);
  --shadow: 0 10px 30px -12px rgba(58, 40, 25, .25);
  --shadow-lg: 0 30px 60px -25px rgba(40, 28, 18, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Arch mask (Persian pointed arch / kalil) */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150V52C0 28 24 11 50 0c26 11 50 28 50 52v98z'/%3E%3C/svg%3E");
  /* Eight-point star (girih) tile pattern */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230f6c76' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M32 8l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M15 15h34v34H15z' transform='rotate(45 32 32)'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='64' cy='0' r='6'/%3E%3Ccircle cx='0' cy='64' r='6'/%3E%3Ccircle cx='64' cy='64' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-700); text-decoration: none; }
a:hover { color: var(--turq-800); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--turq-500); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--turq-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--turq-700); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 108, 118, .8); }
.btn-primary:hover { background: var(--turq-800); color: #fff; box-shadow: 0 12px 26px -10px rgba(15, 108, 118, .9); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-outline { background: transparent; color: var(--turq-700); border-color: var(--turq-700); }
.btn-outline:hover { background: var(--turq-700); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background-color .35s, box-shadow .35s, color .35s, height .35s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(247, 241, 231, .94); color: var(--ink);
  box-shadow: 0 1px 0 rgba(90, 63, 44, .1), 0 8px 24px -16px rgba(58, 40, 25, .35);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.logo-mark { width: 38px; height: 42px; color: currentColor; }
.site-header.is-scrolled .logo-mark, .site-header.is-open .logo-mark { color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.35rem; font-weight: 900; }
.brand-text small { font-size: .62rem; letter-spacing: .28em; opacity: .8; direction: ltr; text-align: right; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a { color: inherit; font-weight: 600; font-size: .98rem; position: relative; padding-block: 6px; }
.main-nav ul a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: transparent; color: inherit; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 24px var(--gutter) 40px;
    background: var(--cream); color: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--sand-200); }
  .main-nav ul a::after { display: none; }
  .nav-cta { padding: .95em; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(22, 16, 11, .88) 0%, rgba(22, 16, 11, .45) 42%, rgba(22, 16, 11, .12) 70%, rgba(22, 16, 11, .45) 100%),
    linear-gradient(to left, rgba(8, 63, 71, .45), transparent 60%);
}
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 48px; max-width: var(--container); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  padding: .35em 1em; border-radius: 999px; backdrop-filter: blur(6px); margin-bottom: 20px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.6vw, 4.2rem); font-weight: 900; line-height: 1.3;
  max-width: 14ch; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-sub { font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 56ch; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 36px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px);
  padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter));
}
.hero-facts li { background: rgba(20, 14, 9, .28); padding: 16px 20px; display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.3rem; font-weight: 800; }
.hero-facts span { font-size: .85rem; opacity: .85; }
@media (max-width: 700px) {
  .hero-facts { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
  .hero-facts li { padding: 12px 14px; }
  .hero-content { padding-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.tile-bg { background-color: var(--sand-50); background-image: var(--tile); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p:last-child { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--turq-700);
  font-weight: 700; font-size: .92rem; margin-bottom: 10px;
}
.eyebrow::before, .section-head .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-media { position: relative; }
.arch-frame {
  position: relative; padding: 14px; background: var(--sand-100); border-radius: 0 0 var(--radius) var(--radius);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.arch-frame img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.about-badge {
  position: absolute; inset-inline-end: -18px; bottom: 36px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--turq-800); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-lg); border: 6px solid var(--cream);
}
.about-badge span { font-size: 2rem; font-weight: 900; line-height: 1; }
.about-badge small { font-size: .82rem; opacity: .85; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 32px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; }
.highlights .icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--turq-100); color: var(--turq-700);
}
.highlights h3 { font-size: 1.05rem; margin-bottom: .2em; }
.highlights p { font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.75; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .about-badge { inset-inline-end: 0; }
}
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- Rooms ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.room-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(90, 63, 44, .08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-media { position: relative; padding: 14px 14px 0; background: var(--sand-100); }
.room-media img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
  transition: transform .6s var(--ease);
}
.room-card:hover .room-media img { transform: scale(1.03); }
.room-cap {
  position: absolute; bottom: 14px; inset-inline-start: 26px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .92); color: var(--turq-800); font-size: .85rem; font-weight: 700;
  padding: .3em .85em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.room-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.3rem; margin-bottom: .35em; }
.room-body > p { color: var(--ink-soft); font-size: .95rem; line-height: 1.85; }
.room-beds { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--adobe-600); }
.amenity-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.amenity-chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--adobe-800);
  background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 999px; padding: .3em .75em;
}
.amenity-chips .icon { width: 16px; height: 16px; color: var(--turq-700); }
.room-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px dashed var(--sand-300);
}
.room-price { margin: 0; line-height: 1.4; }
.room-price small { display: block; color: var(--ink-soft); font-size: .78rem; }
.room-price strong { font-size: 1.05rem; color: var(--turq-800); }
@media (max-width: 400px) { .room-grid { grid-template-columns: 1fr; } }

.amenities-panel {
  margin-top: 56px; background: var(--turq-900); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden;
}
.amenities-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%237cc4c3' stroke-opacity='.18' stroke-width='1.2'%3E%3Cpath d='M32 8l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M15 15h34v34H15z' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
.amenities-panel > * { position: relative; }
.amenities-panel h3 { color: #fff; font-size: 1.35rem; margin-bottom: 24px; }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 24px; }
.amenity-grid li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.amenity-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(124, 196, 195, .14); color: var(--turq-300); border: 1px solid rgba(124, 196, 195, .25);
}

/* ---------- Booking ---------- */
.booking { background: linear-gradient(180deg, var(--cream), var(--sand-100)); }
.booking-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking-intro > p { color: var(--ink-soft); font-size: 1.04rem; }
.booking-facts { display: grid; gap: 12px; margin: 26px 0 32px; }
.booking-facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.booking-facts .icon { color: var(--turq-700); width: 22px; height: 22px; }
.booking-direct { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--sand-200); }
.booking-direct p { margin-bottom: 12px; font-weight: 700; }
.direct-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px;
  background: var(--turq-100); color: var(--turq-800); font-weight: 700; font-size: .92rem;
}
.chip-link:hover { background: var(--turq-700); color: #fff; }

.booking-form {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(90, 63, 44, .08); position: relative;
}
.booking-form::before {
  content: ""; position: absolute; inset-inline: 32px; top: 0; height: 5px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--turq-700), var(--turq-500), var(--gold));
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--sand-200); background: var(--sand-50); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.field select {
  appearance: none; padding-inline-start: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a5949' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--turq-500); background: #fff; box-shadow: 0 0 0 4px rgba(28, 145, 151, .15);
}
.field input::placeholder, .field textarea::placeholder { color: #b3a28f; }
.field input[dir="ltr"] { text-align: right; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2412d; background: #fff7f5; }
.field-error { display: block; color: #b33a26; font-size: .82rem; margin-top: 6px; }
.date-display { cursor: pointer; padding-inline-start: 44px !important; }
.date-wrap { position: relative; }
.date-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--turq-700); pointer-events: none; }

.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--sand-200); border-radius: 14px; background: var(--sand-50); overflow: hidden; }
.stepper:focus-within { border-color: var(--turq-500); box-shadow: 0 0 0 4px rgba(28, 145, 151, .15); }
.stepper button { width: 52px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--turq-700); }
.stepper button:hover { background: var(--turq-100); }
.stepper input {
  border: 0 !important; box-shadow: none !important; background: transparent !important; text-align: center;
  font-weight: 800; font-size: 1.1rem; -moz-appearance: textfield; min-width: 0;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.booking-summary {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  background: var(--turq-100); color: var(--turq-900); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600;
}
.booking-summary[hidden] { display: none; }
.booking-summary strong { font-weight: 800; }
.form-note { text-align: center; font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.alert { margin-top: 16px; padding: 16px 18px; border-radius: 14px; font-weight: 600; line-height: 1.8; }
.alert-success { background: #e6f4ea; color: #1d5a33; border: 1px solid #b9dfc5; }
.alert-error { background: #fdecea; color: #8a2a1c; border: 1px solid #f3c2ba; }
.alert .code { display: inline-block; direction: ltr; font-weight: 800; letter-spacing: .05em; }
.alert .btn { margin-top: 12px; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Jalali date picker ---------- */
.jdp {
  position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-start: 0; width: min(340px, calc(100vw - 32px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(90, 63, 44, .08); padding: 16px;
  animation: jdpIn .18s var(--ease);
}
@keyframes jdpIn { from { opacity: 0; transform: translateY(-6px); } }
.jdp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jdp-title { font-weight: 800; }
.jdp-nav { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--sand-50); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.jdp-nav:hover { background: var(--turq-100); color: var(--turq-800); }
.jdp-nav[disabled] { opacity: .35; cursor: default; }
.jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.jdp-wd { font-size: .78rem; color: var(--ink-soft); padding: 6px 0; font-weight: 700; }
.jdp-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: .92rem; font-weight: 600;
}
.jdp-day:hover:not([disabled]) { background: var(--turq-100); }
.jdp-day[disabled] { color: #cbbfb2; cursor: not-allowed; }
.jdp-day.is-friday:not([disabled]) { color: #b4513a; }
.jdp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--turq-300); }
.jdp-day.in-range { background: var(--turq-100); border-radius: 0; color: var(--turq-900); }
.jdp-day.is-start, .jdp-day.is-end { background: var(--turq-700) !important; color: #fff !important; border-radius: 10px; }
.jdp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }
.jdp-foot button { border: 0; background: none; color: var(--turq-700); font-weight: 700; cursor: pointer; }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry-item { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand-100); }
.masonry-item a { display: block; position: relative; }
.masonry-item a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 63, 71, .45), transparent 50%);
  opacity: 0; transition: opacity .35s;
}
.masonry-item img { width: 100%; transition: transform .7s var(--ease); }
.masonry-item a:hover img { transform: scale(1.05); }
.masonry-item a:hover::after { opacity: 1; }
.gallery-more { text-align: center; margin: 32px 0 0; }

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(18, 13, 9, .94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(18, 13, 9, .8); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 8px 24px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; font-size: .92rem; opacity: .85; text-align: center; max-width: 60ch; }
.lb-close, .lb-nav {
  border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%;
  width: 48px; height: 48px; display: grid; place-items: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close { position: absolute; top: 16px; left: 16px; z-index: 2; }
.lb-nav { margin: 0 12px; }
.lb-nav .icon { width: 26px; height: 26px; }
@media (max-width: 600px) {
  .lb-nav { position: absolute; bottom: 20px; margin: 0; }
  .lb-prev { right: 24px; } .lb-next { left: 24px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { padding-bottom: 90px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.contact-list { display: grid; gap: 22px; margin: 24px 0 30px; }
.contact-list li { display: flex; gap: 14px; }
.ci-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--turq-100); color: var(--turq-700); display: grid; place-items: center; flex: none; }
.contact-list h3 { font-size: .95rem; margin-bottom: .1em; color: var(--ink-soft); font-weight: 700; }
.contact-list p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--turq-700); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: .6em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--sand-300); color: var(--ink); font-weight: 700; font-size: .92rem; background: #fff;
}
.social a:hover { border-color: var(--turq-700); color: var(--turq-700); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); background: var(--sand-100); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 32px; background-color: var(--sand-100); background-image: var(--tile);
}
.map-placeholder p { font-weight: 800; font-size: 1.2rem; color: var(--adobe-800); }
.map-mark { width: 72px; height: 80px; color: var(--brand); opacity: .85; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--turq-900); color: rgba(255, 255, 255, .8); }
.tile-band {
  height: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 1l4 8-4 8-4-8z' fill='%23c39b52'/%3E%3Ccircle cx='0' cy='9' r='4' fill='%237cc4c3'/%3E%3Ccircle cx='36' cy='9' r='4' fill='%237cc4c3'/%3E%3C/svg%3E") repeat-x center / 36px 18px,
    var(--turq-800);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo-mark { color: #fff; width: 44px; height: 48px; }
.footer-brand p { margin: 0; font-size: .9rem; }
.footer-name { font-weight: 800; color: #fff; font-size: 1.05rem !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; }
.copyright { width: 100%; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1faf5a; color: #fff; box-shadow: 0 12px 28px -10px rgba(20, 110, 60, .8);
  transition: transform .25s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp .icon { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.jdp.jdp-end { inset-inline-start: auto; inset-inline-end: 0; }
