/* Google Maps Responsive Styling */

/* Footer Map Styles */
.footer-map {
    width: 100%;
    max-width: 450px;
    margin-top: 1rem;
}

.footer-map h3 {
    margin-bottom: 0.75rem;
    color: #fff;
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Page Map Styles */
.contact-map {
    width: 100%;
    margin-top: 1.5rem;
}

.contact-map h3 {
    margin-bottom: 0.75rem;
}

/* Get Directions Button */
.directions-button {
    margin-top: 12px;
    text-align: center;
}

.get-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.get-directions-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.get-directions-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.contact-directions {
    margin-top: 15px;
}

/* Fix contact form submit button */
.submit-btn {
    padding: 10px 20px;
    font-size: 16px;
    width: auto;
    height: auto;
    line-height: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-map {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .get-directions-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Map loading animation */
.map-container::before {
    content: "Loading map...";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.map-container.loaded::before {
    opacity: 0;
    z-index: -1;
}
