.buy-map {
    min-width: 0;
    overflow: hidden;
    scroll-margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffef9;
    color: var(--ink);
}
.buy-map [hidden] { display: none !important; }
.buy-map__stage {
    position: relative;
    height: clamp(300px, 35vw, 440px);
    overflow: hidden;
    background-color: #f0f3ee;
    background-image: radial-gradient(#bfcac780 .85px, transparent 1px);
    background-size: 10px 10px;
}
.buy-map__canvas { position: absolute; inset: 12px 14px 34px; width: calc(100% - 28px); height: calc(100% - 46px); }
.buy-map__stage.is-zoomed .buy-map__canvas { cursor: grab; touch-action: none; }
.buy-map__stage.is-panning .buy-map__canvas { cursor: grabbing; }
.buy-map__pin {
    position: absolute;
    max-width: 55%;
    padding: .28rem .46rem;
    border: 1px solid #0c1740;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    transform: translate(-50%, calc(-100% - 7px));
    pointer-events: none;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
    font: 700 .7rem/1.2 var(--body);
    box-shadow: 0 2px 3px #11243a26;
}
.buy-map__tools {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 0;
    border-radius: 7px;
    border: 1px solid #b9c7c6;
    box-shadow: 0 2px 4px #1624331a;
    background: #fffefa;
}
.buy-map__tools button, .buy-map__switch button {
    cursor: pointer;
    min-height: 44px;
    color: var(--navy);
    background: transparent;
    border: 0;
    font: inherit;
}
.buy-map__tools button { display: grid; place-items: center; width: 44px; padding: 0; }
.buy-map__tools button + button { border-left: 1px solid #d8dfdc; }
.buy-map__tools button:first-child { border-radius: 6px 0 0 6px; }
.buy-map__tools button:last-child { border-radius: 0 6px 6px 0; }
.buy-map__tools button:disabled { opacity: .36; cursor: default; }
.buy-map__tools button:hover:not(:disabled) { background: #fff1cd; }
.buy-map__tools svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.buy-map__switch { display: flex; padding: 0 1.25rem; gap: 1rem; border-bottom: 1px solid var(--line); }
.buy-map__switch button { border-bottom: 3px solid transparent; font-weight: 700; font-size: .875rem; padding: .35rem .1rem; }
.buy-map__switch button[aria-selected="true"] { border-bottom-color: var(--gold); }
.buy-map__photo { margin: 0; background: #f1f3ee; }
.buy-map__photo img { display: block; width: 100%; max-height: 460px; object-fit: contain; }
.buy-map__note { margin: 0; padding: .9rem 1.25rem; border-top: 1px solid var(--line); font: 500 .875rem/1.4 var(--body); color: var(--muted); }
.buy-map button:focus-visible, .buy-map__canvas:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
@media (max-width: 500px) {
    .buy-map__stage { height: 312px; }
    .buy-map__canvas { inset: 18px 8px 42px; width: calc(100% - 16px); height: calc(100% - 60px); }
}
