.bloom-map-container{background:#fff;overflow:hidden;border-radius:inherit}
.bloom-map-scene{position:relative;aspect-ratio:4/3;width:100%;isolation:isolate;overflow:hidden}
.bloom-map-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.bloom-map-guide{position:absolute;left:.5%;bottom:1.2%;width:29%;height:25%;margin:0;z-index:1;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:2px;pointer-events:none}
.bloom-map-guide img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 2px #79464a22)}
.bloom-map-guide figcaption{max-width:100%;border:1px solid #e9a0bb;border-radius:14px;background:#fffaf2ef;padding:2px 7px;color:#91375c;font-size:clamp(8px,.8vw,11px);font-weight:700;line-height:1.3;text-align:center;}
.bloom-map-landmark{position:absolute;z-index:1;pointer-events:none;padding:1px 5px;border-radius:6px;background:#fff9e6e8;color:#754d35;font-size:clamp(8px,.8vw,11px);font-weight:700;line-height:1.4;white-space:nowrap}
.bloom-map-landmark--geyser{left:13.5%;top:47%;transform:translateX(-50%)}
.bloom-map-landmark--amagi{left:17.5%;top:7.5%;transform:translateX(-50%);color:#305e49;background:#fbfff0e8;font-size:clamp(10px,1vw,13px)}
.bloom-map-sight{position:absolute;z-index:1;margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:1px;justify-items:center;transform:translateX(-50%);pointer-events:none}
.bloom-map-sight img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom}
.bloom-map-sight figcaption{max-width:100%;padding:1px 3px;border-radius:5px;background:#fff9e6ed;color:#754d35;font-size:clamp(8px,.8vw,11px);font-weight:700;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.bloom-map-sight--dancer{left:52%;top:18%;width:14%;height:14%}
.bloom-map-sight--saburo{left:27.5%;top:74.4%;width:16%;height:4.8%;display:flex;align-items:center;justify-content:center;gap:2px}
.bloom-map-sight--saburo img{width:35%;height:100%;object-position:center}
.bloom-map-sight--saburo figcaption{flex:0 1 auto;padding:1px 2px;line-height:1.1;font-size:clamp(7px,.72vw,10px)}
.bloom-map-railway{position:absolute;left:31%;top:75%;width:33%;z-index:1;text-align:center;color:#38546c;pointer-events:none;line-height:1.15;text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,0 0 4px #fff}
.bloom-map-railway strong{display:block;font-size:11px}
.bloom-map-railway span{display:flex;justify-content:space-between;gap:3px;font-size:9px;white-space:nowrap}
.map-label-compact{display:none}
.bloom-map-point{position:absolute;left:var(--map-x);top:var(--map-y);transform:translate(-50%,-100%);width:max-content;max-width:35%;padding:0 0 18px;background:transparent;z-index:3;color:#85364d;filter:drop-shadow(0 2px 2px #64393f22);line-height:1.3}
.bloom-map-name{display:block;background:#fffffff5;border:1.5px solid #e8719a;border-radius:16px 16px 7px 7px;padding:4px 9px;font-weight:800;font-size:clamp(10px,1.24vw,17px);white-space:normal;text-wrap:balance}
.bloom-map-status{display:block;background:#ffe3edfa;border:1px solid #e8719a;border-top:0;border-radius:0 0 8px 8px;font-size:clamp(8px,.86vw,11px);padding:2px 5px;color:#a91955;font-weight:700;line-height:1.3}
.bloom-map-status small{font-size:.85em;display:inline;margin-left:4px;font-weight:400}
.bloom-map-status.is-empty{color:#6f5860;background:#fff7f5ed;font-weight:500}
.bloom-map-pin{position:absolute;bottom:0;left:calc(50% - 9px);width:18px;height:22px;fill:#e83279;stroke:#fff;stroke-width:1.5}.bloom-map-pin circle{fill:#fff;stroke:none}
.bloom-map-point.bank-right{transform:translate(0,-100%)}.bloom-map-point.bank-right .bloom-map-pin{left:-9px}
.bloom-map-point.bank-left{transform:translate(calc(-100% - 3px),-100%)}.bloom-map-point.bank-left .bloom-map-pin{left:calc(100% - 6px)}
.bloom-map-point.is-selected .bloom-map-name{background:#df2e70;color:#fff;border-color:#df2e70}.bloom-map-point:hover .bloom-map-name{background:#fce2ec;color:#a72155}.bloom-map-point:focus-visible{outline:3px solid #146e91;outline-offset:4px;border-radius:14px;z-index:5}
.bloom-map-bridge{position:absolute;left:var(--map-x);top:var(--map-y);transform:translate(-50%,-15%);z-index:2;background:#fff9dfed;border:1px solid #bba068;box-shadow:0 1px 4px #6b603522;border-radius:5px;padding:2px 7px;white-space:nowrap;font-size:clamp(9px,1vw,13px);font-weight:800;color:#694c2c;line-height:1.45}
.bloom-map-bottom{display:flex;align-items:center;justify-content:space-between;padding:7px 11px;gap:8px;color:#6c7776;background:#f7fcfb;min-height:32px}.bloom-map-bottom small{font-size:10px}.bloom-map-other{background:none;padding:3px 0;font-size:10px;color:#9a315e;text-decoration:underline}
.bloom-map-bottom{flex-wrap:wrap}.bloom-map-source{font-size:10px;color:#527981;text-decoration:underline;text-underline-offset:2px}
html[lang=en] .bloom-map-point{max-width:37%}html[lang=en] .bloom-map-name{font-size:12px}html[lang=en] .bloom-map-status{font-size:9px}html[lang=en] .bloom-map-bridge{font-size:10px}
@media(max-width:700px){.bloom-map-scene{aspect-ratio:.8}.bloom-map-name{font-size:11px;padding:2px 6px;line-height:1.2}.bloom-map-status{font-size:8px;padding:1px 3px;line-height:1.2}.bloom-map-status small{display:none}.bloom-map-pin{width:13px;height:16px;left:calc(50% - 6.5px)}.bloom-map-point{padding-bottom:12px;max-width:36%;min-height:44px}.bloom-map-point.bank-right .bloom-map-pin{left:-6.5px}.bloom-map-point.bank-left .bloom-map-pin{left:calc(100% - 3.5px)}.bloom-map-bridge{font-size:10px;padding:1px 4px}.bloom-map-bottom{padding:6px 8px}.bloom-map-bottom small,.bloom-map-other,.bloom-map-source{font-size:9px}html[lang=en] .bloom-map-name{font-size:10px}html[lang=en] .bloom-map-status{font-size:8px}html[lang=en] .bloom-map-bridge{font-size:8px}}
@media(max-width:365px){.bloom-map-scene{aspect-ratio:.64}}
@media(max-width:700px){html[lang=en] .bloom-map-bridge{max-width:46px;white-space:normal;text-align:center;line-height:1.15}html[lang=en] .bloom-map-bridge:nth-of-type(3){transform:translate(-50%,-35%)}}
.bloom-map-point[data-place=imaihama]{width:14%;max-width:14%}
@media(max-width:700px){
 .bloom-map-point.is-compact .map-label-full{display:none}
 .bloom-map-point.is-compact .map-label-compact{display:inline}
 .bloom-map-point[data-place=imaihama]{--map-x:97%!important;min-height:38px;padding-bottom:10px}
 .bloom-map-point.bank-right,html[lang=en] .bloom-map-point.bank-right{max-width:min(36%,calc(99% - var(--map-x)))}
 .bloom-map-point[data-place=imaihama] .bloom-map-name{font-size:8px;padding:2px 1px}
 .bloom-map-point[data-place=imaihama] .bloom-map-status{font-size:7px;padding:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html[lang=en] .bloom-map-point[data-place=imaihama] .bloom-map-name{font-size:7.5px}
 .bloom-map-point[data-place=station] .bloom-map-name{padding-inline:4px}
 .bloom-map-railway strong{font-size:8px}
 .bloom-map-railway span{font-size:7.5px}
 html[lang=en] .bloom-map-sight--saburo figcaption{font-size:7px}
}

/* Road routes are decorative overlays; all bloom pins remain above them and clickable. */
.bloom-map-roads{position:absolute;inset:0;z-index:1;pointer-events:none;--road-national:#d88723;--road-prefectural:#28789b;--road-flower:#8a51a0;--road-connection:#6b7c68}
.bloom-road-canvas{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.bloom-road{fill:none;stroke-linecap:round;stroke-linejoin:round}
.bloom-road-casing{stroke:#fffdf2;stroke-width:8;vector-effect:non-scaling-stroke;opacity:.96}
.bloom-road-line{stroke-width:4;vector-effect:non-scaling-stroke}
.bloom-road--national .bloom-road-line{stroke:var(--road-national);stroke-width:5}
.bloom-road--national .bloom-road-casing{stroke-width:9}
.bloom-road--prefectural .bloom-road-line{stroke:var(--road-prefectural)}
.bloom-road--flower .bloom-road-line{stroke:var(--road-flower)}
.bloom-road--connection .bloom-road-line{stroke:var(--road-connection);stroke-dasharray:3 5;stroke-width:3}
.bloom-road--connection .bloom-road-casing{stroke-width:6}
.bloom-road-label{position:absolute;border:1px solid currentColor;border-radius:7px;background:#fffdf5f5;box-shadow:0 1px 4px #26394320;padding:3px 5px;font-size:clamp(11px,.85vw,13px);font-weight:800;line-height:1.2;display:flex;align-items:center;gap:3px;white-space:nowrap}
.bloom-road-label b{font-size:11px;line-height:1.2;border-radius:4px;background:currentColor;padding:2px 3px}
.bloom-road-label b{color:#fff;background:var(--road-national)}
.bloom-road-label--national{left:73%;top:74.5%;transform:translate(-50%,-50%);color:#895319}
.bloom-road-label--prefectural{left:39.7%;top:56%;transform:translate(-50%,-50%);color:#195e7e;border:0;padding:2px;border-radius:7px;box-shadow:0 1px 4px #26394330}
.bloom-road-label--prefectural b{background:var(--road-prefectural);font-size:14px;padding:4px 5px;min-width:25px;text-align:center}
.bloom-road-legend{display:flex;flex-wrap:wrap;gap:6px 18px;padding:10px 13px 8px;background:#fffdfa;border-top:1px solid #f0e7e0;color:#354944;font-size:12px;line-height:1.45}
.bloom-road-legend>span{display:flex;align-items:center;gap:5px}
.bloom-road-key{display:inline-block;flex:none;width:22px;height:0;border-top:4px solid;border-radius:2px}
.bloom-road-key--national{border-color:#d88723}
.bloom-road-key--prefectural{border-color:#28789b}
.bloom-road-key--flower{border-color:#8a51a0}
.bloom-road-key--connection{border-top:3px dotted #6b7c68}
.bloom-road-connection-note{flex-basis:100%;font-size:11px;color:#66706b}

html[lang=en] .bloom-road-label--national{font-size:10px}
@media(max-width:700px){
 .bloom-road-casing{stroke-width:6}.bloom-road-line{stroke-width:3}.bloom-road--national .bloom-road-line{stroke-width:4}.bloom-road--national .bloom-road-casing{stroke-width:7}
 .bloom-road-label{font-size:10px;padding:3px;gap:2px}.bloom-road-label b{font-size:9px;padding:2px}
 .bloom-road-label--prefectural{left:39.7%;padding:2px}.bloom-road-label--prefectural b{font-size:12px;min-width:22px;padding:3px}
 .bloom-road-legend{gap:5px 10px;padding:8px;font-size:12px}.bloom-road-key{width:17px}.bloom-road-connection-note{font-size:10px}

 html[lang=en] .bloom-road-label--national{font-size:8px;left:73%}
}

/* Continuation north of Yugano and road directions; railway keeps its own name only. */
.bloom-road--upstream .bloom-road-line{stroke:#577d62;stroke-width:4}
.bloom-road-key--upstream{border-color:#577d62}
.bloom-road-upstream-note{font-size:11px;color:#486651}
.bloom-road-destination{position:absolute;background:#fffdf4f2;border:1px solid #dfd5bc;box-shadow:0 1px 3px #463d2522;border-radius:5px;padding:2px 5px;color:#75501e;font-size:clamp(10px,.9vw,12px);font-weight:800;line-height:1.25;white-space:nowrap}
.bloom-road-destination--upstream{left:42%;top:13.5%;max-width:33%;white-space:normal;text-align:center;transform:translate(-50%,-50%);color:#365d42;border-color:#9db49b}
.bloom-road-destination--shimoda{left:1%;top:73%;transform:translateY(-50%)}
.bloom-road-destination--atami{right:1%;top:78%;transform:translateY(-50%)}
/* Keep the Hama pin at its approved coordinates, with its label below the road. */
.bloom-map-point[data-place=hamayatsu]{transform:translate(0,0);padding:5px 0 0}
.bloom-map-point[data-place=hamayatsu] .bloom-map-pin{top:-22px;bottom:auto}
@media(max-width:700px){
 .bloom-road-destination{font-size:9px;padding:2px 3px}
 .bloom-road-destination--upstream{font-size:9px}
 html[lang=en] .bloom-road-destination--upstream{font-size:8px}
 .bloom-map-point[data-place=hamayatsu]{padding:4px 0 0}
 .bloom-map-point[data-place=hamayatsu] .bloom-map-pin{top:-16px}
 .bloom-road--upstream .bloom-road-line{stroke-width:3}
}

@media(max-width:700px){
 .bloom-map-sight--saburo{gap:1px}
 .bloom-map-sight--saburo figcaption{font-size:7px;padding:1px}
 html[lang=en] .bloom-map-sight--saburo figcaption{font-size:6px}
}
