/* Map Styles */
.map-section {
    background-color: #f8f9fa;
    padding: 50px 0;
    margin: 40px 0;
}

.map-section h2 {
    color: #1a3a8f;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.map-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.1rem;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

#map {
    height: 450px;
    flex: 1 1 65%;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e7ff;
    overflow: hidden;
    position: relative;
}

.map-address {
    flex: 1 1 25%;
    min-width: 250px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-address h3 {
    color: #1a3a8f;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.map-address p {
    font-size: 1.1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.map-marker {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: 3px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a3a8f"><path d="M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.directions-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a3a8f 0%, #4e73df 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    margin-top: 10px;
}

.directions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.3);
}

.directions-btn:active {
    transform: translateY(-1px);
}

/* Customize map marker popup */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
}

.leaflet-popup-content {
    margin: 10px 15px;
    line-height: 1.5;
}

.custom-popup h4 {
    margin: 0 0 5px 0;
    color: #1a3a8f;
    font-size: 16px;
}

.custom-popup p {
    margin: 0;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }
    
    #map {
        height: 350px;
        min-height: 350px;
        width: 100%;
        display: block;
    }
    
    .map-address {
        text-align: center;
    }
    
    .map-address p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #map {
        height: 300px;
        min-height: 300px;
        width: 100%;
        display: block;
    }
    
    .map-section {
        padding: 30px 0;
    }
}