.ai-featured-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    overflow-x: clip; /* evita scroll horizontal por subpíxeles/gaps */
}

.ai-featured-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.4s ease;
    will-change: transform;
}

.ai-featured-slide {
    box-sizing: border-box;
    padding: calc(var(--ai-featured-gap, 12px) / 2);
    min-width: 0; /* permite que el contenido se ajuste dentro del slide */
}

/* Evitar cortes verticales heredados del grid cuando se usa dentro del slider */
.ai-featured-slider .property-card-featured {
    height: auto !important;
}

.ai-featured-slider .property-media-featured {
    position: relative !important;
    width: 100% !important;
    height: var(--ai-featured-image-height, 300px) !important;
}

.ai-featured-image-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
}

.ai-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Desactivar zoom/transform en hover que pueda venir del CSS global del grid */
.ai-featured-slider .ai-featured-image,
.ai-featured-slider .property-image-featured {
    transform: none !important;
    transition: transform .35s ease, filter .3s !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    object-position: center center !important;
    transform-origin: center center !important;
    will-change: transform;
    backface-visibility: hidden;
}
.ai-featured-slider .property-media-featured:hover .ai-featured-image,
.ai-featured-slider .property-media-featured:hover .property-image-featured {
    transform: scale(1.05) !important;
}

/* Anular escala de la tarjeta featured del grid dentro del slider */
.ai-featured-slider .property-card-featured:hover {
    transform: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

/* Evitar recortes por overflow y asegurar contenedor estable */
.ai-featured-slider .property-media-featured {
    overflow: hidden;
}

/* Mantener el efecto solo en la imagen, no en la tarjeta completa */
.ai-featured-slider .property-card-featured:hover {
    transform: none !important;
}

.ai-featured-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
}

.ai-featured-prev,
.ai-featured-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 36px;
    border: 0;
    background: rgba(255,255,255,0.9) !important;
    color: #000;
    cursor: pointer;
    z-index: 2;
}

.ai-featured-prev { left: 8px; }
.ai-featured-next { right: 8px; }

.ai-featured-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.ai-featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    border: 0;
    background: #ccc;
}

.ai-featured-dot.active {
    background: #333;
}


