/**
 * Contact page — location map.
 *
 * Styles the office map section on the Contact Us template. Loaded only on
 * that template (see toursaroundnepal_scripts() in functions.php).
 */

.contact-map {
    position: relative;
}

.contact-map .section-title {
    margin-bottom: 45px;
}

/* Panel: map beside the office details. */
.map-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    background: var(--clr-bg-white);
    border: 1px solid rgba(15, 36, 84, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px -30px rgba(15, 36, 84, 0.35);
}

.map-canvas {
    position: relative;
    min-height: 520px;
    background: var(--clr-bg-light);
}

.map-canvas .google-maps {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Desaturate slightly so the map sits inside the palette, then restore
   full colour on hover for readability. */
.map-canvas .google-maps {
    filter: grayscale(55%) contrast(1.02);
    transition: filter 0.5s ease;
}

.map-panel:hover .google-maps {
    filter: grayscale(0%) contrast(1);
}

/* Details panel */
.map-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 55px 45px;
    background: var(--clr-bg-light);
    border-left: 1px solid rgba(15, 36, 84, 0.08);
}

.map-details-label {
    display: inline-block;
    color: var(--clr-primary);
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.map-details .map-address {
    margin: 0;
    color: var(--clr-heading);
    font-family: var(--font-secondary);
    font-size: 26px;
    line-height: 1.25;
    font-weight: var(--fw-medium);
    letter-spacing: -0.5px;
}

.map-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 36, 84, 0.1);
}

.map-meta li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: var(--clr-body);
    font-size: var(--fs-body);
    line-height: 1.5;
}

.map-meta li i {
    flex-shrink: 0;
    width: 20px;
    margin-top: 2px;
    color: var(--clr-primary);
    text-align: center;
}

.map-meta li a {
    color: var(--clr-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-meta li a:hover {
    color: var(--clr-primary);
}

.map-details .map-directions {
    margin-top: 10px;
}

@media (max-width: 991px) {
    .map-panel {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }

    .map-canvas {
        min-height: 0;
        height: 380px;
    }

    .map-details {
        padding: 40px 34px;
        border-left: none;
        border-top: 1px solid rgba(15, 36, 84, 0.08);
    }
}

@media (max-width: 575px) {
    .contact-map .section-title {
        margin-bottom: 30px;
    }

    .map-canvas {
        height: 300px;
    }

    .map-details {
        padding: 32px 24px;
    }

    .map-details .map-address {
        font-size: 22px;
    }

    .map-details .map-directions {
        width: 100%;
        justify-content: center;
    }
}
