/*
|--------------------------------------------------------------------------
| CON Interactive Map
|--------------------------------------------------------------------------
*/

.cew-con-map {
    padding-bottom: 80px;
    background-color: #f9f9f8;
}

.cew-con-map-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

/*
|--------------------------------------------------------------------------
| Frame
|--------------------------------------------------------------------------
*/

.cew-con-map-frame {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;

    border-radius: 16px;
    border: 1px solid #bfc9c1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cew-con-map-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;

    transition: filter 0.5s ease;
}

/* muted by default, full colour on hover — keeps the page calm but stays live */
.cew-con-map-frame--gray .cew-con-map-iframe {
    filter: grayscale(100%);
}

.cew-con-map-frame--gray:hover .cew-con-map-iframe {
    filter: grayscale(0%);
}

/*
|--------------------------------------------------------------------------
| Address card
|--------------------------------------------------------------------------
*/

.cew-con-map-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 10;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    max-width: calc(100% - 48px);
    padding: 16px;

    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border-radius: 8px;
    border: 1px solid #bfc9c1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
}

.cew-con-map-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background-color: #2D6A4F;
    color: #ffffff;
}

.cew-con-map-card-icon .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

.cew-con-map-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.05em;
    color: #0f5238;
    margin: 0;
}

.cew-con-map-card-text {
    font-size: 16px;
    line-height: 24px;
    color: #404943;
    margin: 0;
}

.cew-con-map-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-top: 4px;

    font-size: 14px;
    font-weight: 600;
    color: #16677a;
    text-decoration: none;
}

.cew-con-map-card-link:hover {
    text-decoration: underline;
}

.cew-con-map-card-link .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .cew-con-map {
        padding-bottom: 56px;
    }

    .cew-con-map-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cew-con-map-card {
        bottom: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
    }

    /* on touch there is no hover, so never leave the map greyed out */
    .cew-con-map-frame--gray .cew-con-map-iframe {
        filter: grayscale(0%);
    }

}
