.com-map-container {
    position: relative;
    overflow-x: hidden;
}

.com-map,
.com-map-smart,
.ym-map-container {
    background-color: #f2f2f2;
    min-height: 600px;
}

.com-map-overlay {
    padding-top: 20px;
    padding-bottom: 20px;
}

.com-map-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.com-map-col {
    padding: 0;
    width: 100%;
}

.com-map-item {
    pointer-events: auto;
}

.com-map-button {
    display: block;
    color: #fff;
    padding: 10px 20px;
    line-height: 1.5;
    background-color: #012d5a;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.com-map-button:hover {
    color: #fff;
    border-color: rgba(0, 0, 0, 0.2);
}

.com-map-button:active {
    filter: brightness(95%);
    box-shadow: inset 2px 2px 1px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

.com-map-color-p { background-color: #682280; }
.com-map-color-r { background-color: #aa272f; }
.com-map-color-y { background-color: #df7a00;; }
.com-map-place-button { background-color: #1f2937; }

.infoWindow {
    width: min(240px, 72vw);
    color: #1f2937;
}

.infoWindow__imageWrap {
    width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.infoWindow__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.infoWindow__title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.infoWindow__address {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    white-space: pre-line;
}

.infoWindow__meta {
    margin-bottom: 10px;
}

.infoWindow__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #111827;
    text-decoration: none;
}

.infoWindow__contact:hover {
    text-decoration: underline;
}

.infoWindow__icon {
    width: 18px;
    height: 18px;
    color: #dd0b2f;
    flex: 0 0 18px;
}

.infoWindow__iconSvg {
    display: block;
    width: 100%;
    height: 100%;
}

.infoWindow__value {
    color: #111827;
    line-height: 1.45;
}

.infoWindow a.infoWindow__route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none !important;
    background: linear-gradient(90deg, #dd0b2f 0%, #ff5270 100%);
}

.infoWindow a.infoWindow__route:visited,
.infoWindow a.infoWindow__route:hover,
.infoWindow a.infoWindow__route:focus,
.infoWindow a.infoWindow__route:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none !important;
    opacity: 0.92;
}

@media only screen and (min-width: 576px)  {
    .com-map-col {
        width: 100%;
    }
}

@media only screen and (min-width: 690px)  {
    .com-map-overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 20px;
        z-index: 900;
        pointer-events: none;
    }

    .com-map-col {
        width: auto;
        max-width: min(360px, 80vw);
    }
}

/* Placeholder over the map until SmartMaps may load (consent-loader.js) */
.com-map-stage {
    position: relative;
}

.com-map-consent {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: #f2f2f2;
}

.com-map-consent[hidden] {
    display: none;
}

.com-map-consent__box {
    max-width: 480px;
    padding: 32px 28px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(23, 30, 47, 0.12);
    text-align: center;
}

.com-map-consent__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2328;
}

.com-map-consent__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.com-map-consent__text a {
    color: #dd0b2f;
    font-weight: 600;
    text-decoration: underline;
}

.com-map-consent__button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background-image: linear-gradient(to right, #dd0b2f, #ff5270);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.com-map-consent__button:hover {
    opacity: 0.9;
}
