/* =================================================================
   CONTACT MAP SECTION - Kontaktuppgifter & Google Maps
   ================================================================= */

.contact-map-section {
    position: relative;
    width: 100%;
    padding: 20px 0 80px;
    background-color: #FFFFFF;
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
}

.contact-map-section__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
    background: #A319B20D;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

/* =================================================================
   CONTACT INFORMATION COLUMN
   ================================================================= */

.contact-map-section__contact {
    position: relative;
    height: 100%;
    padding-left: 33px;
    padding-top: 33px;
    padding-bottom: 33px;
}

.contact-map-section__title {
    font-family: var(--unnamed-font-family-montserrat, 'Montserrat', sans-serif);
    font-size: var(--unnamed-font-size-28, 28px) !important;
    font-weight: var(--unnamed-font-weight-bold, bold);
    line-height: 1 !important;
    color: var(--primär-–-navy, #000233);
    margin: 0;
    letter-spacing: 0;
}

.contact-map-section__info {
    margin-bottom: 20px;
}

.contact-info__item {
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
    font-size: var(--unnamed-font-size-18, 18px);
    font-weight: var(--unnamed-font-weight-normal, normal);
    line-height: var(--unnamed-line-spacing-24, 24px);
    color: var(--primär-–-navy, #000233);
    letter-spacing: 0;
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__link {
    color: var(--primär-–-navy, #000233);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info__link:hover {
    color: var(--primär-–-navy, #000233);
    text-decoration: underline;
}

.contact-info__address {
    margin-bottom: 20px;
}

/* Button styling using design system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
    font-size: var(--unnamed-font-size-18, 18px);
    font-weight: var(--unnamed-font-weight-bold, bold);
    line-height: var(--unnamed-line-spacing-22, 22px);
    letter-spacing: 0;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn--primary {
    background-color: var(--lila, #4114C8);
    color: var(--vit, #FFFFFF);
}

.btn--primary:hover {
    background-color: var(--primär-–-navy, #000233);
    color: var(--vit, #FFFFFF);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 20, 200, 0.3);
}

.btn--primary:focus {
    outline: 2px solid var(--lila, #4114C8);
    outline-offset: 2px;
}

/* =================================================================
   SOCIAL MEDIA SECTION
   ================================================================= */

.contact-map-section__social {
    position: relative;
}

.social-media__title {
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
    font-size: var(--unnamed-font-size-18, 18px);
    font-weight: var(--unnamed-font-weight-bold, bold);
    line-height: var(--unnamed-line-spacing-22, 22px);
    color: var(--primär-–-navy, #000233);
    margin: 0 0 0 0;
    letter-spacing: 0;
}

.social-media__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-media__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #a319b2;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: transparent;
}

.social-media__link:hover {
    color: #fff;
}

.social-media__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* =================================================================
   MAP COLUMN
   ================================================================= */

.contact-map-section__map {
    position: relative;
    height: 400px;
    min-height: 300px;
}

.acf-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 2, 51, 0.1);
}

.contact-map-section__map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--ljusgrå-25-, #A5A8A940);
    border: 2px dashed var(--ljusgrå, #A5A8A9);
    border-radius: 8px;
    color: var(--grå, #868B8C);
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
    font-size: var(--unnamed-font-size-16, 16px);
}

/* Google Maps InfoWindow styling */
.gm-style .gm-style-iw-c {
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 2, 51, 0.15);
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw h4 {
    font-family: var(--unnamed-font-family-montserrat, 'Montserrat', sans-serif);
    font-size: var(--unnamed-font-size-16, 16px);
    font-weight: var(--unnamed-font-weight-bold, bold);
    color: var(--primär-–-navy, #000233);
    margin: 0 0 8px 0;
}

.gm-style .gm-style-iw p {
    font-family: var(--unnamed-font-family-lato, 'Lato', sans-serif);
    font-size: var(--unnamed-font-size-14, 14px);
    color: var(--grå, #868B8C);
    margin: 0;
    line-height: 1.4;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Large desktop */
@media (min-width: 1400px) {
    .contact-map-section {
        padding: 20px 0 100px;
    }

    .contact-map-section__title {
        font-size: 36px;
        line-height: 48px;
    }

    .contact-map-section__map {
        height: 450px;
    }
}

/* Desktop adjustments */
@media (max-width: 1200px) {
    .contact-map-section__title {
        font-size: 28px;
        line-height: 38px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .contact-map-section {
        padding: 20px 0 60px;
    }

    .contact-map-section__contact{
        padding-right: 33px;
    }

    .contact-map-section__content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-map-section__title {
        font-size: 24px;
        line-height: 32px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 16px;
        line-height: 20px;
    }

    .social-media__title {
        font-size: 16px;
        line-height: 20px;
    }

    .social-media__link {
        width: 36px;
        height: 36px;
    }

    .social-media__icon {
        width: 20px;
        height: 20px;
    }

    .contact-map-section__map {
        height: 350px;
        order: -1; /* Show map above contact info on mobile */
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-map-section {
        padding: 20px 0 40px;
    }

    .contact-map-section__contact{
        padding-left: 16px;
        padding-right: 16px;
    }
    .contact-map-section__container {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        line-height: 18px;
    }

    .social-media__links {
        gap: 12px;
    }

    .social-media__link {
        width: 32px;
        height: 32px;
    }

    .social-media__icon {
        width: 18px;
        height: 18px;
    }

    .contact-map-section__map {
        height: 280px;
    }
}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-map-section {
        border-bottom: 2px solid #000000;
    }

    .contact-info__link {
        color: #000000;
        text-decoration: underline;
    }

    .contact-info__link:hover {
        background-color: #000000;
        color: #FFFFFF;
    }

    .btn--primary {
        background-color: #000000;
        border: 2px solid #FFFFFF;
    }

    .btn--primary:hover {
        background-color: #FFFFFF;
        color: #000000;
        border-color: #000000;
    }

    .social-media__link {
        color: #000000;
        border: 1px solid #000000;
    }

    .social-media__link:hover {
        background-color: #000000;
        color: #FFFFFF;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .contact-info__link,
    .btn,
    .social-media__link {
        transition: none;
    }

    .btn--primary:hover,
    .social-media__link:hover {
        transform: none;
        box-shadow: none;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .contact-map-section {
        background: white !important;
        padding: 20px 0 30px;
        page-break-inside: avoid;
    }

    .contact-map-section__title {
        color: black !important;
        font-size: 24px;
        line-height: 30px;
    }

    .contact-info__item {
        color: #333333 !important;
        font-size: 14px;
    }

    .contact-info__link {
        color: #333333 !important;
        text-decoration: underline !important;
    }

    .btn {
        background: white !important;
        color: #333333 !important;
        border: 1px solid #333333 !important;
    }

    .social-media__title {
        color: #333333 !important;
    }

    .social-media__link {
        color: #333333 !important;
        border: 1px solid #333333 !important;
    }

    .contact-map-section__map {
        border: 2px solid #333333 !important;
        height: 200px !important;
    }

    .acf-map {
        background: #f5f5f5 !important;
    }

    .acf-map::after {
        content: "Karta finns tillgänglig online";
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f5f5f5;
        color: #333333;
        font-size: 14px;
    }
}
