/* ============================================
   CARROSSEL - VERSÃO FINAL COMPLETA
   Conteúdo 100% visível em TODAS as resoluções
   ============================================ */

/* === ESTRUTURA BASE === */
.gallery-image-carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--azul-soft);
    border-radius: 0;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 0;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

/* === BOTÕES DE NAVEGAÇÃO === */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 90, 133, 0.8);
    border: none;
    color: var(--branco-neve);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-btn:hover {
    background: rgba(3, 90, 133, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* BOTÃO FULLSCREEN - SEMPRE VISÍVEL EM TODAS RESOLUÇÕES */
.carousel-btn.fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    width: 36px;
    height: 36px;
    background: rgba(249, 212, 35, 0.9);
    opacity: 1 !important;
    z-index: 11;
}

.carousel-btn.fullscreen:hover {
    background: rgba(249, 212, 35, 1);
    transform: scale(1.1);
}

.carousel-btn.fullscreen svg {
    width: 20px;
    height: 20px;
}

/* Mostrar botões prev/next no hover (desktop) */
.gallery-item:hover .carousel-btn.prev,
.gallery-item:hover .carousel-btn.next {
    opacity: 1;
}

/* === INDICADORES === */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-indicators .indicator.active {
    background: var(--dourado-solar);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(249, 212, 35, 0.5);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* === OVERLAY === */
.gallery-image-carousel .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top, 
        rgba(3, 90, 133, 0.95) 0%, 
        rgba(3, 90, 133, 0.7) 40%, 
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.5rem 3rem;
    opacity: 0;
    transition: var(--transicao);
    z-index: 5;
    pointer-events: none;
}

.gallery-item:hover .gallery-image-carousel .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    width: 100%;
    pointer-events: auto;
}

.gallery-info h3 {
    color: var(--branco-neve);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.gallery-info p {
    color: var(--dourado-solar);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* === DETALHES DO CARD - SEMPRE VISÍVEIS === */
.gallery-details {
    padding: 1.5rem;
    background: var(--branco-neve);
    border-radius: 0;
    text-align: center;
}

.gallery-details h4 {
    color: var(--azul-oceano);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.gallery-description {
    color: var(--cinza-medio);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: center;
}

.gallery-specs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.gallery-specs span {
    background: var(--azul-soft);
    color: var(--azul-oceano);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* === CORREÇÃO CRÍTICA: BORDAS UNIFORMES === */
.gallery-item {
    background: var(--branco-neve);
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px var(--sombra);
    transition: var(--transicao);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--sombra-forte);
}

/* Garantir que elementos internos não tenham bordas */
.gallery-image-carousel,
.carousel-img {
    border-radius: 0 !important;
}

/* === RESPONSIVIDADE - TABLET === */
@media (max-width: 768px) {
    .gallery-image-carousel {
        height: 220px;
    }
    
    /* Botões sempre visíveis no mobile */
    .carousel-btn.prev,
    .carousel-btn.next {
        width: 32px;
        height: 32px;
        opacity: 1 !important;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .carousel-btn.fullscreen {
        width: 32px;
        height: 32px;
        opacity: 1 !important;
    }
    
    .carousel-indicators {
        bottom: 12px;
    }
    
    .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-indicators .indicator.active {
        width: 16px;
    }
    
    .gallery-image-carousel .gallery-overlay {
        padding: 0.8rem 1rem 3rem;
    }
    
    .gallery-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .gallery-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Detalhes visíveis e completos */
    .gallery-details {
        padding: 1.2rem;
        text-align: center;
    }
    
    .gallery-details h4 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .gallery-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .gallery-specs {
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .gallery-specs span {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    
    /* Garantir bordas uniformes */
    .gallery-item {
        margin-bottom: 1.5rem;
        border-radius: 15px !important;
        overflow: hidden !important;
    }
}

/* === RESPONSIVIDADE - SMARTPHONE === */
@media (max-width: 480px) {
    .gallery-image-carousel {
        height: 200px;
    }
    
    .carousel-btn.prev,
    .carousel-btn.next {
        width: 30px;
        height: 30px;
        opacity: 1 !important;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-btn.fullscreen {
        width: 30px;
        height: 30px;
        opacity: 1 !important;
    }
    
    .carousel-btn.fullscreen svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .gallery-image-carousel .gallery-overlay {
        padding: 0.7rem 0.8rem 2.8rem;
    }
    
    .gallery-info h3 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    /* Detalhes visíveis */
    .gallery-details {
        padding: 1rem;
        text-align: center;
    }
    
    .gallery-details h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .gallery-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.9rem;
        text-align: center;
    }
    
    .gallery-specs {
        gap: 0.4rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .gallery-specs span {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }
    
    /* Bordas uniformes */
    .gallery-item {
        border-radius: 15px !important;
        overflow: hidden !important;
        margin-bottom: 1.5rem;
    }
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
