/* ===== SEÇÃO DE ESTRUTURA ===== */
.estrutura-section {
    padding: 80px 20px;
    background: #ffffff;
}

.estrutura-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.estrutura-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 16px;
}

.estrutura-header h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7bcaef, #097e8d);
    margin: 16px auto 0;
    border-radius: 3px;
}

.estrutura-header p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.unidades-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.unidade-card {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.unidade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.unidade-header {
    padding: 20px;
    background: #ffffff;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.unidade-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1a1a2e;
    font-weight: 600;
}

.unidade-header h3 i {
    color: #097e8d;
    font-size: 1.4rem;
}

.unidade-endereco {
    padding: 12px 20px;
    background: #fafbfc;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.unidade-endereco i {
    color: #097e8d;
    font-size: 1rem;
    flex-shrink: 0;
}

.unidade-imagem-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 320px;
    background: #f5f7fa;
}

.unidade-imagem-principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.unidade-imagem-wrapper:hover .unidade-imagem-principal {
    transform: scale(1.05);
}

.unidade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    padding: 30px 20px 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unidade-imagem-wrapper:hover .unidade-overlay {
    opacity: 1;
}

.btn-ver-galeria {
    background: #ffffff;
    color: #097e8d;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-ver-galeria:hover {
    background: #097e8d;
    color: white;
    transform: scale(1.05);
}

.unidade-info {
    padding: 15px 20px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.unidade-info p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unidade-info i {
    color: #097e8d;
    font-size: 1rem;
}

/* Modal - IMAGENS MAIORES */
.galeria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.galeria-modal.active {
    display: flex;
}

.galeria-modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.galeria-modal-header {
    padding: 18px 25px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.galeria-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a2e;
}

.galeria-modal-header h3 i {
    color: #097e8d;
}

.galeria-modal-close {
    background: #f5f5f5;
    border: none;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-modal-close:hover {
    background: #097e8d;
    color: white;
    transform: rotate(90deg);
}

.galeria-slides-container {
    position: relative;
    flex: 1;
    min-height: 550px;
    overflow: hidden;
    background: #fafbfc;
}

.galeria-slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.galeria-slide.active {
    display: block;
}

.galeria-slide img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    min-width: 300px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.galeria-slide h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 1.2rem;
}

.galeria-slide p {
    color: #666;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

.galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 126, 141, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-nav:hover {
    background: #097e8d;
    transform: translateY(-50%) scale(1.05);
}

.galeria-prev {
    left: 20px;
}

.galeria-next {
    right: 20px;
}

.galeria-indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
}

.galeria-indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d5da;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-indicador.active {
    background: #097e8d;
    width: 28px;
    border-radius: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .estrutura-section {
        padding: 50px 15px;
    }
    
    .unidades-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .unidade-imagem-wrapper {
        height: 250px;
    }
    
    .galeria-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .galeria-slides-container {
        min-height: 400px;
    }
    
    .galeria-slide img {
        max-height: 300px;
        min-width: auto;
    }
    
    .galeria-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .galeria-prev {
        left: 10px;
    }
    
    .galeria-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .galeria-slides-container {
        min-height: 350px;
    }
    
    .galeria-slide img {
        max-height: 250px;
    }
    
    .galeria-slide h4 {
        font-size: 1rem;
    }
}