/* ============================================================
   ALPHA PROPERTY — Design System
   Navy heritage + warm gold luxury accent
   Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (from build brief) */
  --navy:        #153E74;   /* primary — kept brand equity */
  --navy-light:  #1B4F96;   /* hover / lighter variant */
  --navy-deep:   #0E2C54;   /* dark sections */
  --gold:        #C9A96E;   /* luxury accent */
  --gold-ink:    #87672E;   /* gold for small text on light backgrounds (4.6:1 on paper) */
  --gold-soft:   #E2CFA3;   /* light gold for fills */
  --paper:       #F5F0E8;   /* warm white background */
  --surface:     #FFFEFA;   /* card backgrounds */
  --ink:         #1A1A18;   /* near-black text */
  --stone:       #6B6860;   /* muted secondary text */
  --line:        #E3DCCF;   /* hairline borders */

  --font-display: 'Cormorant Garamond', Georgia, serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.33rem, 1.2rem + 0.6vw, 1.7rem);
  --step-2:  clamp(1.77rem, 1.5rem + 1.2vw, 2.6rem);
  --step-3:  clamp(2.4rem, 1.9rem + 2.4vw, 4rem);
  --step-4:  clamp(3rem, 2.1rem + 4.5vw, 6rem);

  /* Spacing & layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --shadow-sm: 0 2px 8px rgba(21, 62, 116, 0.06);
  --shadow-md: 0 14px 40px rgba(21, 62, 116, 0.12);
  --shadow-lg: 0 30px 70px rgba(14, 44, 84, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
/* On dark sections the brighter gold reads well (6:1 on navy) */
.section--dark .eyebrow, .stats .eyebrow, .page-hero .eyebrow, .gv-banner .eyebrow, .site-footer .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); color: var(--stone); line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.section-head { max-width: 60ch; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }

/* Dark section */
.section--dark { background: var(--navy-deep); color: var(--paper); position: relative; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(245,240,232,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1em; height: 1em; }
.btn--primary { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,169,110,0.4); background: var(--gold-soft); }
.btn--ghost { border: 1px solid currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
/* Hidden while scrolling down, back on the first scroll up */
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
/* Pages without a dark banner at the top get a solid header from the start,
   and their content starts below it instead of underneath it */
.site-header--solid { background: rgba(14,44,84,0.97); box-shadow: 0 2px 24px rgba(0,0,0,0.12); }
.site-header--solid + main, .site-header--solid ~ main { padding-top: 112px; }
.site-header.is-scrolled {
  background: rgba(14,44,84,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}

/* Trust bar */
.trust-bar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-height: 40px; overflow: hidden;
  transition: max-height 0.38s var(--ease), opacity 0.3s;
}
.trust-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0;
}
.trust-bar__est {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-family: 'DM Sans', sans-serif;
}
.trust-bar__phone {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: color 0.25s;
}
.trust-bar__phone:hover { color: #fff; }
.trust-bar__phone svg { width: 13px; height: 13px; flex-shrink: 0; }
.is-scrolled .trust-bar { max-height: 0; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .trust-bar__est { display: none; } }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 0; transition: padding 0.38s var(--ease); }
.is-scrolled .nav { padding: 0.65rem 0; }

/* Logo — real image always, both transparent and scrolled navy states */
.nav__logo {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: #fff;
}
.nav__logo-img {
  height: 38px; width: auto; display: block;
  filter: drop-shadow(0 1px 10px rgba(0,0,0,0.3));
}
.nav__logo-text { display: none; }
.nav__logo .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.nav__links { display: flex; gap: 1.9rem; align-items: center; }
/* Menu labels and the header button stay on one line in every language */
.nav__links a, .nav__cta { white-space: nowrap; }
@media (max-width: 1360px) { .nav { gap: 1.2rem; } .nav__links { gap: 1.25rem; } }
.nav__links a { font-size: var(--step--1); font-weight: 500; color: rgba(255,255,255,0.9); position: relative; transition: color 0.3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.is-scrolled .nav__links a { color: rgba(255,255,255,0.9); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; }
.nav__toggle span { width: 24px; height: 2px; background: currentColor; color: #fff; transition: 0.3s; }
.is-scrolled .nav__toggle span { background: #fff; }

@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
/* 2.5D parallax stage — gives the tilt real perspective depth. */
.hero__media { position: absolute; inset: 0; z-index: -2; perspective: 1200px; overflow: hidden; }
/* Gradient scrim for text legibility, painted above the tilting image. */
.hero__media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(14,44,84,0.35) 0%, rgba(14,44,84,0.15) 40%, rgba(14,44,84,0.85) 100%); }
/* The layer we tilt + drift. CSS vars are written from JS (cursor) and scroll.
   Oversized + inset negatives so the edges never show during the tilt. */
.hero__parallax {
  position: absolute; inset: -8%; width: 116%; height: 116%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--tiltX, 0deg))
    rotateY(var(--tiltY, 0deg))
    translate3d(var(--shiftX, 0px), calc(var(--shiftY, 0px) + var(--scrollY, 0px)), 0)
    scale(1.06);
  will-change: transform;
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Slow Ken Burns drift layered under the parallax tilt. */
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .hero__parallax { transform: scale(1.04); transition: none; }
  .hero__img { animation: none; }
  .hero__inner { animation: none; }
}
.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; padding-bottom: clamp(3rem, 8vh, 7rem); padding-top: 8rem;
  /* Own layer in front of the tilting photo, so Safari can never draw the photo through the text */
  position: relative; z-index: 1; transform: translateZ(0);
  /* Visible from first paint: a CSS fade-up that doesn't wait for any script */
  animation: heroIn 0.9s var(--ease) 0.15s both;
}
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: translateZ(0); } }
/* Phones and tablets: no 3D tilt or scroll-linked movement (main.js skips it too);
   the photo keeps its gentle zoom, which runs entirely on the GPU. */
@media (hover: none), (pointer: coarse), (max-width: 899px) {
  .hero__media { perspective: none; }
  .hero__parallax { transform: scale(1.06); transform-style: flat; will-change: auto; }
}
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero .eyebrow { color: var(--gold-soft); }
.hero__sub { max-width: 52ch; font-size: var(--step-1); color: rgba(255,255,255,0.88); margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: scrolldrop 2s infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Search bar (soft conversion) ---------- */
.search-bar {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.5rem;
  background: var(--surface); padding: 0.7rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); margin-top: 2.4rem; max-width: 760px;
}
.search-bar label { display: flex; flex-direction: column; padding: 0.5rem 0.9rem; text-align: left; }
.search-bar label span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone); font-weight: 600; }
.search-bar select, .search-bar input { border: none; background: none; font: inherit; color: var(--ink); font-size: var(--step--1); padding-top: 2px; outline: none; }
.search-bar .btn { justify-content: center; border-radius: var(--radius); }
@media (max-width: 640px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .btn { grid-column: 1 / -1; } }
/* Comfortable tap height for the search fields (and 16px text so iOS doesn't zoom in) */
.search-bar select, .search-bar input { min-height: 2.75rem; font-size: max(16px, var(--step--1)); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats { background: var(--navy); color: #fff; }
/* gold hairlines between figures; a second row starts without one */
@media (min-width: 641px) {
  .stats__grid > * + * { border-left: 1px solid rgba(201,169,110,0.28); }
  .stats__grid--3 > :nth-child(3n + 1) { border-left: 0; }
  .stats .stats__grid--3 { row-gap: clamp(2.2rem, 4vw, 3.2rem); }
}
.stats__note { margin: 2rem 0 0; text-align: center; font-size: 0.8rem; color: #F3D9A0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat__num { font-family: 'Cormorant Garamond', serif; font-size: var(--step-3); color: var(--gold); font-weight: 600; line-height: 1; display: inline-block; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.stat__label { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 0.6rem; }
@media (max-width: 640px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; } }

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prop-grid { grid-template-columns: 1fr; } }
.prop-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--line);
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prop-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.07); }
.prop-card__tag { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--navy-deep); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 100px; }
.prop-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prop-card__loc { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.prop-card__loc svg { flex: none; color: var(--gold); }
.prop-card__title { font-size: var(--step-1); color: var(--navy); margin: 0.3rem 0 0.9rem; }
/* Key figures: 2 x 2 grid of label over value */
.prop-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-card__specs dt { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.prop-card__specs dd { margin: 0.15rem 0 0; font-size: 1.05rem; color: var(--navy); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.prop-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }
.prop-card__amount { font-weight: 600; color: var(--ink); font-size: var(--step--1); }
.prop-card__amount .price-was { color: var(--stone); font-weight: 400; margin-right: 0.2rem; }
.prop-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; position: absolute; top: 1rem; left: 1rem; right: 1rem; z-index: 1; }
.prop-card__tags .prop-card__tag { position: static; }
.prop-card__tag--sf { background: var(--navy); color: #fff; }
.prop-card__tag--reserved { background: #fff; color: var(--navy-deep); }
.prop-card__tag--sold { background: #8C2F2F; color: #fff; }
.prop-card--sold .prop-card__media img { filter: grayscale(0.55); }
.prop-card__title a { color: inherit; text-decoration: none; }
.prop-card__ref { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--stone); margin: -0.6rem 0 0.9rem; }
.prop-card__cta { font-size: 0.8rem; padding: 0.5rem 1rem; }
.prop-card[hidden], .btn[hidden], .search-chip[hidden] { display: none; }
.prop-card__tag--new { background: #2D7A4F; color: #fff; }
.prop-card__tag--reduced { background: #B5482F; color: #fff; }
.price-was { opacity: 0.7; font-weight: 400; margin-right: 0.15rem; }

/* Barely-there staff link in the footer */
.footer__staff { opacity: 0.35; font-size: 0.72rem; }
/* leave room under the last footer row so the floating WhatsApp button never covers its links */
.site-footer .footer__bottom { padding-bottom: 0.6rem; }
.footer__credit { margin: 0; padding-bottom: calc(1rem + 64px); font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 3px; transition: color 0.25s; display: inline-block; padding-block: 0.35rem; }
.footer__credit a:hover { color: var(--gold-soft); }
.footer__bottom a.footer__staff:hover { opacity: 0.8; }

/* ============================================================
   FEATURE / SERVICES
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); padding: 2.2rem 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon { transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.feature:hover .feature__icon { background: var(--gold); color: var(--navy-deep); }
.feature__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,169,110,0.16); color: var(--navy); display: grid; place-items: center; margin-bottom: 1.2rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.feature p { color: var(--stone); font-size: var(--step--1); }

/* ============================================================
   SPLIT / IMAGE + TEXT (parallax)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; aspect-ratio: 5/6; }
.split__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.split__list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.split__list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.split__list svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 850px) { .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.testi { background: var(--surface); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; }
.testi__quote { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; line-height: 0; color: var(--gold-soft); position: absolute; top: 1.6rem; right: 1.4rem; }
.testi p { font-size: var(--step-0); color: var(--ink); margin-bottom: 1.4rem; }
.testi__who { display: flex; align-items: center; gap: 0.8rem; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.testi__name { font-weight: 600; font-size: var(--step--1); }
.testi__from { font-size: 0.8rem; color: var(--stone); }
.stars { color: var(--gold-ink); letter-spacing: 2px; margin-bottom: 0.8rem; font-size: 0.9rem; }

/* ============================================================
   GOLDEN VISA BANNER
   ============================================================ */
.gv-banner { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 38%, rgba(14,44,84,0.72) 62%, rgba(14,44,84,0.35) 100%), url('/assets/area-elounda.jpg') right center / cover no-repeat, var(--navy-deep); }
@media (max-width: 760px) { .gv-banner { background: linear-gradient(180deg, rgba(14,44,84,0.88), var(--navy-deep) 70%), url('/assets/area-elounda-800.jpg') center top / cover no-repeat, var(--navy-deep); } }
.gv-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(201,169,110,0.35), transparent 55%); }
.gv-banner__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .gv-banner__inner { grid-template-columns: 1fr; } }
.gv-banner h2 { color: #fff; }
.gv-banner .eyebrow { display: block; margin-bottom: 1rem; }
.gv-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,169,110,0.18); color: var(--gold-soft); padding: 0.4rem 1rem; border-radius: 100px; font-size: var(--step--1); font-weight: 600; margin-bottom: 1.4rem; }

/* ============================================================
   AREA TEASER
   ============================================================ */
.area-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 1rem; }
.area { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.area:hover img { transform: scale(1.08); }
.area::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,44,84,0) 35%, rgba(14,44,84,0.55) 62%, rgba(14,44,84,0.92) 100%); }
.area__label { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 1; color: #fff; }
.area__label strong { font-family: 'Cormorant Garamond', serif; font-size: var(--step-1); display: block; }
.area__label span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #F3E6C8; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.area__label strong { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.area--lg { grid-row: span 2; }
@media (max-width: 760px) { .area-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); } .area--lg { grid-row: span 1; grid-column: span 2; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(245,240,232,0.75); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .nav__logo { color: #fff; margin-bottom: 1rem; }
.site-footer .footer__title { color: var(--gold); font-family: 'DM Sans', sans-serif; font-weight: 700; line-height: 1.4; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer__grid a { display: block; padding: 0.3rem 0; transition: color 0.3s; }
.footer__grid a:hover { color: var(--gold-soft); }
.footer__hours { display: block; padding: 0.3rem 0; color: rgba(245,240,232,0.55); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.6rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.footer__bottom a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.25s; display: inline-block; padding-block: 0.35rem; }
.footer__bottom a:hover { color: var(--gold-soft); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ============================================================
   SCROLL ANIMATION BASE STATES (JS adds .is-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; padding: 11rem 0 4rem; background: var(--navy-deep); color: #fff; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(201,169,110,0.25), transparent 60%); }
.page-hero__inner { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(245,240,232,0.8); max-width: 56ch; margin-top: 1rem; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.2rem; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2rem; color: var(--ink); }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.8rem; }

/* ============================================================
   ACCESSIBILITY — keyboard focus + skip link
   ============================================================ */
/* Visible focus ring for keyboard users on every interactive element.
   :focus-visible keeps mouse clicks clean while showing keyboard focus. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Restore a focus indicator on the search-bar fields (they reset outline). */
.search-bar select:focus-visible,
.search-bar input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
/* On dark/navy surfaces a soft halo reads better than gold-on-navy alone. */
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-soft, #E4D2AC);
}

/* Skip-to-content link — hidden until focused, then pinned top-left. */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 1000;
  background: var(--navy-deep); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900;
  max-width: 760px; margin: 0 auto;
  background: var(--navy-deep); color: rgba(255,255,255,0.88);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner__inner { display: flex; align-items: center; gap: 1.2rem 1.6rem; padding: 1.1rem 1.3rem; flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 320px; font-size: 0.88rem; line-height: 1.55; margin: 0; }
.cookie-banner__text strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.15rem; }
.cookie-banner__text a { color: var(--gold-soft); }
.cookie-banner__status { display: block; margin-top: 0.35rem; font-size: 0.8rem; opacity: 0.7; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
/* Reject and Accept get equal size and weight, as Greek/EU guidance requires */
.cookie-banner__btn {
  min-width: 112px; padding: 0.65rem 1.2rem; border-radius: 100px; cursor: pointer;
  font: inherit; font-size: 0.88rem; font-weight: 600;
  background: #fff; color: var(--navy-deep); border: 1.5px solid #fff;
}
.cookie-banner__btn--accept { background: var(--gold); border-color: var(--gold); }
.cookie-banner__btn:hover { filter: brightness(0.94); }
.cookie-banner__btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
@media (max-width: 520px) {
  .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-banner__actions { flex: 1 1 100%; }
  .cookie-banner__btn { flex: 1; }
}
/* on small screens the banner spans the width: park the WhatsApp button until a choice is made */
@media (max-width: 899px) {
  body:has(.cookie-banner.is-open) .whatsapp-fab { opacity: 0; pointer-events: none; }
}

.footer__cookie { background: none; border: none; padding: 0; font: inherit; color: rgba(255,255,255,0.6); cursor: pointer; transition: color 0.25s; }
.footer__cookie:hover { color: var(--gold-soft); }

/* Embeds that wait for consent */
.consent-embed { position: relative; background: var(--line); }
.consent-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.consent-embed__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; padding: 1.5rem; text-align: center; color: var(--stone);
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--paper) 14px, var(--paper) 28px);
}
.consent-embed__placeholder p { max-width: 34ch; margin: 0; font-size: 0.9rem; }
.consent-embed__placeholder strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.4rem; }
.consent-embed__link { font-size: 0.82rem; color: var(--navy); display: inline-block; padding: 0.5rem; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.blog-chips .filter-pill {
  padding: 0.45rem 1.1rem; border-radius: 100px; font: inherit; font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--stone); background: #fff; cursor: pointer; transition: 0.25s;
}
.blog-chips .filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.blog-chips .filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.post-card__meta { font-size: 0.76rem; color: var(--stone); letter-spacing: 0.02em; }
.post-card__cat { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.post-card__title { font-size: var(--step-1); color: var(--navy); margin: 0.4rem 0 0.6rem; line-height: 1.25; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card__summary { font-size: var(--step--1); color: var(--stone); margin: 0; }

.post__narrow { max-width: 760px; }
.post-hero .breadcrumb a { color: inherit; text-decoration: none; display: inline-block; padding-block: 0.35rem; }
.post-hero__meta { margin-top: 1rem; font-size: 0.85rem; color: var(--gold-soft); letter-spacing: 0.04em; }
.post__cover { margin: -2.5rem 0 2.5rem; position: relative; z-index: 1; }
.post__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.prose { font-size: var(--step-0); line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy); margin-top: 1.8em; line-height: 1.2; }
.prose h3 { font-size: var(--step-1); color: var(--navy); margin-top: 1.5em; }
.prose a { color: var(--navy); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 0.2em 0 0.2em 1.1em; color: var(--stone); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone); }
.post-sources { margin-top: 2.5rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 0.9rem; }
.post-sources h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone); margin: 0 0 0.6rem; font-family: inherit; }
.post-sources ul { margin: 0; padding-left: 1.1em; }
.post-sources a { color: var(--navy); }
.post-note { margin-top: 2rem; font-size: 0.85rem; color: var(--stone); font-style: italic; }
.post-cta { margin: 3rem 0 4rem; padding: 1.8rem; background: var(--navy-deep); color: rgba(255,255,255,0.85); border-radius: var(--radius-lg); display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.post-cta h2 { color: #fff; font-size: var(--step-1); margin: 0 0 0.3rem; }
.post-cta p { margin: 0; font-size: 0.92rem; }
.post-cta__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.post-cta .btn--ghost { color: #fff; }
.post-more { background: var(--surface); }
.post-more h2 { font-size: var(--step-2); color: var(--navy); margin-bottom: 1.6rem; }
.post-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.12; }

/* Keep in-page jumps (e.g. #services) clear of the sticky header */
section[id], [id="main"] { scroll-margin-top: 84px; }


/* ============================================================
   ACCESSIBILITY & TOUCH POLISH
   ============================================================ */
/* Links inside running text are underlined, so they don't rely on colour alone */
main p a:not(.btn), .prose a, .post-sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Top bar: readable on the photo and an easier phone tap target */
.trust-bar__est { color: rgba(255,255,255,0.72); }
.trust-bar__phone { padding-block: 0.3rem; }
.footer__cookie { padding-block: 0.35rem; }
/* Three verified figures until the client confirms more */
.stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stats__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
/* Visible to screen readers only */
.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; }

/* Golden Visa consultation form: two columns on wide screens, one on phones */
.gv-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.gv-form > * { min-width: 0; }
.gv-form input, .gv-form select, .gv-form textarea { width: 100%; font-size: max(16px, 1rem); }
@media (max-width: 640px) { .gv-form { grid-template-columns: 1fr; } }

/* ============================================================
   SELL PAGE + HOMEPAGE SELL STRIP
   ============================================================ */
.sell-strip { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.sell-strip__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg);
  background: var(--surface); padding: 1.1rem 1.4rem;
}
.sell-strip__inner p { margin: 0; color: var(--ink); }
.sell-strip__inner strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-right: 0.35rem; }
.sell-strip .btn { font-size: 0.85rem; padding: 0.6rem 1.2rem; }

.sell-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 0; counter-reset: none; }
@media (max-width: 860px) { .sell-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sell-steps { grid-template-columns: 1fr; } }
.sell-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.5rem; }
.sell-steps__n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 0.9rem; }
.sell-steps h3 { font-size: var(--step-1); color: var(--navy); margin-bottom: 0.4rem; }
.sell-steps p { color: var(--stone); font-size: var(--step--1); margin: 0; }

.sell-docs { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.sell-docs li { position: relative; padding: 0.85rem 1rem 0.85rem 2.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sell-docs li::before { content: ''; position: absolute; left: 1rem; top: 1.15rem; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg); }
.sell-note { margin-top: 1rem; font-size: var(--step--1); color: var(--stone); font-style: italic; }

.sell-form-wrap { max-width: 860px; }
.sell-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.sell-form > * { min-width: 0; }
.sell-form__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .sell-form { grid-template-columns: 1fr; } }
.sell-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); }
.sell-form label em { color: var(--gold); font-style: normal; }
.sell-form input, .sell-form select, .sell-form textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06); color: #fff; font: inherit; font-size: max(16px, 1rem); letter-spacing: 0; text-transform: none;
}
.sell-form select option { color: var(--ink); }
.sell-form input::placeholder, .sell-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.sell-form input:focus, .sell-form select:focus, .sell-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sell-form .form-msg { margin: 0; min-height: 1.2em; color: var(--gold-soft); font-size: 0.9rem; }
.sell-form__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.sell-form__actions .btn--ghost { color: #fff; }
.sell-form__note { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.sell-form__note a { color: var(--gold-soft); }

/* ============================================================
   CLOSING CALL TO ACTION (homepage)
   Brand navy band; two tilted, offset photos framed in gold
   ============================================================ */
.cta-showcase {
  position: relative; overflow: hidden; background: var(--navy-deep); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 4rem);
}
.cta-showcase::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(201,169,110,0.10), transparent 70%); pointer-events: none; }
.cta-showcase__body { position: relative; text-align: center; }
.cta-showcase h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.1; margin: 1rem auto 2rem; max-width: 20ch; }
.cta-showcase__actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.cta-showcase__call { color: rgba(255,255,255,0.75); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; padding-block: 0.3rem; }
.cta-showcase__call:hover { color: var(--gold-soft); }
.cta-showcase__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.cta-showcase__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: var(--shadow-lg); }
/* thin gold frame set off behind each photo */
.cta-showcase__photo::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(201,169,110,0.55); border-radius: inherit; transform: translate(14px, 14px); z-index: -1; }
.cta-showcase__photo--a { transform: rotate(-3deg) translateY(2.5rem); }
.cta-showcase__photo--b { transform: rotate(2.5deg) translateY(-2.5rem); }
.cta-showcase__photo--b::after { transform: translate(-14px, 14px); }
@media (max-width: 860px) {
  .cta-showcase { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .cta-showcase__body { grid-column: 1 / -1; grid-row: 1; }
  .cta-showcase__photo { aspect-ratio: 4 / 3; max-width: 260px; justify-self: center; width: 100%; }
  .cta-showcase__photo--a { transform: rotate(-3deg) translateY(0.5rem); }
  .cta-showcase__photo--b { transform: rotate(2.5deg) translateY(-0.5rem); }
}
@media (prefers-reduced-motion: reduce) { .cta-showcase__photo--a, .cta-showcase__photo--b { transform: none; } }
.cta-showcase .eyebrow { color: var(--gold); }
@media (max-width: 640px) { .sell-form__actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch { position: relative; margin-left: auto; }
.nav__links + .lang-switch { margin-left: 0; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.35rem 0.6rem;
  background: none; border: 1px solid rgba(255,255,255,0.28); border-radius: 100px; color: #fff;
  font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { border-color: var(--gold); background: rgba(255,255,255,0.06); }
.lang-switch__btn svg { width: 16px; height: 16px; }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 120; min-width: 11rem; list-style: none; margin: 0; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.lang-switch__menu a { display: block; padding: 0.6rem 0.85rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.lang-switch__menu a:hover { background: var(--paper); color: var(--navy); }
.lang-switch__menu a[aria-current="true"] { color: var(--navy); font-weight: 700; }
.lang-switch__menu a[aria-current="true"]::after { content: ' ✓'; color: var(--gold-ink); }
@media (max-width: 1100px) { .lang-switch, .nav__links + .lang-switch { margin-left: auto; margin-right: 0.6rem; } }

/* ============================================================
   ADVANCED SEARCH (Properties + Rentals)
   ============================================================ */
.adv-search { padding: 2.2rem 0 0.4rem; }
.adv-search__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem 1.1rem; }
.pill { position: relative; display: block; min-width: 0; }
.pill select, .pill__btn, .pill--search input {
  width: 100%; min-height: 52px; padding: 0 3rem 0 1.4rem; border: 1.5px solid var(--ink); border-radius: 100px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pill select option { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.pill__arrow { position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; pointer-events: none; width: 18px; height: 18px; color: var(--ink); }
.pill select:hover, .pill__btn:hover, .pill--search input:hover { border-color: var(--navy); }
.pill select:focus-visible, .pill__btn:focus-visible, .pill--search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 100px; }
/* a filter in use reads navy, so it's clear what is narrowing the list */
.pill.is-set select, .pill.is-set .pill__btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill.is-set .pill__arrow { color: #fff; }
.pill.is-set select option { background: #fff; }
.pill--search input { cursor: text; padding: 0 1.2rem 0 2.9rem; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: max(16px, 0.9rem); }
.pill--search input::placeholder { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-size: 0.85rem; color: var(--stone); }
.pill--search svg { position: absolute; left: 1.2rem; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--stone); pointer-events: none; }
.pill__panel { position: absolute; z-index: 60; top: calc(100% + 0.5rem); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0.6rem; }
.pill__panel[hidden] { display: none; }
.pill__panel label { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; min-height: 40px; }
.pill__panel label:hover { background: var(--paper, #f6f2ea); }
.pill__panel input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.adv-search__row2 { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.adv-search__row2 .pill { width: min(100%, 300px); }
.adv-search__more, .adv-search__clear { background: none; border: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; padding: 0 0.4rem; }
.adv-search__more { display: none; }
.adv-search__clear[hidden] { display: none; }
@media (max-width: 1000px) { .adv-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .adv-search__grid { gap: 0.7rem; }
  .pill--search { grid-column: 1 / -1; order: -1; }
  .pill select, .pill__btn { font-size: 0.78rem; padding: 0 2.4rem 0 1rem; min-height: 48px; }
  .pill__arrow { right: 0.9rem; }
  /* phones: the main filters first, the rest one tap away */
  .adv-search__grid:not(.is-open) .pill--extra { display: none; }
  .adv-search__more { display: inline-block; }
  .adv-search__row2 { margin-top: 1rem; }
}

/* Listing pages: results count, empty states */
.no-results .btn { margin-top: 1rem; }
/* ---------- Results count ---------- */
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.results-count { font-size: var(--step--1); color: var(--stone); }
/* ---------- No results ---------- */
.no-results { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--stone); }
/* ---------- Badge labels on card ---------- */
/* ---------- External link icon ---------- */
.prop-card__ext { font-size: 0.72rem; color: var(--gold); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; }
.no-rentals .adv-search, .no-rentals .results-bar { display: none; }
.rentals-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem 1rem; }
.no-rentals .rentals-empty { display: block; }
.rentals-empty h2 { font-size: var(--step-2); }
.rentals-empty p { color: var(--stone); max-width: 52ch; margin: 0.8rem auto 1.4rem; }
.rent-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
@media (max-width: 700px) { .rent-kinds { grid-template-columns: 1fr; } }
.rent-kind { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.rent-kind h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.rent-kind p { color: var(--stone); margin: 0; }

/* ============================================================
   PROPERTY MANAGEMENT (homepage): a bold navy band with a photo
   ============================================================ */
.pm { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pm__media { position: absolute; inset: 0 0 0 52%; }
.pm__media img { width: 100%; height: 100%; object-fit: cover; }
.pm__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(14,44,84,.55) 28%, rgba(14,44,84,0) 60%); }
.pm__inner { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.pm__content { max-width: 600px; }
.pm .eyebrow { color: var(--gold); display: block; margin-bottom: 1rem; }
.pm h2 { color: #fff; font-size: var(--step-4); line-height: 1; margin: 0 0 1.4rem; }
.pm__lede { font-size: var(--step-1); line-height: 1.5; color: rgba(245,240,232,.88); margin: 0 0 2.2rem; }
.pm__points { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.pm__points li { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; font-size: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 0.85rem 1rem; }
.pm__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(201,169,110,.2); color: var(--gold); }
.pm__icon svg { width: 21px; height: 21px; }
.pm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.pm__actions .btn { min-height: 52px; font-size: 1rem; padding-inline: 1.6rem; }
.pm__call { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.pm__call:hover { color: #fff; }
@media (max-width: 900px) {
  .pm__media { position: relative; inset: auto; height: 260px; }
  .pm__media::after { background: linear-gradient(180deg, rgba(14,44,84,0) 40%, var(--navy-deep) 100%); }
  .pm__inner { padding-block: 0.5rem 3.5rem; }
  .pm h2 { font-size: var(--step-3); }
}
@media (max-width: 480px) { .pm__points { grid-template-columns: 1fr; } .pm__actions .btn { width: 100%; justify-content: center; } }

/* Rentals without a published price: an invitation to ask instead of "Price upon Request" */
.prop-card__ask { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 0.82rem; text-decoration: none; }
.prop-card__ask:hover { background: var(--gold); color: var(--navy-deep); }

/* Headings break evenly (no single word left on a line); paragraphs avoid orphans */
h1, h2, h3, .lede { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ============================================================
   EFFECTS (inspired by Loyal Group Realty) — see js/effects.js
   ============================================================ */

/* 1. Headlines rise line by line (masks exist only while animating) */
/* the clip reaches past the line box (accents above, g/y tails below) without changing its size */
.sl-line { display: block; clip-path: inset(-0.45em -0.6em -0.24em -0.6em); }
.sl-in { display: block; will-change: transform; }

/* 7. Editorial section headers: big title left, short uppercase intro right */
.section-head--editorial {
  max-width: none; margin-inline: 0; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6.5rem); row-gap: 0;
  align-items: end; padding-bottom: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
}
.section-head--editorial .eyebrow { grid-column: 1; }
.section-head--editorial h2 {
  grid-column: 1; margin: 0; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.012em;
}
.section-head--editorial .lede,
.section-head__aside { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
.section-head--editorial .lede,
.section-head__aside p {
  font-size: 0.92rem; line-height: 1.75; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); max-width: 44ch; margin: 0;
}
.section-head__aside .btn { margin-top: 1.4rem; }
@media (max-width: 760px) {
  .section-head--editorial { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .section-head--editorial h2 { font-size: var(--step-3); }
  .section-head--editorial .lede, .section-head__aside { grid-column: 1; grid-row: auto; }
  .section-head--editorial .lede, .section-head__aside p { font-size: 0.82rem; }
}

/* 4. Featured rail: runs off the right edge, staggered cards, drag to scroll */
.rail { --rail-start: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.rail__track {
  display: flex; align-items: flex-start; gap: clamp(1rem, 2.2vw, 2rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-start);
  padding: 0.6rem var(--rail-start) 4.5rem; scrollbar-width: none; cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rail__track > .prop-card { flex: 0 0 clamp(290px, 29vw, 400px); scroll-snap-align: start; }
.rail__track > .prop-card:nth-child(even) { margin-top: clamp(2rem, 4vw, 3.8rem); }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__track.is-dragging .prop-card { pointer-events: none; }
.rail__track img { -webkit-user-drag: none; user-select: none; }
.rail__bar { display: flex; align-items: center; gap: 1.2rem; margin-top: -1.5rem; }
.rail__progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__progress span { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0.08); transition: transform 0.25s var(--ease); }
.rail__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.rail__btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.rail__btn:disabled { opacity: 0.35; cursor: default; }
.rail__btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .rail__track > .prop-card { flex-basis: 82vw; }
  .rail__track > .prop-card:nth-child(even) { margin-top: 1.5rem; }
  .rail__btn { width: 44px; height: 44px; }
}

/* 3. Photo band that grows to full width */
.grow-band { position: relative; height: clamp(440px, 88vh, 900px); overflow: hidden; background: var(--paper); }
.grow-band__frame { position: absolute; inset: 0; overflow: hidden; transform-origin: 0 0; will-change: transform; }
.grow-band__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
.grow-band__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,44,84,0) 45%, rgba(14,44,84,0.7) 100%); }
.grow-band__caption { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 6vh, 4.5rem); z-index: 1; color: #fff; will-change: transform, opacity; }
.grow-band__caption .eyebrow { color: var(--gold-soft); display: block; margin-bottom: 0.6rem; }
.grow-band__caption h2 { color: #fff; font-size: clamp(2.8rem, 1.6rem + 4.4vw, 6rem); line-height: 1; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.grow-band--right .grow-band__caption { text-align: right; }
.grow-band--right .grow-band__frame::after { background: linear-gradient(200deg, rgba(14,44,84,0) 40%, rgba(14,44,84,0.72) 100%); }

/* ============================================================
   MOBILE MENU: full-screen panel that grows out of the menu button
   ============================================================ */
.nav__toggle span { transition: transform 0.45s var(--ease), opacity 0.25s, width 0.45s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header.menu-open { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.menu-open .trust-bar { max-height: 0; opacity: 0; pointer-events: none; }
.menu-open .lang-switch { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
html.mnav-lock, html.mnav-lock body { overflow: hidden; }

.mnav {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(1.6rem + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; color: #fff;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(201,169,110,0.16) 0%, rgba(201,169,110,0) 55%),
    radial-gradient(90% 50% at 0% 100%, rgba(27,79,150,0.45) 0%, rgba(27,79,150,0) 60%),
    var(--navy-deep);
  clip-path: circle(0px at var(--mx, calc(100% - 40px)) var(--my, 40px));
  visibility: hidden;
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.15s, visibility 0s 0.75s;
}
.mnav.is-open {
  clip-path: circle(150% at var(--mx, calc(100% - 40px)) var(--my, 40px));
  visibility: visible;
  transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s;
}
@media (min-width: 1101px) { .mnav { display: none; } }

.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list li { position: relative; }
.mnav__list li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(201,169,110,0.5), rgba(201,169,110,0.08));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.mnav__list a {
  display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.2rem;
  font-family: var(--font-display); font-weight: 500; line-height: 1.05;
  font-size: clamp(1.7rem, 7.2vw, 2.5rem); color: #fff; text-decoration: none;
}
.mnav__num {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gold);
  min-width: 1.6rem; opacity: 0; transition: opacity 0.3s;
}
.mnav__label { display: block; overflow: hidden; padding-bottom: 0.08em; flex: 1; }
.mnav__label > span { display: inline-block; transform: translateY(110%); transition: transform 0.3s var(--ease); }
.mnav__arrow { width: 22px; height: 22px; color: var(--gold); opacity: 0; transform: translateX(-10px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.mnav__list a:hover .mnav__arrow, .mnav__list a:focus-visible .mnav__arrow, .mnav__list a[aria-current] .mnav__arrow { opacity: 1; transform: none; }
.mnav__list a[aria-current] { color: var(--gold-soft); }
.mnav__list a:active .mnav__label > span { transform: translateX(6px); }
.mnav__list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* open: lines and labels arrive one after another */
.mnav.is-open .mnav__list li::after { transform: scaleX(1); transition: transform 1s var(--ease) calc(0.3s + var(--i) * 0.06s); }
.mnav.is-open .mnav__label > span { transform: none; transition: transform 0.9s var(--ease) calc(0.28s + var(--i) * 0.06s); }
.mnav.is-open .mnav__num { opacity: 1; transition: opacity 0.6s calc(0.4s + var(--i) * 0.06s); }

.mnav__foot {
  margin-top: auto; padding-top: 1.6rem; display: grid; gap: 0.8rem;
  opacity: 0; transform: translateY(18px); transition: opacity 0.25s, transform 0.25s;
}
.mnav.is-open .mnav__foot { opacity: 1; transform: none; transition: opacity 0.7s 0.75s, transform 0.9s var(--ease) 0.75s; }
.mnav__cta { justify-content: center; width: 100%; }
.mnav__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--gold-soft); font-size: 0.85rem; letter-spacing: 0.08em; text-decoration: none; min-height: 44px;
}
.mnav__phone svg { width: 15px; height: 15px; }
.mnav__langs { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.mnav__langs a {
  min-width: 48px; min-height: 40px; display: grid; place-items: center; padding: 0 0.7rem;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.8); text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.mnav__langs a[aria-current], .mnav__langs a:hover { border-color: var(--gold); color: #fff; background: rgba(201,169,110,0.12); }

@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav.is-open { clip-path: none; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s; }
  .mnav.is-open { opacity: 1; transition: opacity 0.2s, visibility 0s; }
  .mnav__label > span, .mnav__list li::after { transform: none !important; transition: none !important; }
  .mnav__num, .mnav__foot { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Photo bands on phones: shorter, so the photo is magnified less and the
   opening window has room to start small */
@media (max-width: 760px) { .grow-band { height: clamp(400px, 62svh, 560px); } }

/* Private preview of a draft listing */
.preview-strip {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin: 0; padding: 0.75rem var(--gutter); text-align: center;
  background: linear-gradient(90deg, rgba(201,169,110,0.16), rgba(201,169,110,0.28), rgba(201,169,110,0.16));
  border-block: 1px solid rgba(201,169,110,0.45);
  color: var(--navy-deep); font-size: 0.88rem; line-height: 1.45;
}
.preview-strip b { color: var(--gold-ink); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; margin-right: 0.35rem; }
.preview-strip__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,0.25); }
