.contact-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #FCE4EC 0%, #FAD2E0 15%, #FAD2E0 85%, #FCE4EC 100%);
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h2);
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background-color: #FCE4EC;
    margin: 0.5rem auto 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-details {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-info-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    will-change: transform, box-shadow, opacity;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    background: #FCE4EC;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #d81b60;
    transition: transform 0.3s ease;
    will-change: transform;
}

.contact-info-item:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-item h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: var(--fs-h3);
}

.contact-info-item p {
    color: #666;
    line-height: 1.5;
    font-size: var(--fs-body);
}

.contact-info-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info-item a:hover {
    color: #d81b60;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    will-change: transform;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.facebook:hover {
    background: #4267B2;
}

.map-container {
    flex: 1.5;
    min-width: 300px;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
    z-index: 1;
    will-change: transform;
    /* Ensure container is above background */
}

.map-container:hover {
    transform: scale(1.01);
}

#leaflet-map {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 0;
    /* Leaflet creates its own stacking context, 0 is fine relative to container */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1150px) {
    .contact-section {
        padding: 4rem 1.5rem;
        background: transparent;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .map-container {
        flex: none;
        /* Disable flex sizing on mobile */
        width: 100%;
        /* Ensure full width */
        height: 350px;
        min-height: 350px;
        order: 2;
        display: block;
    }

    .contact-details {
        order: 1;
    }

    .contact-info-item {
        flex-direction: row;
        text-align: left;
        padding: 1rem 1.5rem;
        gap: 1rem;
        align-items: center;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .contact-info-item>div:last-child {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .contact-info-item {
        padding: 1rem;
    }

    .map-container {
        height: 300px;
        min-height: 300px;
        /* Force minimum height */
        display: block;
        /* Ensure it's not hidden */
    }
}

/* Mobile Polish (Moved from mobile-nav.css) */
@media (max-width: 1150px) {
    #contact.section-active .contact-info-item {
        background: white;
        border-radius: 20px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        border: none;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    #contact.section-active .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d81b60;
        /* Ensure icon color matches */
    }

    #contact.section-active .contact-info-item h3 {
        margin: 0 0 0.2rem 0;
        font-size: 1.1rem;
    }

    #contact.section-active .contact-info-item p {
        margin: 0;
        font-size: 0.95rem;
    }

    #contact.section-active .map-container {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 4px solid white;
        height: 300px;
    }
}