/* ==========================================================================
   Siquijor villa landing page (structure follows the sales expose)
   Palette drawn from the house: deep sea, chalk-white walls, the black and
   white marble floor, brass door handles.
   ========================================================================== */
:root {
  --abyss: #0d2b36;
  --lagoon: #1e6f86;
  --chalk: #f5f7f6;
  --paper: #ffffff;
  --tile: #15171a;
  --brass: #a67c2e;
  --ink: #1a2226;
  --muted: #56646b;
  --line: #d7dfe2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--chalk); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lagoon); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.narrow { max-width: 62ch; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.45rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.part { padding-block: clamp(52px, 8vw, 104px); }
.part-head { margin-bottom: clamp(24px, 4vw, 44px); }
.part-head p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; min-height: 48px;
  background: var(--abyss); color: #fff; text-decoration: none;
  font: 600 1rem/1.2 var(--sans); border: 2px solid var(--abyss); border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--lagoon); border-color: var(--lagoon); }
.btn-light { background: #fff; color: var(--abyss); border-color: #fff; }
.btn-light:hover { background: var(--chalk); color: var(--abyss); border-color: var(--chalk); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: currentColor; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(4vw, 16px); color: #fff; transition: background-color .25s;
}
.nav.solid { background: rgba(13,43,54,.96); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font: 500 1.15rem/1 var(--serif); }
.checker {
  width: 26px; height: 26px; flex: none; border: 1px solid currentColor;
  background: conic-gradient(var(--tile) 25%, #fff 0 50%, var(--tile) 0 75%, #fff 0) 0 0 / 13px 13px;
}
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 40px; padding: .5em 1.1em; }

/* header dropdown menus */
.menu-wrap { position: static; }
.menu-btn { appearance: none; background: none; border: 0; padding: 8px 2px; color: inherit; font: 500 .98rem/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.menu-btn::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menu-btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.menu-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
.dropdown {
  position: fixed; top: var(--nav-h); left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(1100px, 94vw); background: var(--abyss); color: #fff; border-top: 1px solid rgba(255,255,255,.18);
  padding: 26px clamp(20px, 3vw, 40px) 30px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px 32px;
}
.dropdown[hidden] { display: none; }
.dd-small { width: min(360px, 94vw); left: auto; right: max(4vw, 16px); transform: none; display: block; }
.dd-col strong { display: block; font: 500 1.15rem/1.2 var(--serif); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.dd-col a { display: block; color: #fff; text-decoration: none; padding: 6px 0; font-size: .97rem; }
.dd-col a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- cover ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; color: #fff; background: var(--abyss); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,26,33,.88) 0%, rgba(8,26,33,.45) 38%, rgba(8,26,33,.05) 70%); }
.hero-inner {
  position: relative; z-index: 1; width: min(1180px, 92vw); margin-inline: auto;
  padding-block: calc(var(--nav-h) + 32px) clamp(32px, 6vw, 72px);
  display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end;
}
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.7rem); font-weight: 500; margin-bottom: .3em; text-wrap: balance; }
.hero .lead { max-width: 34em; margin-bottom: 1.4em; }
.price-card { border-left: 3px solid var(--brass); padding: 4px 0 4px 22px; }
.price-label { display: block; font-size: .95rem; opacity: .85; }
.price-card strong { display: block; font: 500 clamp(2rem, 4.2vw, 3.3rem)/1.1 var(--serif); margin: 2px 0 6px; }
.price-eur { display: block; font-size: 1.05rem; opacity: .9; }
.price-note { display: block; font-size: .95rem; opacity: .9; max-width: 26em; }

/* ---------- floor band (marble floor motif) ---------- */
.floor { height: 22px; background: conic-gradient(var(--tile) 25%, #fff 0 50%, var(--tile) 0 75%, #fff 0) 0 0 / 44px 44px; }

/* ---------- part 1: general information ---------- */
.general { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.general-text h3 { margin-bottom: .6em; }
.general-claims { border-left: 2px solid var(--abyss); padding-left: clamp(18px, 3vw, 36px); }
.general-claims p { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--serif); color: var(--abyss); margin: 0 0 .9em; }
.general-claims p:last-child { margin: 0; }
.general-photos { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: clamp(28px, 4vw, 52px); }
.general-photos .ph { aspect-ratio: 4 / 3; }
.general-photos .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ---------- photo tiles (shared) ---------- */
.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--line); border-radius: 2px; overflow: hidden; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ph:hover img { transform: scale(1.03); }

/* ---------- part 2: overview ---------- */
.overview-photo { margin-bottom: clamp(20px, 3vw, 32px); }
.overview-photo .ph { aspect-ratio: 16 / 8; }
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.plan { background: #fff; border: 1px solid var(--line); text-align: left; aspect-ratio: auto; }
.plan img { height: auto; object-fit: contain; }
.plan:hover img { transform: none; }
.plan span { display: block; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 600; }
.key-title { margin-top: clamp(36px, 5vw, 64px); }
.keyfeatures { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 40px; }
.keyfeatures li { break-inside: avoid; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 500; }

/* ---------- part 3: individual views (grouped menu, one view at a time) ---------- */
.vmenu { display: none; margin-bottom: clamp(24px, 3vw, 40px); scroll-margin-top: calc(var(--nav-h) + 8px); }
.js .vmenu { display: block; }
.vgroups { display: flex; flex-wrap: wrap; gap: 4px 30px; border-bottom: 1px solid var(--line); }
.vgroup {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 12px 0 10px; font: 500 1.2rem/1.2 var(--serif); color: var(--muted); cursor: pointer; min-height: 48px;
}
.vgroup:hover { color: var(--abyss); }
.vgroup[aria-pressed="true"] { color: var(--abyss); border-bottom-color: var(--abyss); font-weight: 700; }
.vitems-wrap { padding-top: 18px; }
.vitems { display: flex; flex-wrap: wrap; gap: 10px; }
.vitem {
  appearance: none; background: #fff; color: var(--abyss); border: 1.5px solid var(--abyss); border-radius: 2px;
  padding: .6em 1.1em; min-height: 44px; font: 600 .98rem/1.2 var(--sans); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.vitem:hover { background: var(--sand, #e9eff1); }
.vitem[aria-current="true"] { background: var(--abyss); color: #fff; }

.room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 20px clamp(28px, 4vw, 64px); align-items: start; padding-block: 8px 0; }
.js .room { border-top: 0; }
.room + .room { margin-top: 0; }
html:not(.js) .room { padding-block: clamp(30px, 4vw, 52px); border-top: 1px solid var(--line); }
html:not(.js) .room:first-child { border-top: 0; }
.room h3 { margin-bottom: .6em; }
.room ul { margin: 0; padding-left: 1.15em; }
.room h4 { margin: 1.5em 0 .5em; font: 700 1rem/1.3 var(--sans); color: var(--abyss); }
.room h4:first-of-type { margin-top: 0; }
.room li { margin-bottom: .4em; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.room-photos .ph { aspect-ratio: 4 / 3; }
.room-photos.odd .ph:first-child,
.room-photos.single .ph:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.room-photos.hasp .ph.portrait { grid-row: span 2; aspect-ratio: auto; }
.room-photos.single-portrait { grid-template-columns: minmax(0, 60%); }
.room-photos.single-portrait .ph { aspect-ratio: 3 / 4; }
.room-photos.hasp .ph.portrait img { height: 100%; }
.room-nav { display: none; grid-column: 1 / -1; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.js .room-nav { display: flex; }
.rooms.all .room-nav { display: none !important; }
.rooms.all .room:not([hidden]) ~ .room:not([hidden]) { border-top: 1px solid var(--line); margin-top: clamp(24px, 3vw, 44px); padding-top: clamp(24px, 3vw, 44px); }
.btn-outline { background: #fff; color: var(--abyss); border-color: var(--abyss); }
.btn-outline:hover { background: var(--abyss); color: #fff; border-color: var(--abyss); }

/* ---------- sea band ---------- */
.sea-band img { width: 100%; height: clamp(220px, 34vw, 560px); object-fit: cover; object-position: 50% 36%; }

/* ---------- contact ---------- */
.contact { background: var(--abyss); color: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.contact-grid.single { grid-template-columns: minmax(0, 640px); }
.agent { font-style: normal; margin-bottom: 26px; }
.agent strong { display: block; font: 500 1.6rem/1.2 var(--serif); }
.agent .role { opacity: .85; margin-bottom: 14px; display: block; }
.agent a { color: #fff; }
.agent p { margin-bottom: .5em; }
.form-card { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: 2px; }
.form-card h3 { margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea { width: 100%; font: inherit; color: inherit; padding: .7em .8em; border: 1.5px solid #9fb0b6; border-radius: 2px; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--abyss); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.status.error { color: #a4261a; }

/* ---------- footer ---------- */
.footer { background: var(--tile); color: #c7d0d4; font-size: .95rem; padding-block: 34px 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a { color: #fff; }
.footer p { margin: 0; }
.footer .fine { flex-basis: 100%; font-size: .88rem; color: #94a3a9; }
.footer button { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }

/* ---------- sticky mobile bar ---------- */
.sticky-cta { display: none; position: fixed; inset: auto 0 0 0; z-index: 25; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,43,54,.97); }
.sticky-cta .btn { flex: 1; min-height: 46px; padding-inline: .8em; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(6,18,23,.96); display: flex; flex-direction: column; color: #fff; touch-action: pan-y; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff0; }
.lb-bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 20px 18px; font-size: .95rem; }
.lb-btn { position: absolute; appearance: none; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }
body.lb-open { overflow: hidden; }

/* ---------- cookie banner ---------- */
.consent { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; max-width: 560px; background: #fff; color: var(--ink); padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid var(--abyss); border-radius: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: .95rem; }
.consent p { margin-bottom: 12px; }
.consent .cta-row .btn { min-height: 44px; padding: .55em 1.1em; }
.consent .btn-ghost { color: var(--abyss); }
.consent .btn-ghost:hover { background: var(--chalk); }

/* ---------- legal pages ---------- */
.page { padding-block: calc(var(--nav-h) + 48px) 80px; background: var(--paper); }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6em; }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page mark { background: #fff1b8; padding: 0 .25em; }
.page address { font-style: normal; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav nav a:not(.btn), .nav nav .menu-wrap { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .general, .contact-grid { grid-template-columns: 1fr; }
  .room { grid-template-columns: 1fr; }
  .vgroup { font-size: 1.08rem; }
  .room-photos.single-portrait { grid-template-columns: minmax(0, 80%); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 96px; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; margin: 0; }
  .keyfeatures { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
