/* ==========================================================================
   Maslina Collection – Stylesheet
   Palette: cream / sand / dark olive (logo) / muted Adriatic blue
   ========================================================================== */

:root {
  /* Palette inspired by ritzparis.com: cream, champagne white and deep navy (sampled #FBF8F5, #FFFFFF, #183456) */
  --cream: #fbf8f5;
  --cream-2: #ffffff;
  --sand: #ffffff;
  --sand-2: #ece7e0;
  --olive: #183456;
  --olive-2: #24456e;
  --olive-3: #7f8aa3;
  --olive-tint: #e9edf4;
  --adria: #2f5d8a;
  --adria-tint: #e3eaf3;
  --ink: #1d2740;
  --muted: #5c6782;
  --line: #e6e0d7;
  --danger: #9b2c2c;
  --danger-tint: #f8e4e4;
  --ok: #2f5d3a;
  --ok-tint: #e2efe3;
  --warn: #8a5a12;
  --warn-tint: #fbeed6;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 30px rgba(24, 52, 86, 0.08);
  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-2); text-decoration: none; }
a:hover { color: var(--olive); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; color: var(--olive); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--adria); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.eyebrow {
  display: inline-block; margin: 0 0 .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-3);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-sand { background: var(--sand); }
.section-white { background: var(--cream-2); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; background: var(--olive); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24,52,86,.18); }
.btn-outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: #fff; }
.btn-light { background: #fff; color: var(--olive); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--olive); }
.btn-ghost { background: transparent; color: var(--olive); padding-left: .4rem; padding-right: .4rem; }
.btn-ghost:hover { color: var(--adria); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .ico, .btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 245, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(24,52,86,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

/* Brand lock-up: icon cut from the chosen logo + wordmark set in text (horizontal version for narrow header bars). */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--olive); }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.22rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--olive-2); margin-top: .22rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { position: relative; display: flex; flex-direction: column; justify-content: center; font-size: .9rem; font-weight: 500; color: var(--ink); padding: .3rem 0; line-height: 1.2; }
.nav-sub { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-3); margin-top: .15rem; }
.nav .btn { display: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: .9rem; }

/* Language selector (custom dropdown, navy / cream) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .88rem; font-weight: 500; color: var(--olive); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem .5rem .75rem; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--olive); background: #fff; }
.lang-btn svg { width: 15px; height: 15px; color: var(--olive); flex: none; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: .35rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(24,52,86,.12); z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .7rem; border-radius: 3px; font-size: .9rem; color: var(--ink); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--olive-tint); color: var(--olive); }
.lang-menu li[aria-selected="true"] a { color: var(--olive); font-weight: 600; }
.lang-menu li[aria-selected="true"] a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--olive); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--olive); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Draft notice (only rendered while site.draft = true)
   ========================================================================== */
.draft-banner { background: var(--warn-tint); color: var(--warn); font-size: .85rem; border-bottom: 1px solid #ecd9b4; }
.draft-banner .container { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.draft-banner strong { letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.draft-banner ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.draft-banner li::before { content: "•"; margin-right: .4rem; opacity: .6; }
.todo { display: inline-block; background: var(--warn-tint); color: var(--warn); border: 1px dashed #d8b97c; border-radius: 3px; padding: 0 .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: min(84vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph { align-items: flex-start; justify-content: flex-end; padding: 20px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,35,22,.05) 0%, rgba(31,35,22,.35) 55%, rgba(31,35,22,.7) 100%); }
.hero-content { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); max-width: 760px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; margin-bottom: .6rem; text-wrap: balance; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--olive); border-color: #fff; }

/* Logo presentation block (home intro) */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-logo { padding: clamp(16px, 3vw, 40px); }
.intro-logo img { width: 100%; max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   Photo placeholders (used until the real apartment photos are supplied)
   ========================================================================== */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--cream) 0%, #e6e2dc 50%, var(--olive-3) 100%);
  color: var(--olive); overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 10px, transparent 10px 28px); }
.ph-label { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; padding: .7rem 1rem; background: rgba(253,251,246,.84); border: 1px dashed var(--olive-3); border-radius: var(--radius); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; max-width: 88%; }
.ph-label svg { width: 22px; height: 22px; opacity: .7; }
.ph-sm .ph-label { padding: .45rem .6rem; font-size: .66rem; gap: .25rem; }
.ph-sm .ph-label svg { width: 16px; height: 16px; }
.ph.ph-dark { background: linear-gradient(160deg, #6b7fa3 0%, #2f4d78 55%, #183456 100%); }

/* ==========================================================================
   Apartment cards (home)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card {
  display: flex; flex-direction: column; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: clamp(20px, 2.5vw, 30px); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-body h3 { font-size: 1.45rem; margin: 0; }
.card-loc { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .92rem; }
.card-loc svg { width: 16px; height: 16px; color: var(--adria); }
.card-text { color: var(--muted); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .2rem 0 0; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--ink); padding: .35rem .65rem; background: var(--sand); border-radius: 3px; }
.facts svg { width: 15px; height: 15px; color: var(--olive-2); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* Review badge */
.score { display: inline-flex; align-items: center; gap: .6rem; }
.score-num { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .5rem; background: var(--olive); color: #fff; font-weight: 700; font-size: 1.05rem; border-radius: 4px 4px 4px 0; }
.score-meta { display: flex; flex-direction: column; line-height: 1.25; }
.score-meta strong { font-size: .92rem; color: var(--olive); }
.score-meta span { font-size: .78rem; color: var(--muted); }
.score-pending { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   Host / about
   ========================================================================== */
.host { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.host-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.host-media .ph, .host-media img { width: 100%; height: 100%; object-fit: cover; }
.host-langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.host-langs li { font-size: .82rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.host-langs li { border-radius: 3px; }

/* Values list (why book direct etc.) */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.value { padding: clamp(20px, 2.5vw, 28px); background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.value svg { width: 28px; height: 28px; color: var(--olive-2); margin-bottom: .9rem; }
.value h3 { font-size: 1.1rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Apartment page
   ========================================================================== */
.apt-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.apt-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.apt-head h1 { margin-bottom: .3rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--olive); }
.crumbs span::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; }
.gallery > * { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery > *:first-child { grid-row: 1 / span 2; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery-btn:focus-visible { outline-offset: -4px; }
.gallery-more { position: absolute; right: 12px; bottom: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(31,35,22,.72); color: #fff; font-size: .8rem; padding: .35rem .6rem; border-radius: 3px; pointer-events: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,22,14,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .85rem; }
.lightbox button svg { width: 22px; height: 22px; }

/* Facts strip */
.factbar { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: clamp(20px, 3vw, 32px) 0; }
.factbar li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; }
.factbar svg { width: 18px; height: 18px; color: var(--olive-2); }
.factbar .todo { margin-left: .2rem; }

/* Two-column content layout */
.apt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.apt-main > section + section { margin-top: clamp(40px, 5vw, 64px); }
.apt-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }
.prose p { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.5rem; }
.amenities li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; padding: .35rem 0; }
.amenities svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--olive-2); }

.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.highlight { padding: 1.1rem 1.2rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); }
.highlight h3 { font-size: 1rem; margin-bottom: .3rem; }
.highlight p { margin: 0; font-size: .92rem; color: var(--muted); }

.dist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem; }
.dist li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dist li span:last-child { font-weight: 600; color: var(--olive); white-space: nowrap; }
.note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.note a { text-decoration: underline; }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.review { padding: 1.2rem 1.3rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .6rem; }
.review blockquote { margin: 0; font-size: .95rem; }
.review footer { font-size: .8rem; color: var(--muted); margin-top: auto; }
.review footer strong { color: var(--ink); font-weight: 600; }
.review .tag { display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--adria); background: var(--adria-tint); padding: .1rem .4rem; border-radius: 3px; margin-left: .3rem; }
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem 1.2rem; margin: 1rem 0 1.4rem; }
.subcats li { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.subcats .bar { height: 4px; background: var(--sand-2); border-radius: 2px; margin-top: .35rem; overflow: hidden; }
.subcats .bar i { display: block; height: 100%; background: var(--olive-2); }
.subcats b { color: var(--ink); }

/* Platform links */
.platforms { display: flex; flex-wrap: wrap; gap: .7rem; }
.platform { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--cream-2); border-radius: var(--radius); font-weight: 500; font-size: .92rem; color: var(--ink); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.platform:hover { border-color: var(--olive-3); transform: translateY(-1px); color: var(--olive); }
.platform svg { width: 18px; height: 18px; }
.platform.is-pending { opacity: .7; cursor: default; }

/* Sticky enquiry aside */
.aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 1.2rem; }
.panel { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px); }
.panel h2, .panel h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.panel-cta { text-align: center; }
.panel-cta p { color: var(--muted); font-size: .92rem; }
.contact-lines { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--ink); }
.contact-lines svg { width: 18px; height: 18px; color: var(--olive-2); flex: none; }

/* ==========================================================================
   Availability calendar
   ========================================================================== */
.cal { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2.2vw, 24px); }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.cal-month { font-weight: 600; color: var(--olive); font-size: 1.05rem; text-transform: capitalize; }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--olive); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.cal-nav:hover { background: var(--sand); }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .3rem 0 .5rem; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: .88rem; color: var(--ink); padding: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.cal-day.is-empty { border-color: transparent; background: transparent; }
.cal-day.is-past { color: #b5b9c4; background: transparent; border-color: #efeae2; cursor: default; }
.cal-day.is-unknown { background: repeating-linear-gradient(135deg, #fff 0 6px, #f1ece4 6px 8px); border-style: dashed; color: var(--muted); }
.cal-day.is-free:hover { border-color: var(--olive-2); background: var(--olive-tint); }
.cal-day.is-booked { background: var(--sand); color: #8a92a6; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-booked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 55%; height: 1px; background: #9aa3b5; transform: translate(-50%, -50%) rotate(-45deg); }
.cal-day.is-selected { background: var(--olive); color: #fff; border-color: var(--olive); }
.cal-day.in-range { background: var(--olive-tint); border-color: #c9d3e3; }
.cal-day.is-today { font-weight: 700; }
.cal-day.is-today::before { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--adria); transform: translateX(-50%); }
.cal-day.is-selected.is-today::before { background: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; display: inline-block; }
.cal-legend .l-booked { background: var(--sand); position: relative; }
.cal-legend .l-booked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; height: 1px; background: #9aa3b5; transform: translate(-50%,-50%) rotate(-45deg); }
.cal-legend .l-unknown { background: repeating-linear-gradient(135deg, #fff 0 4px, #f1ece4 4px 6px); border-style: dashed; }
.cal-legend .l-selected { background: var(--olive); border-color: var(--olive); }
.cal-status { margin-top: .8rem; font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.cal-status svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; }
.cal-status.is-warn { color: var(--warn); }
.cal-status.is-ok { color: var(--ok); }
.cal-hint { margin-top: .6rem; font-size: .85rem; color: var(--olive); min-height: 1.3em; }
.cal-disclaimer { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.cal-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; font-size: .88rem; }
.cal-selection button { background: none; border: 0; color: var(--adria); text-decoration: underline; padding: 0; font-size: .85rem; }

/* ==========================================================================
   Enquiry form
   ========================================================================== */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--olive); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive-2); box-shadow: 0 0 0 3px rgba(36,69,110,.14); }
.field textarea { min-height: 120px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; font-size: .8rem; color: var(--danger); }
.field.has-error .field-error { display: block; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--olive); }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -5000px; }
.form-status { display: none; padding: .9rem 1rem; border-radius: var(--radius); font-size: .92rem; }
.form-status.is-visible { display: flex; gap: .6rem; align-items: flex-start; }
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status.is-error { background: var(--danger-tint); color: var(--danger); }
.form-status.is-success { background: var(--ok-tint); color: var(--ok); }
.form-status.is-info { background: var(--adria-tint); color: var(--adria); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact section (home) */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: .9rem; margin-top: 1.4rem; }
.contact-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card svg { width: 22px; height: 22px; color: var(--olive-2); flex: none; margin-top: .1rem; }
.contact-card strong { display: block; font-size: .92rem; color: var(--olive); }
.contact-card a, .contact-card span.val { font-size: .98rem; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }

/* ==========================================================================
   Legal / simple pages
   ========================================================================== */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(16px, 3vw, 28px); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.placeholder-box { padding: 1rem 1.2rem; border: 1px dashed #d8b97c; background: var(--warn-tint); color: var(--warn); border-radius: var(--radius); font-size: .92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--olive); color: rgba(255,255,255,.82); padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.footer-logo { display: inline-block; }
.footer-logo img { width: 210px; }
.footer p { font-size: .9rem; max-width: 36ch; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer li { margin-bottom: .5rem; font-size: .92rem; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom li { margin: 0; font-size: .8rem; }

/* ==========================================================================
   Reveal on scroll (only when JS is on; reduced motion disables it)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .1s; }
.js [data-reveal][data-delay="2"] { transition-delay: .2s; }
.js [data-reveal][data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn-primary:hover, .platform:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .apt-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-rows: 220px 220px; }
}

/* Collapsed navigation already on tablets: the two apartment names are too long for a single row */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-2); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(24,52,86,.08);
    padding: .4rem var(--gutter) 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: .9rem; border-bottom: 0; color: #fff; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: .56rem; }
  .header-tools .btn-enquire { display: none; }
  .hero { min-height: 78vh; }
  .intro, .host, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > * { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; grid-row: auto; }
  .gallery-more { display: none; }
  .amenities, .highlights, .dist { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .apt-head-row .btn { width: 100%; }
  .lang-btn { padding: .45rem .55rem; font-size: .82rem; }
  .cal { padding: 14px; }
  .cal-day { font-size: .82rem; }
}

/* Cream cards on white sections, white cards on cream sections (Ritz-style alternation) */
.section-sand .card, .section-sand .review { background: var(--cream); }
.section-white .value { background: var(--cream); }

/* WhatsApp buttons (discreet, navy outline) */
.wa { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid var(--olive); border-radius: 3px; font-size: .8rem; font-weight: 600; color: var(--olive); line-height: 1.2; transition: background .2s, color .2s; }
.wa:hover { background: var(--olive); color: #fff; }
.wa svg { width: 14px; height: 14px; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .25rem; }
.contact-card .phone-row a:first-child, .contact-lines .phone-row a:first-child { font-size: .98rem; }
.footer .wa { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.9); padding: .2rem .5rem; font-size: .74rem; }
.footer .wa:hover { background: #fff; color: var(--olive); text-decoration: none; }
.footer .phone-row { margin: 0; gap: .4rem .6rem; }

/* Location map + sights */
.map { height: 400px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--olive-tint); overflow: hidden; z-index: 0; }
.map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8); }
.map-pin span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-size: .72rem; font-weight: 700; color: #fff; background: var(--olive-2); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(24,52,86,.35); }
.map-pin-home span { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--olive); }
.map .leaflet-popup-content-wrapper { border-radius: 4px; color: var(--ink); font-family: var(--font); }
.map .leaflet-popup-content { margin: .6rem .9rem; font-size: .88rem; line-height: 1.4; }
.sights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; counter-reset: none; }
.sight { display: flex; gap: .8rem; padding: 1rem 1.1rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); }
.sight-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--olive-2); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }
.sight h3 { font-size: .98rem; margin-bottom: .25rem; }
.sight p { margin: 0 0 .4rem; font-size: .88rem; color: var(--muted); }
.sight-km { font-size: .78rem; font-weight: 600; color: var(--olive-3); letter-spacing: .03em; }
@media (max-width: 860px) { .sights { grid-template-columns: 1fr; } .map { height: 320px; } }
