/* ------------------------------------------------------------
   Ollato Eduversity - Contact Map CSS
   File: assets/css/contact/map.css

   Purpose:
   - Style the Contact Map section
   - Keep typography simple, professional and readable
   - Keep main heading and card titles bold only
   - Style map iframe, address card, note and direction button
   - Support English, Marathi and Hindi layouts

   Related PHP file:
   pages/contact/map.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Section Base
------------------------------------------------------------ */

.contact-map {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
    background-color: var(--color-white);
}

.contact-map::before {
    content: "";
    position: absolute;
    top: 90px;
    left: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.04);
    pointer-events: none;
}

.contact-map::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: 90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(33, 166, 122, 0.055);
    pointer-events: none;
}

.contact-map .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Section Header
------------------------------------------------------------ */

.contact-map-header {
    max-width: 820px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.contact-map-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.contact-map-title {
    max-width: 760px;
    margin: 0 auto var(--space-3);
    color: var(--color-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-map-subtitle {
    max-width: 730px;
    margin: 0 auto var(--space-3);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.contact-map-description {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   Map Layout
------------------------------------------------------------ */

.contact-map-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: stretch;
    gap: var(--space-6);
}

.contact-map-box {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-xl);
    background-color: #f8fbff;
    box-shadow: var(--shadow-md);
}

.contact-map-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}


/* ------------------------------------------------------------
   Map Details
------------------------------------------------------------ */

.contact-map-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-map-address-card,
.contact-map-note {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-5);
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-xl);
    background-color: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.contact-map-address-card {
    background:
        linear-gradient(
            135deg,
            rgba(31, 79, 143, 0.055) 0%,
            rgba(255, 255, 255, 0.96) 100%
        );
}

.contact-map-note {
    background:
        linear-gradient(
            135deg,
            rgba(33, 166, 122, 0.07) 0%,
            rgba(255, 255, 255, 0.96) 100%
        );
}

.contact-map-address-icon,
.contact-map-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 21px;
    line-height: 1;
}

.contact-map-note-icon {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.contact-map-address-content,
.contact-map-note-content {
    min-width: 0;
}

.contact-map-address-title,
.contact-map-note-title {
    margin-bottom: var(--space-2);
    color: var(--color-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.contact-map-address-text,
.contact-map-note-text {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.contact-map-direction {
    width: 100%;
    min-height: 46px;
    font-weight: 500;
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .contact-map-title,
html[lang="mr"] .contact-map-title {
    line-height: 1.4;
}

html[lang="hi"] .contact-map-subtitle,
html[lang="hi"] .contact-map-description,
html[lang="hi"] .contact-map-address-text,
html[lang="hi"] .contact-map-note-text,
html[lang="mr"] .contact-map-subtitle,
html[lang="mr"] .contact-map-description,
html[lang="mr"] .contact-map-address-text,
html[lang="mr"] .contact-map-note-text {
    line-height: 1.85;
}

html[lang="hi"] .contact-map-address-title,
html[lang="hi"] .contact-map-note-title,
html[lang="mr"] .contact-map-address-title,
html[lang="mr"] .contact-map-note-title {
    line-height: 1.55;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .contact-map {
        padding-top: var(--space-11);
        padding-bottom: var(--space-12);
    }

    .contact-map-wrapper {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
        gap: var(--space-5);
    }

    .contact-map-title {
        font-size: 28px;
    }

    .contact-map-box,
    .contact-map-iframe {
        min-height: 400px;
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .contact-map {
        padding-top: var(--space-10);
        padding-bottom: var(--space-11);
    }

    .contact-map-header {
        margin-bottom: var(--space-7);
    }

    .contact-map-title {
        font-size: 27px;
    }

    .contact-map-subtitle {
        font-size: 15px;
    }

    .contact-map-wrapper {
        grid-template-columns: 1fr;
        max-width: 780px;
        margin: 0 auto;
    }

    .contact-map-box,
    .contact-map-iframe {
        min-height: 380px;
    }

    .contact-map-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-map-direction {
        grid-column: 1 / -1;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .contact-map {
        padding-top: var(--space-8);
        padding-bottom: var(--space-10);
    }

    .contact-map::before,
    .contact-map::after {
        display: none;
    }

    .contact-map-header {
        margin-bottom: var(--space-6);
    }

    .contact-map-title {
        font-size: 25px;
        line-height: 1.35;
    }

    .contact-map-subtitle,
    .contact-map-description {
        font-size: 14px;
    }

    .contact-map-box,
    .contact-map-iframe {
        min-height: 330px;
        border-radius: var(--radius-lg);
    }

    .contact-map-details {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .contact-map-address-card,
    .contact-map-note {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }

    .contact-map-address-icon,
    .contact-map-note-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .contact-map {
        padding-top: var(--space-7);
        padding-bottom: var(--space-9);
    }

    .contact-map-title {
        font-size: 23px;
    }

    .contact-map-label {
        margin-bottom: var(--space-2);
    }

    .contact-map-box,
    .contact-map-iframe {
        min-height: 280px;
    }

    .contact-map-address-card,
    .contact-map-note {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-map-address-icon,
    .contact-map-note-icon {
        margin: 0 auto;
    }

    .contact-map-address-title,
    .contact-map-note-title {
        font-size: 15px;
    }

    .contact-map-address-text,
    .contact-map-note-text {
        font-size: 13px;
    }
}