:root {
  --ink: #1d1b18;
  --ink-soft: #4a463f;
  --muted: #7a746a;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --sand: #e9e1d3;
  --line: #ddd4c4;
  --brass: #a8834b;
  --brass-dark: #8a6a37;
  --forest: #26413a;
  --danger: #a33a2c;
  --ok: #2f6b4a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 27, 24, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 92vw); margin: 0 auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-dark); font-weight: 600; margin-bottom: 0.75rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid transparent; border-radius: 999px; padding: 0.85rem 1.6rem;
  font: 600 0.95rem var(--sans); cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: #1b302a; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-dark); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font: 400 0.95rem var(--sans); color: var(--ink);
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, .cal-day:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 80px; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.error-box { background: #fbeceb; color: var(--danger); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, box-shadow 0.3s;
  color: #fff;
}
.nav.scrolled { background: rgba(247, 243, 236, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--brass); }
.nav.scrolled .btn-ghost { color: var(--forest); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.35) 0%, rgba(20, 18, 15, 0.75) 100%),
    url('images/hero.jpg') center / cover no-repeat,
    radial-gradient(circle at 70% 30%, #3b5b52 0%, #1d2f2a 55%, #14110e 100%);
}
.hero-content { padding: 0 0 clamp(56px, 10vh, 110px); }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: 0.02em; margin-bottom: 0.2em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; opacity: 0.92; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem; font-size: 0.9rem; opacity: 0.9; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }

/* ---------- highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.highlight {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: left;
}
.highlight .icon { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--brass); }
.highlight strong { display: block; font-size: 0.98rem; }
.highlight span { font-size: 0.85rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery {
  display: grid; gap: 12px; margin-top: 2.5rem;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 253, 249, 0.92);
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  color: var(--forest); font-family: var(--serif); font-size: 1.3rem;
  background: repeating-linear-gradient(135deg, #ece4d6 0 14px, #e5dccb 14px 28px);
}

/* ---------- about & amenities ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; }
.amenities li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; }
.amenities li::before { content: '✦'; color: var(--brass); font-size: 0.7rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.rules { padding-left: 1.1rem; margin: 0; color: var(--ink-soft); }
.rules li { margin-bottom: 0.4rem; }
.times { display: flex; gap: 2rem; margin: 1.2rem 0 1.6rem; }
.times strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.times span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- booking ---------- */
.booking-section { background: var(--sand); }
.booking-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: start; margin-top: 2rem; }
.booking-summary { position: sticky; top: 92px; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-nav { display: flex; gap: 0.4rem; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 1rem;
}
.cal-nav button:disabled { opacity: 0.35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month h4 { margin: 0 0 0.6rem; font: 600 1rem var(--sans); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 0.72rem; text-align: center; color: var(--muted); padding-bottom: 0.3rem; font-weight: 600; }
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  font: 500 0.88rem var(--sans); color: var(--ink); position: relative;
}
.cal-day:hover:not(:disabled) { background: var(--sand); }
.cal-day:disabled { cursor: default; color: #c2baab; }
.cal-day.booked { color: #b8ad9b; text-decoration: line-through; }
.cal-day.booked.checkout-ok { cursor: pointer; color: var(--ink-soft); }
.cal-day.in-range { background: #dbe5e0; border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--forest) !important; color: #fff !important; text-decoration: none; }
.cal-day.start { border-radius: 8px 0 0 8px; }
.cal-day.end { border-radius: 0 8px 8px 0; }
.cal-day.start.end-pending { border-radius: 8px; }
.cal-day.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brass); }
.cal-legend { display: flex; gap: 1.2rem; font-size: 0.8rem; color: var(--muted); margin-top: 1rem; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.cal-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0.2rem 0 0; min-height: 1.4em; }

.price-from { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.price-from small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.dates-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; margin: 1rem 0; overflow: hidden; }
.dates-box div { padding: 0.65rem 0.9rem; }
.dates-box div + div { border-left: 1px solid var(--line); }
.dates-box span { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.6rem 0 1rem; }
.breakdown td { padding: 0.35rem 0; }
.breakdown td:last-child { text-align: right; }
.breakdown tr.total td { border-top: 1px solid var(--line); padding-top: 0.7rem; font-weight: 700; font-size: 1.05rem; }
.breakdown .note { font-size: 0.78rem; color: var(--muted); }
.pay-options { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.pay-option { display: flex; gap: 0.7rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; cursor: pointer; font-weight: 500; color: var(--ink); margin: 0; }
.pay-option input { width: auto; margin-top: 0.3rem; }
.pay-option small { display: block; color: var(--muted); font-weight: 400; }
.pay-option:has(input:checked) { border-color: var(--forest); background: #f0f4f2; }
.fine { font-size: 0.78rem; color: var(--muted); margin: 0.8rem 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--brass); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0.7rem 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d8d1c4; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font: 600 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer a { text-decoration: none; display: block; margin-bottom: 0.4rem; }
.footer a:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid #3a3630; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: #8f887b; }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- confirmation page ---------- */
.page-simple { min-height: 100vh; padding: 110px 0 60px; }
.page-simple .nav { color: var(--ink); background: var(--cream); box-shadow: 0 1px 0 var(--line); }
.status-pill { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status-confirmed { background: #e2efe7; color: var(--ok); }
.status-pending { background: #f8eedb; color: #8a5b12; }
.status-cancelled, .status-expired, .status-conflict { background: #f6e3e0; color: var(--danger); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.2rem 0; font-size: 0.95rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; }
.bank-box { background: var(--cream); border: 1px dashed var(--brass); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .booking-grid, .footer-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .cal-months { grid-template-columns: 1fr; }
  .cal-month + .cal-month { display: none; }
  .amenities, .field-row { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
}
