/* BUILD-SITES COMPONENT: interactive-service-area-map v1.0.0. */
.ocs-service-area-map {
    background: var(--ocs-surface-soft, #f7fafc);
    padding: clamp(64px, 8vw, 108px) 0;
}

.ocs-service-area-map__intro {
    margin-bottom: 34px;
    max-width: 860px;
}

.ocs-service-area-map__intro h2 {
    color: var(--ocs-ink, #173847);
    font-size: clamp(2.25rem, 4.4vw, 4.6rem);
    line-height: 1.03;
    margin: 0 0 22px;
    max-width: 14ch;
}

.ocs-service-area-map__intro p {
    color: var(--ocs-ink-soft, #546a74);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

.ocs-service-area-map__layout {
    align-items: stretch;
    display: grid;
    gap: clamp(22px, 3vw, 34px);
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.82fr);
}

.ocs-service-area-map__stage {
    background: #e7f2f4;
    border: 1px solid rgba(23, 56, 71, 0.1);
    border-radius: var(--ocs-radius, 26px);
    box-shadow: var(--ocs-shadow-soft, 0 12px 30px rgba(23, 56, 71, 0.06));
    isolation: isolate;
    min-height: 570px;
    overflow: hidden;
    position: relative;
}

.ocs-service-area-map__grid {
    background-image: linear-gradient(rgba(0, 101, 144, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 101, 144, 0.09) 1px, transparent 1px);
    background-size: 9% 13%;
    inset: 0;
    opacity: 0.75;
    position: absolute;
}

.ocs-service-area-map__park {
    background: rgba(84, 180, 140, 0.16);
    border-radius: 46% 54% 48% 52%;
    position: absolute;
}

.ocs-service-area-map__park--one { height: 18%; left: 11%; top: 13%; width: 22%; }
.ocs-service-area-map__park--two { height: 17%; right: 10%; top: 10%; width: 22%; }
.ocs-service-area-map__park--three { bottom: 10%; height: 19%; left: 24%; width: 19%; }
.ocs-service-area-map__park--four { bottom: 17%; height: 17%; right: 17%; width: 21%; }

.ocs-service-area-map__river {
    background: rgba(77, 190, 214, 0.22);
    height: 118%;
    left: 56%;
    position: absolute;
    top: -10%;
    transform: rotate(8deg);
    width: 22px;
}

.ocs-service-area-map__road {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 153, 163, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
    position: absolute;
}

.ocs-service-area-map__road--one,
.ocs-service-area-map__road--two { height: 10px; left: 2%; width: 96%; }
.ocs-service-area-map__road--one { top: 31%; transform: rotate(4deg); }
.ocs-service-area-map__road--two { top: 64%; transform: rotate(-6deg); }
.ocs-service-area-map__road--three,
.ocs-service-area-map__road--four { height: 92%; top: 4%; width: 10px; }
.ocs-service-area-map__road--three { left: 34%; transform: rotate(4deg); }
.ocs-service-area-map__road--four { left: 73%; transform: rotate(-6deg); }

.ocs-service-area-map__city {
    color: rgba(23, 56, 71, 0.58);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    position: absolute;
}

.ocs-service-area-map__city--north { right: 8%; top: 9%; }

.ocs-service-area-map__compass {
    color: var(--ocs-ink, #173847);
    display: grid;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 4px;
    left: 28px;
    place-items: center;
    position: absolute;
    top: 28px;
    z-index: 2;
}

.ocs-service-area-map__compass span:last-child { font-size: 1.7rem; line-height: 1; }

.ocs-service-area-map__marker {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ocs-ink, #173847);
    cursor: pointer;
    display: block;
    left: var(--marker-x);
    padding: 0;
    position: absolute;
    top: var(--marker-y);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.ocs-service-area-map__marker:focus-visible {
    border-radius: 12px;
    outline: 3px solid var(--ocs-accent, #e49c43);
    outline-offset: 5px;
}

.ocs-service-area-map__marker-wrap { align-items: center; display: flex; gap: 8px; }
.ocs-service-area-map__marker.is-label-left .ocs-service-area-map__marker-wrap { flex-direction: row-reverse; }

.ocs-service-area-map__dot {
    background: #006590;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(23, 56, 71, 0.22);
    display: block;
    flex: 0 0 18px;
    height: 18px;
    transition: background 160ms ease, transform 160ms ease;
    width: 18px;
}

.ocs-service-area-map__marker-name {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 11px;
    box-shadow: 0 5px 16px rgba(23, 56, 71, 0.1);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 175px;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.ocs-service-area-map__marker:hover .ocs-service-area-map__dot,
.ocs-service-area-map__marker.is-active .ocs-service-area-map__dot { background: var(--ocs-accent, #e49c43); transform: scale(1.18); }
.ocs-service-area-map__marker.is-active .ocs-service-area-map__marker-name { background: var(--ocs-ink, #173847); color: #fff; }
.ocs-service-area-map .ocs-service-area-map__marker:hover,
.ocs-service-area-map .ocs-service-area-map__marker:focus-visible { background: transparent; color: var(--ocs-ink, #173847); }
.ocs-service-area-map__marker.is-base .ocs-service-area-map__dot { background: var(--ocs-accent, #e49c43); border-width: 6px; flex-basis: 34px; height: 34px; width: 34px; }
.ocs-service-area-map__marker.is-base .ocs-service-area-map__marker-name { font-size: 0.9rem; }

.ocs-service-area-map__legend {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 13px;
    bottom: 22px;
    box-shadow: 0 5px 18px rgba(23, 56, 71, 0.1);
    color: var(--ocs-ink, #173847);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 14px;
    left: 22px;
    padding: 12px 16px;
    position: absolute;
    z-index: 4;
}

.ocs-service-area-map__legend span { align-items: center; display: inline-flex; gap: 7px; }
.ocs-service-area-map__legend i { background: #006590; border-radius: 50%; display: inline-block; height: 11px; width: 11px; }
.ocs-service-area-map__legend i.is-base { background: var(--ocs-accent, #e49c43); box-shadow: 0 0 0 4px rgba(228, 156, 67, 0.18); }

.ocs-service-area-map__panel {
    background: var(--ocs-surface, #fff);
    border: 1px solid rgba(23, 56, 71, 0.08);
    border-radius: var(--ocs-radius, 26px);
    box-shadow: var(--ocs-shadow-soft, 0 12px 30px rgba(23, 56, 71, 0.06));
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
}

.ocs-service-area-map__summary { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(96px, 0.55fr) minmax(0, 1fr); }
.ocs-service-area-map__image { aspect-ratio: 1; background: var(--ocs-surface-strong, #e1ecf1); border-radius: 14px; margin: 0; overflow: hidden; }
.ocs-service-area-map__image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.ocs-service-area-map__image span { align-items: center; color: var(--ocs-ink-soft, #546a74); display: flex; font-size: 0.78rem; height: 100%; justify-content: center; padding: 12px; text-align: center; }
.ocs-service-area-map__summary-copy { min-width: 0; }
.ocs-service-area-map__kicker { color: var(--ocs-accent-deep, #c77b21); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; margin: 0 0 10px; text-transform: uppercase; }
.ocs-service-area-map__panel h3 { color: var(--ocs-ink, #173847); font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
.ocs-service-area-map__description { color: var(--ocs-ink-soft, #546a74); font-size: 0.93rem; line-height: 1.6; margin: 12px 0 0; }
.ocs-service-area-map__rule { background: var(--ocs-line, #d6e1e6); height: 1px; margin: 26px 0 18px; }
.ocs-service-area-map__features { display: grid; gap: 11px; list-style: none; margin: 0 0 26px; padding: 0; }
.ocs-service-area-map__features li { align-items: center; color: var(--ocs-ink-soft, #546a74); display: flex; font-size: 0.86rem; gap: 10px; line-height: 1.45; }
.ocs-service-area-map__features li span { align-items: center; background: rgba(228, 156, 67, 0.14); border-radius: 8px; color: var(--ocs-accent-deep, #c77b21); display: inline-flex; flex: 0 0 29px; font-size: 0.9rem; font-weight: 800; height: 29px; justify-content: center; }
.ocs-service-area-map__action { align-self: stretch; justify-content: center; text-align: center; }

.ocs-service-area-map-home-link { margin: clamp(18px, 3vw, 32px) auto; padding: 0 var(--ocs-gutter, 24px); text-align: center; }
.ocs-service-area-map-home-link__button { align-items: center; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; font-weight: 800; gap: 10px; justify-content: center; padding: 13px 20px; text-decoration: none; }

@media (max-width: 1000px) {
    .ocs-service-area-map__layout { grid-template-columns: minmax(0, 1fr); }
    .ocs-service-area-map__stage { min-height: clamp(440px, 58vw, 570px); }
    .ocs-service-area-map__panel { min-height: 0; }
}

@media (max-width: 720px) {
    .ocs-service-area-map { padding: 56px 0; }
    .ocs-service-area-map__intro { margin-bottom: 26px; }
    .ocs-service-area-map__stage { min-height: 390px; }
    .ocs-service-area-map__marker-name { display: none; }
    .ocs-service-area-map__marker.is-active .ocs-service-area-map__marker-name { display: inline-block; font-size: 0.7rem; max-width: 120px; padding: 6px 8px; }
    .ocs-service-area-map__marker.is-base .ocs-service-area-map__dot { flex-basis: 30px; height: 30px; width: 30px; }
    .ocs-service-area-map__legend { bottom: 12px; gap: 10px; justify-content: center; left: 12px; right: 12px; }
    .ocs-service-area-map__compass { left: 16px; top: 16px; }
    .ocs-service-area-map__summary { gap: 13px; grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr); }
    .ocs-service-area-map__panel h3 { font-size: 1.45rem; }
    .ocs-service-area-map__description { font-size: 0.86rem; }
}
