/* Start custom CSS *//* =========================================================
   ESTILO PERSONALIZADO PARA TARJETAS DE PROPIEDADES HOUZEZ
   ========================================================= */

/* 1. Tarjeta principal: bordes redondeados y sombra */
.item-wrap,
.property-item,
.item-listing-v1,
.item-listing-v2 {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.item-wrap:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* 2. Imagen del producto más grande (ancho proporcional) */
.item-wrap .item-header,
.property-item .item-media-price {
    flex: 0 0 32% !important; /* Incrementa el espacio reservado para la imagen */
    max-width: 32% !important;
    min-height: 200px !important;
}

.item-wrap .item-media-price img,
.property-item .figure-image img {
    border-top-left-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    object-fit: cover !important;
    height: 100% !important;
}

/* 3. Flechas de desplazamiento con fondo circular */
.slick-prev, 
.slick-next,
.item-wrap .slick-arrow,
.listing-slider-variable .slick-arrow {
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
}

.slick-prev:hover, 
.slick-next:hover {
    background-color: #ffffff !important;
}

.slick-prev::before, 
.slick-next::before,
.item-wrap .slick-arrow::before {
    color: #333333 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

/* 4. Título de la propiedad resaltado */
.item-title,
.item-title a,
.property-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}


/* =========================================================
   INTEGRACIÓN Y LIMPIEZA DEL FOOTER REUBICADO
   ========================================================= */

.item-wrap-v8 .item-footer,
.item-wrap .item-footer {
    background-color: transparent !important; /* Elimina el fondo gris */
    border: none !important;                  /* Elimina bordes o divisiones feas */
    padding: 12px 0 0 0 !important;          /* Quita el padding lateral para alinearlo con el texto */
    margin-top: 10px !important;
}


/* =========================================================
   ESTILO EXACTO PARA BOTONES DE HOUZEZ (.item-wrap-v8)
   ========================================================= */

/* Ajuste general del contenedor de botones */
.item-wrap-v8 .item-buttons-wrap {
    gap: 8px !important;
}

/* 1. Limpieza general para todos los botones en el contenedor */
.item-wrap-v8 .item-buttons-wrap .btn-item {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    height: 38px !important;
    box-shadow: none !important;
    text-transform: none !important;
}

/* 2. Botón Principal (Contactar / Correo) -> Fondo Naranja Sólido */
.item-wrap-v8 .item-buttons-wrap .hz-email-popup-js,
.item-wrap-v8 .item-buttons-wrap .btn-primary {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #ffffff !important;
}

.item-wrap-v8 .item-buttons-wrap .hz-email-popup-js:hover,
.item-wrap-v8 .item-buttons-wrap .btn-primary:hover {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
    color: #ffffff !important;
}

/* 3. Botón "Llámenos" -> Texto e ícono Naranja, sin fondo ni borde */
.item-wrap-v8 .item-buttons-wrap .hz-call-popup-js {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #ff6600 !important;
}

.item-wrap-v8 .item-buttons-wrap .hz-call-popup-js i,
.item-wrap-v8 .item-buttons-wrap .hz-call-popup-js svg {
    color: #ff6600 !important;
}

.item-wrap-v8 .item-buttons-wrap .hz-call-popup-js:hover {
    background-color: rgba(255, 102, 0, 0.08) !important;
    color: #e65c00 !important;
}

/* 4. Botón "WhatsApp" -> Texto e ícono Verde, sin fondo ni borde */
.item-wrap-v8 .item-buttons-wrap .hz-whatsapp-popup-js,
.item-wrap-v8 .item-buttons-wrap a[href*="whatsapp"] {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #00c853 !important;
}

.item-wrap-v8 .item-buttons-wrap .hz-whatsapp-popup-js i,
.item-wrap-v8 .item-buttons-wrap .hz-whatsapp-popup-js svg,
.item-wrap-v8 .item-buttons-wrap a[href*="whatsapp"] i {
    color: #00c853 !important;
}

.item-wrap-v8 .item-buttons-wrap .hz-whatsapp-popup-js:hover,
.item-wrap-v8 .item-buttons-wrap a[href*="whatsapp"]:hover {
    background-color: rgba(0, 200, 83, 0.08) !important;
    color: #00a843 !important;
}

/* =========================================================
   ESTILOS RESPONSIVOS PARA DISPOSITIVOS MÓVILES (Houzez v8)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Cambiar la distribución principal a columna vertical */
    .item-wrap-v8 .d-flex.align-items-center.flex-column.flex-md-row,
    .item-wrap .d-flex.align-items-center.flex-column.flex-md-row {
        flex-direction: column !important;
    }

    /* 2. Hacer que la imagen ocupe todo el ancho superior de la tarjeta */
    .item-wrap .item-header,
    .property-item .item-media-price {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 220px !important;
    }

    /* 3. Ajustar los bordes redondeados de la imagen para móviles (arriba redondeado, abajo recto) */
    .item-wrap .item-media-price img,
    .property-item .figure-image img {
        border-top-left-radius: 16px !important;
        border-top-right-radius: 16px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* 4. Asegurar que los botones inferiores se adapten al ancho en pantallas chicas */
    .item-wrap .item-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .item-wrap .item-footer-right-wrap {
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }
}/* End custom CSS */