/* =====================================================================
   Vortex Proptech — landing styles
   Palette: white · pink · purple. Hero follows the 1280x800 reference
   unit system (--u) and entrance choreography.
   ===================================================================== */

@font-face {
  font-family: 'PJS';
  font-style: normal;
  font-display: block;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PJS';
  font-style: normal;
  font-display: block;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --u: min(calc(100vw / 1280), calc(100dvh / 760));

  /* brand (Wolo-inspired palette) */
  --pink: #dd3155;
  --pink-2: #f13b61;
  --pink-3: #c30150;
  --pink-soft: #fde9ee;
  --purple: #1f2c3e;
  --purple-2: #3e6fb0;
  --purple-deep: #1f2c3e;
  --night: #1f2c3e;
  --gold: #ffd47e;
  --sky: #eaf3ff;
  --grad: linear-gradient(90deg, #f13b61 0%, #c30150 100%);
  --grad-text: linear-gradient(90deg, #f13b61 0%, #dd3155 50%, #c30150 100%);

  /* neutrals */
  --ink: #1f2c3e;
  --ink-2: #33415a;
  --muted: #475160;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-tint: #f5f8fb;
  --white-btn: #ffffff;
  --btn-ink: #1f2c3e;
  --glass-fill: #ffffff;
  --glass-line: #e3e8ef;

  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(31, 44, 62, .28);
  --shadow-pink: 0 14px 30px -12px rgba(221, 49, 85, .45);
  --nav-h: 72px;

  --e-reveal: cubic-bezier(.16, 1, .3, 1);
  --e-soft: cubic-bezier(.25, .8, .3, 1);
}
@supports not (height: 100dvh) {
  :root { --u: min(calc(100vw / 1280), calc(100vh / 760)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'PJS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

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

a:focus-visible, button:focus-visible, summary:focus-visible, .carousel:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 3px;
  border-radius: 12px;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; border-radius: 999px;
  height: 46px; padding: 0 22px; font-size: 15px; letter-spacing: -.01em;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .25s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.arw { flex: 0 0 auto; display: block; width: 13px; height: 11px; }
.btn:hover .arw { transform: translateX(2px); }
.arw { transition: transform .2s ease; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 18px 36px -12px rgba(221, 49, 85, .55); }
.final-card .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn-grad { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: var(--shadow-pink); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 20px 44px -12px rgba(123, 47, 247, .55); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--purple-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink); background: var(--pink-soft);
  padding: 7px 13px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(221, 49, 85, .6); animation: pulse 2s infinite; }
.eyebrow--dark { color: var(--pink); background: #fff; border: 1px solid #f7c9d4; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(221, 49, 85, .6); } 70% { box-shadow: 0 0 0 9px rgba(221, 49, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(221, 49, 85, 0); } }

.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #fff; color: var(--ink);
}
.chip--light { background: rgba(255, 255, 255, .95); color: var(--ink); }
.chip--online { background: #e3efff; color: #17437e; }
.chip--presencial { background: var(--pink-soft); color: #b0123f; }
.chip--hibrido { background: #e7f6ff; color: #075985; }
.chip--muted { background: #eee; color: #555; }

.ico { width: 22px; height: 22px; flex: 0 0 auto; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: calc(67 * var(--u));
  min-height: 60px;
  display: flex; align-items: center;
  padding-left: calc(24.5 * var(--u)); padding-right: calc(30 * var(--u));
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.is-scrolled, .nav--solid { background: rgba(255, 255, 255, .95); border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(31, 44, 62, .35); }

.logo { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); text-decoration: none; color: inherit; line-height: 1; }
.logo-mark { width: max(34px, calc(38 * var(--u))); height: max(34px, calc(38 * var(--u))); filter: drop-shadow(0 6px 12px rgba(221, 49, 85, .3)); }
.logo-word { display: flex; flex-direction: column; gap: 3px; }
.logo-word b { font-weight: 800; font-size: max(17px, calc(20 * var(--u))); letter-spacing: .14em; }
.logo-word small { font-weight: 700; font-size: max(8.5px, calc(9.6 * var(--u))); letter-spacing: .5em; color: var(--pink); }

.nav-links {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: calc(26 * var(--u)); white-space: nowrap;
}
.nav-links a {
  color: inherit; opacity: .82; text-decoration: none; font-size: max(13px, calc(13 * var(--u))); font-weight: 500;
  letter-spacing: -.01em; line-height: 1; transition: opacity .18s ease, color .18s ease; position: relative; padding: 6px 0;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s var(--e-soft); }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: calc(8 * var(--u)); }
.btn-nav-ghost, .btn-nav-start { height: max(36px, calc(36 * var(--u))); padding: 0 calc(16 * var(--u)); font-size: max(13px, calc(13 * var(--u))); font-weight: 600; }
.btn-nav-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-nav-ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn-nav-start { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-nav-start .arw { width: 11.5px; height: 9.6px; }

.burger {
  display: none; margin-left: auto; width: 46px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--bg-tint); border-radius: 999px; border: 1px solid var(--line); cursor: pointer; padding: 0; color: var(--ink);
}
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.menu { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; width: 100%; min-height: 100vh; min-height: 100dvh;
  overflow: hidden; color: var(--ink);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 45%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #d6e9f5 0%, var(--sky) 45%, #f7fbff 80%, #ffffff 100%);
}
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.hero-inner {
  position: relative; z-index: 2;
  width: min(calc(1220 * var(--u)), 100% - 48px); margin-inline: auto;
  padding-top: calc(100 * var(--u)); padding-bottom: calc(50 * var(--u));
  display: grid; grid-template-columns: .95fr 1.05fr; gap: calc(30 * var(--u)); align-items: center;
}
.hero h1 {
  margin: calc(18 * var(--u)) 0 0;
  font-weight: 800; font-size: calc(62 * var(--u)); line-height: calc(68 * var(--u)); letter-spacing: calc(-1.6 * var(--u));
  color: var(--ink);
}
.ln, .ln-i { display: block; }
.ln-i.grad-text { padding-bottom: .06em; }
.hero .sub {
  margin: calc(18 * var(--u)) 0 0; max-width: calc(520 * var(--u));
  font-weight: 400; font-size: calc(17.5 * var(--u)); line-height: calc(28 * var(--u)); color: var(--muted);
}
.ctas { margin-top: calc(28 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); flex-wrap: wrap; }
.ctas--left { justify-content: flex-start; }
.btn-lg { height: calc(48 * var(--u)); min-height: 44px; padding: 0 calc(22 * var(--u)); font-size: max(14px, calc(15 * var(--u))); gap: calc(10 * var(--u)); }
.btn-lg .arw { width: calc(13 * var(--u)); height: calc(10.8 * var(--u)); min-width: 12px; min-height: 10px; }
.hero-trust { list-style: none; padding: 0; margin: calc(18 * var(--u)) 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: max(13px, calc(13.5 * var(--u))); color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust a { color: var(--pink); font-weight: 700; text-decoration: none; }
.hero-trust a:hover { text-decoration: underline; }
.hero-trust .ico { width: 17px; height: 17px; color: var(--pink); stroke-width: 2.4; }

.hero-visual { position: relative; display: block; aspect-ratio: 1.12 / 1; width: 100%; color: inherit; text-decoration: none; cursor: pointer; transition: transform .5s var(--e-soft); }
@media (hover: hover) {
  .hero-visual:hover { transform: translateY(-4px); }
  .hero-visual:hover .float-chip--b { box-shadow: 0 0 0 3px rgba(221, 49, 85, .25), 0 16px 34px -18px rgba(31, 44, 62, .45); }
}
.float-chip--b small { color: var(--pink) !important; font-weight: 700; }
#villaCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Form card */
.form-card {
  position: relative; z-index: 2; margin-top: calc(26 * var(--u));
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 12px;
  box-shadow: 0 24px 50px -28px rgba(31, 44, 62, .35);
  max-width: 560px;
}
.form-card-title { font-weight: 800; font-size: 15px; margin: 2px 2px 10px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.inline-fields .btn { height: 46px; padding: 0 18px; }
.lead-form--inline, .form-card .lead-form { margin-top: 0; gap: 8px; }
.form-card .check { font-size: 12.5px; margin-top: 2px; }
.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; }
.form-card-head h2 { font-size: max(21px, calc(24 * var(--u))); font-weight: 800; }
.form-card-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.lead-form { margin-top: 18px; display: grid; gap: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.field { display: grid; gap: 5px; }
.field--wide { grid-column: 1 / -1; }
.field .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field .label em { font-weight: 500; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgba(221, 49, 85, .14); }
.field input::placeholder { color: #a99bb7; }
.field.has-error input, .field.has-error select { border-color: #e11d48; background: #fff5f7; }
.field-error { color: #e11d48; font-size: 12px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pink); }
.check a { color: var(--pink); font-weight: 600; }
.form-error { background: #fff1f4; color: #be123c; border: 1px solid #fecdd6; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.lead-form .btn-block { height: 50px; margin-top: 4px; font-size: 16px; }
.hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }
.lead-form { position: relative; }

.form-success { display: flex; gap: 14px; align-items: center; padding: 6px 4px; }
.form-success .success-ico { margin: 0; flex: 0 0 auto; width: 52px; height: 52px; }
.modal-success .success-ico { margin: 0 auto 14px; }
.success-ico { width: 64px; height: 64px; margin: 0 auto 14px; color: #fff; background: var(--grad); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-pink); }
.success-ico svg { width: 36px; height: 36px; }
.success-ico path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--e-reveal) forwards; }
.success-ico circle { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 18px; font-weight: 800; }
.form-success p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  color: var(--ink); box-shadow: 0 16px 34px -18px rgba(31, 44, 62, .45);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip b { display: block; font-size: 13px; }
.float-chip small { display: block; font-size: 11.5px; color: var(--muted); }
.fc-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.fc-ico .ico { width: 19px; height: 19px; }
.float-chip--a { right: 4%; top: 12%; }
.float-chip--b { left: 2%; bottom: 14%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(31, 44, 62, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--sky); color: var(--ink); overflow: hidden; }
.dark-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 10% 0%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(221, 49, 85, .08), transparent 70%); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 16px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.section--dark .section-head p { color: var(--muted); }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; max-width: none; }
.section-head--row > div:first-child { max-width: 680px; }
.section-cta { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.section-cta > span { color: var(--muted); font-size: 14px; }
.section-cta--dark { position: relative; }

/* Stats */
.stats { position: relative; z-index: 3; background: #fff; padding: 10px 0 54px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat { background: #fff; padding: 26px 24px; color: var(--ink); }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* Marquee */
.marquee { overflow: hidden; background: var(--grad); color: #fff; padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-weight: 800; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.01em; white-space: nowrap; align-items: center; }
.marquee-track i { font-style: normal; opacity: .75; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(42, 10, 74, .02);
  transition: transform .35s var(--e-soft), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(221, 49, 85, .16), transparent 70%); opacity: 0; transition: opacity .35s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #f6c6df; }
.feature:hover::before { opacity: 1; }
.feature-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-pink); }
.feature-ico .ico { width: 25px; height: 25px; }
.feature h3 { margin-top: 20px; font-size: 20px; font-weight: 800; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* Carousel */
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px max(24px, calc((100vw - 1200px) / 2)) 26px; scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging * { pointer-events: none; }
.carousel-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; color: var(--ink); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn--dark { background: #fff; }

/* Property cards */
.prop-card { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(42, 10, 74, .35); transition: transform .4s var(--e-soft), box-shadow .4s ease; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-reveal); }
.prop-card:hover .prop-media img { transform: scale(1.07); }
.prop-media .chip { position: absolute; left: 14px; top: 14px; }
.prop-price { position: absolute; left: 14px; bottom: 14px; background: rgba(31, 44, 62, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; padding: 7px 13px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.prop-body { padding: 18px 20px 20px; }
.prop-body h3 { font-size: 18px; font-weight: 800; }
.prop-loc { margin-top: 6px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.prop-loc .ico { width: 16px; height: 16px; color: var(--pink); }
.prop-specs { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.prop-body .btn { margin-top: 16px; }
.photo-credit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.photo-credit a { color: inherit; }

/* Steps */
.steps-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.steps-visual { position: relative; min-height: 560px; }
.sv-main { position: absolute; left: 0; top: 0; width: 78%; height: 88%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.sv-small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow); }
.sv-badge { position: absolute; left: 8%; bottom: 6%; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.sv-badge b { display: block; font-size: 14px; }
.sv-badge small { display: block; font-size: 12px; color: var(--muted); }
.steps { list-style: none; margin: 0 0 34px; padding: 0; position: relative; display: grid; gap: 8px; }
.steps::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 25px; top: 30px; width: 2px; height: calc((100% - 60px) * var(--progress, 0)); background: var(--grad); transition: height .2s linear; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 14px 0; }
.step-n { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--pink); background: #fff; border: 2px solid var(--pink-soft); box-shadow: 0 8px 20px -10px rgba(221, 49, 85, .6); }
.step h3 { font-size: 19px; font-weight: 800; margin-top: 4px; }
.step p { color: var(--muted); margin-top: 4px; }

/* Event cards */
.carousel--events { position: relative; }
.event-card { flex: 0 0 min(380px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(31, 44, 62, .45); border: 1px solid var(--line); transition: transform .4s var(--e-soft); }
.event-card:hover { transform: translateY(-6px); }
.event-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-reveal); }
.event-card:hover .event-media img { transform: scale(1.06); }
.event-date { position: absolute; left: 14px; top: 14px; width: 58px; padding: 7px 0; border-radius: 14px; background: #fff; text-align: center; line-height: 1; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.event-date b { display: block; font-size: 22px; font-weight: 800; color: var(--pink); }
.event-date small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.event-media .chip { position: absolute; right: 14px; top: 14px; }
.event-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.event-meta .ico { width: 15px; height: 15px; color: var(--pink); }
.event-body h3 { margin-top: 10px; font-size: 18.5px; font-weight: 800; }
.event-body h3 a { text-decoration: none; }
.event-body h3 a:hover { color: var(--pink); }
.event-excerpt { margin-top: 8px; color: var(--muted); font-size: 14.5px; flex: 1; }
.event-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; color: var(--pink); font-size: 14px; }
.event-card.is-past { opacity: .82; }
.event-card.is-past .event-media img { filter: grayscale(.6); }
.empty-note { color: var(--muted); text-align: center; }
.section--dark .empty-note { color: var(--muted); }

/* Compare */
.compare { max-width: 980px; margin: 0 auto; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; border-top: 1px solid var(--line); }
.compare-row > span { padding: 18px 22px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.compare-row > span:first-child { font-weight: 800; }
.compare-head { border-top: 0; background: var(--bg-tint); }
.compare-head > span { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare-vx { color: var(--pink) !important; }
.compare-vx .logo-mark { width: 26px; height: 26px; }
.compare-old { color: var(--muted); }
.compare-old .ico { width: 18px; height: 18px; color: #c4b5d3; }
.compare-new { background: linear-gradient(90deg, rgba(221, 49, 85, .06), rgba(123, 47, 247, .06)); font-weight: 600; }
.compare-new .ico { width: 18px; height: 18px; color: #fff; background: var(--grad); border-radius: 50%; padding: 3px; stroke-width: 3; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 110px; }
.faq-layout .section-head p a { color: var(--pink); font-weight: 600; }
.faq-layout .section-head .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s ease, border-color .3s ease; }
.faq[open] { box-shadow: var(--shadow); border-color: #f6c6df; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--pink-soft); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--pink); border-radius: 2px; transition: transform .3s var(--e-soft); }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus { background: var(--grad); }
.faq[open] .faq-plus::before, .faq[open] .faq-plus::after { background: #fff; }
.faq[open] .faq-plus::after { transform: rotate(0); }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* Final CTA */
.final-cta { padding: 0 0 clamp(72px, 9vw, 120px); background: var(--bg-tint); }
.final-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 7vw, 90px) clamp(26px, 6vw, 80px); background: var(--night); color: #fff; min-height: 380px; display: flex; align-items: center; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.final-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(31, 44, 62, .95) 25%, rgba(31, 44, 62, .65) 60%, rgba(221, 49, 85, .45)); }
.final-content { position: relative; z-index: 1; max-width: 620px; }
.final-content h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.final-content p { margin-top: 16px; color: #dbe3ee; font-size: 18px; }
.final-content .btn { margin-top: 30px; }

/* Isometric CSS buildings (decorative) */
.iso-city { position: absolute; right: clamp(-40px, 2vw, 40px); bottom: -10px; width: 380px; height: 300px; z-index: 1; }
.iso { position: absolute; bottom: 0; width: 70px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(234, 243, 255, .85)); box-shadow: inset -18px 0 0 rgba(31, 44, 62, .18), 0 0 40px rgba(255, 255, 255, .2); transform-origin: bottom; animation: rise 1.6s var(--e-reveal) both; }
.iso::after { content: ""; position: absolute; inset: 14px 26px 0 12px; background: repeating-linear-gradient(180deg, rgba(62, 111, 176, .55) 0 6px, transparent 6px 16px); opacity: .7; -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px); mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px); animation: twinkle 3.5s steps(2) infinite; }
.iso.b1 { left: 0; height: 140px; animation-delay: .1s; }
.iso.b2 { left: 78px; height: 240px; width: 84px; animation-delay: .25s; }
.iso.b3 { left: 170px; height: 180px; animation-delay: .4s; }
.iso.b4 { left: 248px; height: 270px; width: 62px; animation-delay: .55s; }
.iso.b5 { left: 318px; height: 120px; animation-delay: .7s; }
.final-card:not(.in) .iso { animation-play-state: paused; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes twinkle { 50% { opacity: .3; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; overflow: hidden; background: var(--night); color: #c9d3df; padding: 72px 0 28px; }
.footer-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 0% 0%, rgba(221, 49, 85, .14), transparent 70%); }
.footer .container { position: relative; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-brand .logo { color: #fff; --u: 1px; }
.foot-brand p { margin: 18px 0 22px; max-width: 360px; font-size: 14.5px; }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { font-size: 14px; color: #fff; }
.foot-title { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.foot-list a, .foot-list button { color: #c9d3df; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: inherit; }
.foot-list a:hover, .foot-list button:hover { color: var(--pink-2); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--pink); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #a9b6c6; }
.made-by a { color: #fff; font-weight: 700; text-decoration: none; }
.made-by a:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.heart { display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* =====================================================================
   MODAL + TOAST
   ===================================================================== */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(31, 44, 62, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .38s var(--e-reveal); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; overflow-x: hidden; overflow-y: auto; max-height: calc(100dvh - 24px); background: #fff; border-radius: 26px; padding: 30px 28px 26px; box-shadow: 0 40px 100px -30px rgba(31, 44, 62, .55); }
.modal-glow { position: absolute; top: -120px; right: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(221, 49, 85, .3), transparent 70%); pointer-events: none; }
.modal h2 { margin-top: 14px; font-size: 26px; font-weight: 800; }
.modal-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-tint); cursor: pointer; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.modal-close:hover { background: var(--pink-soft); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-success { text-align: center; padding: 20px 0 6px; }
.modal-success .btn { margin-top: 22px; }
body.modal-open { overflow: hidden; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--night); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; transition: all .35s var(--e-reveal); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cc-banner { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; }
.cc-banner[hidden] { display: none; }
.cc-inner { width: min(1100px, 100%); display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 18px 24px; box-shadow: 0 30px 70px -20px rgba(31, 44, 62, .35); animation: modalIn .5s var(--e-reveal); }
.cc-text { flex: 1; font-size: 14px; color: var(--ink-2); }
.cc-text strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.cc-text a { color: var(--pink); font-weight: 600; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn { height: 42px; padding: 0 18px; font-size: 14px; }
.cc-btn--primary { background: var(--ink); color: #fff; }
.cc-btn--primary:hover { background: var(--purple-deep); }
.cc-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.cc-btn--ghost:hover { border-color: var(--ink); }
.cc-cats { margin-top: 18px; display: grid; gap: 10px; }
.cc-cat { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.cc-cat p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.cc-always { font-size: 12px; font-weight: 700; color: var(--pink); white-space: nowrap; }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #ddd2e8; transition: background .2s ease; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s var(--e-soft); }
.switch input:checked + i { background: var(--grad); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.cc-modal-actions { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* =====================================================================
   SUBPAGES (events, legal, 404)
   ===================================================================== */
.page-hero, .legal-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #d6e9f5 0%, var(--sky) 55%, #fff 100%); color: var(--ink); padding: calc(var(--nav-h) + 64px) 0 64px; border-bottom: 1px solid var(--line); }
.page-hero-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(31, 44, 62, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 44, 62, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(at 70% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(at 70% 20%, #000 10%, transparent 70%); }
.page-hero .container, .legal-hero .container { position: relative; }
.page-hero h1 { margin: 18px 0 14px; font-size: clamp(34px, 6vw, 64px); font-weight: 800; max-width: 820px; }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 18px; }
.page-hero--center { text-align: center; min-height: 70vh; display: flex; align-items: center; }
.page-hero--center h1, .page-hero--center p { margin-inline: auto; }
.page-hero--center .ctas { justify-content: center; }
.crumbs { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pink); }

.events-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.tabs { display: inline-flex; padding: 5px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; }
.tab { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(42, 10, 74, .35); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease; }
.filter:hover { border-color: var(--pink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.events-grid .event-card { flex: none; border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(42, 10, 74, .35); }
.events-grid .event-card[hidden] { display: none; }
.empty-state { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: 24px; }
.empty-state > .ico { width: 44px; height: 44px; color: var(--pink); margin: 0 auto 12px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); margin: 8px 0 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); }
.pagination a.is-active { background: var(--grad); color: #fff; border-color: transparent; }

.event-hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--nav-h) + 80px) 0 70px; background: var(--night); }
.event-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31, 44, 62, .45), rgba(31, 44, 62, .88)); }
.event-hero .container { position: relative; z-index: 2; }
.event-hero h1 { margin: 16px 0 12px; font-size: clamp(30px, 5vw, 56px); font-weight: 800; max-width: 900px; }
.event-hero p { max-width: 720px; color: #e3e9f1; font-size: 18px; }
.event-hero .chip { margin-right: 6px; }
.event-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.event-aside { position: sticky; top: 100px; }
.event-info { border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); background: #fff; }
.event-info dl { margin: 0 0 20px; display: grid; gap: 14px; }
.event-info dl div { display: grid; gap: 2px; }
.event-info dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-info dt .ico { width: 16px; height: 16px; color: var(--pink); }
.event-info dd { margin: 0; font-weight: 700; padding-left: 24px; }
.event-info dd::first-letter { text-transform: uppercase; }
.event-info small { display: block; margin-top: 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.back-link { font-weight: 700; }

/* Legal (same structure as the reference pages) */
.legal-hero .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; border: 1px solid #f7c9d4; color: var(--pink); }
.legal-hero .tag .ico { width: 15px; height: 15px; }
.legal-hero h1 { margin: 1rem 0 .8rem; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.legal-hero p { color: var(--muted); max-width: 720px; }
.legal-hero .updated { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin-top: 1.2rem; }
.legal-layout { display: grid; gap: 40px; padding: 56px 0 96px; }
.toc { display: none; }
.toc-inner { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line); background: var(--bg-tint); border-radius: 20px; padding: 1.2rem; }
.toc .label { display: block; margin-bottom: .9rem; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.toc a { display: flex; gap: .6rem; padding: .45rem .5rem; font-size: .88rem; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; transition: all .25s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 700; color: #9aa6b5; line-height: 1.7; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--pink); background: rgba(221, 49, 85, .06); }
.toc-links { display: grid; gap: .4rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.toc-links a { border: 0; padding: .3rem .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.toc-links a::before { content: none; }
.toc-links a[aria-current=page] { color: var(--pink); }
.prose { min-width: 0; max-width: 820px; }
.prose section { margin-bottom: 2.2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.1rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; }
.prose h2 .n { font-size: .8rem; font-weight: 800; color: var(--pink); letter-spacing: .1em; }
.prose h3 { margin: 1.6rem 0 .6rem; font-size: 1.05rem; font-weight: 800; }
.prose p, .prose li { color: var(--ink-2); font-size: .98rem; }
.prose p + p { margin-top: .9rem; }
.prose ul, .prose ol { display: grid; gap: .45rem; margin: .8rem 0 0 1.2rem; padding: 0; }
.prose li::marker { color: var(--pink); }
.prose a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .note { margin-top: 1rem; }
.prose .btn { margin-top: 1.2rem; text-decoration: none; color: var(--ink); }
.data-card { display: grid; margin: 1rem 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-tint); }
.data-card div { display: grid; gap: .2rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.data-card div:last-child { border-bottom: 0; }
.data-card dt { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.data-card dd { margin: 0; font-size: .96rem; font-weight: 600; }
.tbl-wrap { margin-top: 1rem; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.prose th { text-align: left; padding: .8rem .95rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.prose td { padding: .8rem .95rem; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: .85em; background: var(--pink-soft); color: #b0123f; padding: 2px 6px; border-radius: 6px; }
.treat { margin-top: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -26px rgba(42, 10, 74, .5); }
.treat h3 { margin: 0 0 .8rem; color: var(--pink); font-size: 1rem; }
.treat dl { display: grid; gap: .7rem; margin: 0; }
.treat dt { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.treat dd { margin: 0; color: var(--ink-2); font-size: .94rem; }
.event-prose h2, .event-prose h3 { display: block; }
.event-prose ul { margin-bottom: 1rem; }
.event-prose p + ul, .event-prose ul + p { margin-top: 1rem; }
.event-prose p:last-child { margin-top: 2rem; }

@media (min-width: 640px) {
  .data-card div, .treat dl > div { grid-template-columns: 200px 1fr; gap: 1rem; align-items: baseline; }
  .treat dl > div { display: grid; }
}
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px 1fr; gap: 64px; }
  .toc { display: block; }
}

/* =====================================================================
   REVEAL ON SCROLL
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--e-reveal), transform .9s var(--e-reveal); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* =====================================================================
   ENTRANCE SEQUENCE (hero) — from the reference choreography
   ===================================================================== */
html.anim .ln { overflow: hidden; padding-top: .26em; margin-top: -.26em; padding-bottom: .08em; margin-bottom: -.08em; }
html.anim .ln-i { transform: translateY(110%); }
html.anim .nav .logo, html.anim .nav-links a, html.anim .nav-actions .btn,
html.anim .burger, html.anim .hero .sub, html.anim .hero .ctas .btn, html.anim .hero .eyebrow,
html.anim .hero-trust, html.anim .form-card, html.anim .float-chip { opacity: 0; }
.ln-i, .nav .logo, .nav-links a, .nav-actions .btn, .hero .sub, .hero .ctas .btn, .form-card { will-change: transform, opacity; }

@keyframes lineRise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes subIn { from { opacity: 0; transform: translateY(calc(14 * var(--u))); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes subInFlat { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pillIn { from { opacity: 0; transform: translateY(calc(8 * var(--u))) scale(.972); } to { opacity: 1; transform: none; } }
@keyframes liftIn { from { opacity: 0; transform: translateY(calc(9 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes chipIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }

html.anim.go .hero .eyebrow { animation: liftIn .55s var(--e-soft) .05s both; }
html.anim.go .ln-i { animation: lineRise 1.05s var(--e-reveal) both; }
html.anim.go .ln:nth-child(1) .ln-i { animation-delay: .12s; }
html.anim.go .ln:nth-child(2) .ln-i { animation-delay: .22s; }
html.anim.go .nav .logo { animation: liftIn .62s var(--e-soft) .46s both; }
html.anim.go .nav-links a { animation: liftIn .55s var(--e-soft) both; }
html.anim.go .nav-links a:nth-child(1) { animation-delay: .540s; }
html.anim.go .nav-links a:nth-child(2) { animation-delay: .585s; }
html.anim.go .nav-links a:nth-child(3) { animation-delay: .630s; }
html.anim.go .nav-links a:nth-child(4) { animation-delay: .675s; }
html.anim.go .nav-links a:nth-child(5) { animation-delay: .720s; }
html.anim.go .hero .sub { animation: subIn .85s var(--e-reveal) .58s both; }
html.anim.go .btn-nav-ghost, html.anim.go .burger { animation: pillIn .55s var(--e-soft) .68s both; }
html.anim.go .btn-nav-start { animation: pillIn .55s var(--e-soft) .73s both; }
html.anim.go .form-card { animation: cardIn .9s var(--e-reveal) .7s both; }
html.anim .hero-visual { opacity: 0; }
html.anim.go .hero-visual { animation: liftIn .8s var(--e-soft) .2s both; }
html.anim.go .hero .ctas .btn-primary { animation: pillIn .70s var(--e-reveal) .90s both; }
html.anim.go .hero .ctas .btn-ghost { animation: pillIn .70s var(--e-reveal) .97s both; }
html.anim.go .hero-trust { animation: liftIn .6s var(--e-soft) 1.05s both; }
html.anim.go .float-chip--a { animation: chipIn .7s var(--e-reveal) 1.1s both; }
html.anim.go .float-chip--b { animation: chipIn .7s var(--e-reveal) 1.2s both; }

/* =====================================================================
   BREAKPOINTS
   ===================================================================== */
@media (max-width: 1160px) {
  :root {
    --u: min(max(0.9px, min(calc(100vw / 1280), calc(100dvh / 760))), calc((100vw - 72px) / 575), calc(100dvh / 620));
  }
  .nav { height: max(62px, calc(67 * var(--u))); padding-left: max(20px, calc(28 * var(--u))); padding-right: max(20px, calc(28 * var(--u))); }
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; color: inherit; }
  .menu {
    position: fixed; top: 64px; right: max(20px, calc(28 * var(--u))); width: min(320px, calc(100vw - 40px));
    background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border: 1px solid var(--line); border-radius: 20px; padding: 10px 8px 12px;
    flex-direction: column; box-shadow: 0 24px 60px -20px rgba(31, 44, 62, .4); transform-origin: top right; z-index: 40;
  }
  .menu.open { display: flex; animation: menuIn .18s ease both; }
  .menu a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 12px 14px; border-radius: 12px; transition: background .18s ease, color .18s ease; }
  .menu a:hover { background: var(--bg-tint); color: var(--pink); }
  .menu .divider { height: 1px; background: var(--line); margin: 8px 14px; }
  .menu .m-start { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--grad); color: #fff; margin: 6px 8px 0; padding: 14px 16px; border-radius: 14px; font-weight: 700; border: 0; cursor: pointer; font-size: 15px; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 40px; gap: 10px; width: min(720px, 100% - 48px); }
  .hero h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
  .hero .sub { font-size: max(16px, calc(17.4 * var(--u))); line-height: 1.6; max-width: 600px; }
  .btn-lg { height: 50px; padding: 0 22px; font-size: 15px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; order: -1; }
  .hero-inner { padding-top: 76px; }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-layout { grid-template-columns: 1fr; }
  .steps-visual { min-height: 420px; max-width: 620px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .event-layout { grid-template-columns: 1fr; }
  .event-aside { position: static; }
  .iso-city { opacity: .45; }
}

@media (max-width: 552px) {
  :root { --u: 1px; }
  .container { width: calc(100% - 32px); }
  .nav { height: 60px; padding: 0 16px; }
  .menu { top: 58px; left: 16px; right: 16px; width: auto; }
  .hero-inner { width: calc(100% - 32px); padding-top: 96px; }
  .hero h1 { font-size: min(44px, calc((100vw - 32px) / 7.4)); line-height: 1.08; }
  .hero .sub { font-size: clamp(15.5px, 4vw, 16.5px); }
  .ctas { gap: 10px; }
  .ctas .btn { flex: 1 1 auto; }
  .form-card { padding: 14px 14px 10px; border-radius: 18px; }
  .field-grid, .inline-fields { grid-template-columns: 1fr; }
  .inline-fields .btn { width: 100%; }
  .float-chip--a { display: none; }
  .float-chip--b { bottom: 2%; left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .carousel-nav { display: none; }
  .carousel { padding-inline: 16px; scroll-padding-inline: 16px; }
  .steps-visual { min-height: 340px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .compare-head > span:first-child { display: none; }
  .compare-row > span { padding: 12px 14px; font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .events-grid { grid-template-columns: 1fr; }
  .cc-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cc-actions { justify-content: stretch; }
  .cc-actions .btn { flex: 1 1 auto; }
  .modal-card { padding: 26px 18px 20px; border-radius: 22px; }
  .final-card { border-radius: 24px; }
  .iso-city { display: none; }
  html.anim.go .hero .sub { animation-name: subInFlat; }
  html.anim.go .ln-i { animation-duration: .92s; }
}

@media (max-width: 353px) {
  .ctas { flex-direction: column; align-items: stretch; }
}

/* reduced motion — belt and braces alongside the scripts' own opt-out */
@media (prefers-reduced-motion: reduce) {
  html.anim .ln { overflow: visible; padding-top: 0; margin-top: 0; }
  html.anim .ln-i { transform: none; }
  html.anim .nav .logo, html.anim .nav-links a, html.anim .nav-actions .btn, html.anim .burger,
  html.anim .hero .sub, html.anim .hero .ctas .btn, html.anim .hero .eyebrow, html.anim .hero-trust,
  html.anim .form-card, html.anim .float-chip { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

[data-view="success"]:focus { outline: none; }

/* =====================================================================
   PROPERTY FINDER (/inmuebles)
   ===================================================================== */
.page-finder .footer { margin-top: 0; }
.finder-bar { position: sticky; top: max(60px, calc(67 * var(--u))); z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); padding: 12px clamp(16px, 2vw, 28px); margin-top: max(60px, calc(67 * var(--u))); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.finder-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.finder-search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(221, 49, 85, .12); }
.finder-search > svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.finder-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.finder-toggle { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.finder-toggle svg { width: 18px; height: 18px; }
.finder-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: flex-end; }
.finder-filters label { display: grid; gap: 4px; flex: 1 1 130px; max-width: 200px; }
.finder-filters label span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.finder-filters select, .finder-filters input { height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.finder-filters select:focus, .finder-filters input:focus { border-color: var(--pink); background: #fff; }
.finder-clear { align-self: center; margin-left: auto; font-size: 14px; font-weight: 700; color: var(--pink); text-decoration: none; padding: 8px 6px; }

.finder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - 200px); }
.finder-map-wrap { position: relative; }
.finder-map { position: sticky; top: calc(max(60px, calc(67 * var(--u))) + 128px); height: calc(100vh - max(60px, calc(67 * var(--u))) - 128px); background: var(--sky); }
.finder-results { padding: 20px clamp(16px, 2vw, 28px) 40px; background: var(--bg-tint); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head h1 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.results-head h1 strong { font-weight: 800; color: var(--pink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { height: 38px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }

.prop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.prop-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prop-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .3s ease, transform .3s var(--e-soft), border-color .3s ease; }
.prop-item:hover, .prop-item.is-hl { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #f4c3cf; }
.prop-item-media { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--sky); }
.prop-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-reveal); }
.prop-item:hover .prop-item-media img { transform: scale(1.05); }
.prop-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.pbadge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink); }
.pbadge--op { background: var(--ink); color: #fff; }
.pbadge--status { background: var(--gold); color: #5a3b00; }
.pbadge--hl { background: var(--pink); color: #fff; }
.pbadge--tour { position: absolute; right: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: var(--pink); }
.pbadge--tour .ico { width: 14px; height: 14px; }
.prop-item-price { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 17px; box-shadow: 0 8px 20px -10px rgba(31, 44, 62, .5); }
.prop-item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prop-item-body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.prop-item-body h3 a { text-decoration: none; }
.prop-item-body h3 a:hover { color: var(--pink); }
.prop-item-loc { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.prop-item-loc .ico { width: 15px; height: 15px; color: var(--pink); flex: 0 0 auto; }
.prop-facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.prop-facts li { display: inline-flex; align-items: center; gap: 6px; }
.prop-facts svg { width: 18px; height: 18px; color: var(--muted); }
.prop-item-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 14px; }
.prop-type { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prop-type small { font-weight: 600; text-transform: none; letter-spacing: 0; }
.finder-cta { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px dashed #f0b5c3; }
.finder-cta strong { font-size: 17px; }
.finder-cta p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.finder-results .photo-credit { margin-top: 18px; }
.finder-switch { display: none; }

/* Leaflet markers */
.map-price { background: transparent; border: 0; }
.map-price span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 12.5px/1 'PJS', sans-serif; box-shadow: 0 6px 16px -6px rgba(31, 44, 62, .5); border: 1.5px solid #fff; transition: background .15s ease, color .15s ease, transform .15s ease; }
.map-price span::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.map-price:hover span, .map-price.is-active span { background: var(--pink); color: #fff; transform: translate(-50%, -100%) scale(1.08); }
.map-price.is-active span::after, .map-price:hover span::after { border-top-color: var(--pink); }
.map-price.is-active { z-index: 1000 !important; }
.map-cluster { background: transparent; }
.map-cluster span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 14px/1 'PJS', sans-serif; box-shadow: 0 0 0 6px rgba(221, 49, 85, .2), 0 8px 18px -6px rgba(195, 1, 80, .6); }
.map-cluster.is-active span { box-shadow: 0 0 0 10px rgba(221, 49, 85, .3); }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.map-popup { display: block; text-decoration: none; color: var(--ink); }
.map-popup img { width: 240px; height: 140px; object-fit: cover; }
.map-popup-body { display: grid; gap: 2px; padding: 10px 12px 12px; font-family: 'PJS', sans-serif; }
.map-popup-body b { color: var(--pink); font-size: 15px; }
.map-popup-body span { font-size: 13px; font-weight: 600; line-height: 1.3; }
.map-popup-body small { color: var(--muted); font-size: 12px; }
.leaflet-container { font-family: 'PJS', sans-serif; }

/* =====================================================================
   PROPERTY DETAIL
   ===================================================================== */
.property { padding: calc(max(60px, calc(67 * var(--u))) + 24px) 0 72px; background: #fff; }
.crumbs--dark { color: var(--muted); }
.gallery { position: relative; display: grid; gap: 8px; border-radius: 22px; overflow: hidden; height: clamp(280px, 48vw, 520px); }
.gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--3 .gallery-item:first-child { grid-row: 1 / 3; }
.gallery--2 { grid-template-columns: 1.6fr 1fr; }
.gallery-item { margin: 0; overflow: hidden; background: var(--sky); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .prop-badges { left: 16px; top: 16px; }
.gallery-tour { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--pink); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: var(--shadow); }
.gallery-tour .ico { width: 18px; height: 18px; }
.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 32px; align-items: start; }
.property-head h1 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.prop-facts--lg { margin-top: 22px; gap: 10px; }
.prop-facts--lg li { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-tint); }
.prop-facts--lg b { font-size: 17px; font-weight: 800; color: var(--ink); }
.prop-facts--lg span { font-size: 12px; font-weight: 600; color: var(--muted); }
.energy { display: inline-block; min-width: 30px; text-align: center; padding: 0 8px; border-radius: 6px; color: #fff; background: #8a94a3; }
.energy--A { background: #00a651; } .energy--B { background: #50b848; } .energy--C { background: #bfd730; color: #1f2c3e; }
.energy--D { background: #fff200; color: #1f2c3e; } .energy--E { background: #fdb913; } .energy--F { background: #f37021; } .energy--G { background: #ed1c24; }
.property-section { margin-top: 40px; }
.property-section > h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.feature-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.feature-chips .ico { width: 16px; height: 16px; color: var(--pink); stroke-width: 2.4; }
.property-map { height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.property-aside { position: sticky; top: 100px; }
.price-card { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: #fff; }
.price-card-op { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.price-card-m2 { font-size: 13px; color: var(--muted); margin-top: -6px; }
.price-card .btn .ico { width: 18px; height: 18px; }
.price-card small { text-align: center; color: var(--muted); font-size: 12.5px; }
.similar { margin-top: 64px; }

/* =====================================================================
   360º VIRTUAL TOUR
   ===================================================================== */
.section--tour { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.tour { position: relative; }
.tour-stage { position: relative; aspect-ratio: 16 / 8.2; min-height: 340px; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 70px -30px rgba(31, 44, 62, .55); isolation: isolate; }
.tour:fullscreen .tour-stage, .tour:-webkit-full-screen .tour-stage { aspect-ratio: auto; height: 100vh; border-radius: 0; }
.tour:fullscreen { background: var(--ink); }
.tour:fullscreen .tour-scenes { position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; }
.tour-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.06); transition: opacity .6s ease; }
.tour.is-ready .tour-poster { opacity: 0; pointer-events: none; }
.tour-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; outline: none; }
.tour-canvas:active { cursor: grabbing; }
.tour-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-weight: 700; background: rgba(31, 44, 62, .35); }
.tour-loading[hidden] { display: none; }
.tour-loading span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tour-top { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.tour-room { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-weight: 800; font-size: 14px; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.tour-room::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(221, 49, 85, .2); }
.tour-actions { display: flex; gap: 8px; pointer-events: auto; }
.tour-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); transition: background .2s ease, color .2s ease; }
.tour-btn svg { width: 20px; height: 20px; }
.tour-btn:hover { background: #fff; color: var(--pink); }
.tour-btn--vr { background: var(--grad); color: #fff; padding: 0 16px; }
.tour-btn--vr:hover { color: #fff; filter: brightness(1.06); }
.tour-btn--vr.is-disabled { background: rgba(255, 255, 255, .95); color: var(--muted); }
.tour-btn[hidden] { display: none; }
.tour-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(31, 44, 62, .72); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .5s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.tour-hint svg { width: 18px; height: 18px; animation: nudge 1.6s ease-in-out infinite; }
.tour-hint.is-hidden { opacity: 0; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.tour-tip { position: absolute; right: 16px; bottom: 16px; max-width: 300px; padding: 14px 16px; border-radius: 16px; background: #fff; border-left: 4px solid var(--pink); box-shadow: var(--shadow); animation: modalIn .35s var(--e-reveal); }
.tour-tip strong { display: block; font-size: 15px; }
.tour-tip p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.tour-scenes { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tour-scenes::-webkit-scrollbar { display: none; }
.tour-scene { flex: 0 0 auto; display: grid; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(31, 44, 62, .5); transition: border-color .2s ease, transform .2s ease; }
.tour-scene img { width: 132px; height: 66px; object-fit: cover; border-radius: 9px; }
.tour-scene span { font-size: 13px; font-weight: 700; color: var(--ink); }
.tour-scene:hover { transform: translateY(-2px); }
.tour-scene.is-active { border-color: var(--pink); }
.tour-vr-note { margin-top: 10px; font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

@media (max-width: 1160px) {
  .finder-layout { grid-template-columns: 1fr; }
  .finder-map-wrap { display: none; }
  .finder-layout.show-map .finder-map-wrap { display: block; }
  .finder-layout.show-map .finder-results { display: none; }
  .finder-map { position: relative; top: 0; height: calc(100vh - 200px); }
  .finder-switch { position: fixed; z-index: 25; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; padding: 4px; border-radius: 999px; background: var(--ink); box-shadow: 0 14px 30px -12px rgba(31, 44, 62, .6); }
  .finder-switch button { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
  .finder-switch button.is-active { background: #fff; color: var(--ink); }
  .property-layout { grid-template-columns: 1fr; gap: 28px; }
  .property-aside { position: static; order: -1; }
  .prop-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .finder-toggle { display: inline-flex; }
  .finder-search .btn { display: none; }
  .finder-filters { display: none; }
  .finder-bar.filters-open .finder-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .finder-filters label { max-width: none; }
  .prop-list, .prop-list--3 { grid-template-columns: 1fr; }
  .gallery--3 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery--3 .gallery-item:not(:first-child), .gallery--2 .gallery-item:not(:first-child) { display: none; }
  .gallery--2 { grid-template-columns: 1fr; }
  .tour-stage { aspect-ratio: 4 / 5; min-height: 0; border-radius: 18px; }
  .tour-btn--vr span { display: none; }
  .tour-tip { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .tour-scene img { width: 104px; height: 52px; }
}

.leaflet-tile-pane { filter: saturate(.7) brightness(1.04) hue-rotate(-6deg); }

/* Homepage property cards (linked to the property page) */
.prop-card { position: relative; }
.prop-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.prop-card .pbadge--tour { position: absolute; right: 14px; top: 14px; }
.prop-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--pink); }
.prop-card:hover .prop-card-cta .arw { transform: translateX(3px); }
.tour-btn.is-on { background: var(--pink); color: #fff; }
.tour-canvas { transition: filter .6s ease; }
.tour-measure { position: absolute; left: 16px; bottom: 16px; max-width: min(420px, calc(100% - 32px)); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow); }
.tour-measure b { color: var(--pink); }
.tour-measure[hidden] { display: none; }
@media (max-width: 760px) {
  .tour-btn span { display: none; }
  .tour-measure { bottom: 12px; left: 12px; }
}
