:root {
  --bg: #f7f4ef;
  --bg-alt: #efeae2;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b655c;
  --line: #e2dbcf;
  --brass: #a07a45;
  --brass-dark: #7f5f33;
  --dark: #1f1d1a;
  --booked: #d9d2c6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --shadow: 0 20px 50px -20px rgba(31, 29, 26, .25);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin-bottom: 1rem; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn-small { padding: 9px 18px; font-size: .75rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1f7a4d; border-color: #1f7a4d; }
.btn-whatsapp:hover { background: #17603c; border-color: #17603c; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.link-arrow { color: var(--brass-dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-header.is-solid { background: rgba(247, 244, 239, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .28em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav a:not(.btn) { text-decoration: none; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.site-header:not(.is-solid) .nav .btn { background: transparent; border-color: rgba(255,255,255,.7); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.62) 0%, rgba(20,18,15,.25) 55%, rgba(20,18,15,0) 80%), linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.1) 30%, rgba(20,18,15,.55) 100%); }
.hero-content { position: relative; padding-bottom: clamp(56px, 10vh, 110px); max-width: 1200px; }
.hero .eyebrow { color: #e9d6b6; }
.hero h1 em { color: #f1e3cb; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; opacity: .92; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-n { font-family: var(--serif); font-size: 1rem; color: var(--brass); }
.steps h3 { margin-top: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip, .chip-select { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .85rem; color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-select { appearance: none; padding-right: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b655c'/%3E%3C/svg%3E") no-repeat right 14px center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s; text-align: left; border: 0; padding: 0; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: rgba(255,255,255,.92); color: var(--ink); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { margin-bottom: .4rem; font-size: .7rem; }
.card-body h3 { margin-bottom: .3em; }
.card-meta { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.card-foot strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.card-soon { background: transparent; border: 1px dashed var(--muted); cursor: default; justify-content: center; align-items: center; text-align: center; padding: 40px; min-height: 360px; color: var(--muted); }
.card-soon:hover { transform: none; box-shadow: none; }
.card-soon h3 { color: var(--ink); }
.empty { color: var(--muted); }

/* Stays */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.stay-card { background: var(--surface); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.stay-card p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 12px; height: 6px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg); }
.ticks.muted li { color: var(--muted); font-size: .95rem; }

.section-dark { background: var(--dark); color: #f3eee6; }
.section-dark p { color: #bdb5a8; }
.section-dark .eyebrow { color: #d2b27f; }

/* Contact & form */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { margin-bottom: 8px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.enquiry { background: var(--surface); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; }
.topic { border: 0; padding: 0; margin: 0 0 22px; display: flex; gap: 0; flex-wrap: wrap; }
.topic legend { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.seg { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px; border: 1px solid var(--line); margin-left: -1px; font-weight: 500; cursor: pointer; transition: background .2s; }
.seg:first-of-type span { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.seg:last-of-type span { border-radius: 0 var(--radius) var(--radius) 0; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.field em { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #fff; }
.consent { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin: 4px 0 20px; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--ink); }

/* Footer */
.site-footer { background: var(--dark); color: #bdb5a8; padding: 56px 0 40px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; align-items: start; }
.site-footer .logo { color: #fff; font-size: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { text-align: right; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #1f7a4d; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 32px 16px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,18,15,.7); }
.modal-panel { position: relative; background: var(--bg); width: min(1200px, 100%); border-radius: 6px; overflow: hidden; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
body.modal-open { overflow: hidden; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; }

.gallery-main { position: relative; background: #111; aspect-ratio: 16 / 9; max-height: 70vh; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.8rem; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px; background: #111; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 88px; height: 62px; padding: 0; border: 2px solid transparent; background: none; opacity: .55; border-radius: 2px; overflow: hidden; }
.gallery-thumbs button.is-active { opacity: 1; border-color: #e9d6b6; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pm-body { display: grid; grid-template-columns: 1fr 400px; gap: 48px; padding: clamp(24px, 4vw, 48px); align-items: start; }
.pm-tagline { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--muted); }
.specs { list-style: none; padding: 18px 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; border-block: 1px solid var(--line); font-size: .95rem; }
.specs strong { font-weight: 600; }
.pm-desc p { color: #403b35; }
.pm-info h3 { margin-top: 32px; font-size: 1.4rem; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; font-size: .95rem; color: #403b35; }
.amenities li::before { content: "·"; color: var(--brass); font-weight: 700; margin-right: 8px; }

.booking { position: sticky; top: 24px; background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.price { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 4px; }
.price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.rating { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.cal-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.1rem; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-head strong { font-weight: 500; }
.cal-month { margin-bottom: 14px; }
.cal-title { text-align: center; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .85rem; }
.cal-grid .dow { color: var(--muted); font-size: .7rem; padding: 4px 0; }
.day { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font-size: .85rem; padding: 0; position: relative; }
.day:hover:not(:disabled) { background: var(--bg-alt); }
.day:disabled { color: #c3bbae; cursor: default; }
.day.booked { color: #b3aa9c; text-decoration: line-through; }
.day.in-range { background: #efe5d3; border-radius: 0; }
.day.start, .day.end { background: var(--ink) !important; color: #fff; border-radius: 50%; }
.day.today::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brass); }
.cal-legend { display: flex; gap: 16px; font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cal-legend .l-free::before { border: 1px solid var(--muted); }
.cal-legend .l-booked::before { background: var(--booked); }
.cal-legend .l-sel::before { background: var(--ink); }
.cal-note { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.cal-note.ok { color: var(--ink); }
.cal-note.err { color: #a03c2b; }
.cal-clear { background: none; border: 0; color: var(--brass-dark); text-decoration: underline; font-size: .85rem; padding: 0; margin-left: 6px; }
.booking-actions { display: grid; gap: 10px; margin-top: 12px; }
.lt-picker { margin-bottom: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .pm-body { grid-template-columns: 1fr; }
  .booking { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--bg); color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .site-header:not(.is-solid) .nav .btn { background: var(--ink); }
  .site-header.menu-open { background: var(--bg); color: var(--ink); }
  .two-col, .row { grid-template-columns: 1fr; }
  .row { gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .copy { text-align: left; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; min-height: 100%; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .g-nav { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass); font-family: var(--sans); font-weight: 300; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 12px 0 0; }

/* Static property pages (/homes/<id>/) */
.home-page { padding-top: calc(var(--header-h) + 32px); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.photo-grid .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-alt); }
.photo-grid .ph-lead { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-grid .ph:hover img { transform: scale(1.03); }
.home-page .pm-body { padding-inline: 0; }
.h-small { font-size: 1.5rem; margin-top: 32px; }
.nav-static { display: flex; }
@media (max-width: 980px) { .faq-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .nav-static { position: static; transform: none; flex-direction: row; background: none; box-shadow: none; padding: 0; gap: 14px; z-index: auto; }
  .nav-static a:not(.btn) { display: none; }
  .nav-static .btn { margin: 0; }
}

/* Portfolio grouped by city */
.filters-city { margin-bottom: 12px; }
.chip-city { font-family: var(--serif); font-size: 1.05rem; padding: 6px 20px; }
.city-group { margin-bottom: 56px; }
.city-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; }
.city-head h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.city-head span { color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.grid-soon { margin-top: 8px; }
