/* Marius Costa Blanca
   Visual direction (from the approved ChatGPT mockup): full-bleed photography, deep sea blue,
   sand accents, cream sections, square edges, Playfair Display + DM Sans.
   Single light theme by choice. */
:root {
  --ink: #11313C;
  --blue: #0D4F67;      /* primary */
  --sea: #236A7B;       /* accent text (AA on white and cream) */
  --sand: #D9BD91;      /* accent on dark */
  --sand-soft: #E6C89C;
  --cream: #F7F4EE;     /* alternate section */
  --white: #FFFFFF;
  --line: #DBE3E4;
  --muted: #5D737A;
  --deep: #082F3E;      /* footer */
  --overlay: 5, 38, 51; /* rgb for photo gradients */
  --wa: #157F3D;       /* WhatsApp green, darkened for AA contrast with white text */
  --ok: #2E7D4F;
  --warn: #B7791F;
  --sold: #8A3B33;
  --shadow: 0 18px 55px rgba(18, 48, 59, .12);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);
  --h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --maxw: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: max(16px, 3vw); }
.muted { color: var(--muted); }
.selectable { user-select: all; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); }
.notice { font-size: .82rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); border-bottom-color: rgba(255,255,255,.24); }
.site-header.is-overlay.is-solid, .site-header.is-overlay.menu-open { background: var(--deep); border-bottom-color: transparent; }
.bar { max-width: var(--maxw); margin-inline: auto; padding-inline: max(16px, 3vw); display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; flex: none; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: .95rem; letter-spacing: 0; opacity: .9; }
.brand-name { font-size: .9rem; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav a { white-space: nowrap; font-size: .88rem; opacity: .82; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--sand); }
.langs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); background: var(--cream); box-shadow: 0 3px 12px rgba(17,49,60,.06); }
.lang-btn { min-width: 34px; min-height: 32px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 4px 7px; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .08em; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.lang-btn:hover { color: var(--blue); border-color: var(--sand); background: var(--white); transform: translateY(-1px); }
.lang-btn[aria-pressed="true"] { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 10px rgba(13,79,103,.22); }
.head-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--wa); color: var(--white); font-size: .85rem; font-weight: 600; }
.head-wa .ico { width: 18px; height: 18px; }
.head-wa:hover { background: #0F6630; }
.menu-btn { display: none; align-items: center; gap: 8px; color: inherit; background: transparent; border: 1px solid currentColor; padding: 8px 14px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 14px; height: 1.5px; background: currentColor; position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -4px; } .menu-lines::after { top: 4px; }

@media (max-width: 1200px) {
  .bar { flex-wrap: wrap; gap: 10px 14px; min-height: 72px; padding-block: 10px; }
  .langs { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { order: 4; width: 100%; margin: 0; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-block: 4px 12px; }
  .nav a { display: block; padding: 11px 0; font-size: 1rem; border-bottom: 1px solid rgba(127,150,155,.3); }
}
@media (max-width: 700px) { .head-wa { display: none; } }
@media (max-width: 520px) { .brand-name { display: none; } .lang-btn { padding: 6px 5px; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--blue);
  font-size: .9rem; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.on-dark .btn-primary { background: var(--white); color: var(--blue); border-color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: var(--white); }
.on-dark .btn:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--white); }
.btn-wa:hover { background: #0F6630; border-color: #0F6630; }
.btn-wa, .head-wa, .wa-float, .call-link {
  position: relative; overflow: visible;
  box-shadow: 0 0 0 2px rgba(37,211,102,.32), 0 0 17px rgba(37,211,102,.5);
  animation: contact-light 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.btn-wa::after, .head-wa::after, .wa-float::after, .call-link::after {
  content: ""; position: absolute; z-index: 2; inset: -3px; border: 1.5px solid rgba(37,211,102,.68);
  border-radius: inherit; pointer-events: none; opacity: 0;
  animation: contact-radiate 2.4s cubic-bezier(.2, .65, .3, 1) infinite;
}
.call-link { display: inline-flex; align-items: center; min-height: 36px; padding: 3px 12px; border: 1px solid var(--wa); border-radius: 999px; color: #0F6630; font-weight: 700; }
.call-link:hover { background: var(--wa); color: var(--white); }
@keyframes contact-light {
  0%, 18%, 100% { box-shadow: 0 0 0 2px rgba(37,211,102,.18), 0 0 11px rgba(37,211,102,.28); }
  36% { box-shadow: 0 0 0 3px rgba(37,211,102,.34), 0 0 24px rgba(37,211,102,.72); }
  58% { box-shadow: 0 0 0 2px rgba(37,211,102,.22), 0 0 17px rgba(37,211,102,.46); }
}
@keyframes contact-radiate {
  0%, 28% { inset: -3px; opacity: 0; }
  38% { inset: -4px; opacity: .72; }
  74% { inset: -13px; opacity: 0; }
  100% { inset: -13px; opacity: 0; }
}
/* Contact cues are deliberately gentle and remain active even when the OS reduces
   general interface motion; all other site animation still follows that preference. */
@media (prefers-reduced-motion: reduce) {
  .btn-wa, .head-wa, .wa-float, .call-link { animation: contact-light 2.4s ease-in-out infinite !important; }
  .btn-wa::after, .head-wa::after, .wa-float::after, .call-link::after { animation: contact-radiate 2.4s ease-out infinite !important; }
}
.btn .ico { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--sea); }
.link-arrow span:last-child { transition: transform .15s ease; }
.link-arrow:hover span:last-child { transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); display: grid; align-items: end;
  min-height: min(92vh, 860px);
  background:
    linear-gradient(90deg, rgba(var(--overlay), .80), rgba(var(--overlay), .10)),
    url("../img/hero/costa-blanca.webp") center / cover no-repeat, var(--deep);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(7, 39, 49, .5)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-block: 180px 84px; display: grid; gap: 22px; }
.hero-inner > * { max-width: 760px; }
.hero .eyebrow { color: var(--sand-soft); }
.hero h1 { font-size: var(--h1); letter-spacing: -.03em; line-height: 1.02; }
.hero-lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); opacity: .92; max-width: 58ch; }
.hero-langs { font-size: .88rem; opacity: .85; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flags { font-size: .7rem; font-weight: 700; letter-spacing: .14em; border: 1px solid rgba(255,255,255,.5); padding: 4px 10px; }
@media (max-width: 700px) {
  .hero { background-image: linear-gradient(90deg, rgba(var(--overlay), .80), rgba(var(--overlay), .25)), url("../img/hero/costa-blanca-900.webp"); }
}
@media (max-width: 600px) { .hero { min-height: 680px; } .hero-inner { padding-block: 150px 60px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(70px, 9vw, 110px); }
.sec-cream { background: var(--cream); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: clamp(32px, 4vw, 46px); }
.sec-head > div { display: grid; gap: 12px; max-width: 720px; }
.sec-head > p { max-width: 460px; color: var(--muted); }
.sec-title { font-size: var(--h2); letter-spacing: -.015em; }

/* Why — joined tiles */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reason { background: var(--cream); padding: 32px 26px; display: grid; gap: 10px; align-content: start; }
.reason h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.reason p { color: var(--muted); font-size: .94rem; }
.reason-ico { width: 30px; height: 30px; fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 8px; }
@media (max-width: 960px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Property cards (shared: home + list) ---------- */
.card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--white); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--cream); color: var(--white); }
.card-media img, .card-media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.035); }
.card-media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5, 30, 40, .82)); }
.card-over { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 22px 18px; display: grid; gap: 4px; }
.card-over .eyebrow { color: var(--white); opacity: .9; font-size: .7rem; }
.card-title { font-size: 1.45rem; line-height: 1.15; }
.card-price { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.badges { position: absolute; z-index: 2; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; background: var(--white); color: var(--ink); }
.badge-reserved { background: var(--warn); color: var(--white); }
.badge-sold { background: var(--sold); color: var(--white); }
.badge-film { background: var(--blue); color: var(--white); }
.card.is-sold .card-media img, .card.is-sold .card-media svg { filter: saturate(.55); }
.card-body { display: grid; gap: 10px; padding: 16px 2px 4px; align-content: start; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.facts-dist { padding-top: 10px; border-top: 1px solid var(--line); }
.card-ref { font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.no-photo { position: absolute; z-index: 2; right: 14px; top: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--white); background: rgba(8, 47, 62, .7); padding: 5px 10px; }

/* placeholder scene for listings without photos */
.s-sky { fill: #E9DECB; } .s-sun { fill: #E6B567; } .s-sea { fill: #2F7F91; }
.s-shine { stroke: #A9D3DC; stroke-width: 2.5; stroke-linecap: round; fill: none; opacity: .75; }
.s-wall { fill: #FFFFFF; } .s-wall2 { fill: #EFE7D8; } .s-glass { fill: #0D4F67; opacity: .5; } .s-pool { fill: #A9D3DC; }
.s-palm { stroke: #3E5A4B; stroke-width: 5; fill: none; stroke-linecap: round; }
.s-frond { stroke: #3E5A4B; stroke-width: 4; fill: none; stroke-linecap: round; }

/* Home featured layout: one large + two stacked */
.featured { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: auto auto; gap: 28px 24px; }
.featured > .card:first-child { grid-row: span 2; }
.featured > .card:first-child .card-media { aspect-ratio: auto; min-height: 520px; height: 100%; }
.featured > .card:first-child .card-title { font-size: 1.9rem; }
.featured > .card:first-child { grid-template-rows: 1fr auto; }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured > .card:first-child { grid-row: auto; }
  .featured > .card:first-child .card-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Film band ---------- */
.film-sec { background: var(--blue); color: var(--white); }
.film-sec .eyebrow { color: var(--sand); }
.film-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.film-text { display: grid; gap: 18px; min-width: 0; }
.film-text p:not(.eyebrow) { opacity: .82; max-width: 46ch; }
.film-text .link-arrow { color: var(--sand); }
@media (max-width: 860px) { .film-wrap { grid-template-columns: 1fr; } }
.film {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  background-color: var(--deep); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-frame { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.4); pointer-events: none; }
.film-frame span { position: absolute; font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: #F2F6F7; font-variant-numeric: tabular-nums; }
.rec { top: 12px; left: 12px; color: #F5ADA3 !important; } .tc { top: 12px; right: 12px; } .ratio { bottom: 12px; left: 12px; } .drone { bottom: 12px; right: 12px; }
.film-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.14); cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.film-play:disabled { cursor: default; opacity: .75; }
.play-dot { display: block; margin-left: 31px; width: 0; height: 0; border-left: 18px solid #fff; border-block: 11px solid transparent; }
.film-note { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; font-size: .82rem; color: #F2F6F7; }
.film:not(.is-empty) .film-note { display: none; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.portrait { width: 100%; aspect-ratio: 1; background: var(--white) url("../img/marius.jpg") center / contain no-repeat; box-shadow: inset 0 0 0 1px rgba(13,79,103,.1); }
.copy { display: grid; gap: 18px; max-width: 60ch; }
.copy p:not(.eyebrow) { color: #506970; font-size: 1.04rem; }
.signature { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; color: var(--blue); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 32px; border: 1px dashed var(--line); display: grid; gap: 16px; align-content: start; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.quote figcaption { font-size: .82rem; color: var(--sea); }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.contact-grid > div:first-child { display: grid; gap: 16px; }
.contact-grid > div:first-child p { color: var(--muted); max-width: 52ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.contact-label { min-width: 90px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list .selectable { font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); display: grid; gap: 16px; }
.page-head h1 { font-size: var(--h1); letter-spacing: -.025em; max-width: 16ch; }
.page-head p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.page-head.simple { max-width: 760px; }

/* ---------- Properties list ---------- */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 20px; background: var(--cream); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #CBD6D8; background: var(--white); color: var(--ink); border-radius: 0; }
.list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }
.list-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.text-btn { border: 0; background: transparent; color: var(--sea); font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; } .grid { grid-template-columns: 1fr; } }
.empty { padding: clamp(32px, 5vw, 56px); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; background: var(--cream); }
.empty h2 { font-size: 1.8rem; }
.empty p { color: var(--muted); max-width: 52ch; }

/* ---------- Property detail ---------- */
.crumbs { padding-block: 22px 0; font-size: .88rem; }
.prop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; padding-block: 18px 26px; }
.prop-head > div { display: grid; gap: 10px; min-width: 0; }
.prop-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.02em; }
.prop-price { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-variant-numeric: lining-nums tabular-nums; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .86rem; color: var(--muted); }
.status { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; color: var(--white); background: var(--ok); }
.status-reserved { background: var(--warn); } .status-sold { background: var(--sold); }
.example-note { margin-bottom: 18px; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--sand); font-size: .9rem; }

.gallery { position: relative; background: var(--deep); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 9; max-width: 100%; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.g-slide img, .g-slide svg { width: 100%; height: 100%; object-fit: cover; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; }
.g-btn:disabled { opacity: .35; cursor: default; }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(8,47,62,.75); color: var(--white); font-size: .78rem; font-weight: 600; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: thin; }
.g-thumb { flex: 0 0 96px; height: 64px; padding: 0; border: 2px solid transparent; background: var(--cream); cursor: pointer; opacity: .65; }
.g-thumb img, .g-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"] { border-color: var(--blue); opacity: 1; }
@media (max-width: 620px) { .g-track { aspect-ratio: 4 / 3; } .g-btn { display: none; } }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 40px 90px; }
.prop-main { display: grid; gap: 48px; min-width: 0; }
.block { display: grid; gap: 18px; }
.block h2 { font-size: 1.8rem; }
.desc { font-size: 1.06rem; color: #3E5A62; max-width: 66ch; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.fact dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-size: 1.08rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 20px; }
.feat-list li { display: flex; gap: 10px; align-items: center; }
.feat-list li::before { content: ""; width: 8px; height: 8px; background: var(--sand); flex: none; }
.media-row { display: grid; gap: 14px; }
.costs { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.costs li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.costs b { font-variant-numeric: tabular-nums; }
.energy { display: flex; gap: 3px; align-items: end; flex-wrap: wrap; }
.energy span { display: grid; place-items: center; width: 38px; height: 30px; font-weight: 700; font-size: .85rem; color: var(--white); opacity: .38; }
.energy span.on { opacity: 1; height: 42px; width: 46px; font-size: 1.05rem; outline: 2px solid var(--ink); outline-offset: 2px; }
.e-A { background: #00863F; } .e-B { background: #3FA535; } .e-C { background: #A5C41C; color: var(--ink) !important; } .e-D { background: #F2D500; color: var(--ink) !important; }
.e-E { background: #F0A30A; } .e-F { background: #E2561B; } .e-G { background: #C9161D; }
.loc { display: grid; gap: 12px; padding: 22px; background: var(--cream); border: 1px solid var(--line); }
.loc-coords { font-variant-numeric: tabular-nums; font-weight: 600; }

.side { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.side .prop-price { font-size: 2rem; }
.side .btn { width: 100%; }
.side small { color: var(--muted); }
@media (max-width: 900px) {
  .prop-layout { grid-template-columns: 1fr; padding-bottom: 120px; }
  .side { position: static; box-shadow: none; }
}
.ask-bar { display: none; }
@media (max-width: 900px) {
  .ask-bar { display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px max(16px, 3vw) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,48,59,.08); }
  .ask-bar .prop-price { font-size: 1.3rem; }
  .ask-bar .btn { min-height: 46px; padding: 0 16px; }
  body.has-ask-bar .wa-float { display: none; }
}
.notfound { padding-block: clamp(64px, 10vw, 120px); display: grid; gap: 16px; justify-items: start; max-width: 680px; }
.notfound h1 { font-size: var(--h2); }
.notfound p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--white); padding-block: 56px 28px; }
.site-footer .call-link { color: var(--white); border-color: rgba(255,255,255,.72); }
.site-footer .call-link:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.site-footer .muted { color: rgba(255,255,255,.7); max-width: 36ch; }
.agent-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.foot-h { font-family: var(--f-body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--sand); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; overflow-wrap: anywhere; }
.foot-list a, .foot-legal a { opacity: .9; }
.foot-list a:hover, .foot-legal a:hover { opacity: 1; text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: rgba(255,255,255,.85); }
.foot-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }
.foot-social a { opacity: .82; } .foot-social a:hover { opacity: 1; text-decoration: underline; }
.foot-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--white); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.wa-float .ico { width: 28px; height: 28px; }

/* ---------- Forms ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }
.enquiry { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px); background: var(--cream); border: 1px solid var(--line); min-width: 0; }
.enquiry-compact { padding: clamp(18px, 2.5vw, 28px); }
.form-title { font-size: 1.7rem; }
.form-fields { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CBD6D8; background: var(--white); color: var(--ink); border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: var(--sea); }
[aria-invalid="true"] { border-color: var(--sold) !important; }
.field-err { color: var(--sold); font-size: .85rem; font-weight: 500; }
.field-err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
fieldset.field legend { width: 100%; padding: 0; margin-bottom: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check label { flex: 1; min-width: 0; }
.check a, .gdpr a, .prose a, .film-notice a { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; }
.check .field-err { width: 100%; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.gdpr { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.gdpr strong { color: var(--ink); font-size: .78rem; letter-spacing: .04em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: grid; gap: 10px; justify-items: start; padding: 18px 20px; border-left: 3px solid var(--sea); background: var(--white); }
.form-status.is-ok { border-left-color: var(--ok); }
.form-status.is-error { border-left-color: var(--sold); }
.form-status strong { font-size: 1.05rem; }
.contact-aside { display: grid; gap: 22px; align-content: start; }
.film-notice { color: rgba(255,255,255,.88); }
.film-sec .film-notice a { color: var(--sand); }
.link-btn { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; font: inherit; opacity: .82; }
.link-btn:hover { opacity: 1; text-decoration: underline; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -12px 36px rgba(18,48,59,.12);
  padding: 20px max(16px, 3vw) calc(20px + env(safe-area-inset-bottom, 0px)); }
.consent-in { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.consent-text { display: grid; gap: 6px; }
.consent h2 { font-size: 1.3rem; }
.consent p { font-size: .9rem; color: var(--muted); max-width: 70ch; }
.consent a { color: var(--sea); text-decoration: underline; }
.consent-settings { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.consent-actions .btn { min-height: 46px; padding: 0 18px; }
@media (max-width: 760px) { .consent-in { grid-template-columns: 1fr; } }

/* ---------- Long-form content (guides, legal) ---------- */
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(70px, 9vw, 110px); }
@media (max-width: 960px) { .prose-wrap { grid-template-columns: 1fr; } }
.prose { min-width: 0; max-width: 72ch; font-size: 1.04rem; color: #2E4A53; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--ink); margin-top: 2em; }
.prose h3 { font-family: var(--f-body); font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose .lead { font-size: 1.15rem; color: var(--muted); }
.prose .note { padding: 14px 18px; background: var(--cream); border-left: 3px solid var(--sand); font-size: .92rem; }
.prose .tofill { background: #FFF3CD; padding: 0 4px; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.steps > li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--f-display); font-size: 1.6rem; color: var(--sea); line-height: 1.1; }
.steps h3 { margin: 0 !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style-position: outside; }
.faq details > p { margin-top: 10px; }
.area-card { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.area-card h2 { margin-top: 0 !important; }
.area-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); list-style: none; padding: 0 !important; }
.area-facts b { color: var(--ink); }
.aside-box { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: grid; gap: 14px; padding: 24px; background: var(--cream); border: 1px solid var(--line); }
.aside-box h2 { font-size: 1.4rem; }
.aside-box p { font-size: .92rem; color: var(--muted); }
.aside-box .btn { width: 100%; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.toc a { color: var(--sea); }
@media (max-width: 960px) { .aside-box { position: static; } }

/* Portrait shared by the About, home and contact pages. */
.portrait-photo { aspect-ratio: 1; max-width: 100%; background: #F2F4F7 url("../img/marius.jpg") center / cover no-repeat; }
/* keep focused fields and anchor targets clear of the sticky header */
input, select, textarea, [id] { scroll-margin-top: 110px; }
[hidden] { display: none !important; }
.radios label.check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.radios label.check input { margin: 0; }
.prose > table { display: block; overflow-x: auto; }
.prose td { overflow-wrap: anywhere; }

/* reserve space for parts drawn by script, so the page doesn't jump while loading */
#site-header:empty { display: block; min-height: 85px; }
@media (max-width: 1200px) { #site-header:empty { min-height: 73px; } }
#prop-root:empty, #grid:empty, #featured:empty { min-height: 80vh; }
.film-sec .film-notice a { color: var(--sand) !important; }
