/* ============================================================
   prop-card-v2.css  —  Card unificada v2 (sliders del home)
   Cargado condicionalmente en index.php junto con slider-recientes.css
   ============================================================ */

/* ============ Contenedor ============ */
.prop-card-v2 {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}
.prop-card-v2:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

/* ============ Imagen ============ */
.prop-card-v2__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.prop-card-v2__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Anula el max-width/max-height global de main.css */
    max-width: none !important;
    max-height: none !important;
}

/* ============ Badges sobre la imagen ============ */

/* Izquierda: tipo de negocio (En Venta / En Alquiler) */
.prop-card-v2__badge-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 11, 11, .80);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    z-index: 2;
    line-height: 1.4;
}

/* Derecha: tipo de propiedad (Apartamento, Casa, Terreno…) */
.prop-card-v2__badge-proptype {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26, 26, 26, .90);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    line-height: 1.4;
}

/* ============ Cuerpo ============ */
.prop-card-v2__body {
    padding: 14px 16px 16px;
}

/* ============ Título ============ */
.prop-card-v2__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ib-negro-principal, #1a1a1a);
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.4;
    /* Truncar a 2 líneas */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.prop-card-v2__title:hover {
    color: var(--ib-amarillo, #fbbf24);
    text-decoration: none;
}

/* ============ Zona ============ */
.prop-card-v2__zone {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
    line-height: 1;
}

/* ============ Meta info (baños, habs, m2) ============ */
.prop-card-v2__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;   /* Una sola línea siempre */
    overflow: hidden;
}
.prop-card-v2__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;  /* Fuerza 1 línea por item */
    flex-shrink: 0;       /* No comprimir */
}
.prop-card-v2__meta-item img {
    flex-shrink: 0;
    /* Anula max-width global de main.css */
    max-width: none !important;
    max-height: none !important;
}

/* ============ Precios ============ */
.prop-card-v2__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ib-negro-principal, #1a1a1a);
    line-height: 1.2;
}
.prop-card-v2__price-secondary {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-top: 2px;
    line-height: 1.2;
}
.prop-card-v2__price-suffix {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 2px;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .prop-card-v2__meta {
        gap: 10px;
    }
    .prop-card-v2__meta-item {
        font-size: 11px;
    }
}

@media (max-width: 991px) {
    .prop-card-v2__meta {
        gap: 8px;
    }
    .prop-card-v2__meta-item img {
        width: 12px !important;
        height: 12px !important;
    }
    .prop-card-v2__badge-type,
    .prop-card-v2__badge-proptype {
        font-size: 9px;
        padding: 3px 7px;
    }
}
