/* ==========================================================================
   In-Place Quick Flip / Slideshow for About Section ("OUR HERITAGE, YOUR HOME")
   ========================================================================== */

.about-flipper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    background: #0f0f12;
}

.about-flipper__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    will-change: transform;
}

/* Invisible placeholder in normal flow that enforces exact responsive height */
.about-flipper__base-img {
    display: block;
    width: 100%;
    height: auto;
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.about-flipper__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-flipper__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.75s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.75s;
    pointer-events: none;
    display: block;
}

.about-flipper__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Quick interactive indicator dots */
.about-flipper__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(15, 15, 18, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-flipper:hover .about-flipper__dots {
    background: rgba(15, 15, 18, 0.85);
    border-color: rgba(212, 175, 55, 0.6);
}

.about-flipper__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-flipper__dot.is-active {
    width: 18px;
    border-radius: 10px;
    background: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
}

/* Tap/click pulse ripple feedback */
.about-flipper__hint {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 15, 18, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    display: grid;
    place-items: center;
    font-size: 12px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[dir="rtl"] .about-flipper__hint,
html[lang="ar"] .about-flipper__hint {
    right: auto;
    left: 16px;
}

.about-flipper:hover .about-flipper__hint {
    opacity: 1;
}

@media (max-width: 767px) {
    .about-flipper__dots {
        bottom: 12px;
        padding: 4px 10px;
        gap: 5px;
    }
    
    .about-flipper__dot {
        width: 5px;
        height: 5px;
    }
    
    .about-flipper__dot.is-active {
        width: 14px;
    }
}
