/* Custom styles for Unilens */

/* WhatsApp button styling */
.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: white !important;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 25px;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    margin-right: 8px;
}

/* Location item styling */
.location-item {
    padding: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.location-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    border-color: #2c5aa0;
}

.location-details strong {
    color: #2c5aa0;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.location-details span {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: block;
}

.locations-panel {
    margin-bottom: 50px;
}

.locations-panel-title {
    color: #2c5aa0;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
}

.locations-panel-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #2c5aa0, #4a7bc8);
}

/* Location icons */
.fa-map-marker-alt {
    color: #2c5aa0 !important;
    font-size: 1.2em;
}

/* Heading improvements */
.heading-layout2 .heading-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading-layout2 .heading-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.heading-layout2 .heading-desc {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-item {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .location-details strong {
        font-size: 1.1em;
    }
    
    .btn-whatsapp {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .locations-panel-title {
        font-size: 1.3em;
        text-align: center;
    }
    
    .map-container {
        height: 300px !important;
        margin-bottom: 40px;
    }
    
    .heading-layout2 .heading-title {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .location-item {
        padding: 15px;
    }
    
    .locations-panel {
        margin-bottom: 30px;
    }
}

/* ===== MAPA UNILENS - CSS LIMPO ===== */
.map-container-wrapper {
    width: 100% !important;
    margin-bottom: 40px !important;
}

.map-container {
    width: 100% !important;
    height: 500px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.15) !important;
    background: #ffffff !important;
    border: 1px solid rgba(44, 90, 160, 0.1) !important;
    /* Resetar qualquer posicionamento externo */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: auto !important;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(255, 255, 255, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 15px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(44, 90, 160, 0.1);
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: mapSpinner 1.2s linear infinite;
    margin-bottom: 20px;
}

@keyframes mapSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-loading p {
    color: #2c5aa0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Responsividade do mapa */
@media (max-width: 1024px) {
    .map-container {
        height: 450px;
        border-radius: 12px;
    }
    
    #map {
        border-radius: 12px;
    }
    
    .map-loading {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .map-container-wrapper {
        margin-bottom: 30px;
    }
    
    .map-container {
        height: 400px;
        border-radius: 10px;
        box-shadow: 0 6px 24px rgba(44, 90, 160, 0.12);
    }
    
    #map {
        border-radius: 10px;
    }
    
    .map-loading {
        border-radius: 10px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .map-loading p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 320px;
        border-radius: 8px;
    }
    
    #map {
        border-radius: 8px;
    }
    
    .map-loading {
        border-radius: 8px;
    }
    
    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .map-loading p {
        font-size: 14px;
    }
}

/* Animações para os cards de localização */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-item {
    animation: fadeInUp 0.6s ease forwards;
}

.location-item:nth-child(1) { animation-delay: 0.1s; }
.location-item:nth-child(2) { animation-delay: 0.2s; }
.location-item:nth-child(3) { animation-delay: 0.3s; }
.location-item:nth-child(4) { animation-delay: 0.4s; }
