/* Nestivo — public site. Mobile-first, no framework. */
:root {
  --bg: #f6f2ea; --paper: #fffdf9; --ink: #16140f; --ink2: #3a362e; --muted: #6f695e;
  --line: #e4ddd0; --gold: #a8834a; --gold2: #c9a46a; --dark: #14130f; --wa: #1f9d55;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px; --shadow: 0 18px 40px -24px rgba(22, 20, 15, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.kicker.light { color: var(--gold2); }
.muted { color: var(--muted); } .small { font-size: .85rem; }

/* buttons */
.btn, .btn-ghost, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .02em; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn { background: var(--ink); color: #fff; }
.btn:hover { background: #2c2920; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188547; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-line { min-height: 40px; padding: 0 16px; border: 1px solid currentColor; font-size: .82rem; }
.btn-block { width: 100%; }

/* header */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(246, 242, 234, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-over { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: #fff; transition: background .3s, color .3s, border-color .3s; }
.nav-over.solid { background: rgba(246, 242, 234, .94); color: var(--ink); border-color: var(--line); }
.nav-in { width: min(1200px, 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: 600 1.25rem/1 var(--serif); letter-spacing: .32em; }
.links { display: none; gap: 30px; font-size: .9rem; }
.links a { opacity: .85; } .links a:hover { opacity: 1; }
.nav-act { display: flex; align-items: center; gap: 12px; }
.lang { font-size: .8rem; font-weight: 600; letter-spacing: .1em; opacity: .85; padding: 6px; }

/* hero */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 7, .55) 0%, rgba(10, 9, 7, .15) 35%, rgba(10, 9, 7, .78) 100%); }
.hero-in { position: relative; padding: 120px 0 56px; }
.hero h1 { max-width: 13ch; }
.lead { font-size: 1.08rem; max-width: 46ch; opacity: .92; margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* stats */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-in > div { padding: 22px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stats-in > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats-in > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats strong { font: 500 2rem/1 var(--serif); color: var(--ink); }
.stats strong span { font-size: 1rem; color: var(--muted); }
.stats strong .ic { color: var(--gold); width: 26px; height: 26px; }
.stats > div span, .stats-in > div > span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* sections */
.sec { padding: 72px 0; }
.sec-dark { background: var(--dark); color: #f1ece2; }
.sec-soft { background: var(--paper); border-top: 1px solid var(--line); }

/* cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 34px; }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s; }
.card:hover { transform: translateY(-4px); }
.card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #ddd5c6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 253, 249, .95); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; letter-spacing: .03em; }
.tag-inline { position: static; border: 1px solid var(--line); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-area { font-size: .78rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.card-tag { color: var(--muted); font-size: .93rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--ink2); margin-bottom: 16px; }
.specs span { display: inline-flex; gap: 6px; align-items: center; }
.card-foot { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.rate { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.rate .ic { color: var(--gold); }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.cards-sm .card-body h3 { font-size: 1.2rem; margin: 0; }

/* service */
.svc { display: grid; gap: 30px; margin-top: 36px; }
.svc-item .ic { width: 34px; height: 34px; color: var(--gold2); margin-bottom: 14px; }
.svc-item h3 { color: #fff; font-size: 1.4rem; }
.svc-item p { color: #b9b2a4; font-size: .95rem; margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; gap: 18px; align-items: center; font-size: 1.02rem; }
.steps span { font: 500 1.9rem/1 var(--serif); color: var(--gold); }

/* CTA */
.cta { background: linear-gradient(135deg, #1b1914, #2a251b); color: #f1ece2; padding: 56px 0; }
.cta-in { display: flex; flex-direction: column; gap: 22px; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { color: #c7bfae; margin: 0; }

/* floating WhatsApp */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); z-index: 40; }
.fab .ic { width: 28px; height: 28px; }

/* footer */
.foot { background: var(--dark); color: #d9d2c4; padding: 54px 0 24px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot .muted { color: #9d968a; }
.foot-in { display: grid; gap: 28px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a:hover { color: #fff; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid #2c2922; }

/* ---------- apartment page ---------- */
.apt { padding: 22px 0 0; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.apt h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.apt-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .9rem; margin-bottom: 18px; }
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 88%; padding: 0; border: 0; background: #ddd5c6; scroll-snap-align: center; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.g-item:hover img { transform: scale(1.03); }
.g-all { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 253, 249, .95); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .82rem; font-weight: 600; }
.apt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 30px 0 60px; }
.specs-lg { font-size: .98rem; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 1.9rem; }
.lead-dark { font-size: 1.05rem; color: var(--ink2); }
.feat { padding: 0; margin: 0 0 20px; list-style: none; display: grid; gap: 10px; }
.feat li { position: relative; padding-left: 22px; color: var(--ink2); }
.feat li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--gold); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; background: var(--paper); }
.badge .ic { color: var(--gold); }
.block-svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-top: 26px; }
.inc { display: grid; gap: 14px; }
.inc span { display: flex; gap: 12px; align-items: center; }
.inc .ic { color: var(--gold); width: 22px; height: 22px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink2); }
.rules li { display: flex; gap: 12px; }
.rules .ic { color: var(--gold); margin-top: 3px; }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.t-item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd5c6; }
.t-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.t-item:hover img { opacity: .85; }

/* booking card */
.book-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.book-card h2 { font-size: 1.7rem; }
.book-card label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.book-card input, .book-card select { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 500 1rem var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dates input { min-width: 0; -webkit-appearance: none; appearance: none; }
.avail { min-height: 1.4em; font-size: .9rem; margin: 2px 0 12px; }
.avail.ok { color: #1d7a45; } .avail.no { color: #b3261e; }
.note { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* mobile booking bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; backdrop-filter: blur(10px); }
.mbar strong { display: block; font: 600 1rem/1.2 var(--serif); max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar span { font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; }
.mbar span .ic { color: var(--gold); }
.mbar .btn { min-height: 46px; }
.apt ~ .fab, body:has(.mbar) .fab { display: none; }
body:has(.mbar) .foot { padding-bottom: 96px; }

/* photo viewer */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 7, .96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-img { max-width: 100vw; max-height: 86svh; object-fit: contain; }
.lb-x { position: absolute; top: 10px; right: 12px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; background: rgba(255, 255, 255, .08); border: 0; color: #fff; font-size: 2.4rem; border-radius: 8px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #cfc8ba; font-size: .85rem; margin: 0; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .inc { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(4, 1fr); }
  .stats-in > div { border: 0 !important; border-right: 1px solid var(--line) !important; }
  .stats-in > div:last-child { border-right: 0 !important; }
}
@media (min-width: 900px) {
  .links { display: flex; }
  .sec { padding: 104px 0; }
  .hero-in { padding-bottom: 88px; }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards > .card { grid-column: span 2; }
  .cards > .card:nth-child(-n+2) { grid-column: span 3; }
  .cards > .card:nth-child(-n+2) .card-img { aspect-ratio: 16 / 9; }
  .cards-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-sm > .card, .cards-sm > .card:nth-child(-n+2) { grid-column: span 1; }
  .cards-sm > .card:nth-child(-n+2) .card-img { aspect-ratio: 3 / 2; }
  .svc { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; align-items: flex-start; }
  .cta-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-in { grid-template-columns: 2fr 1fr; }
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; overflow: visible; margin: 0; padding: 0; }
  .g-item { aspect-ratio: auto; border-radius: 0; }
  .g-1 { grid-row: span 2; }
  .gallery { border-radius: var(--r); overflow: hidden; }
  .apt-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
  .book { position: relative; }
  .book-card { position: sticky; top: 88px; }
  .mbar { display: none; }
  body:has(.mbar) .foot { padding-bottom: 24px; }
  body:has(.mbar) .fab { display: grid; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-rows: 260px 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
