/* ============= UNIDADES PAGE ============= */

.unidades-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
}

.unidades-container {
    max-width: 970px;
    margin: 0 auto;
}

.unidades-title {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unidades-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Grid de Unidades */
.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card da Unidade */
.unidade-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.unidade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Header da Unidade */
.unidade-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    color: #ffffff;
    padding: 25px 20px;
    border-bottom: 4px solid #2196F3;
}

.unidade-nome {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.unidade-bairro {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
    font-weight: 500;
}

/* Conteúdo da Unidade */
.unidade-content {
    padding: 25px 20px;
    flex-grow: 1;
}

.unidade-info {
    margin-bottom: 20px;
}

.unidade-info:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: #1e3a5f;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.info-text {
    font-size: 14px;
    color: #555;
    margin: 4px 0;
    line-height: 1.6;
}

/* Mapa da Unidade */
.unidade-mapa {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.unidade-mapa iframe {
    width: 100%;
    height: 100%;
}

/* Footer do Card */
.unidade-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.btn-whatsapp {
    background: #2c5aa0;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #1e4070;
    transform: scale(1.02);
}

/* Informações Gerais */
.unidades-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.unidades-info h3 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.unidades-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ============= GALERIA DE UNIDADES (BUSINESS) ============= */
.unidades-gallery {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(44, 90, 160, 0.04) 100%);
    border-radius: 12px;
    padding: 30px 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gallery-header {
    text-align: center;
    margin-bottom: 24px;
}

.gallery-title {
    font-size: 26px;
    color: #1e3a5f;
    margin: 0 0 8px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-subtitle {
    font-size: 15px;
    color: #555;
    margin: 0;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.gallery-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
}


/* Responsivo */
@media (max-width: 768px) {
    .unidades-section {
        padding: 40px 15px;
    }

    .unidades-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .unidades-subtitle {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .unidades-grid {
        gap: 20px;
    }

    .unidade-header {
        padding: 20px 15px;
    }

    .unidade-nome {
        font-size: 22px;
    }

    .unidade-content {
        padding: 20px 15px;
    }

    .unidades-info {
        padding: 25px 20px;
    }

    .unidades-gallery {
        padding: 24px 20px;
        margin-top: 40px;
    }

    .gallery-title {
        font-size: 22px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .gallery-grid {
        gap: 16px;
    }

    .gallery-item img {
        height: 170px;
    }

    .unidades-info h3 {
        font-size: 20px;
    }

    .unidades-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .unidades-title {
        font-size: 24px;
    }

    .unidades-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .unidade-nome {
        font-size: 18px;
    }

    .btn-whatsapp {
        padding: 10px 20px;
        font-size: 13px;
    }

    .unidades-gallery {
        padding: 20px 16px;
        margin-top: 32px;
    }

    .gallery-title {
        font-size: 20px;
    }

    .gallery-subtitle {
        font-size: 13px;
    }

    .gallery-grid {
        gap: 14px;
    }

    .gallery-item img {
        height: 150px;
    }
}
