/* Irrealista — Design System (DEC-015)
   Paleta propia: verde azulado + coral cálido, tipografía Inter.
   Inspiración funcional en idealista (mapa+listado), identidad propia. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --teal-light: #E6F4F2;
  --coral: #FB7C58;
  --coral-dark: #E35F39;
  --bg: #F7F8F7;
  --card: #FFFFFF;
  --border: #E4E7E4;
  --text: #1A2420;
  --text-muted: #6B7570;
  --warn-bg: #FFF3CD;
  --warn-border: #FFE08A;
  --warn-text: #7A5C00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(15, 118, 110, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(15, 118, 110, 0.14), 0 2px 6px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.brand:hover { color: var(--teal-dark); }
.brand .dot { color: var(--coral); }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.topbar nav a:hover, .topbar nav a.active { background: var(--teal-light); color: var(--teal-dark); }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 3px 10px rgba(251,124,88,.35); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--teal-light); color: var(--teal-dark); }
.btn-secondary:hover { background: #d8ece9; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f0f1f0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
/* Verde del logo (--teal), para la acción "Añadir vivienda" junto al buscador */
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 3px 10px rgba(15,118,110,.3); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.property-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .1s ease;
}
.property-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.property-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.property-card .loc { color: var(--text-muted); font-size: .85rem; margin-bottom: 10px; }
.tag-pill {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 4px 4px 0;
}
.exp-count {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--coral-dark);
  font-weight: 700;
}

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-top: 16px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}
.hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* Tag chips (multi-select) */
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
}
.tag-chip:hover { border-color: var(--teal); }
.tag-chip.selected { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Alerts ---------- */
.alert-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-top: 12px;
}
.alert-success {
  background: #E6F4F2;
  border: 1px solid #9FD6CE;
  color: var(--teal-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-top: 12px;
}

/* ---------- Wizard ---------- */
.wizard-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.wizard-step {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: #eef0ee;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
}
.wizard-step.active { background: var(--teal); color: #fff; }
.wizard-step.done { background: var(--teal-light); color: var(--teal-dark); }

.existing-match {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 10px;
  cursor: pointer;
  transition: all .12s ease;
}
.existing-match:hover { border-color: var(--teal); background: var(--teal-light); }
.existing-match.selected { border-color: var(--coral); background: #fff0ea; }

/* ---------- Search hero ---------- */
.hero {
  text-align: center;
  padding: 36px 0 28px;
}
.hero h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--text-muted); margin: 0 0 24px; }
.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}
.search-box input { flex: 1; min-width: 160px; }
.search-box-field { position: relative; flex: 1; min-width: 160px; }
.search-box-field input { width: 100%; }
.search-box-actions { display: flex; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.btn-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
}

/* ---------- Autocomplete dropdown (búsqueda tolerante bilingüe) ---------- */
.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  text-align: left;
}
.ac-dropdown.open { display: block; }
.ac-item { padding: 10px 14px; font-size: .9rem; cursor: pointer; }
.ac-item:hover, .ac-item.active { background: var(--teal-light); color: var(--teal-dark); }
.ac-empty { padding: 10px 14px; font-size: .85rem; color: var(--text-muted); }

#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 28px; box-shadow: var(--shadow); }

/* OSM estándar desaturado para un look claro/minimalista sin depender de
   una API key de terceros (CARTO empezó a exigirla en sus tiles). */
.map-tiles-light { filter: grayscale(35%) brightness(1.08) contrast(0.95); }

/* ---------- Barra de filtros del mapa (DEC-026) ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.filter-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .12s ease;
}
.filter-chip:hover { border-color: var(--teal); }
.filter-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-bar select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.filter-reset {
  border: none;
  background: none;
  color: var(--coral-dark);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}
.filter-reset:hover { text-decoration: underline; }
.filter-count { margin-left: auto; font-size: .8rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Pines de precio en el mapa (DEC-026) ---------- */
.price-pin-wrapper { background: none; border: none; }
.price-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  white-space: nowrap;
  border: 2px solid #fff;
}
.price-pin-alquiler { background: var(--teal); }
.price-pin-compra { background: var(--coral); }
.price-pin-neutral {
  background: var(--card);
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 999px;
}
.price-cluster-wrapper { background: none; border: none; }
.price-cluster {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-dark);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ---------- Tarjetas del grid: precio ---------- */
.card-price { font-size: 1rem; font-weight: 800; color: var(--teal-dark); margin: 4px 0; }
.card-price-year { font-size: .76rem; font-weight: 600; color: var(--text-muted); }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.section-title { font-size: 1.1rem; font-weight: 700; margin: 32px 0 4px; }

.footer-note { text-align: center; color: var(--text-muted); font-size: .78rem; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .page { padding: 16px 14px 48px; }
  .hero h1 { font-size: 1.5rem; }
  .search-box { flex-direction: column; }
  #map { height: 300px; }
  .wizard-steps { font-size: .7rem; }
  .filter-bar { gap: 10px; padding: 10px 12px; }
  .filter-count { margin-left: 0; width: 100%; }
}

/* ---------- Star rating (DEC-018) ---------- */
.star-picker { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.star-picker .star {
  font-size: 1.8rem;
  line-height: 1;
  color: #d8dbd6;
  cursor: pointer;
  transition: color .1s ease, transform .1s ease;
  user-select: none;
}
.star-picker .star:hover { transform: scale(1.1); }
.star-picker .star.filled { color: #F5A623; }
.star-picker-label { margin-left: 10px; font-size: .85rem; color: var(--text-muted); font-weight: 600; }

.stars-display { display: inline-flex; gap: 1px; color: #F5A623; font-size: 1rem; letter-spacing: 1px; }
.stars-display .empty { color: #e2e4df; }
.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 14px;
}
.rating-summary .avg,
.property-header-rating .avg { font-size: 1.8rem; font-weight: 800; color: var(--teal-dark); }
.rating-summary .count,
.property-header-rating .count { font-size: .82rem; color: var(--text-muted); text-align: right; }

/* ---------- Photo upload previews (anadir.html) ---------- */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.photo-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  font-size: .75rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Review cards (vivienda.html) ---------- */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-type-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.review-comment { margin: 12px 0 0; line-height: 1.5; color: var(--text); }
.review-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.review-price { font-size: 1.15rem; font-weight: 800; color: var(--teal-dark); }
.price-comparison { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-comparison-up { background: #FDEBE5; color: var(--coral-dark); }
.price-comparison-down { background: #E3F6EA; color: #1F7A42; }
.price-comparison-equal { background: var(--teal-light); color: var(--teal-dark); }
.price-comparison-na { font-size: .76rem; }
.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.review-photo-grid img {
  width: 100%; height: 110px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .1s ease;
}
.review-photo-grid img:hover { transform: scale(1.03); }

/* Lightbox simple para ampliar fotos */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,15,12,.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; cursor: zoom-out; padding: 24px;
}
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer; user-select: none;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-count {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .82rem; background: rgba(0,0,0,.4);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Tarjetas de candidatas a duplicado (popup de reporte) ---------- */
.duplicate-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.duplicate-candidate-card {
  display: block;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.duplicate-candidate-card input[type="radio"] {
  position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; z-index: 2;
}
.duplicate-candidate-card:has(input:checked) {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px var(--teal-light);
}
.duplicate-candidate-photo {
  height: 100px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.duplicate-candidate-photo img { width: 100%; height: 100%; object-fit: cover; }
.duplicate-candidate-body { padding: 8px 10px 10px; }
.duplicate-candidate-tags { font-size: .75rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 4px; }
.duplicate-candidate-comment { font-size: .78rem; color: var(--text-muted); margin: 6px 0; font-style: italic; line-height: 1.35; }
.duplicate-candidate-none {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ---------- Características de vivienda (anadir.html / vivienda.html) DEC-023 ---------- */
.feature-group { margin-top: 18px; }
.feature-group-label {
  font-weight: 700; font-size: .88rem; color: var(--text);
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.feature-group-label .req { color: var(--coral-dark); font-size: .72rem; font-weight: 600; }
.chip-select-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-select {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
}
.chip-select:hover { border-color: var(--teal); }
.chip-select.selected { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-select.chip-positive.selected { background: #2F9E5B; border-color: #2F9E5B; }
.chip-select.chip-negative.selected { background: var(--coral-dark); border-color: var(--coral-dark); }

.secondary-features-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; cursor: pointer; font-weight: 700; font-size: .85rem;
  color: var(--teal-dark); user-select: none;
}
.secondary-features-toggle .arrow { transition: transform .15s ease; display: inline-block; }
.secondary-features-toggle.open .arrow { transform: rotate(90deg); }
.secondary-features-body { display: none; margin-top: 4px; }
.secondary-features-body.open { display: block; }

/* ---------- Ficha de vivienda: cabecera con características (DEC-023) ---------- */
.property-header-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.property-header-title-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.property-header-title-row h2 { margin: 0; }
.property-type-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: .78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.property-header-rating-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.latest-price-box { text-align: right; }
.latest-price-box .amount { font-size: 1.3rem; font-weight: 800; color: var(--teal-dark); display: block; }
.latest-price-box .year-tag {
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  background: var(--teal-light); padding: 2px 9px; border-radius: 999px;
  display: inline-block; margin-top: 2px;
}
.property-header-rating {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex-shrink: 0;
}
.property-header-features {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px;
}
.feature-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--text);
}
.feature-pill .icon { font-size: 1rem; }
.feature-pill-secundaria { color: var(--text-muted); font-size: .8rem; }

.conclusions-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .conclusions-box { grid-template-columns: 1fr; } }
.conclusions-col-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.conclusions-col-title.positive { color: #2F9E5B; }
.conclusions-col-title.negative { color: var(--coral-dark); }
.conclusion-item {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .85rem; padding: 5px 0; border-bottom: 1px dashed var(--border);
}
.conclusion-item .count { color: var(--text-muted); font-size: .76rem; }

/* ---------- Galería de fotos de la vivienda: carrusel (DEC-023/rediseño) ---------- */
.property-gallery-carousel {
  position: relative;
  margin: 10px 0 0;
}
.property-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.property-gallery-track img {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(420px, 82vw);
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s ease;
}
.property-gallery-track img:hover { transform: scale(1.015); }
.property-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--teal-dark);
  user-select: none; z-index: 2;
}
.property-gallery-nav.prev { left: -6px; }
.property-gallery-nav.next { right: -6px; }
@media (max-width: 640px) { .property-gallery-nav { display: none; } }
.property-gallery-count {
  margin-top: 6px; font-size: .78rem; color: var(--text-muted); text-align: right;
}

/* ---------- Insignias de evidencia verificada (DEC-023) ---------- */
.evidence-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.evidence-badge.pending { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.evidence-badge.verified { background: #E3F6EA; color: #1F7A42; border: 1px solid #A9E3BE; }

.external-listing-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--teal-dark);
  background: var(--teal-light);
  padding: 7px 14px; border-radius: 999px;
  margin-top: 10px; text-decoration: none;
  transition: background .15s ease;
}
.external-listing-link:hover { background: #d4ece6; }
