/* ========================================
   Google Maps Section
   ======================================== */

.google-maps-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5b9bd5;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Map Container */
.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
}

.google-map {
    border-radius: 4px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.google-map:hover {
    filter: grayscale(0%);
}

/* Contact Info Overlay */
.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 350px;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5b9bd5;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: #5b9bd5;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5b9bd5;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.btn-contact {
    display: block;
    width: 100%;
    padding: 12px;
    background: #5b9bd5;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 79, 135, 0.3);
}

.btn-contact:hover {
    background: #5b9bd5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 79, 135, 0.4);
    color: #ffffff;
}

/* Dark Mode */
[data-theme="dark"] .google-maps-section {
    background: #5b9bd5;
}

[data-theme="dark"] .section-title {
    color: #ffffff;
}

[data-theme="dark"] .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .contact-info-card {
    background: rgba(26, 58, 92, 0.98);
}

[data-theme="dark"] .contact-title {
    color: #ffffff;
}

[data-theme="dark"] .contact-item h4 {
    color: #ffffff;
}

[data-theme="dark"] .contact-item p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .contact-item i {
    color: #00d9ff;
}

[data-theme="dark"] .google-map {
    filter: grayscale(40%) brightness(0.8);
}

[data-theme="dark"] .google-map:hover {
    filter: grayscale(20%) brightness(0.9);
}

/* Style the "View larger map" link - MOVED TO RIGHT */
/* Multiple selectors to catch all variations */
.map-wrapper a[href*="maps.google.com"],
.map-wrapper a[href*="goo.gl/maps"],
.map-container a[href*="maps.google.com"],
.map-container a[href*="goo.gl/maps"],
.map-wrapper div > a[href*="google.com/maps"],
.map-container div > a[href*="google.com/maps"] {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 16px !important;
    border-radius: 3px !important;
    color: #5b9bd5 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}

.map-wrapper a[href*="maps.google.com"]:hover,
.map-wrapper a[href*="goo.gl/maps"]:hover,
.map-container a[href*="maps.google.com"]:hover,
.map-container a[href*="goo.gl/maps"]:hover,
.map-wrapper div > a[href*="google.com/maps"]:hover,
.map-container div > a[href*="google.com/maps"]:hover {
    background: #5b9bd5 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(43, 79, 135, 0.3) !important;
}

/* Add icon before the text */
.map-wrapper a[href*="maps.google.com"]::before,
.map-wrapper a[href*="goo.gl/maps"]::before,
.map-container a[href*="maps.google.com"]::before,
.map-container a[href*="goo.gl/maps"]::before,
.map-wrapper div > a[href*="google.com/maps"]::before,
.map-container div > a[href*="google.com/maps"]::before {
    content: "🗺️";
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .google-maps-section {
        padding: 60px 0;
    }

    .map-wrapper {
        height: 400px;
    }

    .map-overlay {
        position: static;
        margin-top: 20px;
        padding: 0 20px;
    }

    .contact-info-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }

    .map-wrapper {
        height: 350px;
    }

    .contact-info-card {
        padding: 25px;
    }

    /* Adjust View larger map link for mobile */
    .map-wrapper a[href*="maps.google.com"],
    .map-wrapper a[href*="goo.gl/maps"],
    .map-container a[href*="maps.google.com"],
    .map-container a[href*="goo.gl/maps"] {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }
}
