@font-face {
  font-family: "Junicode";
  src: local("Junicode"), local("Junicode Regular");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #ffffff;
  --surface-strong: #eef2f7;
  --text: #1f1f1f;
  --text-soft: #615563;
  --line: rgba(31, 31, 31, 0.12);
  --shadow: 0 22px 48px rgba(31, 31, 31, 0.12);
  --green: #aaf000;
  --blue: #0044f0;
  --red: #f00000;
  --whatsapp: #25d366;
  --google: #ffffff;
  --radius: 26px;
  --content: min(1220px, calc(100vw - 32px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f1f1f;
  --surface: #2b2f30;
  --surface-alt: #343839;
  --surface-strong: #26292a;
  --text: #ffffff;
  --text-soft: #eee5d8;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

/* En táctil, el borde del documento termina en el footer sin rebote exterior. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  html, body { overscroll-behavior-y: none; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 480ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: none;
  z-index: 1;
}

::view-transition-new(root) {
  animation-name: theme-circular-reveal;
  z-index: 2;
}

@keyframes theme-circular-reveal {
  from {
    clip-path: circle(0 at var(--theme-transition-x) var(--theme-transition-y));
  }

  to {
    clip-path: circle(var(--theme-transition-radius) at var(--theme-transition-x) var(--theme-transition-y));
  }
}

html.theme-transitioning body {
  transition: opacity 110ms ease-out;
}

html.theme-transitioning.theme-fade-out body {
  opacity: 0.82;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }

  html.theme-transitioning body {
    transition: none;
  }
}

body {
  --topographic-opacity: 0.055;
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] body {
  --topographic-opacity: 0.07;
}

body::before {
  content: none;
}

/* Prueba React Bits: fondo aislado del contenido y de las interacciones. */
.react-topography {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: invert(1);
}
:root[data-theme="dark"] .react-topography { filter: none; }

/* Topografia interactiva anterior, conservada como referencia. */
.topographic-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 220ms ease;
}

.page-shell {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .topographic-field {
    opacity: 0.62;
  }
}

/* Home en dos pantallas: hero y accesos. El footer queda después del segundo viewport. */
body[data-page="home"] {
  --home-hero-exit: 0;
}

body[data-page="home"] .hero-home__content {
  opacity: calc(1 - var(--home-hero-exit));
  transform: translate3d(0, calc(var(--home-hero-exit) * -34px), 0);
  filter: blur(calc(var(--home-hero-exit) * 7px));
  transition: opacity 70ms linear, transform 70ms linear, filter 70ms linear;
  will-change: opacity, transform, filter;
}

body[data-page="home"].home-hero-exited .hero-home__content {
  pointer-events: none;
}

body[data-page="home"] .home-access {
  min-height: 100svh !important;
  margin-top: 0 !important;
  margin-bottom: 25svh !important;
  padding-block: clamp(34px, 7svh, 84px) !important;
  box-sizing: border-box;
  align-content: center;
}

@media (max-width: 900px) {
  body[data-page="home"] .home-access {
    min-height: 100svh !important;
    align-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-home__content {
    transform: none;
    filter: none;
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .magnetic-control {
    will-change: translate;
  }
}

button,
select,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
  html.home-intro-pending { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: stable; }
  html.home-intro-pending body[data-page="home"] {
    position: fixed; inset: 0; width: 100%; overflow: clip; overscroll-behavior: none; touch-action: none;
  }
  html.home-intro-pending .site-header--home { opacity: 0; visibility: hidden; }
}

.site-header {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand img {
  width: clamp(170px, 18vw, 286px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 68, 240, 0.12));
}

.primary-nav,
.site-header__tools,
.icon-nav,
.social-strip,
.detail-topbar,
.detail-meta,
.detail-actions,
.footer-links,
.footer-social,
.footer-contact,
.footer-bottom {
  display: flex;
  align-items: center;
}

.primary-nav {
  justify-content: center;
  gap: clamp(18px, 2vw, 38px);
}

.primary-nav a,
.header-link {
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 600;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover,
.header-link:hover {
  color: var(--blue);
}

:root[data-theme="dark"] .primary-nav a[aria-current="page"],
:root[data-theme="dark"] .primary-nav a:hover,
:root[data-theme="dark"] .header-link:hover {
  color: var(--green);
}

.site-header__tools {
  justify-content: flex-end;
  gap: 20px;
}

.icon-nav {
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  font-size: 34px;
  font-weight: 700;
}

.icon-nav a:nth-child(1) {
  color: var(--green);
}

.icon-nav a:nth-child(2) {
  color: var(--blue);
}

.icon-nav a:nth-child(3) {
  color: var(--red);
}

.icon-nav a {
  position: relative;
  isolation: isolate;
  width: 1.55em;
  height: 1.55em;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.icon-nav a::before {
  content: "";
  position: absolute;
  inset: 18%;
  z-index: 0;
  border-radius: 999px;
  background: currentColor;
  filter: blur(10px);
  opacity: 0.11;
  box-shadow: 0 0 7px currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.icon-nav a:hover::before {
  opacity: 0.2;
  transform: scale(1.04);
}

:root:not([data-theme="dark"]) .icon-nav a::before {
  opacity: 0.24;
  box-shadow: 0 0 11px currentColor;
}

:root:not([data-theme="dark"]) .icon-nav a:hover::before {
  opacity: 0.38;
}

.icon-nav__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon-nav-source) center / contain no-repeat;
  mask: var(--icon-nav-source) center / contain no-repeat;
}

.icon-nav__icon--home {
  --icon-nav-source: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%20xmlns%3D%22%22%3Ehome-solid%3C%2Ftitle%3E%3Cg%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M11.47%203.841a.75.75%200%200%201%201.06%200l8.69%208.69a.75.75%200%201%200%201.06-1.061l-8.689-8.69a2.25%202.25%200%200%200-3.182%200l-8.69%208.69a.75.75%200%201%200%201.061%201.06z%22%2F%3E%3Cpath%20d%3D%22m12%205.432l8.159%208.159q.045.044.091.086v6.198c0%201.035-.84%201.875-1.875%201.875H15a.75.75%200%200%201-.75-.75v-4.5a.75.75%200%200%200-.75-.75h-3a.75.75%200%200%200-.75.75V21a.75.75%200%200%201-.75.75H5.625a1.875%201.875%200%200%201-1.875-1.875v-6.198l.091-.086z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.icon-nav__icon--question {
  --icon-nav-source: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ctitle%20xmlns%3D%22%22%3Equestion-lg%3C%2Ftitle%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M4.475%205.458c-.284%200-.514-.237-.47-.517C4.28%203.24%205.576%202%207.825%202c2.25%200%203.767%201.36%203.767%203.215c0%201.344-.665%202.288-1.79%202.973c-1.1.659-1.414%201.118-1.414%202.01v.03a.5.5%200%200%201-.5.5h-.77a.5.5%200%200%201-.5-.495l-.003-.2c-.043-1.221.477-2.001%201.645-2.712c1.03-.632%201.397-1.135%201.397-2.028c0-.979-.758-1.698-1.926-1.698c-1.009%200-1.71.529-1.938%201.402c-.066.254-.278.461-.54.461h-.777ZM7.496%2014c.622%200%201.095-.474%201.095-1.09c0-.618-.473-1.092-1.095-1.092c-.606%200-1.087.474-1.087%201.091S6.89%2014%207.496%2014%22%2F%3E%3C%2Fsvg%3E");
}

.icon-nav__icon--exclamation {
  --icon-nav-source: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ctitle%20xmlns%3D%22%22%3Eexclamation-lg%3C%2Ftitle%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M7.005%203.1a1%201%200%201%201%201.99%200l-.388%206.35a.61.61%200%200%201-1.214%200zM7%2012a1%201%200%201%201%202%200a1%201%200%200%201-2%200%22%2F%3E%3C%2Fsvg%3E");
}

.theme-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --theme-toggle-gap: 10px;
  --theme-toggle-pad-x: 10px;
  --theme-toggle-pill-height: calc(1em * 1.2 + 16px);
  line-height: 1.2;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}

.theme-toggle::before {
  content: ""; position: absolute; z-index: 0;
  left: var(--theme-toggle-pad-x); top: 50%;
  width: calc((100% - 2 * var(--theme-toggle-pad-x) - var(--theme-toggle-gap)) / 2);
  height: var(--theme-toggle-pill-height); border-radius: 999px;
  background: var(--text); transform: translate(0, -50%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), background-color 240ms ease;
  pointer-events: none;
}
:root[data-theme="dark"] .theme-toggle::before {
  transform: translate(calc(100% + var(--theme-toggle-gap)), -50%);
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 240ms ease;
}

.referrals-link {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.referrals-link svg { width: 23px; height: 23px; }

/* Los dos controles comparten altura; en celular conservan los 42px existentes. */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .site-header .theme-toggle,
  .site-header .referrals-link { height: 56px; }
  .site-header .referrals-link { width: 56px; flex-basis: 56px; }
}

.referrals-link:hover,
.referrals-link:focus-visible {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  transform: translateY(-1px);
}

:root[data-theme="dark"] .referrals-link:hover,
:root[data-theme="dark"] .referrals-link:focus-visible {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
}

:root:not([data-theme="dark"]) .theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
  background: transparent;
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle::before,
  .theme-toggle span {
    transition: none;
  }
}

.hero-home {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 42px 16px 84px;
}

.hero-home__content {
  width: min(980px, 100%);
  text-align: center;
  position: relative;
}

.hero-home h1,
.listing-hero__copy p,
.detail-page h1 {
  font-family: "Junicode", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-home h1 {
  margin: 0;
  font-size: clamp(76px, 11vw, 142px);
  line-height: 0.92;
}

.hero-home h1 .hero-title-main,
.hero-home h1 .hero-title-middle {
  display: inline-block;
  will-change: auto;
}

.hero-title-letter {
  display: inline-block;
  backface-visibility: hidden;
  will-change: auto;
}

.hero-home h1 .hero-title-future {
  display: block;
  color: var(--blue);
  text-shadow:
    0 0 12px rgba(0, 68, 240, 0.3),
    0 0 20px rgba(0, 68, 240, 0.18);
  will-change: auto;
}

:root[data-theme="dark"] .hero-home h1 .hero-title-future {
  color: var(--green);
  text-shadow: 0 0 14px rgba(170, 240, 0, 0.16);
}

.hero-home p {
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(24px, 2vw, 36px);
}

.cta-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta-pill:hover,
.button:hover {
  transform: translateY(-2px);
}

.cta-pill {
  --cta-base: var(--text);
  --cta-hover: var(--blue);
  --cta-hover-text: #ffffff;
  margin-top: 34px;
  background-image: linear-gradient(
    105deg,
    var(--cta-hover) 0%,
    var(--cta-hover) 48%,
    var(--cta-base) 52%,
    var(--cta-base) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--bg);
  box-shadow:
    var(--shadow),
    0 0 16px rgba(31, 31, 31, 0.3),
    0 0 26px rgba(31, 31, 31, 0.18);
  transition:
    transform 160ms ease,
    background-position 380ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms ease,
    box-shadow 260ms ease;
}

:root[data-theme="dark"] .cta-pill {
  --cta-base: #f2ecdc;
  --cta-hover: var(--green);
  --cta-hover-text: #1f1f1f;
  color: #1f1f1f;
  box-shadow: var(--shadow), 0 0 20px rgba(242, 236, 220, 0.2);
}

.cta-pill:hover,
.cta-pill:focus-visible {
  background-position: 0 0;
  color: var(--cta-hover-text);
  box-shadow:
    0 18px 38px rgba(31, 31, 31, 0.2),
    0 0 0 1px rgba(0, 68, 240, 0.2),
    0 0 30px rgba(0, 68, 240, 0.38);
}

:root[data-theme="dark"] .cta-pill:hover,
:root[data-theme="dark"] .cta-pill:focus-visible {
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(170, 240, 0, 0.2),
    0 0 30px rgba(170, 240, 0, 0.38);
}

.social-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.social-strip a,
.footer-social a {
  color: var(--text-soft);
  font-weight: 600;
}

.home-access {
  width: var(--content);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-access__card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-access__card small {
  display: block;
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 16px;
}

.home-access__card strong {
  display: block;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.02;
  margin-bottom: 18px;
}

.home-access__card span {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.5;
}

.home-access__card--accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 20%, var(--surface)), var(--surface));
}

.listing-page,
.detail-page {
  padding-bottom: 60px;
}

body[data-page="detail"] .detail-page {
  min-height: 100svh;
}

.listing-hero {
  --search-hero-light: url("../assets/backgrounds/buscar-claro.webp");
  --search-hero-dark: url("../assets/backgrounds/buscar-oscuro.webp");
  width: min(1680px, 100%);
  margin: 0 auto;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  background-image: var(--search-hero-light);
  background-size: cover;
  background-position: center;
}

.listing-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:root[data-theme="dark"] .listing-hero {
  background-image: var(--search-hero-dark);
}

.listing-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: 380px;
  padding: 46px 16px 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
  display: flex;
  align-items: flex-end;
}

.listing-hero__copy {
  width: var(--content);
  margin: 0 auto;
}

.listing-hero__copy p {
  margin: 0;
  font-size: clamp(44px, 5.8vw, 82px);
  color: #ffffff;
}

.listing-hero__copy h1 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.4vw, 38px);
  color: #ffffff;
}

.search-panel {
  width: var(--content);
  margin: -54px auto 0;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel__toggle { display: none; }

@media (max-width: 760px) {
  body[data-page="listing"] .search-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .search-panel__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 56px; padding: 16px 20px;
    border: 0; border-radius: inherit; background: transparent;
    color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
  }
  body[data-page="listing"] .search-panel {
    --search-compact-color: var(--blue);
    --search-compact-ink: #ffffff;
  }
  :root[data-theme="dark"] body[data-page="listing"] .search-panel {
    --search-compact-color: var(--green);
    --search-compact-ink: #202526;
  }
  body[data-page="listing"] .search-panel:not(.is-expanded) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 70%), var(--search-compact-color);
    border-color: color-mix(in srgb, var(--search-compact-color), white 22%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 6px 18px color-mix(in srgb, var(--search-compact-color) 12%, transparent),
      0 12px 26px rgba(0, 0, 0, 0.10);
  }
  body[data-page="listing"] .search-panel:not(.is-expanded) .search-panel__toggle { color: var(--search-compact-ink); }
  .search-panel__toggle:active { background: rgba(0, 0, 0, 0.06); }
  @media (hover: hover) {
    body[data-page="listing"] .search-panel:not(.is-expanded):hover {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 70%), var(--search-compact-color);
    }
  }
  .search-panel__toggle:focus-visible { outline: 2px solid var(--mode-interaction-accent); outline-offset: 3px; }
  .search-panel__chevron { flex: 0 0 24px; transition: transform 180ms ease; }
  .search-panel__toggle[aria-expanded="true"] .search-panel__chevron { transform: rotate(180deg); }
  body[data-page="listing"] .search-panel:not(.is-expanded) .search-form { display: none; }
  body[data-page="listing"] .search-panel .search-form {
    border: 0; border-radius: 0 0 22px 22px !important;
    border-top: 1px solid var(--line); background: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-panel__chevron { transition: none; }
}

.search-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.search-form select,
.footer-search input {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  background: var(--surface-alt);
  color: var(--text);
}

.button {
  border: 0;
  cursor: pointer;
}

.button--primary {
  background: var(--blue);
  color: #ffffff;
}

:root[data-theme="dark"] .button--primary {
  background: var(--green);
  color: #1f1f1f;
}

.button--whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}

.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.button--maps {
  background: var(--google);
  color: #1f1f1f;
}

.listing-results,
.detail-layout {
  width: var(--content);
  margin: 38px auto 0;
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(38px, 3.8vw, 60px);
  line-height: 1;
}

.section-copy p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.property-list {
  --property-carousel-gutter: max(16px, calc((100% - 980px) / 2));
  width: 100%;
  margin-left: 0;
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding: 8px var(--property-carousel-gutter) 18px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--property-carousel-gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) color-mix(in srgb, var(--line) 70%, transparent);
}

.property-list::-webkit-scrollbar {
  height: 8px;
}

.property-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}

.property-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--blue);
}

:root[data-theme="dark"] .property-list {
  scrollbar-color: var(--green) rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .property-list::-webkit-scrollbar-thumb {
  background: var(--green);
}

.property-list--single,
.property-list--empty {
  width: 100%;
  margin-left: 0;
  padding-inline: 0;
  scroll-padding-inline: 0;
}

.property-card {
  flex: 0 0 min(100vw - 32px, 980px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(280px, 32%) 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

.property-list--single .property-card {
  flex-basis: 100%;
}

body[data-page="listing"] .property-card {
  opacity: 0.42;
}

body[data-page="listing"] .property-card.is-current,
body[data-page="listing"] .property-card:focus-within {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="listing"] .property-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
    box-shadow:
      0 30px 58px rgba(31, 31, 31, 0.18),
      0 0 0 1px rgba(0, 68, 240, 0.08);
  }

  :root[data-theme="dark"] body[data-page="listing"] .property-card:hover {
    border-color: rgba(170, 240, 0, 0.34);
    box-shadow:
      0 32px 62px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(170, 240, 0, 0.08);
  }
}

body[data-page="listing"] .property-card:focus-within {
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .property-card {
    transition: none;
  }
}

.property-card__media {
  display: block;
  min-height: 240px;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-card__title a {
  color: inherit;
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 800;
}

.property-status-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ribbon-width, 124%);
  padding: 10px 12px;
  transform: translate(-50%, -50%) rotate(var(--ribbon-angle, -18deg));
  background: rgba(178, 34, 40, 0.96);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
body[data-page="detail"] :is(.detail-gallery, .detail-gallery-status) { position: relative; overflow: hidden; }
.property-status-ribbon--gallery { z-index: 8; --ribbon-angle: -32deg; }

.property-card__body {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.property-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.property-card__title {
  min-width: 0;
}

.property-card__title h3 {
  margin: 0;
  font-size: clamp(24px, 1.65vw, 30px);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.15;
}

.property-card__title p,
.detail-copy p,
.detail-description p,
.detail-description li,
.detail-location p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.property-card__price,
.detail-price {
  text-align: right;
  white-space: nowrap;
}

.detail-copy .detail-code {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.property-card__price strong,
.detail-price strong {
  display: block;
  font-size: clamp(26px, 1.8vw, 34px);
  line-height: 1.1;
  color: var(--blue);
}

.detail-price strong {
  font-size: clamp(28px, 2vw, 38px);
}

body[data-page="listing"] .section-copy h2 {
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.15;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .property-card__top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .property-card__price {
    text-align: left;
  }
}

:root[data-theme="dark"] .property-card__price strong,
:root[data-theme="dark"] .detail-price strong {
  color: var(--green);
}

.property-card__price span,
.detail-price span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 18px;
}

.detail-topbar {
  justify-content: space-between;
  gap: 18px;
}

.detail-back {
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  gap: 26px;
}

.detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
}

.detail-heading__text { min-width: 0; }

@media (max-width: 760px) {
  .detail-heading { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body[data-page="detail"] .detail-heading .detail-price { margin-left: 0; text-align: left; }
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-gallery__primary,
.detail-gallery__thumb {
  min-height: 240px;
  border-radius: 20px;
  background-image: var(--gallery-image);
  background-repeat: no-repeat;
}

.detail-gallery__primary {
  min-height: 476px;
  background-size: 156%;
  background-position: 29% 32%;
}

.detail-gallery__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-gallery__thumb {
  background-size: 176%;
}

.detail-gallery__thumb:nth-child(1) {
  background-position: 82% 19%;
}

.detail-gallery__thumb:nth-child(2) {
  background-position: 118% 22%;
}

.detail-gallery__thumb:nth-child(3) {
  background-position: 83% 79%;
}

.detail-gallery__thumb--more {
  position: relative;
  background-position: 118% 79%;
}

.detail-gallery__thumb--more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.detail-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.meta-chip__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: var(--feature-icon) center / contain no-repeat;
  mask: var(--feature-icon) center / contain no-repeat;
}

.meta-chip__icon--area-total {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Emaximize%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M8%203H5a2%202%200%200%200-2%202v3m18%200V5a2%202%200%200%200-2-2h-3M3%2016v3a2%202%200%200%200%202%202h3m8%200h3a2%202%200%200%200%202-2v-3%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--area-covered {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Eruler%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M21.3%2015.3a2.4%202.4%200%200%201%200%203.4l-2.6%202.6a2.4%202.4%200%200%201-3.4%200L2.7%208.7a2.41%202.41%200%200%201%200-3.4l2.6-2.6a2.41%202.41%200%200%201%203.4%200Zm-6.8-2.8l2-2m-5-1l2-2m-5-1l2-2m7%2011l2-2%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--rooms {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Edoor-open%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M11%2020H2m9-15.438v16.157a1%201%200%200%200%201.242.97L19%2020V5.562a2%202%200%200%200-1.515-1.94l-4-1A2%202%200%200%200%2011%204.561zM11%204H8a2%202%200%200%200-2%202v14m8-8h.01M22%2020h-3%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--bathrooms {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ebath%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M10%204L8%206m9%2013v2M2%2012h20M7%2019v2M9%205L7.621%203.621A2.121%202.121%200%200%200%204%205v12a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-5%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--professional {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ebriefcase-business%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M12%2012h.01M16%206V4a2%202%200%200%200-2-2h-4a2%202%200%200%200-2%202v2m14%207a18.15%2018.15%200%200%201-20%200%22%2F%3E%3Crect%20width%3D%2220%22%20height%3D%2214%22%20x%3D%222%22%20y%3D%226%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--pets {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Epaw-print%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%224%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%228%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2216%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%2010a5%205%200%200%201%205%205v3.5a3.5%203.5%200%200%201-6.84%201.045q-.64-2.065-2.7-2.705A3.5%203.5%200%200%201%205.5%2010Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--furnished {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Earmchair%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M19%209V6a2%202%200%200%200-2-2H7a2%202%200%200%200-2%202v3%22%2F%3E%3Cpath%20d%3D%22M3%2016a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-5a2%202%200%200%200-4%200v1.5a.5.5%200%200%201-.5.5h-9a.5.5%200%200%201-.5-.5V11a2%202%200%200%200-4%200zm2%202v2m14-2v2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--garage {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ecar-front%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22m21%208-2%202-1.5-3.7A2%202%200%200%200%2015.646%205H8.4a2%202%200%200%200-1.903%201.257L5%2010%203%208m4%206h.01M17%2014h.01%22%2F%3E%3Crect%20width%3D%2218%22%20height%3D%228%22%20x%3D%223%22%20y%3D%2210%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2018v2m14-2v2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--pool {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ewaves-ladder%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M19%205a2%202%200%200%200-2%202v11%22%2F%3E%3Cpath%20d%3D%22M2%2018c.6.5%201.2%201%202.5%201%202.5%200%202.5-2%205-2%202.6%200%202.4%202%205%202%202.5%200%202.5-2%205-2%201.3%200%201.9.5%202.5%201M7%2013h10M7%209h10%22%2F%3E%3Cpath%20d%3D%22M9%205a2%202%200%200%200-2%202v11%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--balcony {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Efence%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M4%203%202%205v15c0%20.6.4%201%201%201h2c.6%200%201-.4%201-1V5Zm2%205h4M6%2018h4m2-15-2%202v15c0%20.6.4%201%201%201h2c.6%200%201-.4%201-1V5Zm2%205h4m-4%2010h4m2-15-2%202v15c0%20.6.4%201%201%201h2c.6%200%201-.4%201-1V5Z%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--patio {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Etree-palm%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M13%208c0-2.76-2.46-5-5.5-5S2%205.24%202%208h2l1-1%201%201h4m3-.86A5.82%205.82%200%200%201%2016.5%206c3.04%200%205.5%202.24%205.5%205h-3l-1-1-1%201h-3%22%2F%3E%3Cpath%20d%3D%22M5.89%209.71c-2.15%202.15-2.3%205.47-.35%207.43l4.24-4.25.7-.7.71-.71%202.12-2.12c-1.95-1.96-5.27-1.8-7.42.35%22%2F%3E%3Cpath%20d%3D%22M11%2015.5c.5%202.5-.17%204.5-1%206.5h4c2-5.5-.5-12-1-14%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--terrace {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Esun%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M4.93%204.93l1.41%201.41m11.32%2011.32%201.41%201.41M2%2012h2m16%200h2M6.34%2017.66l-1.41%201.41M19.07%204.93l-1.41%201.41%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--accessible {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Eaccessibility%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%224%22%20r%3D%221%22%2F%3E%3Cpath%20d%3D%22m18%2019%201-7-6%201M5%208l3-3%205.5%203-2.36%203.5m-6.9%203a5%205%200%200%200%206.88%206%22%2F%3E%3Cpath%20d%3D%22M13.76%2017.5a5%205%200%200%200-6.88-6%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--garden {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Etrees%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M10%2010v.2A3%203%200%200%201%208.9%2016H5a3%203%200%200%201-1-5.8V10a3%203%200%200%201%206%200m-3%206v6m6-3v3%22%2F%3E%3Cpath%20d%3D%22M12%2019h8.3a1%201%200%200%200%20.7-1.7L18%2014h.3a1%201%200%200%200%20.7-1.7L16%209h.2a1%201%200%200%200%20.8-1.7L13%203l-1.4%201.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--condition {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ebadge-check%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M3.85%208.62a4%204%200%200%201%204.78-4.77%204%204%200%200%201%206.74%200%204%204%200%200%201%204.78%204.78%204%204%200%200%201%200%206.74%204%204%200%200%201-4.77%204.78%204%204%200%200%201-6.75%200%204%204%200%200%201-4.78-4.77%204%204%200%200%201%200-6.76%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--front {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Esignpost%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M12%2013v8m0-18v3m-9.646%204.354a1.207%201.207%200%200%201%200-1.708l2.06-2.06A2%202%200%200%201%205.828%206h12.344a2%202%200%200%201%201.414.586l2.06%202.06a1.207%201.207%200%200%201%200%201.708l-2.06%202.06a2%202%200%200%201-1.414.586H5.828a2%202%200%200%201-1.414-.586Z%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--storefront {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Estore%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M15%2021v-5a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v5m8.774-10.69a1.12%201.12%200%200%200-1.549%200%202.5%202.5%200%200%201-3.451%200%201.12%201.12%200%200%200-1.548%200%202.5%202.5%200%200%201-3.452%200%201.12%201.12%200%200%200-1.549%200%202.5%202.5%200%200%201-3.77-3.248l2.889-4.184A2%202%200%200%201%207%202h10a2%202%200%200%201%201.653.873l2.895%204.192a2.5%202.5%200%200%201-3.774%203.244%22%2F%3E%3Cpath%20d%3D%22M4%2010.95V19a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8.05%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--open-floor {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Escan%3C%2Ftitle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M3%207V5a2%202%200%200%201%202-2h2m10%200h2a2%202%200%200%201%202%202v2m0%2010v2a2%202%200%200%201-2%202h-2M7%2021H5a2%202%200%200%201-2-2v-2%22%2F%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--location {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Emap-pin%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--no-fees {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ebadge-dollar-sign%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M3.85%208.62a4%204%200%200%201%204.78-4.77%204%204%200%200%201%206.74%200%204%204%200%200%201%204.78%204.78%204%204%200%200%201%200%206.74%204%204%200%200%201-4.77%204.78%204%204%200%200%201-6.75%200%204%204%200%200%201-4.78-4.77%204%204%200%200%201%200-6.76%22%2F%3E%3Cpath%20d%3D%22M16%208h-6a2%202%200%201%200%200%204h4a2%202%200%201%201%200%204H8m4%202V6%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--housing {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Ekey-round%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M2.586%2017.414A2%202%200%200%200%202%2018.828V21a1%201%200%200%200%201%201h3a1%201%200%200%200%201-1v-1a1%201%200%200%201%201-1h1a1%201%200%200%200%201-1v-1a1%201%200%200%201%201-1h.172a2%202%200%200%200%201.414-.586l.814-.814a6.5%206.5%200%201%200-4-4Z%22%2F%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%227.5%22%20r%3D%22.5%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.meta-chip__icon--bedrooms {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M2%2020v-8a2%202%200%200%201%202-2h16a2%202%200%200%201%202%202v8%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2010V6a2%202%200%200%201%202-2h12a2%202%200%200%201%202%202v4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%204v6%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%2018h20%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--toilettes {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M7%2012h13a1%201%200%200%201%201%201%205%205%200%200%201-5%205h-.598a.5.5%200%200%200-.424.765l1.544%202.47a.5.5%200%200%201-.424.765H5.402a.5.5%200%200%201-.424-.765L7%2018%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2018a5%205%200%200%201-5-5V4a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v8%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--electricity {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M15.914%204a1.5%201.5%200%2000-2.474-1.561l-9%209A1.5%201.5%200%20005.5%2014h4.002a.5.5%200%2001.471.666L8.086%2020a1.5%201.5%200%20002.475%201.56l9-9A1.5%201.5%200%200018.5%2010h-3.997a.5.5%200%2001-.472-.667z%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--quincho {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M15%2021v-8a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v8%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2010a2%202%200%200%201%20.709-1.528l7-6a2%202%200%200%201%202.582%200l7%206A2%202%200%200%201%2021%2010v9a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--laundry {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M3%206h3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M17%206h.01%22%20%2F%3E%0A%20%20%3Crect%20width%3D%2218%22%20height%3D%2220%22%20x%3D%223%22%20y%3D%222%22%20rx%3D%222%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2018a2.5%202.5%200%200%200%200-5%202.5%202.5%200%200%201%200-5%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--pavement {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%2219%22%20r%3D%223%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2019h8.5a3.5%203.5%200%200%200%200-7h-11a3.5%203.5%200%200%201%200-7H15%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--internet {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%202a14.5%2014.5%200%200%200%200%2020%2014.5%2014.5%200%200%200%200-20%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%2012h20%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--water {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M7%2016.3c2.2%200%204-1.83%204-4.05%200-1.16-.57-2.26-1.71-3.19S7.29%206.75%207%205.3c-.29%201.45-1.14%202.84-2.29%203.76S3%2011.1%203%2012.25c0%202.22%201.8%204.05%204%204.05z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12.56%206.6A10.97%2010.97%200%200%200%2014%203.02c.5%202.5%202%204.9%204%206.5s3%203.5%203%205.5a6.98%206.98%200%200%201-11.91%204.97%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--sewer {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M12%2010L12%202%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%206L12%2010L8%206%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%2015C2.6%2015.5%203.2%2016%204.5%2016C7%2016%207%2014%209.5%2014C12.1%2014%2011.9%2016%2014.5%2016C17%2016%2017%2014%2019.5%2014C20.8%2014%2021.4%2014.5%2022%2015%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%2021C2.6%2021.5%203.2%2022%204.5%2022C7%2022%207%2020%209.5%2020C12.1%2020%2011.9%2022%2014.5%2022C17%2022%2017%2020%2019.5%2020C20.8%2020%2021.4%2020.5%2022%2021%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--wifi {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M12%2020h.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%208.82a15%2015%200%200%201%2020%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M5%2012.859a10%2010%200%200%201%2014%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M8.5%2016.429a5%205%200%200%201%207%200%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--barbecue {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M12%203q1%204%204%206.5t3%205.5a1%201%200%200%201-14%200%205%205%200%200%201%201-3%201%201%200%200%200%205%200c0-2-1.5-3-1.5-5q0-2%202.5-4%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--dining {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M3%202v7c0%201.1.9%202%202%202h4a2%202%200%200%200%202-2V2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M7%202v20%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M21%2015V2a5%205%200%200%200-5%205v6c0%201.1.9%202%202%202h3Zm0%200v7%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--credit {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M10%2018v-7%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M11.119%202.205a2%202%200%200%201%201.762%200l7.84%203.846A.5.5%200%200%201%2020.5%207h-17a.5.5%200%200%201-.22-.949z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14%2018v-7%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M18%2018v-7%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2022h18%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018v-7%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--doorman {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M10.268%2021a2%202%200%200%200%203.464%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%208c0-2.3-.8-4.3-2-6%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3.262%2015.326A1%201%200%200%200%204%2017h16a1%201%200%200%200%20.74-1.673C19.41%2013.956%2018%2012.499%2018%208A6%206%200%200%200%206%208c0%204.499-1.411%205.956-2.738%207.326%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%202C2.8%203.7%202%205.7%202%208%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--security {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--sum {
  --feature-icon: url("data:image/svg+xml,%3Csvg%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M18%2021a8%208%200%200%200-16%200%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%228%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2020c0-3.37-2-6.5-4-8a5%205%200%200%200-.45-8.3%22%20%2F%3E%0A%3C%2Fsvg%3E");
}

.meta-chip__icon--feature {
  --feature-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Esparkles%3C%2Ftitle%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594ZM20%202v4m2-2h-4%22%2F%3E%3Ccircle%20cx%3D%224%22%20cy%3D%2220%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.detail-content {
  display: grid;
  gap: 28px;
}

.detail-property-features { margin: 0; }

.detail-description,
.detail-video,
.detail-location,
.sidebar-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-description h2,
.detail-video h2,
.detail-location h2 {
  margin: 0 0 14px;
  font-size: 34px;
}

.detail-description ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sidebar-brand img {
  width: 52px;
}

.sidebar-brand small {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.detail-actions {
  flex-direction: column;
  gap: 12px;
}

.detail-actions .button {
  width: 100%;
}

.detail-link {
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.detail-location iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 20px;
}

/* Los recorridos son Shorts verticales; el marco reserva su tamaño antes de cargar YouTube. */
.detail-video__short {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  background: #111111;
}

.detail-video__short iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.sidebar-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.map-actions {
  margin-top: 18px;
}

.site-footer {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 48px clamp(16px, 3vw, 42px) 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-brand img {
  width: min(280px, 100%);
  height: auto;
}

.footer-eryma-logo {
  width: min(190px, 100%);
  height: auto;
}

.footer-contact {
  gap: 14px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 18px;
  flex-wrap: wrap;
}

.footer-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact__phones {
  display: grid;
  gap: 8px;
}

.footer-contact__icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 1.1em;
  background: currentColor;
  -webkit-mask: var(--footer-contact-icon) center / contain no-repeat;
  mask: var(--footer-contact-icon) center / contain no-repeat;
}

.footer-contact__icon--map {
  --footer-contact-icon: url("../assets/icons/footer/map-pin.svg");
}

.footer-contact__icon--mobile {
  --footer-contact-icon: url("../assets/icons/footer/device-mobile.svg");
}

.footer-contact__icon--phone {
  --footer-contact-icon: url("../assets/icons/footer/phone.svg");
}

.footer-column h3 {
  margin: 0 0 16px;
  font-size: 28px;
}

.footer-links,
.footer-social {
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  flex-direction: column;
  align-items: flex-start;
}

.footer-follow h3 { margin-bottom: 10px; }
.footer-search__status { margin: 0; }
.footer-search__status:empty { display: none; }

.footer-search {
  display: grid;
  gap: 14px;
}

.footer-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.footer-search .button {
  min-height: 58px;
}

.footer-bottom {
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 18px;
}

.footer-powered strong {
  color: var(--text);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.28);
}

@media (max-width: 1100px) {
  .site-header,
  .site-header--home {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-header__tools {
    justify-content: center;
  }

  .home-access,
  .search-form,
  .detail-main,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .property-card {
    grid-template-columns: 1fr;
  }

  .property-card__price,
  .detail-price {
    text-align: left;
  }

  .detail-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .property-list {
    gap: 14px;
    padding-bottom: 14px;
  }

  .hero-home h1 {
    font-size: 68px;
  }

  .hero-home p {
    font-size: 24px;
  }

  .listing-hero,
  .listing-hero__overlay {
    min-height: 290px;
  }

  .listing-hero__copy p {
    font-size: 50px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery__primary {
    min-height: 320px;
  }

  .detail-gallery__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-gallery__thumb {
    min-height: 150px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tarjetas del index: mayor intensidad de color únicamente en modo claro */
:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card::before {
  opacity: 0.74;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:nth-child(1)::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 72, 86, 0.68), transparent 48%),
    linear-gradient(135deg, rgba(225, 72, 86, 0.42), transparent 64%);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:nth-child(1) {
  box-shadow:
    0 20px 42px rgba(31, 31, 31, 0.14),
    0 0 0 1px rgba(225, 72, 86, 0.2) inset,
    0 0 30px rgba(225, 72, 86, 0.24);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:nth-child(2)::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(55, 86, 214, 0.7), transparent 48%),
    linear-gradient(135deg, rgba(55, 86, 214, 0.44), transparent 64%);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:nth-child(2) {
  box-shadow:
    0 20px 42px rgba(31, 31, 31, 0.14),
    0 0 0 1px rgba(55, 86, 214, 0.21) inset,
    0 0 30px rgba(55, 86, 214, 0.25);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card--accent::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(72, 150, 96, 0.72), transparent 48%),
    linear-gradient(135deg, rgba(72, 150, 96, 0.46), transparent 64%);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card--accent {
  box-shadow:
    0 20px 42px rgba(31, 31, 31, 0.14),
    0 0 0 1px rgba(72, 150, 96, 0.22) inset,
    0 0 32px rgba(72, 150, 96, 0.27);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:hover::before {
  opacity: 0.82;
}

@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .site-header,
  .listing-results,
  .detail-layout,
  .search-panel,
  .home-access {
    width: calc(100vw - 24px);
  }

  .primary-nav,
  .detail-meta,
  .social-strip,
  .footer-social {
    justify-content: center;
  }

  .hero-home {
    min-height: auto;
    padding-top: 24px;
  }

  .home-access__card,
  .property-card__body,
  .detail-description,
  .detail-video,
  .detail-location,
  .sidebar-card {
    padding: 22px;
  }

  .property-card__top {
    grid-template-columns: 1fr;
  }

  body[data-page="detail"] .detail-gallery {
    display: block;
  }

  body[data-page="detail"] .detail-gallery__primary {
    width: 100%;
    height: clamp(220px, 68vw, 300px);
    min-height: 0;
  }

  body[data-page="detail"] .detail-gallery__stack {
    display: none;
  }

  body[data-page="detail"] .detail-gallery__primary::after {
    content: attr(data-mobile-more);
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(16, 18, 18, 0.76);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(5px);
    pointer-events: none;
  }

  body[data-page="detail"] .detail-gallery__primary[data-mobile-more=""]::after {
    display: none;
  }
}

/* =====================================================
   FIX RESTAURACIÓN FINAL — DETAIL STICKY + FOOTER + LISTADOS
   Agregado al final para no pisar lo que ya funciona.
   ===================================================== */

/* 1) Sidebar de propiedad: acompaña el scroll y queda más alineada con la galería */
body[data-page="detail"] .detail-sidebar {
  position: sticky;
  top: 10px;
  align-self: start;
  margin-top: -10px;
  z-index: 5;
}

/* En pantallas chicas no conviene sticky */
@media (max-width: 1100px) {
  body[data-page="detail"] .detail-sidebar {
    position: static;
    margin-top: 0;
  }
}

/* 2) Galería: muestra imágenes como fondo y elimina textos sueltos de loader */
body[data-page="detail"] .detail-gallery__primary.gallery-photo-box,
body[data-page="detail"] .detail-gallery__thumb.gallery-photo-box {
  background-image: var(--gallery-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}

body[data-page="detail"] .gallery-loader-img,
body[data-page="detail"] .gallery-loader,
body[data-page="detail"] .photo-box {
  display: none !important;
}

body[data-page="detail"] .detail-gallery.is-loading .gallery-photo-box,
body[data-page="detail"] .detail-gallery.is-loaded .gallery-photo-box {
  filter: none !important;
}

body[data-page="detail"] .detail-gallery__thumb--more.gallery-photo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(0, 0, 0, .52);
  pointer-events: none;
}

body[data-page="detail"] .detail-gallery__thumb--more.gallery-photo-box::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: transparent !important;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

/* 3) Footer pegado al ancho de pantalla aunque cambie el zoom */
.site-footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-inline: max(20px, 4vw) !important;
}

.site-footer__grid,
.footer-bottom {
  width: var(--content) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

/* 4) Listados Ventas/Alquileres: restaura fondo, centrado y palabra futuro en color */
body[data-page="listing"] .listing-hero {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: clamp(230px, 24vw, 330px) !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

:root:not([data-theme="dark"]) body[data-page="listing"] .listing-hero {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.10)),
    url("../assets/backgrounds/buscar-claro.webp") !important;
}

:root[data-theme="dark"] body[data-page="listing"] .listing-hero {
  background-image:
    linear-gradient(180deg, rgba(31,31,31,.05), rgba(31,31,31,.18)),
    url("../assets/backgrounds/buscar-oscuro.webp") !important;
}

body[data-page="listing"] .listing-hero__overlay {
  min-height: clamp(230px, 24vw, 330px) !important;
  padding: clamp(34px, 5vw, 70px) 16px 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

body[data-page="listing"] .listing-hero__copy {
  width: min(100% - 24px, 980px) !important;
  text-align: center !important;
  margin-inline: auto !important;
}

body[data-page="listing"] .listing-hero__copy p {
  --listing-future-glow-strong: rgba(0, 68, 240, 0.42);
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif !important;
  font-size: clamp(2.1rem, 3.5vw, 4rem) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

:root:not([data-theme="dark"]) body[data-page="listing"] .listing-hero__copy p {
  color: #1f1f1f !important;
  text-shadow: 0 3px 14px rgba(255, 255, 255, .72) !important;
}

:root:not([data-theme="dark"]) body[data-page="listing"] .listing-hero__copy .listing-hero__future {
  color: #0044f0 !important;
  text-shadow:
    0 0 10px rgba(0, 68, 240, 0.22),
    0 0 20px rgba(0, 68, 240, 0.1);
}

:root[data-theme="dark"] body[data-page="listing"] .listing-hero__copy p {
  --listing-future-glow-strong: rgba(170, 240, 0, 0.38);
  color: #ffffff !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .42) !important;
}

:root[data-theme="dark"] body[data-page="listing"] .listing-hero__copy .listing-hero__future {
  color: #aaf000 !important;
  text-shadow:
    0 0 10px rgba(170, 240, 0, 0.2),
    0 0 20px rgba(170, 240, 0, 0.09);
}

body[data-page="listing"] .listing-hero__segment,
body[data-page="listing"] .listing-hero__future,
body[data-page="listing"] .listing-hero__letter {
  display: inline-block;
}

body[data-page="listing"] .listing-hero__letter {
  backface-visibility: hidden;
  will-change: auto;
}

body[data-page="listing"] .listing-hero__copy h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mantiene buscador y cards de listado compactos */
body[data-page="listing"] .search-panel,
body[data-page="listing"] .listing-results {
  width: min(100% - 32px, 980px) !important;
}

body[data-page="listing"] .listing-results {
  width: 100% !important;
}

body[data-page="listing"] .listing-results .section-copy {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

/* Mantiene el footer fuera de la primera vista de los listados. */
body[data-page="listing"] .site-footer {
  margin-top: max(180px, 22svh) !important;
}

body[data-page="listing"] .search-panel {
  margin: -38px auto 0 !important;
  position: relative !important;
  z-index: 3 !important;
}

body[data-page="listing"] .search-form {
  grid-template-columns: 1.1fr 1.35fr .9fr auto !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 24px !important;
}

body[data-page="listing"] .search-form label {
  gap: 6px !important;
  font-size: 12px !important;
}

body[data-page="listing"] .search-form select,
body[data-page="listing"] .search-form input {
  min-height: 44px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
}

body[data-page="listing"] .search-form .custom-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.custom-select {
  position: relative;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
}

.custom-select__trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.custom-select__trigger:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}

:root[data-theme="dark"] .custom-select__trigger:hover {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
}

.custom-select--open .custom-select__trigger,
.custom-select__trigger:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 68, 240, 0.12);
}

:root[data-theme="dark"] .custom-select--open .custom-select__trigger,
:root[data-theme="dark"] .custom-select__trigger:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(170, 240, 0, 0.1);
}

.custom-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.65;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.custom-select--open .custom-select__chevron {
  transform: translateY(2px) rotate(225deg);
}

.custom-select__popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: max(100%, 210px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(18, 24, 32, 0.2);
  transform-origin: 50% 0;
  animation: custom-select-in 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

:root[data-theme="dark"] .custom-select__popover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

body[data-page="listing"] .search-form .custom-select__search {
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 0 7px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 0 11px !important;
  background: var(--surface-alt) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  outline: none;
}

body[data-page="listing"] .search-form .custom-select__search:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 68, 240, 0.1);
}

:root[data-theme="dark"] body[data-page="listing"] .search-form .custom-select__search:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(170, 240, 0, 0.08);
}

.custom-select__options {
  max-height: 240px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.custom-select__option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.custom-select__option:hover,
.custom-select__option:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}

.custom-select__option[aria-selected="true"] {
  background: var(--blue);
  color: #ffffff;
}

:root[data-theme="dark"] .custom-select__option:hover,
:root[data-theme="dark"] .custom-select__option:focus-visible {
  background: color-mix(in srgb, var(--green) 10%, transparent);
}

:root[data-theme="dark"] .custom-select__option[aria-selected="true"] {
  background: var(--green);
  color: #1f1f1f;
}

.custom-select__option[aria-selected="true"]::after {
  content: "✓";
  font-weight: 800;
}

@keyframes custom-select-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-select__popover {
    animation: none;
  }

  .custom-select__chevron {
    transition: none;
  }
}

body[data-page="listing"] .search-form .button {
  min-height: 44px !important;
  padding: 0 28px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  body[data-page="listing"] .search-form {
    grid-template-columns: 1fr !important;
  }

  body[data-page="listing"] .site-footer {
    margin-top: max(140px, 18svh) !important;
  }
}


/* =====================================================
   FIX FINAL: IMÁGENES REALES + SIDEBAR ALINEADA
   Agregado puntual: no toca home, footer ni hero de listados.
   ===================================================== */

/* Cards de búsqueda/listado: ahora muestran una imagen real dentro del espacio izquierdo */
.property-card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
}

.property-card__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.property-card__badge {
  z-index: 2;
}

/* Detalle: galería con <img>, no con background-image */
body[data-page="detail"] .detail-gallery__primary,
body[data-page="detail"] .detail-gallery__thumb {
  background-image: none !important;
  background-color: var(--surface-strong);
  position: relative;
  overflow: hidden;
}

body[data-page="detail"] .detail-gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

body[data-page="detail"] .detail-gallery__thumb--more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(0, 0, 0, .52);
  pointer-events: none;
}

body[data-page="detail"] .detail-gallery__thumb--more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: transparent !important;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

/* Sidebar: alineada con la galería y sticky durante el scroll */
body[data-page="detail"] .detail-main {
  align-items: start;
}

body[data-page="detail"] .detail-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  margin-top: 0 !important;
  z-index: 5;
}

@media (max-width: 1100px) {
  body[data-page="detail"] .detail-sidebar {
    position: static;
    margin-top: 0 !important;
  }
}

/* Logo circular del bloque lateral */
.sidebar-brand .sidebar-logo-circle {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 54px;
  filter: none;
}

/* Limpieza por si quedó algún loader anterior */
body[data-page="detail"] .gallery-loader,
body[data-page="detail"] .photo-box,
body[data-page="detail"] .gallery-loader-img {
  display: none !important;
}


/* =====================================================
   ICONOS EN BOTONES - FIX SEGURO
   No cambia layout general, solo alinea SVG + texto.
   ===================================================== */
.button .button-icon,
.floating-whatsapp img {
  width: 22px;
  height: 22px;
  display: inline-block;
  object-fit: contain;
  flex: 0 0 22px;
}

.button .button-icon--maps {
  width: 24px;
  height: 24px;
}

.button--whatsapp,
.button--maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.floating-whatsapp {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0 !important;
  border-radius: 999px;
  font-size: 0;
}

.floating-whatsapp img {
  width: 30px;
  height: 30px;
}

/* Asegura que la card lateral use el isotipo circular y quede alineada con la galería */
body[data-page="detail"] .sidebar-brand .sidebar-logo-circle {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
  border-radius: 50%;
  flex: 0 0 54px;
}

body[data-page="detail"] .detail-main {
  align-items: start !important;
}

body[data-page="detail"] .detail-sidebar {
  align-self: start !important;
  margin-top: 0 !important;
  position: sticky;
  top: 20px;
}

@media (max-width: 1100px) {
  body[data-page="detail"] .detail-sidebar {
    position: static;
  }
}

/* =====================================================
   AJUSTE VISUAL: WHATSAPP BLANCO + BORDE MAPS EN CLARO
   ===================================================== */

/* El SVG de WhatsApp queda blanco dentro de botones verdes */
.button--whatsapp .button-icon,
.floating-whatsapp img {
  filter: brightness(0) invert(1) !important;
}

/* En modo claro el botón de Google Maps necesita borde para separarse de la card */
:root:not([data-theme="dark"]) .button--maps {
  border: 1px solid rgba(31, 31, 31, 0.16) !important;
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
}

:root:not([data-theme="dark"]) .button--maps:hover {
  border-color: rgba(0, 68, 240, 0.28) !important;
  box-shadow: 0 14px 28px rgba(0, 68, 240, 0.12);
}

/* En modo oscuro mantiene presencia sutil sin ensuciar */
:root[data-theme="dark"] .button--maps {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* =====================================================
   DETALLE VISUAL - BRILLO DE MARCA EN BOTONES
   Modo claro: azul Garnica en Compartir/Maps + verde WhatsApp.
   Modo oscuro: verde Garnica en Compartir/Maps + verde WhatsApp.
   ===================================================== */

/* Base suave para que la transición se sienta premium */
body[data-page="detail"] .sidebar-card .button,
body[data-page="detail"] .detail-actions .button {
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

/* WhatsApp: verde de marca con un resplandor contenido en ambos modos */
body[data-page="detail"] .button--whatsapp,
body[data-page="listing"] .button--whatsapp,
.floating-whatsapp {
  box-shadow:
    0 8px 18px rgba(37, 211, 102, 0.1),
    0 0 0 1px rgba(37, 211, 102, 0.08) inset;
}

body[data-page="detail"] .button--whatsapp:hover,
body[data-page="listing"] .button--whatsapp:hover,
.floating-whatsapp:hover {
  box-shadow:
    0 11px 24px rgba(37, 211, 102, 0.16),
    0 0 0 1px rgba(37, 211, 102, 0.12) inset,
    0 0 12px rgba(37, 211, 102, 0.08);
}

/* Modo claro: Compartir y Maps con glow azul de la marca */
:root:not([data-theme="dark"]) body[data-page="detail"] .button--ghost,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps {
  border-color: rgba(0, 68, 240, 0.24) !important;
  box-shadow:
    0 10px 24px rgba(0, 68, 240, 0.08),
    0 0 0 1px rgba(0, 68, 240, 0.05) inset;
}

:root:not([data-theme="dark"]) body[data-page="detail"] .button--ghost:hover,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps:hover {
  border-color: rgba(0, 68, 240, 0.44) !important;
  box-shadow:
    0 14px 30px rgba(0, 68, 240, 0.16),
    0 0 0 1px rgba(0, 68, 240, 0.12) inset,
    0 0 22px rgba(0, 68, 240, 0.13);
}

/* Modo oscuro: Compartir y Maps con verde Garnica */
:root[data-theme="dark"] body[data-page="detail"] .button--ghost,
:root[data-theme="dark"] body[data-page="detail"] .button--maps {
  border-color: rgba(170, 240, 0, 0.22) !important;
  box-shadow:
    0 12px 26px rgba(170, 240, 0, 0.06),
    0 0 0 1px rgba(170, 240, 0, 0.06) inset;
}

:root[data-theme="dark"] body[data-page="detail"] .button--ghost:hover,
:root[data-theme="dark"] body[data-page="detail"] .button--maps:hover {
  border-color: rgba(170, 240, 0, 0.44) !important;
  box-shadow:
    0 16px 34px rgba(170, 240, 0, 0.13),
    0 0 0 1px rgba(170, 240, 0, 0.12) inset,
    0 0 24px rgba(170, 240, 0, 0.14);
}

/* En el modo oscuro el botón Maps sigue siendo blanco, pero con aura verde */
:root[data-theme="dark"] body[data-page="detail"] .button--maps {
  background: var(--google);
  color: #1f1f1f;
}


/* =====================================================
   BOTÓN COMPARTIR - ICONOS BLANCOS + CONSERVA GLOW INDEX
   Ajuste puntual: no toca las tarjetas del index ni el layout general.
   ===================================================== */
body[data-page="detail"] .button--share {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

body[data-page="detail"] .button--share .button-icon--share {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  filter: brightness(0) invert(1) !important;
}

body[data-page="detail"] .button--share span {
  line-height: 1;
}

/* Compartir: sin resplandor permanente; aura blanca solamente al interactuar */
:root:not([data-theme="dark"]) body[data-page="detail"] .button--share,
:root[data-theme="dark"] body[data-page="detail"] .button--share {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

:root:not([data-theme="dark"]) body[data-page="detail"] .button--share:hover,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--share:focus-visible,
:root[data-theme="dark"] body[data-page="detail"] .button--share:hover,
:root[data-theme="dark"] body[data-page="detail"] .button--share:focus-visible {
  border-color: rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 255, 255, 0.2) !important;
}

/* Google Maps: el blanco del botón se extiende como aura al interactuar */
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps,
:root[data-theme="dark"] body[data-page="detail"] .button--maps {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps:hover,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps:focus-visible,
:root[data-theme="dark"] body[data-page="detail"] .button--maps:hover,
:root[data-theme="dark"] body[data-page="detail"] .button--maps:focus-visible {
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.24) !important;
}

/* =====================================================
   HOME INDEX - TARJETAS 2 ARRIBA + 1 ABAJO / DEGRADÉ + GLOW SUAVE
   Ajuste puntual para index.html. No toca listados ni propiedad.
   ===================================================== */
body[data-page="home"] .home-access {
  width: min(100% - 280px, 1160px) !important;
  margin-inline: auto !important;
  margin-top: clamp(34px, 5svh, 68px) !important;
  margin-bottom: clamp(64px, 8svh, 110px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(34px, 3.6vw, 48px) !important;
}

body[data-page="home"] .home-access__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 172px !important;
  padding: clamp(24px, 2.1vw, 32px) !important;
  border-radius: 30px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  transition:
    transform 180ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

body[data-page="home"] .home-access__card--accent {
  grid-column: 1 / -1 !important;
}

body[data-page="home"] .home-access__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .44;
  transition: opacity 200ms ease, transform 200ms ease;
}

body[data-page="home"] .home-access__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--access-sweep-color) 44%, var(--surface)) 0%,
    color-mix(in srgb, var(--access-sweep-color) 30%, var(--surface)) 68%,
    color-mix(in srgb, var(--access-sweep-color) 20%, var(--surface)) 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="home"] .home-access__card:hover::after,
body[data-page="home"] .home-access__card:focus-visible::after {
  transform: scaleX(1);
}

body[data-page="home"] .home-access__card:hover {
  transform: translateY(-3px);
}

body[data-page="home"] .home-access__card:hover::before {
  opacity: .58;
  transform: scale(1.015);
}

/* Ventas: degradé rojo + glow sutil */
body[data-page="home"] .home-access__card:nth-child(1)::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 0, 0, .42), transparent 46%),
    linear-gradient(135deg, rgba(240, 0, 0, .22), transparent 62%);
}

body[data-page="home"] .home-access__card:nth-child(1) {
  --access-sweep-color: var(--red);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(240, 0, 0, .06) inset,
    0 0 20px rgba(240, 0, 0, .06);
}

body[data-page="home"] .home-access__card:nth-child(1):hover {
  border-color: rgba(240, 0, 0, .24) !important;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, .20),
    0 0 0 1px rgba(240, 0, 0, .10) inset,
    0 0 30px rgba(240, 0, 0, .12);
}

/* Alquileres: degradé azul + glow sutil */
body[data-page="home"] .home-access__card:nth-child(2)::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 68, 240, .46), transparent 46%),
    linear-gradient(135deg, rgba(0, 68, 240, .24), transparent 62%);
}

body[data-page="home"] .home-access__card:nth-child(2) {
  --access-sweep-color: var(--blue);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(0, 68, 240, .06) inset,
    0 0 20px rgba(0, 68, 240, .06);
}

body[data-page="home"] .home-access__card:nth-child(2):hover {
  border-color: rgba(0, 68, 240, .26) !important;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, .20),
    0 0 0 1px rgba(0, 68, 240, .12) inset,
    0 0 30px rgba(0, 68, 240, .13);
}

/* ¿Tenés una propiedad?: degradé verde Garnica + glow sutil */
body[data-page="home"] .home-access__card--accent::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(170, 240, 0, .48), transparent 46%),
    linear-gradient(135deg, rgba(170, 240, 0, .25), transparent 62%);
}

body[data-page="home"] .home-access__card--accent {
  --access-sweep-color: var(--green);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(170, 240, 0, .07) inset,
    0 0 22px rgba(170, 240, 0, .07);
}

body[data-page="home"] .home-access__card--accent:hover {
  border-color: rgba(170, 240, 0, .28) !important;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, .20),
    0 0 0 1px rgba(170, 240, 0, .13) inset,
    0 0 32px rgba(170, 240, 0, .14);
}

body[data-page="home"] .home-access__card small,
body[data-page="home"] .home-access__card strong,
body[data-page="home"] .home-access__card span {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .home-access__card small {
  margin-bottom: 10px !important;
  font-size: 14px !important;
}

body[data-page="home"] .home-access__card strong {
  font-size: clamp(32px, 2.3vw, 46px) !important;
  line-height: 1.02 !important;
  margin-bottom: 12px !important;
}

body[data-page="home"] .home-access__card span {
  font-size: clamp(16px, 1.05vw, 18px) !important;
  line-height: 1.35 !important;
}

@media (max-width: 1200px) {
  body[data-page="home"] .home-access {
    width: min(100% - 72px, 1040px) !important;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .home-access {
    width: min(100% - 40px, 720px) !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body[data-page="home"] .home-access__card--accent {
    grid-column: auto !important;
  }
}

@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  body[data-page="home"] .home-access {
    width: min(100% - 24px, 100%) !important;
    gap: 16px !important;
  }

  body[data-page="home"] .home-access__card {
    min-height: 150px !important;
    padding: 20px !important;
    border-radius: 24px !important;
  }
}

/* =====================================================
   REDES SOCIALES CON SVG - INDEX + FOOTER
   Conserva glow de tarjetas y botones de propiedad.
   ===================================================== */
.social-strip,
.footer-social {
  gap: 16px !important;
}

.social-strip a,
.footer-social a {
  width: 26px;
  height: 26px;
  display: inline-grid !important;
  place-items: center;
  padding: 2px;
  border-radius: 999px;
  transition: transform 160ms ease, filter 180ms ease, opacity 180ms ease;
}

.social-strip a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
  opacity: .88;
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Modo claro: gris oscuro de marca */
:root:not([data-theme="dark"]) .social-icon {
  filter: brightness(0) saturate(100%) invert(10%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(95%) contrast(92%);
}

/* Modo oscuro: blanco */
:root[data-theme="dark"] .social-icon {
  filter: brightness(0) invert(1);
}

/* Botón flotante WhatsApp con SVG, sin texto */
.floating-whatsapp {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0 !important;
  font-size: 0 !important;
  display: inline-grid !important;
  place-items: center;
}

.floating-whatsapp img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .social-strip a,
  .footer-social a {
    width: 24px;
    height: 24px;
  }
  .social-icon {
    width: 20px;
    height: 20px;
  }
}

/* =====================================================
   LISTADOS - BOTONES WHATSAPP + COMPARTIR EN FILA
   Ajuste puntual para ventas.html y alquileres.html.
   No toca index ni detalle.
   ===================================================== */
body[data-page="listing"] .property-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--property-card-actions-gap, 10px) !important;
  align-items: center !important;
  width: 100%;
}

body[data-page="listing"] .property-card__actions .button {
  width: 100% !important;
  min-width: 0;
  min-height: var(--property-card-action-height, 42px) !important;
  border-radius: 999px !important;
  padding-inline: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
}

body[data-page="listing"] .property-card__actions .button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

body[data-page="listing"] .property-card__actions .button--whatsapp .button-icon,
body[data-page="listing"] .property-card__actions .button--share .button-icon--share {
  filter: brightness(0) invert(1) !important;
}

body[data-page="listing"] .property-card__actions .button--share span {
  line-height: 1;
}

/* Compartir en listados: neutro en reposo y halo gris al interactuar */
body[data-page="listing"] .property-card__actions .button--share {
  border-color: var(--line) !important;
  box-shadow: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

:root:not([data-theme="dark"]) body[data-page="listing"] .property-card__actions .button--share:hover,
:root:not([data-theme="dark"]) body[data-page="listing"] .property-card__actions .button--share:focus-visible {
  border-color: rgba(31, 31, 31, 0.34) !important;
  box-shadow:
    0 8px 18px rgba(31, 31, 31, 0.08),
    0 0 14px rgba(31, 31, 31, 0.1) !important;
}

:root[data-theme="dark"] body[data-page="listing"] .property-card__actions .button--share:hover,
:root[data-theme="dark"] body[data-page="listing"] .property-card__actions .button--share:focus-visible {
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    0 8px 18px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(255, 255, 255, 0.11) !important;
}

@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  body[data-page="listing"] .property-card__actions {
    grid-template-columns: 1fr !important;
  }
}

/* Galería ampliada de propiedades */
body[data-page="detail"] .gallery-open {
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: zoom-in;
}

body[data-page="detail"] .gallery-open:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 64px 80px 32px;
  background: rgba(8, 10, 10, 0.94);
}

.gallery-lightbox__figure {
  width: min(1200px, calc(100vw - 160px));
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.gallery-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(170, 240, 0, 0.24);
  transform: scale(1.06);
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.gallery-lightbox__close {
  z-index: 5;
  top: 18px;
  right: 22px;
  font-size: 38px;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  line-height: 1;
}

.gallery-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox__nav--previous {
  left: 22px;
}

.gallery-lightbox__nav--next {
  right: 22px;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .gallery-lightbox {
    padding: 52px 16px 18px;
  }

  .gallery-lightbox__figure {
    width: 100%;
    transform: translateY(-4vh);
    touch-action: none;
    user-select: none;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 150px);
    border-radius: 12px;
  }

  .gallery-lightbox__nav {
    display: none;
  }

  .gallery-lightbox__nav--previous {
    left: 12px;
  }

  .gallery-lightbox__nav--next {
    right: 12px;
  }

  .gallery-lightbox__caption {
    padding-inline: 4px;
    font-size: 14px;
  }
}

/* Encabezado del index en celulares */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body[data-page="home"] .site-header--home {
    width: calc(100vw - 32px);
    padding: 16px 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand theme"
      "nav nav";
    column-gap: 12px;
    row-gap: 20px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  body[data-page="home"] .site-header--home .brand {
    grid-area: brand;
    justify-self: start;
  }

  body[data-page="home"] .site-header--home .brand img {
    width: min(170px, 42vw);
  }

  body[data-page="home"] .site-header--home .theme-toggle {
    grid-area: theme;
    justify-self: end;
    --theme-toggle-gap: 3px;
    --theme-toggle-pad-x: 4px;
    --theme-toggle-pill-height: 34px;
    gap: var(--theme-toggle-gap);
    padding: 4px;
    box-shadow: none;
    white-space: nowrap;
  }

  body[data-page="home"] .site-header--home .theme-toggle span {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
    line-height: 1;
  }

  body[data-page="home"] .site-header--home .theme-toggle span::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--theme-icon) center / contain no-repeat;
    mask: var(--theme-icon) center / contain no-repeat;
  }

  body[data-page="home"] .site-header--home .theme-toggle__sun::before {
    --theme-icon: url("../assets/icons/theme/sun-line.svg");
  }

  body[data-page="home"] .site-header--home .theme-toggle__moon::before {
    --theme-icon: url("../assets/icons/theme/moon-line.svg");
  }

  body[data-page="home"] .site-header--home .icon-nav {
    grid-area: nav;
    width: 100%;
    justify-self: center;
    justify-content: center;
    gap: clamp(36px, 14vw, 60px);
    font-size: 30px;
  }

  body[data-page="home"] .hero-home {
    min-height: calc(100svh - 174px);
    padding: 24px 16px 48px;
    display: grid;
    place-items: center;
  }

  body[data-page="home"] .hero-home h1 {
    width: 100%;
    font-size: clamp(48px, 18vw, 68px);
    line-height: 0.94;
  }

  body[data-page="home"] .hero-title-main,
  body[data-page="home"] .hero-title-middle,
  body[data-page="home"] .hero-title-future {
    display: block;
    white-space: nowrap;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer__grid {
    justify-items: center;
  }

  .footer-brand,
  .footer-column,
  .footer-search {
    width: 100%;
  }

  .footer-brand > img,
  .footer-eryma-logo {
    margin-inline: auto;
  }

  .footer-contact {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-search {
    justify-items: center;
  }

  .footer-search form {
    width: min(100%, 420px);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-search {
    display: grid;
    order: 3;
    row-gap: 24px;
  }

  .footer-search form {
    display: grid;
    order: 2;
  }

  .footer-search__status { order: 3; }

  .footer-brand {
    order: 1;
  }

  .footer-follow {
    order: 1;
    width: 100%;
  }

  .footer-quick-links {
    order: 2;
  }

  .footer-group {
    order: 4;
  }
}

/* =====================================================
   ILUMINACIÓN SEGÚN MODO - FOOTER + REDES DEL HERO
   Azul Garnica en claro y verde Garnica en oscuro.
   ===================================================== */
:root:not([data-theme="dark"]) {
  --mode-interaction-accent: var(--blue);
  --mode-interaction-rgb: 0, 68, 240;
}

:root[data-theme="dark"] {
  --mode-interaction-accent: var(--green);
  --mode-interaction-rgb: 170, 240, 0;
}

.site-footer a,
.site-footer button,
.site-footer input,
.primary-nav a,
.header-link,
.detail-back {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    text-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.site-footer a:not(.button):hover,
.site-footer a:not(.button):focus-visible,
.primary-nav a:hover,
.primary-nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible,
.detail-back:hover,
.detail-back:focus-visible {
  color: var(--mode-interaction-accent);
  text-shadow: 0 0 14px rgba(var(--mode-interaction-rgb), 0.48);
}

.site-footer input:hover,
.site-footer input:focus-visible {
  border-color: var(--mode-interaction-accent);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(var(--mode-interaction-rgb), 0.12),
    0 0 22px rgba(var(--mode-interaction-rgb), 0.2);
}

.site-footer .button:hover,
.site-footer .button:focus-visible {
  border-color: var(--mode-interaction-accent) !important;
  box-shadow:
    0 12px 26px rgba(var(--mode-interaction-rgb), 0.18),
    0 0 0 2px rgba(var(--mode-interaction-rgb), 0.18),
    0 0 24px rgba(var(--mode-interaction-rgb), 0.3);
}

.social-strip a,
.footer-social a {
  position: relative;
  isolation: isolate;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.social-strip a::before,
.footer-social a::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(var(--mode-interaction-rgb), 0.18);
  filter: blur(6px);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-strip a:hover,
.social-strip a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
  opacity: 1;
  color: var(--mode-interaction-accent);
  background: rgba(var(--mode-interaction-rgb), 0.12);
  box-shadow:
    0 0 0 1px rgba(var(--mode-interaction-rgb), 0.3),
    0 0 18px rgba(var(--mode-interaction-rgb), 0.3);
  transform: translateY(-2px) scale(1.07);
}

.social-strip a:hover::before,
.social-strip a:focus-visible::before,
.footer-social a:hover::before,
.footer-social a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.social-strip .social-icon,
.footer-social .social-icon {
  position: relative;
  z-index: 1;
  transition: filter 180ms ease, transform 180ms ease;
}

:root:not([data-theme="dark"]) .social-strip a:hover .social-icon,
:root:not([data-theme="dark"]) .social-strip a:focus-visible .social-icon,
:root:not([data-theme="dark"]) .footer-social a:hover .social-icon,
:root:not([data-theme="dark"]) .footer-social a:focus-visible .social-icon {
  filter: brightness(0) saturate(100%) invert(19%) sepia(99%) saturate(6623%) hue-rotate(229deg) brightness(92%) contrast(119%) drop-shadow(0 0 5px rgba(0, 68, 240, 0.72));
  transform: scale(1.08);
}

:root[data-theme="dark"] .social-strip a:hover .social-icon,
:root[data-theme="dark"] .social-strip a:focus-visible .social-icon,
:root[data-theme="dark"] .footer-social a:hover .social-icon,
:root[data-theme="dark"] .footer-social a:focus-visible .social-icon {
  filter: brightness(0) saturate(100%) invert(88%) sepia(97%) saturate(1673%) hue-rotate(28deg) brightness(106%) contrast(105%) drop-shadow(0 0 5px rgba(170, 240, 0, 0.72));
  transform: scale(1.08);
}

/* Redes debajo del título: glow sobre el icono, sin círculo contenedor */
.social-strip a {
  width: 30px;
  height: 30px;
  padding: 1.5px;
}

.social-strip .social-icon {
  width: 26px;
  height: 26px;
}

.social-strip a::before {
  display: none;
}

.social-strip a:hover,
.social-strip a:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: translateY(-2px) scale(1.06);
}

/* Ola de color del tema: una elevación breve, con una pausa entre recorridos. */
.social-strip a:nth-child(1) { --wave-order: 0; --wave-icon: url('../assets/icons/social/instagram-logo.svg'); }
.social-strip a:nth-child(2) { --wave-order: 1; --wave-icon: url('../assets/icons/social/youtube-logo.svg'); }
.social-strip a:nth-child(3) { --wave-order: 2; --wave-icon: url('../assets/icons/social/tiktok-logo.svg'); }
.social-strip a:nth-child(4) { --wave-order: 3; --wave-icon: url('../assets/icons/social/whatsapp-logo.svg'); }
.social-strip .social-icon,
.social-strip a::after {
  animation-duration: 6.4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: calc(1.3s + var(--wave-order) * 180ms);
  animation-play-state: paused;
}
.social-strip .social-icon { animation-name: social-wave-base; }
.social-strip a::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--mode-interaction-accent);
  -webkit-mask: var(--wave-icon) center / contain no-repeat;
  mask: var(--wave-icon) center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  animation-name: social-wave-color;
}
.social-strip[data-wave-active="true"] .social-icon,
.social-strip[data-wave-active="true"] a::after { animation-play-state: running; }
.social-strip a:is(:hover, :focus-visible) .social-icon { animation: none; opacity: 1; }
.social-strip a:is(:hover, :focus-visible)::after { animation: none; opacity: 0; }
@keyframes social-wave-base {
  0%, 24%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  10% { transform: translateY(-4px) scale(1.055); opacity: .28; }
}
@keyframes social-wave-color {
  0%, 24%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  10% { transform: translateY(-4px) scale(1.055); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .social-strip .social-icon { animation: none; }
  .social-strip a::after { display: none; animation: none; }
}

/* Redes del footer: el glow también queda limitado al propio icono */
.footer-social a::before {
  display: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  transform: translateY(-2px) scale(1.06);
}

/* Ajustes móviles: contacto legible y topografía sin deformación */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .footer-brand > img {
    width: min(240px, 72vw);
  }

  .footer-contact {
    width: min(100%, 340px);
    margin: 22px auto 0;
    display: grid;
    gap: 10px;
    justify-content: stretch;
    align-items: stretch;
  }

  .footer-contact__item {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
    text-align: left;
    line-height: 1.35;
  }

  .footer-contact__item > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-contact__icon {
    margin-top: 0.12em;
  }

  .footer-contact__phones {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-contact__phones .footer-contact__item {
    padding-inline: 8px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .footer-contact__phones {
    grid-template-columns: 1fr;
  }
}

/* Encabezado y tarjetas compactas para listados en celulares */
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  body[data-page="home"] .site-header--home .site-header__tools {
    grid-area: theme;
    justify-self: end;
    gap: 6px;
  }

  body[data-page="home"] .site-header--home .referrals-link {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    box-shadow: none;
  }

  .site-header:not(.site-header--home) {
    width: calc(100vw - 32px);
    padding: 16px 0 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  .site-header:not(.site-header--home) .brand {
    grid-area: brand;
    justify-self: start;
  }

  .site-header:not(.site-header--home) .brand img {
    width: min(170px, 46vw);
  }

  .site-header:not(.site-header--home) .primary-nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: clamp(18px, 6vw, 28px);
  }

  .site-header:not(.site-header--home) .primary-nav a {
    font-size: 16px;
  }

  .site-header:not(.site-header--home) .site-header__tools {
    grid-area: tools;
    justify-self: end;
    gap: 6px;
  }

  .site-header:not(.site-header--home) .header-link {
    display: none;
  }

  .site-header:not(.site-header--home) .theme-toggle {
    --theme-toggle-gap: 3px;
    --theme-toggle-pad-x: 4px;
    --theme-toggle-pill-height: 34px;
    gap: var(--theme-toggle-gap);
    padding: 4px;
    box-shadow: none;
  }

  .site-header:not(.site-header--home) .theme-toggle span {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
    line-height: 1;
  }

  .site-header:not(.site-header--home) .theme-toggle span::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--theme-icon) center / contain no-repeat;
    mask: var(--theme-icon) center / contain no-repeat;
  }

  .site-header:not(.site-header--home) .theme-toggle__sun::before {
    --theme-icon: url("../assets/icons/theme/sun-line.svg");
  }

  .site-header:not(.site-header--home) .theme-toggle__moon::before {
    --theme-icon: url("../assets/icons/theme/moon-line.svg");
  }

  .site-header:not(.site-header--home) .referrals-link {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    box-shadow: none;
  }

  body[data-page="listing"] .listing-results {
    width: calc(100vw - 24px);
  }

  body[data-page="listing"] .property-list {
    --property-carousel-gutter: 12px;
    gap: 12px;
    margin-top: 18px;
    padding-top: 4px;
  }

  body[data-page="listing"] .property-card {
    flex-basis: calc(100vw - 24px);
    border-radius: 20px;
  }

  body[data-page="listing"] .property-card__media {
    min-height: 0;
    height: 184px;
  }

  body[data-page="listing"] .property-card__badge {
    top: 12px;
    left: 12px;
    padding: 6px 11px;
    font-size: 12px;
  }

  body[data-page="listing"] .property-card__body {
    gap: 11px;
    padding: 16px;
  }

  body[data-page="listing"] .property-card__top {
    gap: 10px;
  }

  body[data-page="listing"] .property-card__title h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  body[data-page="listing"] .property-card__title p {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.35;
  }

  body[data-page="listing"] .property-card__price strong {
    font-size: 28px;
  }

  body[data-page="listing"] .property-card__price span {
    margin-top: 4px;
    font-size: 13px;
  }

  body[data-page="listing"] .property-card .detail-meta {
    justify-content: flex-start;
    gap: 6px;
  }

  body[data-page="listing"] .property-card .meta-chip {
    padding: 7px 10px;
    font-size: 12px;
  }

  body[data-page="listing"] .property-card .detail-meta .meta-chip:nth-child(n + 4) {
    display: none;
  }

  body[data-page="listing"] .property-card__body > p {
    display: none;
  }

  body[data-page="listing"] .property-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="listing"] .property-card__actions .button {
    min-height: 38px !important;
    padding-inline: 10px !important;
    gap: 6px !important;
    font-size: 14px;
  }

  body[data-page="listing"] .property-card__actions .button-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

/* Centrado exacto del selector de tema en dispositivos táctiles */
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .site-header .theme-toggle {
    height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
  }

  .site-header .theme-toggle span {
    flex: 0 0 34px;
    box-sizing: border-box;
    align-self: center;
  }

  .site-header .theme-toggle span::before {
    margin: auto;
    transform: translate3d(0, 0, 0);
  }
}
/* Zonas navegables limitadas exactamente a la fotografía */
.gallery-lightbox__media {
  position: relative;
  width: fit-content;
  max-width: 100%;
  display: grid;
  place-items: center;
}

/* Visor inmersivo para celulares en horizontal */
@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .gallery-lightbox {
    padding:
      max(8px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .gallery-lightbox__figure {
    position: relative;
    width: 100%;
    height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    gap: 0;
    transform: none;
  }

  .gallery-lightbox__media {
    width: 100%;
    height: 100%;
  }

  .gallery-lightbox__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
  }

  .gallery-lightbox__caption {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    z-index: 3;
    width: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    pointer-events: none;
  }

  .gallery-lightbox__close {
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    z-index: 6;
  }
}

/* Visor de fotos: imagen completa, flechas laterales y zoom */
.gallery-lightbox__figure {
  width: fit-content;
  max-width: calc(100vw - 64px);
}

.gallery-lightbox__stage {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, auto) 58px;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__media {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  cursor: zoom-in;
  touch-action: none;
}

.gallery-lightbox__media.is-zoomed {
  cursor: grab;
}

.gallery-lightbox__media.is-panning {
  cursor: grabbing;
}

.gallery-lightbox__media.is-carousel-transitioning {
  cursor: default;
  pointer-events: none;
}

.gallery-lightbox__media.is-carousel-transitioning .gallery-lightbox__image {
  transition: none;
  will-change: transform, opacity;
}

.gallery-carousel-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  will-change: opacity;
  transition: none !important;
}

.gallery-lightbox__image {
  max-width: min(100%, calc(100vw - 180px));
  max-height: calc(100dvh - 130px);
  transform-origin: center;
  will-change: auto;
  transition: transform 120ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__media.is-panning .gallery-lightbox__image {
  transition: none;
}
.gallery-lightbox__media.is-zoomed .gallery-lightbox__image { will-change: transform; }

.gallery-lightbox__caption {
  width: auto;
  margin-inline: 58px;
}

.gallery-lightbox__nav-icon {
  display: block;
  width: 54px;
  height: 72px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

@media (min-width: 701px) and (pointer: fine), (min-width: 701px) and (pointer: none) {
  .gallery-lightbox__media { grid-column: 2; }
  .gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 58px;
    height: 70%;
    min-height: 80px;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    justify-self: center;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    opacity: 0.35;
    transition: opacity 180ms ease;
  }
  .gallery-lightbox__nav::before {
    content: '';
    position: absolute;
    inset: 0 -12px;
    opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.07), transparent);
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .gallery-lightbox__nav--next::before {
    background: linear-gradient(270deg, rgba(255,255,255,.07), transparent);
  }

  .gallery-lightbox__nav:hover,
  .gallery-lightbox__nav--next:hover {
    transform: translateY(-50%);
    background: transparent;
    opacity: 1;
  }
  .gallery-lightbox__nav:hover::before,
  .gallery-lightbox__nav:focus-visible::before { opacity: 1; }
  .gallery-lightbox__nav:focus-visible { outline: none; opacity: 1; }
  .gallery-lightbox__nav:focus-visible .gallery-lightbox__nav-icon {
    outline: 2px solid var(--mode-interaction-accent, #aaf000);
    outline-offset: 2px;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox__nav, .gallery-lightbox__nav::before { transition: none; }
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .gallery-lightbox {
    padding:
      max(52px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }

  .gallery-lightbox__figure {
    width: fit-content;
    max-width: 100%;
    transform: none;
    gap: 10px;
  }

  .gallery-lightbox__stage {
    display: block;
    width: fit-content;
    max-width: 100%;
  }

  .gallery-lightbox__media {
    width: fit-content;
    max-width: 100%;
    border-radius: 12px;
  }

  .gallery-lightbox__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 135px);
    object-fit: contain;
    border-radius: 12px;
  }

  .gallery-lightbox__caption {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 2px;
    background: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .gallery-lightbox {
    padding:
      max(8px, env(safe-area-inset-top))
      max(56px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(28px, env(safe-area-inset-left));
  }

  .gallery-lightbox__figure {
    width: fit-content;
    max-width: 100%;
    height: auto;
    gap: 6px;
  }

  .gallery-lightbox__stage,
  .gallery-lightbox__media {
    width: fit-content;
    max-width: 100%;
    height: auto;
  }

  .gallery-lightbox__image {
    width: auto;
    height: auto;
    max-width: calc(100vw - max(112px, env(safe-area-inset-left) + env(safe-area-inset-right) + 84px));
    max-height: calc(100dvh - max(58px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 46px));
    object-fit: contain;
  }

  .gallery-lightbox__caption {
    position: static;
    width: 100%;
    padding: 0 2px;
    background: transparent;
  }

  .gallery-lightbox__close {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}

/* Detalle: brillo gris uniforme en Compartir y Google Maps */
body[data-page="detail"] .button--share,
body[data-page="detail"] .button--maps {
  box-shadow: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:root:not([data-theme="dark"]) body[data-page="detail"] .button--share:hover,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--share:focus-visible,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps:hover,
:root:not([data-theme="dark"]) body[data-page="detail"] .button--maps:focus-visible {
  border-color: rgba(31, 31, 31, 0.34) !important;
  box-shadow:
    0 8px 18px rgba(31, 31, 31, 0.08),
    0 0 14px rgba(31, 31, 31, 0.10) !important;
}

:root[data-theme="dark"] body[data-page="detail"] .button--share:hover,
:root[data-theme="dark"] body[data-page="detail"] .button--share:focus-visible,
:root[data-theme="dark"] body[data-page="detail"] .button--maps:hover,
:root[data-theme="dark"] body[data-page="detail"] .button--maps:focus-visible {
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    0 8px 18px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(255, 255, 255, 0.11) !important;
}

/* Enlace del detalle: identidad luminosa según el modo */
body[data-page="detail"] .detail-link {
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

body[data-page="detail"] .detail-link:hover,
body[data-page="detail"] .detail-link:focus-visible {
  color: var(--mode-interaction-accent);
  text-shadow:
    0 0 10px rgba(var(--mode-interaction-rgb), 0.46),
    0 0 20px rgba(var(--mode-interaction-rgb), 0.22);
  transform: translateY(-1px);
  outline: none;
}

/* Panel de ubicación y precio animado del detalle */
body[data-page="detail"] .detail-sidebar .sidebar-card:nth-child(2) h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body[data-page="detail"] .detail-price strong {
  text-shadow:
    0 0 12px rgba(0, 68, 240, 0.34),
    0 0 26px rgba(0, 68, 240, 0.16);
}

:root[data-theme="dark"] body[data-page="detail"] .detail-price strong {
  text-shadow:
    0 0 12px rgba(170, 240, 0, 0.36),
    0 0 28px rgba(170, 240, 0, 0.17);
}

.detail-price__character {
  display: inline-block;
  will-change: auto;
}

/* El precio animado conserva siempre su composición horizontal */
body[data-page="detail"] .detail-price {
  flex: 0 0 auto;
  min-width: max-content;
}

body[data-page="detail"] .detail-price strong {
  width: max-content;
  white-space: nowrap;
}

body[data-page="detail"] .detail-price__character {
  display: inline-block;
  vertical-align: baseline;
}

/* Los caracteres del precio heredan el tamaño principal, no el de expensas */
body[data-page="detail"] .detail-price strong .detail-price__character {
  display: inline-block;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

/* Guía inmobiliaria: comparte superficies y tipografía con preguntas frecuentes. */
.guide-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.guide-options--seekers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-choice-group > h2 { font-size: 18px; margin: 0 0 14px; color: var(--text-soft); }
.guide-options a[aria-current="true"] { border-color: var(--mode-interaction-accent); }
.guide-section[hidden] { display: none; }
.guide-section h2:focus { outline: none; }
.guide-options a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform 180ms ease, border-color 180ms ease; }
.guide-options a:hover { transform: translateY(-4px); border-color: var(--mode-interaction-accent); }
.guide-options a:focus-visible, .guide-back:focus-visible { outline: 2px solid var(--mode-interaction-accent); outline-offset: 5px; }
.guide-option-number { color: var(--mode-interaction-accent); font-size: 14px; font-weight: 800; }
.guide-options strong { font-size: clamp(20px, 2vw, 26px); }
.guide-options a > span:not([class]) { color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.guide-option-arrow { position: absolute; right: 22px; top: 18px; color: var(--mode-interaction-accent); font-size: 25px; }
.guide-sections { display: grid; gap: 28px; }
.guide-section { padding: clamp(24px, 4vw, 50px); scroll-margin-top: 32px; }
.guide-section h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.guide-intro { max-width: 850px; color: var(--text-soft); font-size: 19px; line-height: 1.65; }
.guide-steps { list-style: none; padding: 0; margin: 32px 0; counter-reset: guide-step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.guide-steps > li { position: relative; counter-increment: guide-step; padding: 25px 0 22px 42px; border-top: 1px solid var(--line); }
.guide-steps > li::before { content: counter(guide-step, decimal-leading-zero); position: absolute; top: 27px; left: 0; font-weight: 800; color: var(--mode-interaction-accent); font-size: 14px; }
.guide-section h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.35; }
.guide-steps p, .guide-steps ul, .guide-note p, .guide-contact p { color: var(--text-soft); line-height: 1.7; }
.guide-steps p { margin: 0 0 12px; }
.guide-steps ul { padding-left: 20px; margin: 0 0 14px; }
.guide-steps ul li + li { margin-top: 8px; }
.guide-steps a { color: var(--mode-interaction-accent); text-underline-offset: 4px; }
.guide-note { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--mode-interaction-accent); background: var(--surface-strong); border-radius: 0 16px 16px 0; }
.guide-note p { margin: 0; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.guide-actions .button, .guide-contact .button { white-space: normal; text-align: center; max-width: 100%; }
.guide-back { display: inline-block; margin-top: 26px; color: var(--text-soft); text-underline-offset: 5px; font-size: 14px; }
.guide-factors, .guide-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin: 30px 0; }
.guide-factors > div { background: var(--surface-strong); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.guide-section dt { font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.guide-section dd { margin: 0; color: var(--text-soft); line-height: 1.65; }
.guide-methods > div { border-top: 1px solid var(--line); padding-top: 20px; }
.guide-section .guide-methods-title { margin-top: 40px; }
.guide-contact > div { max-width: 690px; }
.guide-contact .button { flex-shrink: 0; }
.guide-disclaimer { margin: 25px auto 0; max-width: 820px; color: var(--text-soft); text-align: center; line-height: 1.6; font-size: 14px; }
@media (max-width: 960px) { .guide-contact { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .guide-options { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .guide-options { gap: 10px; } .guide-options a { padding: 20px 16px; border-radius: 20px; } .guide-option-arrow { right: 14px; top: 12px; } .guide-options strong { font-size: 19px; } .guide-steps, .guide-factors, .guide-methods { grid-template-columns: 1fr; } .guide-steps { margin-top: 24px; } .guide-actions { flex-direction: column; } .guide-actions .button { width: 100%; } .guide-section { scroll-margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { .guide-options a { transition: none; } .guide-options a:hover { transform: none; } }

/* Página liviana de preguntas frecuentes */
.faq-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 110px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-search__status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.detail-not-found {
  width: min(100% - 32px, 760px);
  margin: clamp(60px, 12vh, 130px) auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-not-found__eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
}

:root[data-theme="dark"] .detail-not-found__eyebrow {
  color: var(--green);
}

.detail-not-found h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.detail-not-found > p:not(.detail-not-found__eyebrow) {
  line-height: 1.6;
}

.detail-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.detail-not-found__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
}

.faq-hero {
  max-width: 820px;
  margin-bottom: 48px;
}

.faq-eyebrow {
  margin: 0 0 10px;
  color: var(--mode-interaction-accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
}

.faq-hero > p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.faq-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.faq-group {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-group h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--mode-interaction-accent);
  text-shadow: 0 0 14px rgba(var(--mode-interaction-rgb), 0.28);
  outline: none;
}

.faq-item p {
  margin: -4px 0 20px;
  color: var(--text-soft);
  line-height: 1.65;
}

.faq-contact {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.faq-contact small {
  color: var(--mode-interaction-accent);
  font-weight: 800;
}

.faq-contact h2 {
  margin: 5px 0 0;
  font-size: clamp(26px, 3vw, 38px);
}

.faq-contact .button {
  min-width: 190px;
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .faq-page {
    width: calc(100% - 24px);
    padding: 38px 0 72px;
  }

  .faq-hero {
    margin-bottom: 30px;
  }

  .faq-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-group {
    padding: 22px;
    border-radius: 24px;
  }

  .faq-contact {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .faq-contact .button {
    width: 100%;
  }
}
/* Indicador liviano mientras cargan las fotos de propiedades. */
.property-card__media,
.gallery-photo-box,
.gallery-lightbox__media { position: relative; }

.property-image-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  background: var(--mode-interaction-accent, var(--blue));
  -webkit-mask: url('../assets/icons/misc/blocks-shuffle-3.svg') center / contain no-repeat;
  mask: url('../assets/icons/misc/blocks-shuffle-3.svg') center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
}

.is-image-loading > .property-image-loader {
  animation: property-image-loader-reveal 0.18s ease 0.12s forwards;
}

.detail-gallery__thumb > .property-image-loader {
  width: 30px;
  height: 30px;
}

.gallery-lightbox__media > .property-image-loader {
  width: 40px;
  height: 40px;
}

.property-card__media-img,
.detail-gallery__image,
.gallery-lightbox__image {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease;
}

.is-image-loaded > .property-card__media-img,
.is-image-loaded > .detail-gallery__image,
.is-image-loaded > .gallery-lightbox__image {
  opacity: 1;
  visibility: visible;
}

.is-image-loading > .property-card__media-img,
.is-image-loading > .detail-gallery__image,
.is-image-loading > .gallery-lightbox__image,
.is-image-error > .property-card__media-img,
.is-image-error > .detail-gallery__image,
.is-image-error > .gallery-lightbox__image {
  opacity: 0;
  visibility: hidden;
}

.is-image-loaded > .property-image-loader,
.is-image-error > .property-image-loader { display: none; }

@keyframes property-image-loader-reveal { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .is-image-loading > .property-image-loader {
    animation: property-image-loader-reveal 0.01s forwards;
  }
}

.gallery-lightbox__media > .gallery-carousel-image,
.gallery-lightbox__media.is-image-loading > .gallery-carousel-image,
.gallery-lightbox__media.is-image-error > .gallery-carousel-image {
  opacity: 1;
  visibility: visible;
}

/* Spotlight Border compartido entre paneles y controles principales. */
body[data-page] .ui-spotlight-border {
  --detail-spotlight-x: 50%;
  --detail-spotlight-y: 50%;
  --detail-spotlight-opacity: 0;
  --detail-spotlight-rgb: 0, 68, 240;
  position: relative;
  isolation: isolate;
}

:root[data-theme="dark"] body[data-page] .ui-spotlight-border {
  --detail-spotlight-rgb: 170, 240, 0;
}

body[data-page] .ui-spotlight-border::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    190px circle at var(--detail-spotlight-x) var(--detail-spotlight-y),
    rgba(var(--detail-spotlight-rgb), 0.98) 0,
    rgba(var(--detail-spotlight-rgb), 0.72) 28%,
    rgba(var(--detail-spotlight-rgb), 0.24) 54%,
    transparent 72%
  );
  opacity: var(--detail-spotlight-opacity);
  pointer-events: none;
  transition: opacity 180ms ease-out;
  will-change: opacity;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body[data-page] .ui-spotlight-border::after {
    display: none;
  }
}

/* Overrides finales del home: deben prevalecer sobre los layouts históricos. */
body[data-page="home"] .home-access {
  min-height: 100svh !important;
  margin-top: 0 !important;
  margin-bottom: 25svh !important;
  padding-block: clamp(34px, 7svh, 84px) !important;
  box-sizing: border-box !important;
  align-content: center !important;
}

body[data-page="home"] .site-footer {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  body[data-page="home"] .home-access {
    min-height: 100svh !important;
    align-content: center !important;
  }
}

/* Galería: azul Garnica en modo claro; el verde queda reservado al modo oscuro. */
:root:not([data-theme="dark"]) .gallery-lightbox__close {
  border-color: rgba(0, 68, 240, 0.48);
  background: rgba(0, 68, 240, 0.18);
}

:root:not([data-theme="dark"]) .gallery-lightbox__close:hover {
  border-color: rgba(0, 68, 240, 0.76);
  background: rgba(0, 68, 240, 0.34);
  box-shadow: 0 0 22px rgba(0, 68, 240, 0.26);
}

:root:not([data-theme="dark"]) .gallery-lightbox__close:focus-visible,
:root:not([data-theme="dark"]) .gallery-lightbox__nav:focus-visible {
  outline-color: var(--blue);
}

/* Cierre del visor: neutro en reposo y acento segun el modo. */
.gallery-lightbox__close,
:root:not([data-theme="dark"]) .gallery-lightbox__close {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(105, 110, 116, 0.42);
  box-shadow: none;
}

.gallery-lightbox__close:hover {
  border-color: rgba(170, 240, 0, 0.72);
  background: rgba(170, 240, 0, 0.24);
  box-shadow: 0 0 22px rgba(170, 240, 0, 0.22);
}

:root:not([data-theme="dark"]) .gallery-lightbox__close:hover {
  border-color: rgba(0, 68, 240, 0.82);
  background: rgba(0, 68, 240, 0.3);
  box-shadow: 0 0 22px rgba(0, 68, 240, 0.26);
}
/* Liquid Glass aislado: CTA principal y tres accesos del index. */
body[data-page="home"] {
  --liquid-glass-blur: 11px;
  --liquid-glass-highlight: rgba(255, 255, 255, 0.48);
  --liquid-glass-inner: rgba(255, 255, 255, 0.18);
  --liquid-glass-shadow: 0 18px 40px rgba(18, 24, 34, 0.16);
  --liquid-card-base: rgba(248, 250, 255, 0.58);
  --liquid-card-text: #202226;
  --liquid-card-soft: rgba(32, 34, 38, 0.76);
  --liquid-cta-base: rgba(24, 27, 32, 0.92);
  --liquid-cta-sweep: #0044f0;
  --liquid-cta-text: #ffffff;
  --liquid-cta-border: rgba(255, 255, 255, 0.34);
  --liquid-cta-shadow: 0 16px 34px rgba(0, 32, 112, 0.2);
}

:root[data-theme="dark"] body[data-page="home"] {
  --liquid-glass-highlight: rgba(255, 255, 255, 0.24);
  --liquid-glass-inner: rgba(255, 255, 255, 0.09);
  --liquid-glass-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  --liquid-card-base: rgba(38, 42, 43, 0.64);
  --liquid-card-text: #ffffff;
  --liquid-card-soft: rgba(238, 229, 216, 0.9);
  --liquid-cta-base: rgba(242, 236, 220, 0.94);
  --liquid-cta-sweep: #aaf000;
  --liquid-cta-text: #1f1f1f;
  --liquid-cta-border: rgba(255, 255, 255, 0.44);
  --liquid-cta-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

/* CTA Empezar */
body[data-page="home"] .cta-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--liquid-cta-text);
  background: var(--liquid-cta-base);
  background-image: none;
  border-color: var(--liquid-cta-border);
  box-shadow:
    var(--liquid-cta-shadow),
    inset 0 1px 0 var(--liquid-glass-inner);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="home"] .cta-pill::before,
body[data-page="home"] .cta-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

body[data-page="home"] .cta-pill::before {
  z-index: -2;
  background:
    linear-gradient(105deg,
      var(--liquid-cta-sweep) 0%,
      var(--liquid-cta-sweep) 62%,
      color-mix(in srgb, var(--liquid-cta-sweep) 74%, white) 78%,
      var(--liquid-cta-sweep) 100%);
  transform: translate3d(-102%, 0, 0);
  opacity: 0.98;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

body[data-page="home"] .cta-pill::after {
  z-index: -1;
  inset: 1px 10% auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  border-radius: 999px 999px 55% 55%;
  opacity: 0.44;
  transform: translate3d(-12%, 0, 0);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

body[data-page="home"] .cta-pill:hover,
body[data-page="home"] .cta-pill:focus-visible {
  color: var(--liquid-cta-text);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    var(--liquid-cta-shadow),
    inset 0 1px 0 var(--liquid-glass-inner);
}

body[data-page="home"] .cta-pill:hover::before,
body[data-page="home"] .cta-pill:focus-visible::before {
  transform: translate3d(0, 0, 0);
}

body[data-page="home"] .cta-pill:hover::after,
body[data-page="home"] .cta-pill:focus-visible::after {
  transform: translate3d(12%, 0, 0);
  opacity: 0.58;
}

body[data-page="home"] .cta-pill:active {
  transform: translateY(0) scale(0.985);
}

/* Tres accesos inferiores */
body[data-page="home"] .home-access__card:nth-child(1) {
  --liquid-card-rgb: 196, 54, 69;
  --liquid-card-accent: #c43645;
}

body[data-page="home"] .home-access__card:nth-child(2) {
  --liquid-card-rgb: 0, 68, 240;
  --liquid-card-accent: #0044f0;
}

body[data-page="home"] .home-access__card:nth-child(3) {
  --liquid-card-rgb: 91, 122, 43;
  --liquid-card-accent: #5b7a2b;
}

body[data-page="home"] .home-access__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--liquid-card-text);
  background:
    linear-gradient(145deg,
      rgba(var(--liquid-card-rgb), 0.18),
      var(--liquid-card-base) 48%,
      rgba(var(--liquid-card-rgb), 0.08)) !important;
  border-color: rgba(var(--liquid-card-rgb), 0.34) !important;
  box-shadow:
    var(--liquid-glass-shadow),
    inset 0 1px 0 var(--liquid-glass-inner),
    inset 0 -1px 0 rgba(var(--liquid-card-rgb), 0.08),
    0 10px 28px rgba(var(--liquid-card-rgb), 0.08) !important;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="home"] .home-access__card small,
body[data-page="home"] .home-access__card span {
  color: var(--liquid-card-soft);
}

body[data-page="home"] .home-access__card::before {
  inset: -18%;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--liquid-glass-highlight) 0%, transparent 24%),
    radial-gradient(circle at 12% 12%, rgba(var(--liquid-card-rgb), 0.28), transparent 48%);
  opacity: 0.68;
  transform: translate3d(-4%, -1%, 0) scale(1.06);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

body[data-page="home"] .home-access__card::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg,
      transparent 0%,
      rgba(var(--liquid-card-rgb), 0.07) 18%,
      rgba(var(--liquid-card-rgb), 0.24) 52%,
      rgba(var(--liquid-card-rgb), 0.1) 82%,
      transparent 100%);
  opacity: 0.92;
  transform: translate3d(-105%, 0, 0);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

body[data-page="home"] .home-access__card:hover,
body[data-page="home"] .home-access__card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(var(--liquid-card-rgb), 0.34) !important;
  box-shadow:
    var(--liquid-glass-shadow),
    inset 0 1px 0 var(--liquid-glass-inner),
    inset 0 -1px 0 rgba(var(--liquid-card-rgb), 0.08),
    0 10px 28px rgba(var(--liquid-card-rgb), 0.08) !important;
}

body[data-page="home"] .home-access__card:hover::before,
body[data-page="home"] .home-access__card:focus-visible::before {
  opacity: 0.82;
  transform: translate3d(4%, 0, 0) scale(1.06);
}

body[data-page="home"] .home-access__card:hover::after,
body[data-page="home"] .home-access__card:focus-visible::after {
  transform: translate3d(0, 0, 0);
}

body[data-page="home"] .home-access__card:active {
  transform: translateY(-1px) scale(0.99);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body[data-page="home"] .cta-pill,
  body[data-page="home"] .home-access__card {
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(112%);
    backdrop-filter: blur(var(--liquid-glass-blur)) saturate(112%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .cta-pill,
  body[data-page="home"] .home-access__card {
    transition: opacity 180ms ease;
  }

  body[data-page="home"] .cta-pill::before,
  body[data-page="home"] .cta-pill::after,
  body[data-page="home"] .home-access__card::before,
  body[data-page="home"] .home-access__card::after {
    transform: none;
    transition: opacity 180ms ease;
  }

  body[data-page="home"] .cta-pill::before,
  body[data-page="home"] .home-access__card::after {
    opacity: 0;
  }

  body[data-page="home"] .cta-pill:hover::before,
  body[data-page="home"] .cta-pill:focus-visible::before,
  body[data-page="home"] .home-access__card:hover::after,
  body[data-page="home"] .home-access__card:focus-visible::after {
    opacity: 0.86;
  }

  body[data-page="home"] .cta-pill:hover,
  body[data-page="home"] .cta-pill:focus-visible,
  body[data-page="home"] .cta-pill:active,
  body[data-page="home"] .home-access__card:hover,
  body[data-page="home"] .home-access__card:focus-visible,
  body[data-page="home"] .home-access__card:active {
    transform: none;
  }
}
/* Liquid Glass reforzado solo para las tres tarjetas en modo claro. */
:root:not([data-theme="dark"]) body[data-page="home"] {
  --liquid-glass-highlight: rgba(255, 255, 255, 0.86);
  --liquid-glass-inner: rgba(255, 255, 255, 0.7);
  --liquid-glass-shadow: 0 20px 44px rgba(28, 42, 68, 0.18);
  --liquid-card-base: rgba(255, 255, 255, 0.32);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.2) 38%,
      rgba(var(--liquid-card-rgb), 0.13) 72%,
      rgba(255, 255, 255, 0.38) 100%),
    rgba(var(--liquid-card-rgb), 0.1) !important;
  border-color: rgba(var(--liquid-card-rgb), 0.46) !important;
  box-shadow:
    var(--liquid-glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(var(--liquid-card-rgb), 0.18),
    0 12px 32px rgba(var(--liquid-card-rgb), 0.13) !important;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card::before {
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.38) 18%,
      transparent 38%),
    radial-gradient(circle at 10% 12%, rgba(var(--liquid-card-rgb), 0.38), transparent 48%);
  opacity: 0.82;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card::after {
  background:
    linear-gradient(100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 18%,
      rgba(var(--liquid-card-rgb), 0.34) 52%,
      rgba(255, 255, 255, 0.22) 76%,
      transparent 100%);
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:hover,
:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:focus-visible {
  border-color: rgba(var(--liquid-card-rgb), 0.46) !important;
  box-shadow:
    var(--liquid-glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(var(--liquid-card-rgb), 0.18),
    0 12px 32px rgba(var(--liquid-card-rgb), 0.13) !important;
}
/* Correccion final Liquid Glass: claro neutro, CTA oscuro y toggle global. */

/* En claro, las tarjetas son vidrio neutro; el color queda localizado. */
:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.085) 0%,
      rgba(248, 251, 255, 0.024) 54%,
      rgba(255, 255, 255, 0.048) 100%),
    rgba(var(--liquid-card-rgb), 0.088) !important;
  border-color: rgba(255, 255, 255, 0.64) !important;
  box-shadow:
    0 18px 42px rgba(38, 48, 64, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(var(--liquid-card-rgb), 0.22),
    inset 0 -1px 0 rgba(52, 66, 86, 0.07) !important;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card::before {
  inset: -10%;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.145) 0%,
      rgba(255, 255, 255, 0.048) 16%,
      transparent 31%),
    radial-gradient(circle at 3% 7%,
      rgba(var(--liquid-card-rgb), 0.275) 0%,
      rgba(var(--liquid-card-rgb), 0.088) 14%,
      transparent 31%);
  opacity: 0.62;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card::after {
  background:
    linear-gradient(100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 28%,
      rgba(255, 255, 255, 0.085) 44%,
      rgba(var(--liquid-card-rgb), 0.125) 57%,
      transparent 80%);
  opacity: 0.62;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:hover,
:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:focus-visible {
  border-color: rgba(255, 255, 255, 0.64) !important;
  box-shadow:
    0 18px 42px rgba(38, 48, 64, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(var(--liquid-card-rgb), 0.22),
    inset 0 -1px 0 rgba(52, 66, 86, 0.07) !important;
}

:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:hover::before,
:root:not([data-theme="dark"]) body[data-page="home"] .home-access__card:focus-visible::before {
  opacity: 0.86;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root:not([data-theme="dark"]) body[data-page="home"] .home-access__card {
    -webkit-backdrop-filter: blur(9px) saturate(116%);
    backdrop-filter: blur(9px) saturate(116%);
  }
}

/* El barrido del CTA queda por encima de la base y por debajo del texto. */
body[data-page="home"] .cta-pill > span {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .cta-pill::before {
  z-index: 0;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

body[data-page="home"] .cta-pill::after {
  z-index: 1;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

:root:not([data-theme="dark"]) body[data-page="home"] .cta-pill {
  color: #ffffff;
  background: rgba(24, 27, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.34);
}

:root[data-theme="dark"] body[data-page="home"] .cta-pill {
  color: #1f1f1f;
  background: rgba(242, 236, 220, 0.94);
  border-color: rgba(255, 255, 255, 0.44);
}

:root:not([data-theme="dark"]) body[data-page="home"] .cta-pill::before {
  background:
    linear-gradient(105deg,
      #0044f0 0%,
      #0044f0 62%,
      #4f7cff 78%,
      #0044f0 100%);
}

:root[data-theme="dark"] body[data-page="home"] .cta-pill::before {
  background:
    linear-gradient(105deg,
      #aaf000 0%,
      #aaf000 62%,
      #d3ff69 78%,
      #aaf000 100%);
}

/* Dark CTA sweep fix: beige at rest, lime while hovered or focused. */
:root[data-theme="dark"] body[data-page="home"] .cta-pill {
  color: #1f1f1f;
  background: rgba(242, 236, 220, 0.94);
}

:root[data-theme="dark"] body[data-page="home"] .cta-pill::before {
  z-index: 0;
  background: linear-gradient(
    105deg,
    #aaf000 0%,
    #aaf000 66%,
    #d3ff69 82%,
    #aaf000 100%
  );
  opacity: 1;
  transform: translate3d(-102%, 0, 0);
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

:root[data-theme="dark"] body[data-page="home"] .cta-pill::after {
  z-index: 1;
}

:root[data-theme="dark"] body[data-page="home"] .cta-pill:hover::before,
:root[data-theme="dark"] body[data-page="home"] .cta-pill:focus-visible::before {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
/* Reduccion de movimiento final para los componentes Liquid Glass. */
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .cta-pill,
  body[data-page="home"] .home-access__card,
  body[data-page="home"] .cta-pill:hover,
  body[data-page="home"] .cta-pill:focus-visible,
  body[data-page="home"] .cta-pill:active,
  body[data-page="home"] .home-access__card:hover,
  body[data-page="home"] .home-access__card:focus-visible,
  body[data-page="home"] .home-access__card:active {
    transform: none;
    transition: opacity 180ms ease;
  }

  body[data-page="home"] .cta-pill::before,
  body[data-page="home"] .cta-pill::after,
  body[data-page="home"] .home-access__card::before,
  body[data-page="home"] .home-access__card::after {
    transform: none;
    transition: opacity 180ms ease;
  }

  body[data-page="home"] .cta-pill::before,
  body[data-page="home"] .home-access__card::after {
    opacity: 0;
  }

  body[data-page="home"] .cta-pill:hover::before,
  body[data-page="home"] .cta-pill:focus-visible::before,
  body[data-page="home"] .home-access__card:hover::after,
  body[data-page="home"] .home-access__card:focus-visible::after {
    opacity: 0.82;
  }

}

/* Liquid Glass compartido exclusivamente por los botones de WhatsApp. */
.button--whatsapp,
.floating-whatsapp {
  isolation: isolate;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  transition:
    transform 240ms ease-out,
    filter 240ms ease,
    border-color 240ms ease !important;
}

.button--whatsapp {
  position: relative;
}

.button--whatsapp::before,
.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(255, 255, 255, 0.04) 34%,
    rgba(255, 255, 255, 0.2) 48%,
    rgba(37, 211, 102, 0.12) 58%,
    transparent 78%
  );
  opacity: 0;
  transform: translate3d(-125%, 0, 0);
  transition: transform 440ms ease-out, opacity 240ms ease;
}

.button--whatsapp > *,
.floating-whatsapp > * {
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] .button--whatsapp,
:root[data-theme="dark"] .floating-whatsapp {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    radial-gradient(circle at 14% 50%, rgba(37, 211, 102, 0.18), transparent 34%),
    linear-gradient(90deg,
      rgba(37, 211, 102, 0.055),
      transparent 26%,
      transparent 78%,
      rgba(37, 211, 102, 0.045)),
    rgba(22, 27, 25, 0.56) !important;
  border: 1px solid rgba(37, 211, 102, 0.25) !important;
  box-shadow: 0 8px 22px rgba(22, 145, 68, 0.12) !important;
}

:root:not([data-theme="dark"]) .button--whatsapp,
:root:not([data-theme="dark"]) .floating-whatsapp {
  color: #0b5f33 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 38%),
    radial-gradient(circle at 14% 50%, rgba(37, 211, 102, 0.19), transparent 34%),
    linear-gradient(90deg,
      rgba(37, 211, 102, 0.06),
      transparent 26%,
      transparent 78%,
      rgba(37, 211, 102, 0.05)),
    rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(18, 155, 69, 0.28) !important;
  box-shadow:
    0 8px 20px rgba(27, 55, 40, 0.1),
    0 5px 16px rgba(37, 211, 102, 0.07) !important;
}

:root:not([data-theme="dark"]) .button--whatsapp .button-icon,
:root:not([data-theme="dark"]) body[data-page="listing"] .property-card__actions .button--whatsapp .button-icon,
:root:not([data-theme="dark"]) .floating-whatsapp img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(35%) saturate(1280%) hue-rotate(103deg) brightness(88%) contrast(96%) !important;
}

:root[data-theme="dark"] .floating-whatsapp {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 38%),
    radial-gradient(circle at 34% 36%, rgba(37, 211, 102, 0.26), transparent 48%),
    rgba(19, 37, 29, 0.62) !important;
}

:root:not([data-theme="dark"]) .floating-whatsapp {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 38%),
    radial-gradient(circle at 34% 36%, rgba(37, 211, 102, 0.25), transparent 48%),
    rgba(247, 253, 249, 0.52) !important;
}

.button--whatsapp:hover,
.button--whatsapp:focus-visible,
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  filter: brightness(1.04) saturate(1.08);
  transform: translateY(-2px) scale(1.01);
}

.button--whatsapp:hover::before,
.button--whatsapp:focus-visible::before,
.floating-whatsapp:hover::before,
.floating-whatsapp:focus-visible::before {
  opacity: 0.58;
  transform: translate3d(125%, 0, 0);
}

:root[data-theme="dark"] .button--whatsapp:hover,
:root[data-theme="dark"] .button--whatsapp:focus-visible,
:root[data-theme="dark"] .floating-whatsapp:hover,
:root[data-theme="dark"] .floating-whatsapp:focus-visible {
  border-color: rgba(37, 211, 102, 0.34) !important;
  box-shadow: 0 8px 22px rgba(22, 145, 68, 0.12) !important;
}

:root:not([data-theme="dark"]) .button--whatsapp:hover,
:root:not([data-theme="dark"]) .button--whatsapp:focus-visible,
:root:not([data-theme="dark"]) .floating-whatsapp:hover,
:root:not([data-theme="dark"]) .floating-whatsapp:focus-visible {
  border-color: rgba(18, 155, 69, 0.38) !important;
  box-shadow:
    0 8px 20px rgba(27, 55, 40, 0.1),
    0 5px 16px rgba(37, 211, 102, 0.07) !important;
}

.button--whatsapp:active,
.floating-whatsapp:active {
  transform: translateY(0) scale(0.995);
}

/* Liquid Glass compartido exclusivamente por los botones de Google Maps. */
.button--maps {
  color: #1f1f1f !important;
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease !important;
}

:root[data-theme="dark"] body[data-page] .button--maps {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.58)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.07) !important;
}

:root:not([data-theme="dark"]) body[data-page] .button--maps {
  background:
    radial-gradient(ellipse at 50% -35%, rgba(255, 255, 255, 0.24), transparent 64%),
    rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(31, 31, 31, 0.14) !important;
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.1) !important;
}

.button--maps:hover,
.button--maps:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.01);
}

:root[data-theme="dark"] body[data-page] .button--maps:hover,
:root[data-theme="dark"] body[data-page] .button--maps:focus-visible {
  border-color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.07) !important;
}

:root:not([data-theme="dark"]) body[data-page] .button--maps:hover,
:root:not([data-theme="dark"]) body[data-page] .button--maps:focus-visible {
  border-color: rgba(31, 31, 31, 0.18) !important;
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.1) !important;
}

.button--maps:active {
  transform: translateY(0) scale(0.995);
}

/* Detalle responsive: barra superior compacta y atributos que aprovechan el ancho. */
@media (max-width: 900px) {
  body[data-page="detail"] .detail-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 3vw, 18px);
    min-width: 0;
  }

  body[data-page="detail"] .detail-back {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.25;
  }

  body[data-page="detail"] .detail-price {
    flex: 0 0 auto;
    min-width: max-content;
    margin-left: auto;
    text-align: right;
  }

  body[data-page="detail"] .detail-price strong {
    font-size: clamp(24px, 4vw, 32px);
  }

  body[data-page="detail"] .detail-price span {
    font-size: clamp(14px, 2.4vw, 18px);
  }

  body[data-page="detail"] .detail-property-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  body[data-page="detail"] .detail-property-features .meta-chip {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 10px;
    justify-content: center;
    white-space: nowrap;
  }

  body[data-page="detail"] .detail-property-features .meta-chip > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body[data-page] .site-header .theme-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
  }

  body[data-page] .site-header .theme-toggle span::before {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    transform: translateY(0.5px);
  }
}

@media (max-width: 340px) {
  body[data-page="detail"] .detail-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body[data-page="detail"] .detail-back {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="detail"] .detail-price {
    align-self: flex-end;
  }
}

/* Header responsive final: logo y controles conservan prioridad; la navegación baja primero. */
@media (min-width: 761px) {
  body[data-page] .site-header:has(> .icon-nav) {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand nav tools";
  }
  body[data-page] .site-header:has(> .icon-nav) > .brand { grid-area: brand; justify-self: start; }
  body[data-page] .site-header:has(> .icon-nav) > .icon-nav { grid-area: nav; justify-self: center; }
  body[data-page] .site-header:has(> .icon-nav) > .site-header__tools { grid-area: tools; justify-self: end; }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .site-header,
  .site-header--home {
    width: min(calc(100% - 32px), 1220px);
    padding-block: clamp(16px, 2vw, 24px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: clamp(10px, 2vw, 20px);
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  .site-header .brand,
  .site-header .primary-nav,
  .site-header .icon-nav,
  .site-header .site-header__tools {
    grid-area: auto;
    min-width: 0;
  }

  .site-header .brand {
    justify-self: start;
  }

  .site-header .brand img {
    width: clamp(160px, 17vw, 216px);
  }

  .site-header .primary-nav,
  .site-header .icon-nav {
    justify-self: center;
    gap: clamp(14px, 2.4vw, 28px);
  }

  .site-header .site-header__tools {
    justify-self: end;
    justify-content: flex-end;
    gap: clamp(8px, 1.4vw, 16px);
  }

  .site-header:not(.site-header--home) .primary-nav a,
  .site-header:not(.site-header--home) .header-link {
    font-size: clamp(15px, 1.7vw, 17px);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header:not(.site-header--home) .header-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header--home,
  .site-header:not(.site-header--home) {
    width: calc(100% - 32px);
    padding: 16px 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    column-gap: 12px;
    row-gap: 20px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  .site-header .brand {
    grid-area: brand;
    min-width: 0;
    justify-self: start;
  }

  body[data-page] .site-header .brand img {
    width: min(170px, 42vw);
  }

  .site-header .primary-nav,
  .site-header .icon-nav {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
  }

  .site-header .primary-nav {
    gap: clamp(12px, 6vw, 28px);
  }

  .site-header .primary-nav a {
    min-height: 44px;
    padding-inline: clamp(6px, 2vw, 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .site-header .icon-nav {
    gap: clamp(32px, 12vw, 60px);
    font-size: 30px;
  }

  .site-header .site-header__tools {
    grid-area: tools;
    min-width: 0;
    justify-self: end;
    justify-content: flex-end;
    gap: 6px;
  }

  .site-header:not(.site-header--home) .header-link {
    display: none;
  }

  .site-header .theme-toggle {
    height: 42px;
    --theme-toggle-gap: 3px;
    --theme-toggle-pad-x: 4px;
    --theme-toggle-pill-height: 34px;
    gap: var(--theme-toggle-gap);
    padding: 4px;
    box-sizing: border-box;
    box-shadow: none;
    white-space: nowrap;
  }

  body[data-page] .site-header .theme-toggle span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    font-size: 0;
  }

  .site-header .referrals-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    box-shadow: none;
  }

  body[data-page="home"] .site-header--home {
    width: calc(100% - 32px);
    grid-template-areas:
      "brand tools"
      "nav nav";
  }

  body[data-page="home"] .site-header--home .site-header__tools {
    grid-area: tools;
  }
}

/* Botones Liquid Glass del navegador central del inicio. */
body[data-page] .icon-nav__button {
  --glass-nav-rgb: 91, 122, 43;
  --glass-nav-color: #5b7a2b;
  --nav-glass-highlight: var(--liquid-glass-highlight, rgba(255, 255, 255, 0.48));
  --nav-glass-inner: var(--liquid-glass-inner, rgba(255, 255, 255, 0.18));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: clamp(46px, 4.2vw, 58px);
  height: clamp(46px, 4.2vw, 58px);
  flex: 0 0 clamp(46px, 4.2vw, 58px);
  display: inline-grid;
  place-items: center;
  color: var(--glass-nav-color);
  border: 1px solid rgba(var(--glass-nav-rgb), 0.34);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(var(--glass-nav-rgb), 0.18), var(--liquid-card-base, rgba(248, 250, 255, 0.58)) 52%, rgba(var(--glass-nav-rgb), 0.08));
  box-shadow:
    0 10px 26px rgba(18, 24, 34, 0.16),
    inset 0 1px 0 var(--nav-glass-inner),
    inset 0 0 0 1px rgba(var(--glass-nav-rgb), 0.12),
    0 7px 20px rgba(var(--glass-nav-rgb), 0.08);
  -webkit-backdrop-filter: blur(var(--liquid-glass-blur, 11px)) saturate(112%);
  backdrop-filter: blur(var(--liquid-glass-blur, 11px)) saturate(112%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 220ms ease, color 200ms ease;
}

body[data-page] .icon-nav__button--home {
  --glass-nav-rgb: 91, 122, 43;
  --glass-nav-color: #5b7a2b;
}

body[data-page] .icon-nav__button--faq {
  --glass-nav-rgb: 0, 68, 240;
  --glass-nav-color: #0044f0;
}

body[data-page] .icon-nav__button--legal {
  --glass-nav-rgb: 196, 54, 69;
  --glass-nav-color: #c43645;
}

body[data-page] .icon-nav__button::before,
body[data-page] .icon-nav__button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

body[data-page] .icon-nav__button::before {
  inset: -18%;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--nav-glass-highlight) 0%, transparent 28%),
    radial-gradient(circle at 18% 14%, rgba(var(--glass-nav-rgb), 0.3), transparent 48%);
  filter: none;
  box-shadow: none;
  opacity: 0.7;
  transform: translate3d(-4%, -1%, 0) scale(1.04);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

body[data-page] .icon-nav__button::after {
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 4%, rgba(255, 255, 255, 0.05) 28%, rgba(var(--glass-nav-rgb), 0.22) 52%, rgba(255, 255, 255, 0.12) 70%, transparent 92%);
  opacity: 0.72;
  transform: translate3d(-110%, 0, 0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

body[data-page] .icon-nav__button .icon-nav__icon {
  z-index: 2;
  width: 0.86em;
  height: 0.86em;
}

body[data-page] .icon-nav__button:hover,
body[data-page] .icon-nav__button:focus-visible {
  color: var(--glass-nav-color);
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(var(--glass-nav-rgb), 0.54);
  box-shadow:
    0 12px 28px rgba(18, 24, 34, 0.18),
    inset 0 1px 0 var(--nav-glass-inner),
    inset 0 0 0 1px rgba(var(--glass-nav-rgb), 0.2),
    0 8px 24px rgba(var(--glass-nav-rgb), 0.14);
}

body[data-page] .icon-nav__button:hover::before,
body[data-page] .icon-nav__button:focus-visible::before {
  opacity: 0.88;
  transform: translate3d(3%, 0, 0) scale(1.04);
}

body[data-page] .icon-nav__button:hover::after,
body[data-page] .icon-nav__button:focus-visible::after {
  transform: translate3d(0, 0, 0);
}

body[data-page] .icon-nav__button:focus-visible {
  outline: 2px solid rgba(var(--glass-nav-rgb), 0.72);
  outline-offset: 3px;
}

body[data-page] .icon-nav__button:active {
  transform: translateY(0) scale(0.98);
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button {
  background:
    radial-gradient(ellipse at 22% 12%, rgba(255, 255, 255, 0.42), transparent 62%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08) 55%, rgba(var(--glass-nav-rgb), 0.14)),
    rgba(var(--glass-nav-rgb), 0.72);
  border-color: rgba(var(--glass-nav-rgb), 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 8px 20px rgba(38, 48, 64, 0.12),
    0 3px 10px rgba(var(--glass-nav-rgb), 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(var(--glass-nav-rgb), 0.2);
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button--home {
  --glass-nav-rgb: 170, 240, 0;
  --glass-nav-color: #202526;
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button--faq {
  --glass-nav-rgb: 0, 68, 240;
  --glass-nav-color: #202526;
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button--legal {
  --glass-nav-rgb: 240, 0, 0;
  --glass-nav-color: #202526;
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button .icon-nav__icon {
  color: var(--glass-nav-color);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

:root:not([data-theme="dark"]) body[data-page] .icon-nav__button::before {
  background: radial-gradient(ellipse at 25% 6%, rgba(255, 255, 255, 0.48), transparent 65%);
  opacity: 0.55;
}

:root[data-theme="dark"] body[data-page] .icon-nav__button--home {
  --glass-nav-rgb: 170, 240, 0;
  --glass-nav-color: #aaf000;
}

:root[data-theme="dark"] body[data-page] .icon-nav__button {
  --nav-glass-highlight: var(--liquid-glass-highlight, rgba(255, 255, 255, 0.24));
  --nav-glass-inner: var(--liquid-glass-inner, rgba(255, 255, 255, 0.09));
  background:
    linear-gradient(145deg, rgba(var(--glass-nav-rgb), 0.12), rgba(38, 42, 43, 0.58) 52%, rgba(var(--glass-nav-rgb), 0.06));
  border-color: rgba(var(--glass-nav-rgb), 0.34);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(var(--glass-nav-rgb), 0.12),
    0 8px 24px rgba(var(--glass-nav-rgb), 0.08);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page] .icon-nav__button,
  body[data-page] .icon-nav__button:hover,
  body[data-page] .icon-nav__button:focus-visible,
  body[data-page] .icon-nav__button:active,
  body[data-page] .icon-nav__button::before,
  body[data-page] .icon-nav__button::after {
    transform: none;
    transition: opacity 180ms ease;
  }
}

/* Estados del catálogo remoto, con la misma superficie de las tarjetas. */
.catalog-status { width: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--text); }
.catalog-status p { line-height: 1.6; }
.catalog-status img { max-width: 100%; object-fit: contain; }

/* La ficha reserva su espacio mientras llegan los datos, sin imágenes ni precios de muestra. */
.catalog-loading {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.detail-page > .catalog-loading,
.detail-page > .catalog-status {
  width: var(--content);
  margin: clamp(32px, 5vw, 64px) auto;
}
.catalog-loading__message { max-width: 560px; }
.catalog-loading__message h2 { margin: 14px 0 10px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.catalog-loading__message p { margin: 0; color: var(--text-soft); line-height: 1.6; }
.catalog-loading__dots { display: flex; gap: 7px; }
.catalog-loading__dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mode-interaction-accent, var(--blue));
  animation: catalog-loading-pulse 1.5s ease-in-out infinite alternate;
}
.catalog-loading__dots i:nth-child(2) { animation-delay: 0.2s; }
.catalog-loading__dots i:nth-child(3) { animation-delay: 0.4s; }
.catalog-loading__preview { display: grid; grid-template-columns: minmax(100px, 0.6fr) 1fr; gap: 24px; margin-top: 28px; }
.catalog-loading__photo {
  display: grid; place-items: center; min-height: 150px; border-radius: 18px;
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
}
.catalog-loading__photo span {
  width: 38px; height: 38px; opacity: 0.2; background: var(--text);
  -webkit-mask: url('../assets/icons/navigation/home-solid.svg') center / contain no-repeat;
  mask: url('../assets/icons/navigation/home-solid.svg') center / contain no-repeat;
}
.catalog-loading__lines { display: grid; align-content: center; gap: 14px; }
.catalog-loading__lines > i,
.catalog-loading__lines b { display: block; height: 12px; border-radius: 8px; background: color-mix(in srgb, var(--text) 8%, var(--surface)); }
.catalog-loading__lines > i:first-child { width: 75%; height: 20px; }
.catalog-loading__lines > i:nth-child(3) { width: 55%; }
.catalog-loading__lines > div { display: flex; gap: 10px; margin-top: 8px; }
.catalog-loading__lines b { width: 70px; height: 28px; }
.catalog-loading__back { display: inline-block; margin-bottom: 36px; }
.catalog-loading--detail {
  display: flex; flex-direction: column;
  min-height: min(650px, 76svh);
  border: 0; background: transparent; padding: 0 16px 48px;
}
.catalog-loading--detail .catalog-loading__message {
  margin: auto; padding: 28px 0; text-align: center;
}
.catalog-loading--detail .catalog-loading__dots { justify-content: center; margin-top: 28px; }
.catalog-loading--detail h2 { font-size: clamp(24px, 2.3vw, 32px); }
.catalog-loading__emblem {
  display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); border-radius: 30px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--green) 24%, var(--surface)), color-mix(in srgb, var(--blue) 9%, var(--surface)));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--blue) 9%, transparent), inset 0 1px 1px rgba(255,255,255,0.5);
}
:root:not([data-theme="dark"]) .catalog-loading__emblem {
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue) 24%, var(--surface)), color-mix(in srgb, var(--green) 9%, var(--surface)));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--green) 9%, transparent), inset 0 1px 1px rgba(255,255,255,0.5);
}
.catalog-loading__emblem span {
  width: 40px; height: 40px; background: var(--mode-interaction-accent, var(--blue));
  -webkit-mask: url('../assets/icons/navigation/home-solid.svg') center / contain no-repeat;
  mask: url('../assets/icons/navigation/home-solid.svg') center / contain no-repeat;
}
@keyframes catalog-loading-pulse { from { opacity: 0.25; } to { opacity: 1; } }
@media (max-width: 760px) {
  .catalog-loading__preview { grid-template-columns: 1fr; gap: 20px; }
  .catalog-loading__photo { min-height: 130px; }
  .catalog-loading__back { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-loading__dots i { animation: none; }
}

/* El enlace y la confirmación de copia deben contrastar en todas las superficies claras. */
:root:not([data-theme="dark"]) body[data-page] .button--share .button-icon--share {
  filter: brightness(0) !important;
}

body[data-page="listing"] .property-list.property-list--depth {
  display: block; padding: 0; overflow: clip; scroll-snap-type: none;
  scrollbar-width: none;
}
body[data-page="listing"] .property-list--depth .property-card {
  width: 100%; min-width: 0; height: 100%; opacity: 1;
  transform: none !important; transition: none; will-change: auto;
  border: 0; border-radius: 0; box-shadow: none;
}
body[data-page="listing"] .property-list--depth .property-card__body {
  display: flex; flex-direction: column; min-height: 0; gap: 14px;
}
body[data-page="listing"] .property-list--depth .property-card__title h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
body[data-page="listing"] .property-list--depth .property-card__actions { margin-top: auto; }
body[data-page="listing"] .property-list--depth .property-card__body > p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; line-height: 1.4;
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body[data-page="listing"] .property-list--depth .property-card__body > p { display: none; }
}
@media (max-width: 1100px) {
  body[data-page="listing"] .property-list--depth .property-card__body > p { display: none; }
}

/* Fotos apaisadas arriba también en escritorio, sin ocupar un cuadro 16:9 completo. */
@media (min-width: 761px) {
  body[data-page="listing"] .property-card {
    flex-basis: min(800px, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--property-card-photo-height, clamp(220px, 22vw, 280px)) minmax(0, 1fr);
  }
  body[data-page="listing"] .property-card__media { min-height: 0; height: auto; }
  body[data-page="listing"] .property-card__body { gap: var(--property-card-body-gap, 12px); padding: var(--property-card-body-pad-y, 20px) var(--property-card-body-pad-x, 22px); }
  body[data-page="listing"] .property-card__top { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
  body[data-page="listing"] .property-card__price { text-align: right; }
  body[data-page="listing"] .property-card__title h3 { font-size: var(--property-card-title-size, 24px); line-height: var(--property-card-title-leading, 1.2); }
  body[data-page="listing"] .property-card__title p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 14px; line-height: 1.4;
  }
  body[data-page="listing"] .property-card__price span { margin-top: 6px; font-size: 14px; }
  body[data-page="listing"] .property-card .detail-meta { margin: 0; gap: 6px; }
  body[data-page="listing"] .property-card .meta-chip { padding: 7px 10px; font-size: 12px; }
  body[data-page="listing"] .property-list--depth .property-card__title h3 { -webkit-line-clamp: 2; }
  body[data-page="listing"] .property-list--depth .property-card__body { gap: var(--property-card-body-gap, 12px); }
  body[data-page="listing"] .property-list--depth .property-card__body > p {
    margin: 0; min-height: 0; max-height: 2.8em; -webkit-line-clamp: 2; font-size: 14px;
  }
  body[data-page="listing"] .property-list--depth :is(.property-card__top, .detail-meta, .property-card__actions) { flex-shrink: 0; }
}

/* The initial HTML uses the final card dimensions before the optional React island.
   A native scroll track keeps every property available if its script fails. */
body[data-page="listing"] .property-list {
  position: relative; container-type: inline-size;
  /* Shared by the final cards, controls and the initial seven-slot skeleton. */
  --property-card-photo-height: clamp(220px, 22vw, 280px);
  --property-card-body-gap: 12px;
  --property-card-body-pad-y: 20px;
  --property-card-body-pad-x: 22px;
  --property-card-title-size: 24px;
  --property-card-title-leading: 1.2;
  --property-card-actions-gap: 10px;
  --property-card-action-height: 42px;
  --property-carousel-arrow-size: 42px;
  --property-carousel-arrow-inset: 156px;
  --property-carousel-arrow-bottom: 18px;
  --property-carousel-summary-bottom: 28px;
}
.property-initial-track {
  --initial-card-width: clamp(240px, calc(100cqw - 200px), 800px);
  --initial-card-height: 620px;
  box-sizing: border-box; display: flex; gap: 24px; height: 740px;
  padding: 20px max(0px, calc((100% - var(--initial-card-width)) / 2)) 100px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.property-initial-track::-webkit-scrollbar { display: none; }
body[data-page="listing"] .property-initial-track > .property-card {
  flex: 0 0 var(--initial-card-width); width: var(--initial-card-width);
  height: var(--initial-card-height); min-width: 0; scroll-snap-align: center;
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
@container (max-width: 1100px) {
  .property-initial-track { --initial-card-width: clamp(240px, calc(100cqw - 80px), 800px); }
}
@container (max-width: 760px) {
  .property-initial-track {
    --initial-card-width: clamp(240px, calc(100cqw - 64px), 980px);
    --initial-card-height: 540px; height: 700px; padding-top: 60px;
  }
  .property-list--single .property-initial-track {
    --initial-card-width: clamp(240px, calc(100cqw - 28px), 980px);
    height: 660px; padding-top: 20px;
  }
}
.property-carousel-mount { width: 100%; }
.property-carousel-mount.is-preparing {
  /* React/GSAP writes visibility:visible on cards before its ready callback.
     Hide the whole measured subtree, including explicitly visible descendants. */
  position: absolute; inset: 0; visibility: hidden; opacity: 0;
  pointer-events: none; transition: none;
}
