/* ==========================================================================
   Rentas Tulum v2.3 — sistema visual
   Crema · arena · dorado cálido · café profundo. Siempre modo claro.
   ========================================================================== */

:root {
  /* Color */
  --bg: #f3f1ec;
  --bg-2: #ece7de;
  --surface: #fbfaf7;
  --surface-2: #ffffff;
  --sand: #e8e0d2;
  --sand-2: #d9ccb6;
  --ink: #2a2119;          /* café profundo — 14:1 sobre --bg */
  --ink-2: #4a3f35;        /* 9:1 */
  --muted: #6b5d4f;        /* 5.6:1 */
  --gold: #a67c3d;         /* acento/foco — 3.3:1 (no texto) */
  --gold-ink: #7d5f2f;     /* dorado para texto — 5.2:1 */
  --gold-soft: #efe3cc;
  --wa: #167a3e;           /* botón WhatsApp — blanco 5.4:1 */
  --wa-hover: #11612f;
  --ok: #276b43;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --free-soft: #e5f1e8;
  --line: rgba(42, 33, 25, .12);
  --line-2: rgba(42, 33, 25, .2);

  /* Tipografía: SF Pro en Apple, Inter en el resto */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.125rem;     /* 18 px */
  --fs-small: 1rem;        /* 16 px */
  --fs-xs: .9375rem;       /* 15 px */
  --fs-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  --lh: 1.55;
  --track-tight: -.022em;

  /* Espacio (escala 4 pt) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --gutter: clamp(1rem, .6rem + 2.6vw, 2.5rem);
  --section-pad: clamp(3rem, 1.8rem + 5vw, 6rem);
  --maxw: 1320px;

  /* Forma y profundidad */
  --r-sm: 12px; --r-md: 18px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(42, 33, 25, .05), 0 2px 8px rgba(42, 33, 25, .04);
  --shadow-2: 0 2px 6px rgba(42, 33, 25, .05), 0 12px 32px rgba(42, 33, 25, .08);
  --shadow-3: 0 6px 16px rgba(42, 33, 25, .07), 0 28px 64px rgba(42, 33, 25, .12);

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 420ms;
  --dur-fast: 220ms;

  --focus: 0 0 0 3px var(--surface), 0 0 0 6px var(--gold);
  --tap: 48px;
  --topbar-h: 64px;
  --dock-h: 72px;
}

/* ——— Base ——— */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  background: var(--bg);
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1, "ss01" 1, "cv11" 1;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: var(--track-tight); line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Foco visible dorado (WCAG 2.4.7 / 2.4.11); sin anillo en encabezados enfocados por código */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .map-btn:focus-visible, .wa-icon:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; box-shadow: var(--focus); }
.skip-link + .skip-link:focus { top: 64px; }

/* ——— Botones ——— */
.btn {
  --h: var(--tap);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.35em;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  background: var(--surface-2); color: var(--ink);
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3b2f24; }
.btn-gold { background: var(--gold-ink); color: #fff; }
.btn-gold:hover { background: #6a5027; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-sm { --h: 48px; padding: 0 1.05em; font-size: var(--fs-xs); }
.btn-lg { --h: 56px; padding: 0 1.6em; font-size: var(--fs-body); }
.btn svg { width: 1.15em; height: 1.15em; }
.icon-btn {
  width: var(--tap); height: var(--tap); display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: var(--s3); }

/* ——— Barra superior (vidrio) ——— */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(243, 241, 236, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.topbar.scrolled, body.map-open .topbar { border-bottom-color: var(--line); background: rgba(243, 241, 236, .92); }
.topbar-inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s5); }
.brand { font-weight: 700; letter-spacing: .2em; font-size: 1.05rem; text-decoration: none; display: inline-flex; gap: .35em; min-height: var(--tap); align-items: center; }
.brand span { color: var(--gold-ink); }
.topnav { display: flex; gap: var(--s1); margin-left: auto; }
.topnav a { padding: .55em .9em; border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-xs); font-weight: 550; color: var(--ink-2); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); min-height: 48px; display: inline-flex; align-items: center; }
.topnav a:hover { background: rgba(42, 33, 25, .06); color: var(--ink); }
.topnav a[aria-current="true"] { background: var(--ink); color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: var(--s2); }
.live { display: inline-flex; align-items: center; gap: .45em; font-size: .875rem; color: var(--muted); padding: 0 .4em; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-2); }
.live.on i { background: #2e9d5b; box-shadow: 0 0 0 0 rgba(46, 157, 91, .5); animation: pulse 2.4s var(--ease) infinite; }
.live.poll i { background: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 157, 91, .45); } 70% { box-shadow: 0 0 0 9px rgba(46, 157, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 157, 91, 0); } }

@media (max-width: 1023px) {
  .topnav { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .btn-wa { display: none; }
}
@media (max-width: 520px) { .live span { display: none; } }

/* ——— Dock flotante (móvil/tablet) ——— */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none; gap: 2px; padding: 6px;
  background: rgba(251, 250, 247, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-3);
  width: min(460px, calc(100% - 24px));
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.dock a {
  flex: 1; min-height: 56px; border-radius: 20px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dock a svg { width: 24px; height: 24px; }
.dock a[aria-current] { background: var(--ink); color: #fff; }
.dock a.dock-wa { color: var(--wa); }
@media (max-width: 1023px) {
  .dock { display: flex; }
  body { padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }
}

/* ——— Buscador y chips del opening (la maquetación del opening vive en hero3d.css) ——— */
.hero-search {
  display: flex; gap: var(--s2); padding: 6px;
  max-width: 560px; background: var(--surface-2); border-radius: var(--r-pill);
  box-shadow: var(--shadow-2); border: 1px solid var(--line);
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1.1em; min-height: 52px; font-size: var(--fs-body); }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { box-shadow: var(--shadow-2), var(--focus); }
.hero-search .btn { --h: 52px; }
.hero-chips { display: flex; gap: var(--s2); margin-top: var(--s4); }
.hero-count { color: var(--muted); font-size: var(--fs-small); }
.hero-count strong { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: .4em; min-height: 48px; padding: 0 1em;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7);
  font-size: var(--fs-xs); font-weight: 550; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { background: #fff; border-color: var(--gold); }
.chip:active { transform: scale(.97); }
.chip small { color: var(--muted); font-weight: 500; }

/* ——— Secciones ——— */
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--section-pad) var(--gutter) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.section h2 { font-size: var(--fs-h2); }
.rail-controls { display: flex; gap: var(--s2); }
@media (hover: none) { .rail-controls { display: none; } }

/* Destacadas — carril horizontal de miniaturas */
.feat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * var(--s4)) / 4));
  gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: var(--s2) var(--gutter) var(--s4);
  scrollbar-width: none;
}
.feat-rail::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .feat-rail { grid-auto-columns: minmax(250px, 38%); } }
@media (max-width: 640px) { .feat-rail { grid-auto-columns: 72%; } }
.feat {
  position: relative; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  isolation: isolate;
}
@media (hover: hover) and (pointer: fine) { .feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); } }
.feat .pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(28, 21, 15, .84), rgba(28, 21, 15, 0)); z-index: 0; pointer-events: none; }
.feat-body { position: absolute; inset: auto 0 0; z-index: 1; padding: var(--s4); color: #fff; }
.feat-body .loc { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.feat-body h3 { font-size: 1.125rem; margin: .2em 0 .25em; line-height: 1.2; }
.feat-body .price { font-weight: 650; font-size: var(--fs-xs); color: #fff; }
.feat-count { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: .35em; padding: .2em .6em; border-radius: var(--r-pill); background: rgba(28, 21, 15, .55); color: #fff; font-size: .8125rem; font-weight: 600; }
.feat-count svg { width: 1em; height: 1em; }
.feat a.stretched { color: #fff; text-decoration: none; }
.feat a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.feat a.stretched:focus-visible { outline: none; }
.feat:focus-within { box-shadow: var(--shadow-3), var(--focus); }

/* ——— Catálogo: buscador + filtros compactos ——— */
.toolbar {
  display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap;
  padding: var(--s2); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.tb-search { flex: 1 1 260px; min-width: 0; }
.tb-search input {
  width: 100%; min-height: 50px; padding: 0 1em 0 2.7em; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: var(--fs-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5d4f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .95em center; background-size: 20px;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tb-search input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166, 124, 61, .28); }
.tb-filters { display: flex; gap: var(--s2); align-items: center; flex: 0 1 auto; min-width: 0; }
.pill-select { position: relative; flex: none; }
.pill-select select {
  min-height: 48px; padding: 0 2.3em 0 1em; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background-color: var(--surface-2); color: var(--ink);
  font-size: var(--fs-small); font-weight: 550; cursor: pointer;
  -webkit-appearance: none; appearance: none; max-width: 15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5d4f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75em center; background-size: 16px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.pill-select select:hover { border-color: var(--sand-2); }
.pill-select select:focus-visible { outline: none; box-shadow: var(--focus); }
.pill-select.on select { background-color: var(--ink); color: #fff; border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.pill-select.on select option { color: var(--ink); background: #fff; }
.btn-reset { flex: none; }
/* Móvil: los filtros se deslizan en una sola fila (no ocupan la pantalla) */
@media (max-width: 1023px) {
  .toolbar { padding: var(--s2); border-radius: var(--r-lg); }
  .tb-search { flex-basis: 100%; }
  .tb-filters { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s2) * -1); padding: 2px var(--s2); }
  .tb-filters::-webkit-scrollbar { display: none; }
}

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0; }
.result-count { color: var(--muted); font-size: var(--fs-small); }
.result-count strong { color: var(--ink); }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); flex: none; }
.segmented button { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; padding: 0 1em; border: 0; border-radius: var(--r-pill); background: transparent; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.segmented button svg { width: 18px; height: 18px; }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented button:focus-visible { outline: none; box-shadow: var(--focus); }

/* ——— Grid de tarjetas compactas ——— */
.grid {
  position: relative;
  display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  align-items: start;
}
.empty { grid-column: 1 / -1; padding: var(--s8) var(--s5); text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.empty strong { display: block; color: var(--ink); font-size: var(--fs-h3); margin-bottom: var(--s2); }

.card {
  position: relative;
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  content-visibility: auto; contain-intrinsic-size: auto 360px;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); z-index: 2; }
}
.card:focus-within { box-shadow: var(--shadow-2), var(--focus); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
/* Mini-galería deslizable de la tarjeta */
.cg-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cg-track::-webkit-scrollbar { display: none; }
.cg-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; background: var(--sand); -webkit-tap-highlight-color: transparent; }
.cg-slide img { width: 100%; height: 100%; object-fit: cover; }
.cg-more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(28, 21, 15, .5); color: #fff; font-weight: 650; font-size: var(--fs-small); }
.cg-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: .15em .6em; border-radius: var(--r-pill); background: rgba(28, 21, 15, .62); color: #fff; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.cg-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; display: none; place-items: center; border: 0; border-radius: 50%; background: rgba(251, 250, 247, .94); color: var(--ink); box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.cg-nav svg { width: 18px; height: 18px; }
.cg-nav.prev { left: 10px; } .cg-nav.next { right: 10px; }
.cg-nav:hover { transform: scale(1.06); }
.cg-nav:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .cg-nav { display: grid; }
  .card-media:hover .cg-nav { opacity: 1; }
}
.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: .35em; min-height: 28px; padding: 0 .7em;
  border-radius: var(--r-pill); font-size: .8125rem; font-weight: 650; letter-spacing: -.005em;
  background: rgba(251, 250, 247, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge.vac { background: var(--ink); color: #fff; }
.badge.res { background: var(--gold-soft); color: var(--gold-ink); }
.card-body { position: relative; padding: var(--s3) var(--s4) var(--s4); display: grid; gap: 4px; }
.card-loc { font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.card h3 { font-size: var(--fs-h3); line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: 2px; }
.price { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.price small { font-size: .875rem; font-weight: 550; color: var(--muted); }
.wa-icon { position: relative; z-index: 2; flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #fff; transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
.wa-icon:hover { background: var(--wa-hover); }
.wa-icon:active { transform: scale(.94); }
.wa-icon svg { width: 22px; height: 22px; }

/* Imagen progresiva (300 → 800 → 1600) */
.pimg { background: var(--sand); }
.pimg.lq { filter: blur(12px) saturate(1.05); transform: scale(1.06); }
.pimg.hq { filter: none; transition: filter 500ms var(--ease), transform 500ms var(--ease); }
.pimg.err { opacity: .35; }

/* ——— Mapa ——— */
.map-wrap { position: relative; isolation: isolate; z-index: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--sand); }
.map { width: 100%; height: min(72vh, 760px); height: min(72svh, 760px); min-height: 420px; }
.map-ui { position: absolute; inset: 0; z-index: 500; pointer-events: none; }
.map-btn {
  pointer-events: auto; display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0;
  background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-2); border-radius: 14px;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-fast) var(--ease);
}
.map-btn:hover { background: var(--bg-2); }
.map-btn svg { width: 20px; height: 20px; }
.map-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; pointer-events: none; z-index: 500; }
.map-list { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: auto; padding: 0 1.1em; gap: .5em; display: none; grid-auto-flow: column; border-radius: var(--r-pill); font-weight: 650; font-size: var(--fs-xs); background: var(--ink); color: #fff; }
.map-list:hover { background: #3b2f24; }
.map-note { position: absolute; left: 12px; bottom: 12px; z-index: 500; max-width: calc(100% - 88px); padding: .45em .9em; border-radius: var(--r-pill); background: rgba(251, 250, 247, .94); font-size: .875rem; color: var(--ink-2); box-shadow: var(--shadow-1); }
.map-retry { margin-left: .4em; min-height: 36px; padding: 0 .8em; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-weight: 600; font-size: .875rem; }
.map-wrap.failed .map-note { bottom: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; text-align: center; padding: .9em 1.2em; border-radius: var(--r-md); }
.map-hint { position: absolute; inset: 0; z-index: 600; display: grid; place-items: center; padding: 1em; margin: 0; background: rgba(28, 21, 15, .45); color: #fff; font-weight: 650; text-align: center; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease); }
.map-hint.on { opacity: 1; }
.leaflet-container { font-family: var(--font) !important; background: var(--sand) !important; }
.leaflet-control-attribution { font-size: 11px !important; background: rgba(251, 250, 247, .85) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }

/* Marcadores de precio y grupos */
.rn-price, .rn-cluster, .rn-dot { background: transparent; border: 0; width: 0 !important; height: 0 !important; }
.rn-price span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px));
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75em; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink); font-size: .875rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(42, 33, 25, .22), 0 0 0 1px rgba(42, 33, 25, .1);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rn-price span::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); box-shadow: 2px 2px 3px rgba(42, 33, 25, .12); border-radius: 0 0 3px 0; }
.rn-price span::after { content: ""; position: absolute; inset: -8px -4px; } /* área táctil ≥ 48 px */
.rn-price:hover span, .rn-price.hl span { transform: translate(-50%, calc(-100% - 6px)) scale(1.08); background: var(--gold-soft); }
.rn-price.active span { background: var(--ink); color: #fff; transform: translate(-50%, calc(-100% - 6px)) scale(1.12); }
.rn-price:focus-visible { outline: none; }
.rn-price:focus-visible span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); }
.rn-cluster span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-ink); color: #fff; font-weight: 700; font-size: .9375rem;
  box-shadow: 0 0 0 5px rgba(166, 124, 61, .3), 0 4px 10px rgba(42, 33, 25, .3);
  transition: transform var(--dur-fast) var(--ease);
}
.rn-cluster:hover span, .rn-cluster.hl span { transform: translate(-50%, -50%) scale(1.12); background: var(--ink); }
.rn-cluster:focus-visible { outline: none; }
.rn-cluster:focus-visible span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
.rn-dot span { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 10px rgba(166, 124, 61, .25), 0 3px 8px rgba(42, 33, 25, .35); }

/* Vista previa sobre el mapa */
.map-card {
  position: absolute; z-index: 700; left: 16px; bottom: 16px; width: min(400px, calc(100% - 32px));
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: var(--s3); padding: 10px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); border: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.map-card.open { opacity: 1; transform: none; }
.mc-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--sand); min-height: 124px; }
.mc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-count { position: absolute; left: 6px; bottom: 6px; padding: .1em .5em; border-radius: var(--r-pill); background: rgba(28, 21, 15, .62); color: #fff; font-size: .75rem; font-weight: 600; }
.mc-body { min-width: 0; display: grid; gap: 2px; align-content: start; padding-right: 40px; }
.mc-body h3 { font-size: 1.0625rem; line-height: 1.2; }
.mc-body h3 a { text-decoration: none; }
.mc-body .price { font-size: 1.0625rem; }
.mc-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.mc-actions .btn { padding: 0 1.1em; }
.mc-close { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.mc-close:hover { background: var(--bg-2); }
.mc-close svg { width: 18px; height: 18px; }

/* Escritorio: lista + mapa en vista dividida, el mapa queda fijo mientras recorres la lista */
@media (min-width: 1024px) {
  .catalog.is-map .catalog-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s5); align-items: start; }
  .catalog.is-map .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
  .catalog.is-map .map-wrap { position: -webkit-sticky; position: sticky; top: calc(var(--topbar-h) + 16px); }
  .catalog.is-map .map { height: calc(100vh - var(--topbar-h) - 32px); height: calc(100svh - var(--topbar-h) - 32px); min-height: 480px; }
}
/* Móvil/tablet: el mapa es una capa a pantalla completa (un dedo lo mueve; "Ver lista" vuelve) */
@media (max-width: 1023px) {
  body.map-open .map-wrap { position: fixed; z-index: 45; inset: calc(var(--topbar-h) + env(safe-area-inset-top)) 0 0 0; border-radius: 0; border: 0; box-shadow: none; }
  body.map-open .map { height: 100%; min-height: 0; }
  body.map-open .map-list { display: inline-grid; }
  body.map-open .map-zoom { top: 72px; }
  body.map-open .map-note { top: 72px; bottom: auto; left: 12px; max-width: calc(100% - 96px); }
  body.map-open .map-card { left: 12px; right: 12px; width: auto; bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }
  body.map-open .leaflet-control-attribution { margin-bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom)) !important; }
  .map-card { grid-template-columns: 104px minmax(0, 1fr); }
  .mc-media { min-height: 104px; }
}

/* ——— Ficha de la propiedad ——— */
.detail {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform 520ms var(--ease);
}
.detail.open { opacity: 1; transform: none; }
.detail-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 8px; min-height: 64px;
  border-bottom: 1px solid var(--line); background: rgba(243, 241, 236, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.detail-bar-actions { display: flex; gap: var(--s2); }
.detail-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.detail-wrap { max-width: 1180px; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s8); }

/* Galería de la ficha: mosaico (escritorio) / carrusel con contador (móvil) */
.dgal { position: relative; margin-bottom: var(--s5); }
.dgal-mosaic { display: grid; gap: 8px; height: clamp(300px, 44vh, 460px); border-radius: var(--r-xl); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dgal-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.dgal-mosaic.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.dgal-mosaic.n3 { grid-template-columns: 2fr 1fr; }
.dgal-mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; }
.dgal-mosaic.n4 .dg-tile:nth-child(4) { grid-column: 2 / 4; }
.dg-tile { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.dg-tile:first-child { grid-row: 1 / -1; }
.dg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 500ms var(--ease); }
.dg-tile:hover img { transform: scale(1.03); }
.dg-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.dgal-strip { margin-inline: calc(var(--gutter) * -1); }
.dg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 4 / 3; max-height: 52vh; max-height: 52svh; background: var(--sand); }
.dg-track::-webkit-scrollbar { display: none; }
.dg-track:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.dg-slide { flex: 0 0 100%; padding: 0; border: 0; scroll-snap-align: center; scroll-snap-stop: always; background: var(--sand); }
.dg-slide img { width: 100%; height: 100%; object-fit: cover; }
.dg-count { position: absolute; left: calc(var(--gutter) + 4px); bottom: 12px; padding: .2em .7em; border-radius: var(--r-pill); background: rgba(28, 21, 15, .62); color: #fff; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.dg-all { position: absolute; right: 12px; bottom: 12px; z-index: 1; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.dgal-strip .dg-all { right: calc(var(--gutter) + 4px); }
.dgal-empty { padding: var(--s7); text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-lg); }

.detail-cols { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .detail-cols { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .detail-aside { position: -webkit-sticky; position: sticky; top: var(--s4); }
}
.detail-info { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.detail-info h1 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; }
.detail-loc { display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: var(--fs-small); margin-top: calc(var(--s3) * -1); }
.detail-loc svg { color: var(--gold-ink); width: 1.1em; height: 1.1em; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-badges .badge { background: var(--surface-2); border: 1px solid var(--line); }
.detail-badges .badge.vac { background: var(--ink); color: #fff; border-color: var(--ink); }
.lede { font-size: clamp(1.125rem, 1.08rem + .2vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.dsec-title { font-size: 1.25rem; margin-top: var(--s3); }
.dsec-text { color: var(--ink-2); }
.senses { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.senses li { display: flex; gap: .55em; align-items: center; padding: .75em 1em; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 550; }
.senses li span[aria-hidden] { font-size: 1.15em; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.specs div { background: var(--surface); padding: .85em 1em; }
.specs dt { font-size: .875rem; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.dloc { display: grid; gap: var(--s3); }
.dmap-wrap { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.dmap { height: clamp(240px, 36vh, 340px); }
.dmap-wrap .map-zoom { pointer-events: auto; }
.dmap-fail { padding: var(--s5); text-align: center; color: var(--ink-2); }
.dloc-note { color: var(--muted); font-size: var(--fs-small); }
.dloc-note a { color: var(--gold-ink); font-weight: 600; }

.detail-aside { display: grid; gap: var(--s4); min-width: 0; }
.price-card { display: grid; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.detail-price { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.detail-price small { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card .btn-wa { width: 100%; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pc-row .btn { width: 100%; padding: 0 .8em; }
.pc-note { text-align: center; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }

/* Barra de contacto fija en móvil dentro de la ficha */
.detail-cta { display: none; }
@media (max-width: 1023px) {
  .detail-cta {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 247, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .detail-cta .price { min-width: 0; font-size: 1.125rem; line-height: 1.2; }
  .detail-cta .price small { display: block; }
  .detail-cta .btn { flex: none; }
}

/* ——— Visor de fotos a pantalla completa ——— */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #120d09; color: #fff; opacity: 0; transition: opacity 240ms var(--ease); }
.lb.open { opacity: 1; }
.lb-top { flex: none; display: flex; align-items: center; gap: var(--s3); padding: calc(8px + env(safe-area-inset-top)) var(--s3) 8px var(--gutter); }
.lb-count { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 4.5em; }
.lb-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .78); font-size: var(--fs-xs); }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color var(--dur-fast) var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn:disabled { opacity: .25; cursor: default; }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track:focus-visible { outline: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 var(--s2); }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-select: none; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; display: none; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .lb-nav { display: grid; } }
.lb-thumbs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--s3) calc(12px + env(safe-area-inset-bottom)); scrollbar-width: none; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .5; background: #2b231b; transition: opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lb-thumbs button:hover { opacity: .9; }
.lb-thumbs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ——— Disponibilidad / calendario ——— */
.stay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s4); box-shadow: var(--shadow-1); }
.stay h3 { font-size: var(--fs-h3); }
@media (max-width: 480px) { .stay { padding: var(--s4); } .cal-dow, .cal-grid { gap: 3px; } }
.stay-note { color: var(--muted); font-size: var(--fs-small); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.cal-title { font-weight: 650; text-transform: capitalize; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .8125rem; font-weight: 650; color: var(--muted); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 48px; border-radius: 12px; border: 1px solid transparent; padding: 0;
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--free-soft); color: #1d4a2e;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cal-day:hover:not(:disabled) { transform: scale(1.06); }
.cal-day.blocked { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(179, 38, 30, .1) 6px 8px); }
.cal-day.past { background: transparent; color: #a3968a; text-decoration: none; }
.cal-pad { aspect-ratio: 1; }
.cal-day.in { background: var(--gold-soft); color: var(--ink); border-radius: 6px; }
.cal-day.sel { background: var(--ink); color: #fff; text-decoration: none; }
.cal-day.sel.blocked { background: var(--danger); }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; z-index: 1; }
.cal-legend { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4em; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend .lf i { background: var(--free-soft); border: 1px solid #b9d8c3; }
.cal-legend .lb i { background: var(--danger-soft); border: 1px solid #efb6b0; }
.stay-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.stay-status { padding: .85em 1em; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-small); background: var(--bg-2); }
.stay-status.ok { background: var(--free-soft); color: #1d4a2e; }
.stay-status.bad { background: var(--danger-soft); color: #8c1d16; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; color: var(--muted); padding-left: .25em; }
.field input {
  width: 100%; min-height: 50px; padding: 0 .8em; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: var(--fs-small);
  -webkit-appearance: none; appearance: none;
}
.field input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166, 124, 61, .28); }

/* ——— Zonas ——— */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s3); }
.zone {
  width: 100%; text-align: left; display: grid; gap: 4px; padding: var(--s5); min-height: 120px; align-content: end;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.zone:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); background: #fff; }
.zone strong { font-size: var(--fs-h3); letter-spacing: -.015em; }
.zone span { color: var(--muted); font-size: var(--fs-xs); }

/* ——— Contacto / footer ——— */
.contact { padding-bottom: var(--section-pad); }
.contact-card { border-radius: var(--r-xl); padding: clamp(1.75rem, 1rem + 4vw, 4.5rem); background: linear-gradient(135deg, #fffdf8, var(--sand)); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: var(--s4); }
.contact-card h2 { max-width: 18ch; }
.contact-card p { max-width: 52ch; color: var(--ink-2); }
.contact-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.contact-social a { color: var(--gold-ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 48px; }
.footer { max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); display: grid; gap: var(--s2); }
.footer a { color: var(--gold-ink); }

/* ——— Toasts ——— */
.toasts { position: fixed; z-index: 120; left: 50%; top: calc(var(--topbar-h) + 12px + env(safe-area-inset-top)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .7em; padding: .9em 1.15em; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--shadow-3); font-size: var(--fs-small); font-weight: 550; animation: toastIn var(--dur) var(--ease) both; }
.toast.ok::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5ed38d; flex: none; }
.toast.err { background: var(--danger); }
.toast.out { animation: toastOut 320ms var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

.noscript { padding: var(--s6); text-align: center; }

/* ——— Movimiento reducido ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .card:hover, .feat:hover, .zone:hover, .dg-tile:hover img { transform: none !important; }
}

/* ——— Alto contraste (Windows) ——— */
@media (forced-colors: active) {
  .btn, .chip, .icon-btn, .card, .zone, .badge, .map-btn, .pill-select select, .rn-price span, .rn-cluster span { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
  .cal-day.blocked { text-decoration: line-through; }
}
