.marimba-stage[data-rental-gallery] {
    touch-action: pan-y;
    outline: none;
}

.marimba-stage[data-rental-gallery]:focus-visible {
    border-color: rgba(165, 180, 252, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(129, 140, 248, 0.2),
        0 30px 80px rgba(0, 0, 0, 0.28);
}

.marimba-stage .rental-gallery-track {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.marimba-stage .rental-slide {
    position: relative;
    z-index: 1;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 3%;
    object-fit: contain;
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.42));
    transform: translateY(2%);
    user-select: none;
    -webkit-user-drag: none;
}

.rental-gallery-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(8, 8, 20, 0.64);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, border-color 0.18s ease,
        transform 0.18s ease, box-shadow 0.18s ease;
}

.rental-gallery-arrow:hover {
    border-color: rgba(196, 181, 253, 0.72);
    background: rgba(102, 126, 234, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.rental-gallery-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.rental-gallery-arrow:focus-visible,
.rental-gallery-dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.rental-gallery-arrow svg {
    width: 22px;
    height: 22px;
}

.rental-gallery-prev {
    left: 14px;
}

.rental-gallery-next {
    right: 14px;
}

.rental-gallery-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 17px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.rental-gallery-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(8, 8, 20, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease,
        border-color 0.2s ease;
}

.rental-gallery-dots button.is-active {
    width: 24px;
    border-color: #c4b5fd;
    border-radius: 999px;
    background: #c4b5fd;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .rental-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .rental-gallery-prev {
        left: 10px;
    }

    .rental-gallery-next {
        right: 10px;
    }

    .rental-gallery-dots {
        bottom: 12px;
    }

    .model-label {
        bottom: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marimba-stage .rental-gallery-track {
        transition: none;
    }
}
