:root {
  /* === LP Inmobiliaria identity === */
  --gold:        #C9A84C;
  --gold2:       #E8C96A;
  --gold3:       #F5DFA0;
  --gold-dark:   #8B6520;
  --gold-08:     rgba(201,168,76,0.08);
  --gold-16:     rgba(201,168,76,0.16);
  --gold-28:     rgba(201,168,76,0.28);

  --navy:        #07101E;
  --navy2:       #0B1829;
  --navy3:       #111f35;
  --navy4:       #162540;
  --navy5:       #1b2d4d;

  --silver:      #A8A9AD;
  --silver2:     #D0D1D5;
  --white:       #eef0f8;
  --text:        #9aa5bc;
  --muted:       #4a5a78;
  --whatsapp:    #25D366;

  /* Tier colors — premium real-estate palette */
  --tier-elite:  #F5DFA0;   /* Élite — gold light */
  --tier-elite-dk: #C9A84C;
  --tier-high:   #4ECDC4;   /* Alta — turquoise */
  --tier-high-dk: #1FA89E;
  --tier-mid:    #C58940;   /* Media — copper */
  --tier-mid-dk: #8B6520;
  --tier-low:    #B85450;   /* Baja — terracotta deep */
  --tier-low-dk: #7A3633;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.65);
  --shadow-gold: 0 8px 28px rgba(201,168,76,0.32);

  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --font-head:  "Cinzel", serif;
  --font-body:  "Raleway", system-ui, sans-serif;
  --font-italic:"Cormorant Garamond", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
}
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; color: var(--white); letter-spacing: 0.5px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--navy); }

#app { height: 100vh; display: grid; grid-template-rows: 72px auto 1fr; }

/* ============ TOPBAR ============ */
header.topbar {
  background: linear-gradient(180deg, #0B1829 0%, #07101E 100%);
  border-bottom: 1px solid var(--gold-16);
  padding: 0 28px;
  display: flex; align-items: center; gap: 22px;
  z-index: 100;
  position: relative;
}
header.topbar::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.4;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 44px; height: 44px;
  background: url('/logo.png') center/contain no-repeat;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(201,168,76,0.25));
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  letter-spacing: 4px; color: var(--white);
}
.brand-text .name .plus { color: var(--gold); }
.brand-text .sub {
  font-family: var(--font-head); font-weight: 400; font-size: 8.5px;
  letter-spacing: 4px; color: var(--silver); text-transform: uppercase;
  margin-top: 3px;
}

.topbar-search { flex: 1; max-width: 440px; position: relative; }
.topbar-search input {
  width: 100%; padding: 11px 14px 11px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13.5px;
  color: var(--white); letter-spacing: 0.3px;
  transition: border-color .15s, background .15s;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { outline: none; border-color: var(--gold); background: rgba(201,168,76,0.05); }
.topbar-search .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--silver);
}

.topbar-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.city-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 3px;
}
.city-toggle button {
  padding: 7px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 10px;
  color: var(--silver); letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.city-toggle button:hover { color: var(--white); }
.city-toggle button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 10.5px;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,0.32);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold3); background: var(--gold-08); }
.btn-block { width: 100%; justify-content: center; padding: 15px 22px; font-size: 11px; letter-spacing: 2.5px; }

/* ============ MAIN GRID ============ */
.main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 0;
  background: var(--navy);
  position: relative;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: linear-gradient(180deg, #0B1829, #07101E);
  border-right: 1px solid rgba(201,168,76,0.1);
  display: flex; flex-direction: column;
  min-height: 0;
}
.sidebar-head { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-head .title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sidebar-head h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--white); letter-spacing: 4px; text-transform: uppercase;
}
.sidebar-head .count {
  background: linear-gradient(135deg, var(--gold3), var(--gold));
  color: var(--navy);
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: 0.5px;
}
.tier-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tier-chip {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 9.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  color: var(--silver);
  border: 1px solid rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.tier-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.tier-chip:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.tier-chip.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-color: var(--gold);
}
.tier-chip[data-tier="elite"] .dot { background: var(--tier-elite); }
.tier-chip[data-tier="high"] .dot  { background: var(--tier-high); }
.tier-chip[data-tier="mid"] .dot   { background: var(--tier-mid); }
.tier-chip[data-tier="low"] .dot   { background: var(--tier-low); }

.sort-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-head); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--silver);
}
.sort-row select {
  border: none; background: transparent;
  font-family: var(--font-head); font-size: 10px; color: var(--gold2);
  font-weight: 600; cursor: pointer; letter-spacing: 1.5px; text-transform: uppercase;
}
.sort-row select option { background: var(--navy2); color: var(--white); font-family: var(--font-body); }
.sort-row select:focus { outline: none; }

.colonia-list { flex: 1; overflow-y: auto; padding: 8px; }
.colonia-list::-webkit-scrollbar { width: 6px; }
.colonia-list::-webkit-scrollbar-thumb { background: var(--gold-16); border-radius: 3px; }
.colonia-list::-webkit-scrollbar-track { background: transparent; }

.col-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.015);
  position: relative;
}
.col-card::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px;
  background: transparent;
  border-radius: 0 2px 2px 0;
  transition: background .2s ease;
}
.col-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(201,168,76,0.18); transform: translateX(2px); }
.col-card:hover::before { background: var(--gold-dark); }
.col-card.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(201,168,76,0.04));
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.18);
}
.col-card.active::before { background: var(--gold); }
.col-card .name {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--white); letter-spacing: 0.8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.col-card .city {
  font-family: var(--font-italic); font-style: italic;
  font-size: 13px; color: var(--silver);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px;
}
.col-card .pv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1px;
}
.pv[data-tier="elite"] { background: rgba(245,223,160,0.10); color: var(--tier-elite); border: 1px solid rgba(245,223,160,0.28); }
.pv[data-tier="high"]  { background: rgba(78,205,196,0.08); color: var(--tier-high);  border: 1px solid rgba(78,205,196,0.25); }
.pv[data-tier="mid"]   { background: rgba(197,137,64,0.10); color: var(--tier-mid);   border: 1px solid rgba(197,137,64,0.28); }
.pv[data-tier="low"]   { background: rgba(184,84,80,0.10); color: var(--tier-low);   border: 1px solid rgba(184,84,80,0.28); }

/* ============ MAP ============ */
.map-pane { position: relative; min-height: 0; }
#map { width: 100%; height: 100%; background: #e9e5dc; }
/* Sutil tinte sepia/cálido sobre los tiles para mantener feel premium */
.leaflet-tile-pane { filter: saturate(0.85) contrast(0.95); }

.map-overlay { position: absolute; pointer-events: none; z-index: 500; }
.legend {
  bottom: 22px; left: 22px;
  background: rgba(11,24,41,0.94);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid rgba(201,168,76,0.18);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  pointer-events: auto;
  color: var(--white);
}
.legend h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 9.5px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.legend-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--silver2); }
.legend-row .swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.15); }
.legend-row .swatch.elite { background: var(--tier-elite); }
.legend-row .swatch.high  { background: var(--tier-high); }
.legend-row .swatch.mid   { background: var(--tier-mid); }
.legend-row .swatch.low   { background: var(--tier-low); }
.legend-row strong { color: var(--white); font-family: var(--font-head); font-size: 10px; letter-spacing: 1px; }

.toolbar-overlay { top: 18px; right: 18px; display: flex; gap: 8px; pointer-events: auto; }
.tool-btn {
  background: rgba(11,24,41,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 9px 14px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--silver2);
  display: inline-flex; align-items: center; gap: 8px;
}
.tool-btn:hover { background: var(--navy3); color: var(--gold); }
.tool-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); border-color: var(--gold);
}

/* ============ CUSTOM MARKER (LP) — Pin tipo gota refinada ============ */
.lp-marker {
  width: 38px; height: 48px;
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.lp-marker:hover { transform: translateY(-3px) scale(1.08); z-index: 1000; }
.lp-marker .lp-pin {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4), transparent 40%),
    linear-gradient(135deg, var(--lp-color, var(--gold)), var(--lp-color-dk, var(--gold-dark)));
  clip-path: path("M19 0 C8.5 0 0 8 0 18 C0 28 19 48 19 48 C19 48 38 28 38 18 C38 8 29.5 0 19 0 Z");
  border: 2px solid rgba(255,255,255,0.7);
  /* Fallback for browsers without clip-path support: rounded shape */
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.lp-marker.elite { --lp-color: #F5DFA0; --lp-color-dk: #C9A84C; }
.lp-marker.high  { --lp-color: #6FD8CF; --lp-color-dk: #1FA89E; }
.lp-marker.mid   { --lp-color: #D8A258; --lp-color-dk: #8B6520; }
.lp-marker.low   { --lp-color: #D87671; --lp-color-dk: #7A3633; }
.lp-marker .lp-svg {
  width: 18px; height: 18px;
  margin-top: -10px;
  color: var(--navy);
  position: relative; z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.4));
}
.lp-marker .lp-svg path,
.lp-marker .lp-svg rect { fill: var(--navy); }

/* Cluster — racimo de pines en lugar de un número */
/* NUEVO cluster pin: muestra # propiedades + precio promedio */
.lp-cluster-pin {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.4), transparent 50%),
    linear-gradient(135deg, var(--gold-3, #F5DFA0), var(--gold-dark, #8B6520));
  border: 2.5px solid #fff;
  box-shadow: 0 8px 22px rgba(201,168,76,0.5), 0 0 0 1px rgba(201,168,76,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s;
}
.lp-cluster-pin:hover { transform: scale(1.08); }
.lp-cluster-count {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 11px; font-weight: 700;
  color: var(--navy, #07101E);
  line-height: 1;
}
.lp-cluster-price {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 10px; font-weight: 700;
  color: var(--navy, #07101E);
  letter-spacing: .2px;
  margin-top: 3px;
  line-height: 1;
}

/* viejo lp-cluster (deprecated, conservado por si algo lo usa) */
.lp-cluster {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.lp-cluster-inner {
  position: relative;
  width: 60%; height: 60%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), transparent 50%),
    linear-gradient(135deg, var(--gold3), var(--gold-dark));
  border: 2.5px solid #fff;
  box-shadow: 0 6px 18px rgba(201,168,76,0.5), 0 0 0 1px rgba(201,168,76,0.3);
}
.lp-cluster-inner::after {
  content: "";
  position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 1.5px solid rgba(255,255,255,0.5);
}
.lp-cluster-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  animation: lp-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes lp-pulse {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
/* Disable default marker-cluster styling from CSS lib */
.marker-cluster { background: transparent !important; }
.marker-cluster div { display: none !important; }

/* Leaflet attribution tweaks */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.92) !important;
  color: #6a6258 !important;
  font-size: 10px !important;
  border-radius: 3px;
}
.leaflet-control-attribution a { color: var(--gold-dark) !important; }
.leaflet-control-zoom a {
  background: rgba(11,24,41,0.92) !important;
  color: var(--gold2) !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  backdrop-filter: blur(6px);
}
.leaflet-control-zoom a:hover { background: var(--navy3) !important; color: var(--gold) !important; }

/* ============ SIDE PANEL ============ */
.detail-panel {
  position: fixed;
  top: 72px; right: 0; bottom: 0;
  width: 480px; max-width: 100vw;
  background: linear-gradient(180deg, #0B1829 0%, #07101E 100%);
  border-left: 1px solid var(--gold-16);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-panel.open { transform: translateX(0); }
.detail-panel::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.5;
}
.detail-close {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(7,16,30,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center;
  color: var(--white); transition: background .15s, color .15s;
}
.detail-close:hover { background: var(--navy3); color: var(--gold); }
.detail-fav {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(7,16,30,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center;
  color: var(--silver); transition: color .15s, background .15s;
}
.detail-fav:hover { color: var(--gold); }
.detail-fav.active { color: var(--gold); background: rgba(201,168,76,0.18); border-color: var(--gold); }
.detail-fav.active svg { fill: var(--gold); }

/* LP Hero (reemplaza la galería de fotos no-reales) */
.lp-hero {
  position: relative;
  width: 100%; height: 280px;
  overflow: hidden;
  background: linear-gradient(160deg, #0B1829 0%, #07101E 50%, #050b16 100%);
  display: flex; align-items: center; justify-content: center;
}
.lp-hero[data-tier="elite"]::before { background: radial-gradient(circle at 70% 30%, rgba(245,223,160,0.25), transparent 60%); }
.lp-hero[data-tier="high"]::before  { background: radial-gradient(circle at 70% 30%, rgba(78,205,196,0.20), transparent 60%); }
.lp-hero[data-tier="mid"]::before   { background: radial-gradient(circle at 70% 30%, rgba(197,137,64,0.22), transparent 60%); }
.lp-hero[data-tier="low"]::before   { background: radial-gradient(circle at 70% 30%, rgba(184,84,80,0.20), transparent 60%); }
.lp-hero::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
}
.lp-hero-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(201,168,76,0.04) 12px 13px),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(201,168,76,0.04) 12px 13px);
  opacity: 0.7;
}
.lp-hero-logo {
  position: absolute; top: 18px; left: 22px;
  width: 64px; height: 64px;
  background: url('/logo.png') center/contain no-repeat;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.lp-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 36px;
  max-width: 100%;
}
.lp-hero-eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 10px;
  letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.lp-hero-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 28px; line-height: 1.15;
  color: var(--white); letter-spacing: 0.6px;
  word-break: break-word;
}
.lp-hero-rule {
  width: 50px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto;
}
.lp-hero-pct {
  font-family: var(--font-italic); font-style: italic; font-weight: 400;
  font-size: 17px;
  color: var(--gold2);
  letter-spacing: 0.3px;
}
.lp-hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(7,16,30,0.95));
  pointer-events: none;
}

.detail-body {
  flex: 1; overflow-y: auto;
  padding: 26px 28px 28px;
}
.detail-body::-webkit-scrollbar { width: 6px; }
.detail-body::-webkit-scrollbar-thumb { background: var(--gold-16); border-radius: 3px; }

.detail-eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 9.5px;
  letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.detail-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 30px; line-height: 1.1; letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 8px;
}
.detail-subtitle {
  font-family: var(--font-italic); font-style: italic;
  font-size: 16px; color: var(--silver2);
  margin-bottom: 22px;
}

/* 5-bar plusvalia rating row */
.pv-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 4px 0 22px;
}
.pv-row .label {
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--silver);
  display: flex; align-items: center; gap: 8px;
}
.pv-row .label svg { width: 16px; height: 16px; color: var(--gold); }
.pv-bars { display: flex; gap: 5px; margin-left: auto; }
.pv-bar {
  width: 24px; height: 26px; border-radius: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.pv-bar.on[data-tier="elite"] { background: linear-gradient(180deg, var(--tier-elite), var(--tier-elite-dk)); border-color: var(--tier-elite-dk); }
.pv-bar.on[data-tier="high"]  { background: linear-gradient(180deg, var(--tier-high),  var(--tier-high-dk));  border-color: var(--tier-high-dk); }
.pv-bar.on[data-tier="mid"]   { background: linear-gradient(180deg, var(--tier-mid),   var(--tier-mid-dk));   border-color: var(--tier-mid-dk); }
.pv-bar.on[data-tier="low"]   { background: linear-gradient(180deg, var(--tier-low),   var(--tier-low-dk));   border-color: var(--tier-low-dk); }

.kv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.kv-tile {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kv-tile .lbl {
  font-family: var(--font-head); font-size: 9px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.kv-tile .val {
  font-family: var(--font-head); font-weight: 700;
  font-size: 18px; color: var(--white); letter-spacing: 0.3px;
}
.kv-tile .sub {
  font-family: var(--font-italic); font-style: italic;
  font-size: 12px; color: var(--silver); margin-top: 3px;
}
.kv-tile.featured {
  background: linear-gradient(135deg, rgba(245,223,160,0.10), rgba(201,168,76,0.04));
  border-color: rgba(201,168,76,0.4);
}
.kv-tile.featured .val { color: var(--gold2); }

.section-title {
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 12px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
}
.section-title::after {
  content: ""; flex: 1; height: 1px; background: rgba(201,168,76,0.18);
}

.scenario-list { display: grid; gap: 5px; margin-bottom: 22px; }
.scenario-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  font-size: 13px;
}
.scenario-row .l {
  font-family: var(--font-head); font-size: 10px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--silver);
}
.scenario-row .v {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--gold2); letter-spacing: 0.5px;
}

.quote-block {
  margin-top: 8px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(201,168,76,0.06), transparent);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-italic); font-style: italic;
  font-size: 14px; color: var(--silver2);
  line-height: 1.6;
}

.detail-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}
.action-row { display: flex; gap: 8px; margin-bottom: 10px; }
.action-row .btn { flex: 1; justify-content: center; padding: 11px 14px; }

/* ============ DISCLAIMER ============ */
.lp-disclaimer {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: linear-gradient(90deg, rgba(201,168,76,0.06), transparent);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  color: var(--silver);
  font-family: var(--font-italic); font-style: italic;
  font-size: 12px; line-height: 1.4;
}
.lp-disclaimer svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.lp-disclaimer strong {
  color: var(--gold2); font-family: var(--font-head); font-style: normal;
  font-weight: 600; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  margin-right: 6px;
}

/* ============ CALC BANNER (cuando vienes de la calculadora) ============ */
.calc-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: linear-gradient(90deg, rgba(201,168,76,0.18), rgba(201,168,76,0.04));
  border-bottom: 1px solid rgba(201,168,76,0.32);
  color: #fff;
  font-size: 13.5px; line-height: 1.45;
}
.calc-banner svg { color: var(--gold); flex-shrink: 0 }
.calc-banner > div { flex: 1 }
.calc-banner strong {
  display: block;
  color: var(--gold2); font-family: var(--font-head); font-weight: 600;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: 3px;
}
.calc-banner em {
  font-style: normal; font-weight: 700; color: var(--gold2);
}
.calc-banner-close {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(201,168,76,0.35);
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 3px;
  cursor: pointer; transition: all .2s;
  flex-shrink: 0;
}
.calc-banner-close:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold2);
  border-color: var(--gold);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  padding: 40px 20px; text-align: center;
  color: var(--silver);
}
.empty-state .ico { font-size: 32px; margin-bottom: 8px; opacity: 0.6; }
.empty-state strong { color: var(--white); font-family: var(--font-head); letter-spacing: 1px; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 12px 22px; border-radius: var(--radius);
  z-index: 2000;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  box-shadow: var(--shadow-gold);
  animation: fadeUp .25s ease-out;
}
@keyframes fadeUp { from { opacity:0; transform:translate(-50%,12px); } to { opacity:1; transform:translate(-50%,0); } }

/* ============ LISTINGS GRID LAYOUT ============ */
.listings-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
  background: var(--navy);
}

/* ━━ WIZARD FILTERS — Estilo consulta premium ━━ */
.filters-sidebar {
  background: linear-gradient(180deg, var(--navy2) 0%, var(--navy) 100%);
  border-right: 1px solid rgba(201,168,76,0.15);
  padding: 28px 24px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.filters-sidebar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: .4;
}
.filters-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--gold-16); border-radius: 3px; }

.wizard-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 4px;
}
.wizard-eyebrow {
  font-family: var(--font-head); font-size: 9.5px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.wizard-eyebrow::before, .wizard-eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}
.wizard-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: var(--white); letter-spacing: .5px;
  margin-top: 8px; text-align: center;
}
.wizard-sub {
  font-family: var(--font-italic); font-style: italic; font-size: 12.5px;
  color: var(--silver); text-align: center; margin-top: 4px;
}

.wizard-step {
  display: flex; flex-direction: column; gap: 8px;
}
.wizard-step label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold2);
}
.wizard-step label .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0;
}
.wizard-step .filter-count {
  font-family: var(--font-italic); font-style: italic;
  font-size: 11px; color: var(--silver);
  text-transform: none; letter-spacing: 0;
  margin-left: auto;
}

/* Select wizard estilo premium */
.wizard-select {
  position: relative;
}
.wizard-select select {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  padding: 13px 38px 13px 14px;
  background: rgba(11, 24, 41, 0.6);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body); font-size: 13.5px;
  cursor: pointer;
  transition: all .25s;
}
.wizard-select select:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(11, 24, 41, 0.85);
}
.wizard-select select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.wizard-select select option {
  background: var(--navy2);
  color: var(--white);
  padding: 8px;
}
.wizard-select::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Inputs de rango premium */
.wizard-range {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.wizard-range input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(11, 24, 41, 0.6);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body); font-size: 13px;
  transition: all .25s;
}
.wizard-range input::placeholder {
  color: rgba(168,169,173,.55);
  font-family: var(--font-italic); font-style: italic;
  font-size: 12.5px;
}
.wizard-range input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.wizard-range .dash {
  width: 12px; height: 1px;
  background: var(--gold);
  opacity: .5;
}

/* Multiselect de colonias */
.wizard-colonias {
  background: rgba(11, 24, 41, 0.6);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}
.wizard-colonias::-webkit-scrollbar { width: 5px; }
.wizard-colonias::-webkit-scrollbar-thumb { background: var(--gold-16); border-radius: 2px; }
.wizard-col {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--font-body); font-size: 12.5px;
  color: var(--silver2);
}
.wizard-col:hover { background: rgba(201,168,76,0.06); color: var(--white); }
.wizard-col.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold2);
}
.wizard-col input {
  accent-color: var(--gold);
  width: 14px; height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.wizard-col .col-name { flex: 1; }
.wizard-col .col-count {
  font-family: var(--font-head); font-size: 9.5px; font-weight: 600;
  color: var(--silver); padding: 2px 7px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  letter-spacing: .5px;
}
.wizard-col.active .col-count { background: rgba(201,168,76,0.18); color: var(--gold); }

.wizard-hint {
  font-family: var(--font-italic); font-style: italic; font-size: 11px;
  color: var(--silver); margin-top: 2px;
  opacity: .8;
}

.btn-clear-filters {
  margin-top: 8px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  color: var(--gold2);
  font-family: var(--font-head); font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
}
.btn-clear-filters:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-wa-wizard {
  margin-top: 4px;
  padding: 14px;
  background: linear-gradient(135deg, #25D366, #1da851);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(37,211,102,.28);
  text-decoration: none;
  text-align: center;
  display: block;
}
.btn-wa-wizard:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
}

/* Backward-compat: viejos selectores deprecated */
.filter-block h3 { display: none; }
.filter-pills, .filter-pill, .filter-range, .filter-colonias, .filter-col, .filter-hint { display: none; }

/* ============ LISTINGS MAIN ============ */
.listings-main {
  padding: 18px 22px 30px;
  overflow-y: auto;
}
.listings-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.count-block { display: flex; align-items: baseline; gap: 8px; }
.count-block .count {
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  color: var(--gold2);
}
.count-block .count-label {
  font-family: var(--font-italic); font-style: italic;
  color: var(--silver); font-size: 14px;
}
.sort-block {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--silver);
}
.sort-block select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gold2);
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 10px; border-radius: 5px;
  cursor: pointer;
}
.sort-block select option { background: var(--navy2); color: var(--white); font-family: var(--font-body); }

.listings-mapwrap {
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(201,168,76,0.18);
  transition: height .3s, opacity .3s, margin .3s;
}
.listings-mapwrap.hidden { height: 0; margin-bottom: 0; opacity: 0; border: 0; }
.listings-mapwrap #map { width: 100%; height: 100%; }

.listings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.listing-card {
  background: linear-gradient(180deg, var(--navy2), var(--navy3));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.listing-card:hover .listing-img { transform: scale(1.05); }
.listing-img {
  position: relative;
  height: 170px;
  background-size: cover; background-position: center;
  background-color: #1b2d4d;
  transition: transform .6s ease;
  overflow: hidden;
}
.listing-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,16,30,0.85));
}
.listing-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-size: 9px; font-weight: 700;
  letter-spacing: 1.8px;
}
.listing-price {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  padding: 5px 12px; border-radius: 4px;
  background: rgba(7,16,30,0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold2);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.3px;
}
.listing-body { padding: 13px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.listing-colonia {
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--white); letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.listing-address {
  font-family: var(--font-italic); font-style: italic;
  font-size: 12.5px; color: var(--silver); line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-specs {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 11.5px; color: var(--silver2);
  font-family: var(--font-body);
  margin-top: auto;
}
.listing-specs span { display: inline-flex; align-items: center; gap: 4px; }
.listing-specs svg { color: var(--gold); flex-shrink: 0; stroke-width: 2; }

.grid-more {
  grid-column: 1 / -1;
  text-align: center; padding: 20px;
  font-family: var(--font-italic); font-style: italic;
  color: var(--silver); font-size: 13px;
}

/* Listing pin en mapa (en lugar del marker LP) */
.listing-pin {
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s;
}
.listing-pin:hover { transform: scale(1.1); z-index: 1000; }

/* Detail hero para listings (foto grande) */
.detail-hero {
  position: relative;
  width: 100%; height: 240px;
  background-size: cover; background-position: center;
  background-color: var(--navy3);
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,16,30,0.92));
  padding: 14px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.detail-hero-badge {
  align-self: flex-start;
  padding: 5px 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 2px;
}
.detail-hero-price {
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  color: var(--white); letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

@media(max-width: 900px) {
  .listings-grid-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .listings-cards { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
  .listings-cards { grid-template-columns: 1fr; }
}

/* ============ WIZARD (overlay inicial) ============ */
.wizard-backdrop {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 1500;
  display: none;
  overflow-y: auto;
}
.wizard-backdrop.show { display: block; }
.wizard-backdrop::before {
  content: ""; position: fixed; inset: 0;
  background: url('/portada.jpg') center/cover no-repeat;
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
}
.wizard-backdrop::after {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,168,76,0.10), transparent 60%),
              linear-gradient(180deg, rgba(7,16,30,0.6), rgba(7,16,30,0.95));
  pointer-events: none;
}

.wizard {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
  min-height: 100vh;
}

.wizard-left { padding-top: 12px; }
.wizard-brand {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.wizard-brand .brand-logo {
  width: 64px; height: 64px;
  background: url('/logo.png') center/contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(201,168,76,0.35));
}
.wizard-brand .brand-text .name {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  letter-spacing: 5px; color: var(--white); line-height: 1;
}
.wizard-brand .brand-text .name .plus { color: var(--gold); }
.wizard-brand .brand-text .sub {
  font-family: var(--font-head); font-weight: 400; font-size: 10px;
  letter-spacing: 4px; color: var(--silver); text-transform: uppercase;
  margin-top: 5px;
}

.wizard-eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 10px;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.wizard-h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: 0.8px;
  color: var(--white); margin-bottom: 18px;
}
.wizard-h1 .italic {
  font-family: var(--font-italic); font-style: italic; font-weight: 400;
  color: var(--gold2);
}
.wizard-tagline {
  font-family: var(--font-italic); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--silver2); line-height: 1.6;
  margin-bottom: 44px;
}
.wizard-features {
  display: grid; gap: 14px;
  margin-bottom: 28px;
}
.wizard-feat {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--silver2);
  font-size: 14px;
  font-family: var(--font-body);
}
.wizard-feat svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.wizard-feat strong { color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* Wizard right (form card) */
.wizard-card {
  background: linear-gradient(180deg, rgba(11,24,41,0.9), rgba(7,16,30,0.96));
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  position: relative;
}
.wizard-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.5;
}
.wizard-card h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; letter-spacing: 1px;
  color: var(--white); margin-bottom: 4px;
}
.wizard-card .h2-italic {
  font-family: var(--font-italic); font-style: italic;
  font-size: 15px; color: var(--silver);
  margin-bottom: 26px;
}

.wizard-field { margin-bottom: 18px; position: relative; }
.wizard-field label {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 8px;
}
.wizard-select {
  position: relative;
}
.wizard-select-btn {
  width: 100%;
  padding: 13px 42px 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body); font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wizard-select-btn.placeholder { color: var(--muted); font-style: italic; font-family: var(--font-italic); }
.wizard-select-btn:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.wizard-select.open .wizard-select-btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.wizard-select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--gold);
  pointer-events: none; transition: transform .15s;
}
.wizard-select.open .wizard-select-arrow { transform: translateY(-50%) rotate(180deg); }
.wizard-select-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--navy3);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  max-height: 240px; overflow-y: auto;
  z-index: 50;
  padding: 4px;
  display: none;
}
.wizard-select.open .wizard-select-dropdown { display: block; }
.wizard-select-dropdown::-webkit-scrollbar { width: 6px; }
.wizard-select-dropdown::-webkit-scrollbar-thumb { background: var(--gold-16); border-radius: 3px; }
.wizard-option {
  padding: 10px 14px;
  font-family: var(--font-body); font-size: 13.5px;
  color: var(--silver2);
  cursor: pointer;
  border-radius: 3px;
  transition: background .12s, color .12s;
}
.wizard-option:hover { background: rgba(201,168,76,0.12); color: var(--gold2); }
.wizard-option.selected {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06));
  color: var(--gold2);
  font-weight: 600;
}

.wizard-submit {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201,168,76,0.32);
  transition: transform .15s, box-shadow .15s;
}
.wizard-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,0.45); }
.wizard-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.wizard-skip {
  display: block; width: 100%; margin-top: 14px;
  background: transparent; border: none;
  color: var(--silver); font-family: var(--font-italic); font-style: italic;
  font-size: 13px; cursor: pointer;
}
.wizard-skip:hover { color: var(--gold2); }

.wizard-progress {
  display: flex; gap: 4px; margin-bottom: 26px;
}
.wizard-progress-bar {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  transition: background .25s;
}
.wizard-progress-bar.done { background: var(--gold); }

.wizard-count-hint {
  font-family: var(--font-italic); font-style: italic;
  color: var(--silver); font-size: 13px;
  text-align: center; margin-top: 12px;
}
.wizard-count-hint strong {
  color: var(--gold); font-family: var(--font-head); font-style: normal;
  font-weight: 700; letter-spacing: 1px;
}

.profile-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  font-family: var(--font-head); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold2);
  cursor: pointer;
  transition: background .15s;
}
.profile-chip:hover { background: rgba(201,168,76,0.18); }
.profile-chip svg { width: 12px; height: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .wizard { grid-template-columns: 1fr; gap: 28px; padding: 32px 18px 60px; }
  .wizard-card { padding: 24px; }
}
@media (max-width: 980px) {
  .main-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 280px; }
  .map-pane { order: 1; }
  .sidebar { order: 2; border-right: none; border-top: 1px solid var(--gold-16); }
  .topbar-search { display: none; }
  .detail-panel { width: 100%; }
}
@media (max-width: 580px) {
  header.topbar { padding: 0 16px; }
  .brand-text .name { font-size: 14px; letter-spacing: 3px; }
  .brand-text .sub { font-size: 7px; }
  .topbar-actions { gap: 6px; }
  .city-toggle button { padding: 6px 10px; font-size: 9px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUIERES INVERTIR — Página de oportunidades curadas
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Body de /invertir */
body:has(.invertir-hero) {
  background: var(--navy);
  color: var(--silver-2);
  font-family: var(--font-body);
  margin: 0;
}

/* NAV PREMIUM compartido (mismo del home) */
body:has(.invertir-hero) #nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 84px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5, 10, 20, .9); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.12);
}
body:has(.invertir-hero) .nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
body:has(.invertir-hero) .nav-logo {
  height: 62px !important; width: auto !important; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(201,168,76,.28));
}
body:has(.invertir-hero) .nav-links {
  display: flex; gap: 26px; align-items: center;
}
body:has(.invertir-hero) .nav-links a {
  position: relative;
  color: rgba(216,220,232,.82);
  font-family: var(--font-head); font-size: 10.5px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; padding: 4px 0;
  white-space: nowrap; transition: color .25s;
}
body:has(.invertir-hero) .nav-links a:hover { color: var(--gold-2); }
body:has(.invertir-hero) .nav-links a.active {
  color: var(--gold-2);
}
body:has(.invertir-hero) .nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-2));
}
body:has(.invertir-hero) .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 22px; border-radius: 3px;
  text-decoration: none; transition: all .25s;
  box-shadow: 0 4px 18px rgba(201,168,76,.3);
}
body:has(.invertir-hero) .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.5);
}

.invertir-hero {
  background: linear-gradient(180deg, #040c1c 0%, #061020 60%, var(--navy) 100%);
  padding: 140px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.invertir-hero::before {
  content: ""; position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 50px; background: linear-gradient(180deg, var(--gold), transparent); opacity: .4;
}
.invertir-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.invertir-h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: .5px;
  color: var(--white);
  margin: 20px 0 18px;
}
.invertir-h1 em {
  font-family: var(--font-italic); font-style: italic;
  font-weight: 300; color: var(--gold-2);
}
.invertir-sub {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--silver-2);
  line-height: 1.7; max-width: 700px; margin: 0 auto;
}
.invertir-sub strong {
  font-style: normal; font-family: var(--font-body);
  font-weight: 500; color: var(--white);
}
.invertir-stats {
  display: flex; justify-content: center; gap: 0;
  margin-top: 48px; flex-wrap: wrap;
}
.invertir-stat {
  padding: 0 36px; text-align: center;
  border-right: 1px solid rgba(201,168,76,.15);
}
.invertir-stat:last-child { border-right: none; }
.invertir-stat .n {
  display: block; font-family: var(--font-head); font-size: 36px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.invertir-stat .l {
  display: block; font-size: 10px; color: var(--muted);
  letter-spacing: 2.5px; text-transform: uppercase; margin-top: 8px;
  font-family: var(--font-head); font-weight: 500;
}
/* WIZARD INVERTIR */
.invertir-wizard-section {
  padding: 60px 5%;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-top: 1px solid rgba(201,168,76,.1);
  border-bottom: 1px solid rgba(201,168,76,.1);
}
.invertir-wizard {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(165deg, rgba(11,24,41,.92), rgba(7,16,30,.97));
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 8px;
  padding: 40px 38px;
  position: relative;
}
.invertir-wizard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
}
.invertir-wizard-head { text-align: center; margin-bottom: 32px; }
.invertir-wizard-h {
  font-family: var(--font-head); font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
  color: var(--white); margin-top: 10px; letter-spacing: .3px;
}
.invertir-wizard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.wiz-field { display: flex; flex-direction: column; gap: 8px; }
.wiz-field label {
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2);
}
.wiz-select { position: relative; }
.wiz-select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 13px 38px 13px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body); font-size: 13.5px;
  cursor: pointer; transition: all .25s;
}
.wiz-select select:hover { border-color: rgba(201,168,76,.4); background: rgba(255,255,255,.07); }
.wiz-select select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.wiz-select select option { background: var(--navy-2); color: var(--white); }
.wiz-select::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.invertir-results-section {
  padding: 60px 5% 90px;
  max-width: 1280px; margin: 0 auto;
}
.invertir-results-head {
  text-align: center; margin-bottom: 36px;
}
.invertir-results-head h3 {
  font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700; color: var(--white); letter-spacing: .3px;
}
.invertir-results-head h3 em {
  font-family: var(--font-italic); font-style: italic; font-weight: 300;
  color: var(--gold-2);
}
.invertir-results-head #invertir-count {
  color: var(--gold); font-size: 1.4em;
}
.invertir-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 24px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px dashed rgba(201,168,76,.2); border-radius: 10px;
}
.invertir-empty-ico { font-size: 48px; margin-bottom: 20px; }
.invertir-empty h3 {
  font-family: var(--font-head); font-size: 20px; color: var(--white); margin-bottom: 12px;
}
.invertir-empty p {
  font-family: var(--font-italic); font-style: italic;
  font-size: 15px; color: var(--silver-2); margin-bottom: 24px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}

.invertir-section { padding: 90px 5%; max-width: 1280px; margin: 0 auto; }
.invertir-section-head { text-align: center; margin-bottom: 56px; }
.invertir-h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 700;
  line-height: 1.2; letter-spacing: .3px;
  color: var(--white);
  margin: 18px 0 14px;
}
.invertir-h2 em {
  font-family: var(--font-italic); font-style: italic;
  font-weight: 300; color: var(--gold-2);
}
.invertir-section-sub {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--silver-2);
  line-height: 1.7; max-width: 620px; margin: 0 auto;
}
.invertir-section-sub strong {
  font-style: normal; color: var(--gold-2); font-family: var(--font-body); font-weight: 500;
}
.invertir-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.invertir-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.invertir-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,.35);
  box-shadow: 0 28px 58px rgba(0,0,0,.55);
}
.invertir-img {
  position: relative; height: 220px;
  background-size: cover; background-position: center;
  background-color: var(--navy-3);
}
.invertir-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.invertir-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 12px; border-radius: 4px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  z-index: 2;
}
.invertir-tag.preventa {
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
}
.invertir-tag.deal {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201,168,76,.45);
}
.invertir-price {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--white); z-index: 2;
  letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.invertir-savings {
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--font-italic); font-style: italic; font-size: 11px;
  color: var(--silver-2); z-index: 2;
  text-decoration: line-through;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.invertir-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.invertir-colonia {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--gold-2); letter-spacing: 1.5px; text-transform: uppercase;
}
.invertir-address {
  font-family: var(--font-italic); font-style: italic; font-size: 13px;
  color: var(--silver);
}
.invertir-specs {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin: 6px 0;
}
.invertir-specs span {
  font-size: 12.5px; color: var(--silver-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.invertir-meta {
  font-family: var(--font-body); font-size: 12px;
  color: var(--gold-2);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0;
}
.invertir-cta {
  margin-top: auto;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(37,211,102,.18), rgba(37,211,102,.06));
  border: 1px solid rgba(37,211,102,.32);
  border-radius: 5px;
  color: #a8f5c5;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  text-align: center;
  transition: all .3s;
}
.invertir-card:hover .invertir-cta {
  background: linear-gradient(135deg, rgba(37,211,102,.3), rgba(37,211,102,.12));
  border-color: rgba(37,211,102,.55); color: #fff;
}
.invertir-cta-final {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  padding: 100px 5%;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,.12);
  position: relative;
}
.invertir-cta-final::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.invertir-cta-inner { max-width: 640px; margin: 0 auto; }
.invertir-cta-final h2 {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; color: var(--white); margin-bottom: 16px;
  letter-spacing: .3px;
}
.invertir-cta-final p {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(16px, 1.7vw, 19px); color: var(--silver-2);
  line-height: 1.7; margin-bottom: 32px;
}
.btn-gold-final {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 18px 42px; border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(201,168,76,.4);
  transition: all .3s;
}
.btn-gold-final:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(201,168,76,.55);
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
}
.invertir-footer {
  background: #020a18;
  padding: 30px 5%;
  text-align: center;
}
.invertir-footer p {
  font-size: 12px; color: var(--muted);
  font-family: var(--font-body);
}
.invertir-footer a { color: var(--gold); text-decoration: none; }
.wa-float-mini {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1da851);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  transition: transform .25s;
  animation: wa-pulse 2.5s ease infinite;
}
.wa-float-mini:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 8px 28px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
}
@media (max-width: 720px) {
  .invertir-hero { padding: 110px 5% 60px; }
  .invertir-stats { gap: 0; margin-top: 32px; }
  .invertir-stat { padding: 0 18px; }
  .invertir-stat .n { font-size: 26px; }
  .invertir-section { padding: 60px 5%; }
  .invertir-grid { grid-template-columns: 1fr; gap: 16px; }
  .invertir-cta-final { padding: 70px 5%; }
}

/* ════════════════════════════════════════════════════════════════
   GALERÍA PREMIUM + LIGHTBOX
   ════════════════════════════════════════════════════════════════ */

/* hint flotante sobre detail-hero */
.gallery-zoom-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(11, 24, 41, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  color: #E8C96A;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.detail-hero:hover .gallery-zoom-hint {
  transform: translateY(-2px);
  background: rgba(201, 168, 76, 0.95);
  color: #07101E;
}

.gallery-count-badge {
  position: absolute;
  top: 14px;
  right: 60px;
  padding: 5px 12px;
  background: rgba(11, 24, 41, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* thumbs strip debajo del hero */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 18px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.gallery-thumb:hover { border-color: rgba(201, 168, 76, 0.5); transform: translateY(-2px); }
.gallery-thumb.active { border-color: #C9A84C; box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3); }
.gallery-thumb-more {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(139, 101, 32, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8C96A;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
}

/* ════ LIGHTBOX FULLSCREEN ════ */
.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.lp-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(7, 16, 30, 0.97) 0%, rgba(0, 0, 0, 0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: zoom-out;
}
.lb-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: rgba(11, 24, 41, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  color: #E8C96A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.lb-close:hover {
  background: rgba(201, 168, 76, 0.95);
  color: #07101E;
  transform: scale(1.05);
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(11, 24, 41, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  color: #E8C96A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-prev:hover, .lb-next:hover {
  background: rgba(201, 168, 76, 0.95);
  color: #07101E;
  transform: translateY(-50%) scale(1.08);
}

.lb-counter {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(11, 24, 41, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 999px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.lb-info {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  max-width: 320px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(11, 24, 41, 0.92), rgba(7, 16, 30, 0.95));
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}
.lb-info-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #A8A9AD;
  font-weight: 600;
  margin-bottom: 4px;
}
.lb-info-price {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #E8C96A;
  letter-spacing: 1px;
}

.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 90px 130px;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 168, 76, 0.15);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.lb-thumbs {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(11, 24, 41, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  max-width: 90vw;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 4;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.55;
}
.lb-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.lb-thumb.active {
  opacity: 1;
  border-color: #C9A84C;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

.lb-actions {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(11, 24, 41, 0.75);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  z-index: 4;
  backdrop-filter: blur(10px);
}
.lb-action {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: #E8C96A;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
}
.lb-action:hover { background: rgba(201, 168, 76, 0.18); }

/* Mobile lightbox */
@media (max-width: 720px) {
  .lb-stage { padding: 80px 16px 110px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-info { display: none; }
  .lb-actions { bottom: 16px; right: 16px; }
  .lb-thumbs { bottom: 16px; padding: 6px 10px; }
  .lb-thumb { width: 44px; height: 32px; }
  .lb-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .lb-counter { top: 16px; padding: 4px 12px; font-size: 11px; }
  .gallery-thumbs { padding: 8px 14px 0; }
  .gallery-thumb { width: 56px; height: 42px; }
}
