/* ===========================
   Overlay Indicativo da Galeria
   =========================== */

.galeria-overlay-indicativo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.galeria-overlay-indicativo.visivel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeInOverlay 0.5s ease;
}

.galeria-overlay-indicativo.desaparecendo {
    animation: fadeOutOverlay 0.3s ease forwards;
}

/* Conteúdo do overlay */
.galeria-indicativo-conteudo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ícone de zoom */
.galeria-icone-zoom {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.galeria-icone-zoom svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2;
}

/* Indicativo de deslize na parte inferior */
.galeria-indicativo-setas {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: bounceIn 0.6s ease 0.4s backwards;
}

.galeria-indicativo-setas svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    animation: slideHorizontal 1.5s ease-in-out infinite;
}

.galeria-indicativo-setas .seta-esquerda {
    animation-delay: 0s;
    animation-direction: reverse;
}

.galeria-indicativo-setas .seta-direita {
    animation-delay: 0s;
}

/* ===========================
   Animações
   =========================== */

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

@keyframes slideHorizontal {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* ===========================
   Responsivo
   =========================== */

@media (max-width: 768px) {
    .galeria-icone-zoom {
        width: 48px;
        height: 48px;
    }

    .galeria-icone-zoom svg {
        width: 28px;
        height: 28px;
    }

    .galeria-indicativo-setas {
        bottom: 16px;
        gap: 16px;
        display: flex;
    }

    .galeria-indicativo-setas svg {
        width: 24px;
        height: 24px;
    }

    /* Para mobile: se tiver apenas uma seta (direita), mostrar só ela */
    .galeria-indicativo-setas.somente-mobile {
        gap: 0;
        justify-content: flex-end;
        right: 16px;
        left: auto;
        transform: none;
        bottom: 16px;
    }

    .galeria-indicativo-setas.somente-mobile .seta-direita {
        animation: slideHorizontalMobile 1.5s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .galeria-icone-zoom {
        width: 40px;
        height: 40px;
    }

    .galeria-icone-zoom svg {
        width: 24px;
        height: 24px;
    }

    .galeria-indicativo-setas {
        bottom: 12px;
        gap: 12px;
    }

    .galeria-indicativo-setas svg {
        width: 20px;
        height: 20px;
    }

    .galeria-indicativo-setas.somente-mobile {
        right: 12px;
        bottom: 12px;
    }
}

/* Animação customizada para mobile */
@keyframes slideHorizontalMobile {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(6px);
        opacity: 1;
    }
}

/* ===========================
   Posicionamento do elemento
   =========================== */

.header-gallery-carousel.zoom-gallery .item {
    position: relative;
}

.header-gallery-carousel.zoom-gallery .item .galeria-overlay-indicativo {
    position: absolute;
}

/* Garantir que a estrutura da galeria funcione corretamente APENAS NO DESKTOP */
@media (min-width: 1201px) {
    .featured-section.featured-section-gallery {
        position: relative !important;
        height: 450px !important;
        margin-top: 150px !important;
    }

    .listing-main-info {
        position: absolute !important;
        bottom: 40px;
        z-index: 20;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
