/*
 * La tarjeta de propiedad. Se carga DESPUÉS del <style> de cada página, así que lo que
 * aquí se redefine gana — la tarjeta vieja era un enlace y ahora es un contenedor con
 * enlaces dentro, y varias reglas cambian de sujeto.
 *
 * Molde de zonasurtijuana.com, vestido con la marca: azul marino #004878 y verde #20B058.
 * ⚠️ El verde de marca no aguanta texto blanco (2.83:1). Para texto va --green-dk.
 */

.tarjeta {
  border: 1px solid var(--line);
  border-radius: var(--radio, 14px);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 48, 79, .13); }
.tarjeta.sin-ficha:hover { transform: none; box-shadow: none; }

/* ── La foto y el chip de la zona ── */
.tarjeta .t-foto { position: relative; aspect-ratio: 4/3; background: var(--bg2); overflow: hidden; }
.tarjeta .t-foto-link { display: block; width: 100%; height: 100%; }
.tarjeta .t-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarjeta:hover .t-foto img { transform: scale(1.04); }
.tarjeta.sin-ficha:hover .t-foto img { transform: none; }
.tarjeta .t-sin-foto {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #b9c4d2; font-size: 14px;
}

/* Arriba a la izquierda, sobre la foto: dónde está. Es un botón de verdad — lleva al
   catálogo filtrado por esa zona. */
.zona-chip {
  position: absolute; top: 11px; left: 11px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  padding: 7px 13px; border-radius: 30px;
  background: rgba(255, 255, 255, .95); color: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 30, 50, .22);
  max-width: calc(100% - 22px);
}
.zona-chip:hover { color: var(--green-dk); }
.zona-chip .ico { width: 14px; height: 14px; color: var(--green-dk); flex-shrink: 0; }

/* ── El cuerpo ── */
.tarjeta .t-cuerpo { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.tarjeta .t-titulo {
  display: block;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: 16.5px; line-height: 1.3; margin: 0;
}
a.t-titulo:hover { color: var(--green-dk); }

/* Las cápsulas: qué es · cómo se ofrece · en qué estado. A propósito MÁS LIGERAS que el
   chip de la zona — el chip dice dónde estás y manda; éstas clasifican. */
.tarjeta .t-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tarjeta .t-tags .tag {
  font-size: 11.5px; font-weight: 600; line-height: 1.55;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--mut);
  white-space: nowrap;
}
.tarjeta .t-tags a.tag:hover { border-color: var(--green); color: var(--green-dk); }
/* «Apartada» no enlaza: el catálogo no filtra por estado. Se ve distinta para que no
   parezca un botón que no responde. */
.tarjeta .t-tags .tag.inerte {
  background: var(--ambar-soft, #fdf3e0); border-color: transparent; color: var(--ambar, #9a6400);
}

.tarjeta .t-precio {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.tarjeta .t-precio .mon { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--mut); }
.tarjeta .t-precio small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--mut); }
.tarjeta .t-precio .sin-precio { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--mut); }

/* Los datos, en UNA sola línea. Por eso el significado lo cargan los iconos y no las
   palabras; el `title` lo conserva para quien no reconozca el icono y para lectores de
   pantalla, que es justo lo que se pierde al quitar el texto. */
.tarjeta .t-specs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--navy); font-variant-numeric: tabular-nums;
}
.tarjeta .t-specs span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.tarjeta .t-specs .ico { width: 15px; height: 15px; color: #a3a8b3; }

@media (max-width: 420px) {
  .tarjeta .t-specs { gap: 8px; font-size: 12.5px; }
}
