/* Slider de fotos para tarjetas de propiedad (index.php, propiedades.php).
   Reutiliza el contenedor .property-grid-media existente; no altera badges/ribbons. */

.property-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.property-slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.property-slider-slide.is-active {
    opacity: 1;
}

.property-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease;
    padding: 0;
}

.property-slider-arrow:hover {
    background: rgba(0, 0, 0, .65);
}

.property-slider-arrow.prev {
    left: 8px;
}

.property-slider-arrow.next {
    right: 8px;
}

@media (hover: hover) {
    .property-slider:hover .property-slider-arrow {
        opacity: 1;
    }
}

@media (hover: none) {
    .property-slider-arrow {
        opacity: .55;
    }
}

.property-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    /* pointer-events:auto en todo el pill (no solo en los puntos) para que un click
       entre puntos no "atraviese" hacia la tarjeta y abra la ficha por error. */
    pointer-events: auto;
}

.property-slider-dot {
    pointer-events: auto;
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: width .15s ease, background-color .15s ease, border-radius .15s ease;
}

.property-slider-dot.is-active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}
