/*
 * Property slider — temporary experiment used by index-temporary.html.
 * Keeps the existing .property-tile look, but arranges columns in a
 * horizontally swipable track instead of a static 4-column grid.
 */

.property-slider {
    position: relative;
    width: 100%;
    margin-top: 24px;
    /* Behave like the original .property-tiles: take the leftover vertical
     * space inside .properties-inner so tiles can shrink to fit the section
     * instead of pushing the dots indicator below the 100vh fold. */
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.property-slider__viewport {
    overflow: hidden;
    /* leave room on the sides so the focus ring of edge tiles is not clipped */
    padding: 2px;
    flex: 1;
    min-height: 0;
}

.property-slider__track {
    display: flex;
    gap: 14px;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.property-slider__track.is-dragging {
    transition: none;
    cursor: grabbing;
}

/* Disable native image / anchor drag-and-drop so our slider gets the mouse */
.property-slider__track img,
.property-slider__track a {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Default: 4 slides visible on desktop */
.property-slide {
    flex: 0 0 calc((100% - 14px * 3) / 4);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.property-slide__label {
    display: block;
    padding: 10px 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-white, #ffffff);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    text-align: center;
    text-transform: lowercase;
}

.property-slide__label--empty {
    visibility: hidden;
}

/* Reuse existing .property-tile styles — no overrides needed here. */

/* Arrow buttons */
.property-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.property-slider__btn:hover,
.property-slider__btn:focus-visible {
    background: rgba(0, 0, 0, 0.65);
}

.property-slider__btn:active {
    transform: translateY(-50%) scale(0.95);
}

.property-slider__btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.property-slider__btn svg {
    width: 22px;
    height: 22px;
}

.property-slider__btn--prev {
    left: -22px;
}

.property-slider__btn--next {
    right: -22px;
}

/* Dots indicator */
.property-slider__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.property-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.property-slider__dot.is-active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.15);
}

/* Responsive — tablet: 2 visible */
@media (max-width: 1024px) {
    .property-slide {
        flex: 0 0 calc((100% - 14px) / 2);
    }

    .property-slider__btn--prev {
        left: 4px;
    }

    .property-slider__btn--next {
        right: 4px;
    }
}

/* Mobile: 1 visible */
@media (max-width: 640px) {
    .property-slide {
        flex: 0 0 100%;
    }

    .property-slider__btn {
        width: 40px;
        height: 40px;
    }
}
