.regional-route { border:1px solid var(--line); border-radius:16px 12px 18px 10px; overflow:hidden; background:var(--paper,#f4f5f1); margin-bottom:24px; color:var(--ink); }
.regional-route__heading { display:flex; justify-content:space-between; gap:12px; padding:20px 18px 12px; align-items:center; }
.regional-route__heading h3 { margin:0; font-family:Georgia,'Songti SC',serif; font-size:29px; letter-spacing:.04em; }
.regional-route__heading p { margin:5px 0 0; font-size:11px; color:var(--muted); }
.regional-route__dates { font-size:10px; color:var(--lake); white-space:nowrap; }
.regional-route__days { display:flex; gap:6px; padding:0 14px 12px; overflow-x:auto; }
.regional-route__days button { flex-shrink:0; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:30px; background:transparent; font-size:11px; }
.regional-route__days button[aria-pressed=true] { background:var(--ink);color:white;border-color:var(--ink); }
.regional-route__map-scroll { overflow:hidden; border-block:1px solid var(--line); }
.regional-route__map { position:relative; width:100%; min-width:700px; aspect-ratio:1; background-color:#f3f5ef; background-position:center; background-size:100% 100%; background-repeat:no-repeat; }
.regional-route[data-region="rome"] .regional-route__map { background-image:url('assets/atlas-rome-v2.png'); }
.regional-route__map > .atlas-routes { position:absolute;inset:0;width:100%;height:100%; }
.regional-route__map > .atlas-base { position:absolute;inset:0;width:100%;height:100%;z-index:0; }
.rome-tiber { fill:none;stroke:#a9cfd6;stroke-width:18;stroke-linecap:round;opacity:.58; }
.rome-zones { fill:#788c83;font:11px Georgia,serif;letter-spacing:2px;opacity:.72; }
.atlas-icon { width:28px;height:28px;display:inline-block;vertical-align:middle;flex-shrink:0; }
.route-destination-pin { position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;min-width:44px;min-height:44px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;z-index:2; }
.route-destination-pin i { display:block;width:12px;height:12px;border:3px solid var(--paper,#f4f5f1);background:#287b90;border-radius:50%;box-shadow:0 0 0 1px #287b90,0 1px 4px #13262f30; }
.route-destination-pin span { font-family:Georgia,'Songti SC',serif;color:#123653;font-size:13px;font-weight:650;line-height:1.2;background:#f5f0e4dd;border:0;border-radius:3px;padding:4px 7px;white-space:nowrap;max-width:150px; }
.route-transport-pin { position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:0;border-radius:50%;background:#f5f0e4cc;color:#123653;display:grid;place-items:center;z-index:3; }
.route-transport-pin:hover,.route-transport-pin:focus-visible { background:#e4dcc8;outline:2px solid #647359;outline-offset:2px; }
.route-map-scale { position:absolute;bottom:6px;left:12px;color:var(--muted);font-size:10px; }
.regional-route__hint,.regional-route__note { margin:10px 16px;color:var(--muted);font-size:11px;line-height:1.7; }
.regional-route__hint::after { content:''; }
.regional-route.is-full-overview .regional-route__map-scroll { overflow:hidden; }
.regional-route.is-full-overview .regional-route__hint::after { content:''; }
.regional-route__days { flex-wrap:wrap; }
.regional-route__legend { display:flex;flex-wrap:wrap;gap:8px 12px;padding:4px 16px;font-size:11px; }
.regional-route__legend > span { display:inline-flex;align-items:center;gap:5px; }
.regional-route__legend .atlas-icon { width:18px;height:18px; }
.atlas-day-key { display:flex;flex-wrap:wrap;gap:10px 16px;width:100%;border-bottom:1px solid #e0d7c2;padding:6px 0 12px;margin-bottom:4px; }
.atlas-day-key span { display:inline-flex;align-items:center;gap:6px; }
.atlas-day-key i { width:24px;border-top:4px dashed var(--route-color); }
.regional-route__legs { padding:0 16px 12px; }
.regional-route__legs { display:none; }
.route-day-detail { border-top:1px solid var(--line); }
.route-day-detail > summary { min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:720;cursor:pointer; }
.route-day-detail[open]>summary>span { transform:rotate(45deg); }
.route-day-detail ol { list-style:none;padding:0;margin:0 0 10px; }
.route-leg-detail { border-top:1px solid #e2e8df;scroll-margin-top:70px; }
.route-leg-detail summary { min-height:56px;display:grid;grid-template-columns:30px 1fr 12px;align-items:center;gap:6px;font-size:12px;line-height:1.5;cursor:pointer; }
.route-leg-detail small { display:block;font-size:10px;color:var(--muted); }
.route-leg-icon { font-size:20px; }
.route-leg-body { padding:0 4px 14px 36px; }
.route-leg-body p { margin:0 0 8px;font-size:12px;line-height:1.7;color:#536460; }
.route-leg-body>div { display:flex;gap:8px;flex-wrap:wrap; }
.route-place-link { min-height:44px;padding:6px 10px;border:1px solid #c7dadd;border-radius:12px;background:#edf6f5;color:var(--lake);font-size:11px; }
.regional-route__sources { display:flex;flex-wrap:wrap;gap:10px;padding:0 16px 12px; }
.regional-route__sources a { min-height:44px;display:inline-flex;align-items:center;font-size:11px;color:var(--lake); }
.route-day-detail summary::-webkit-details-marker,.route-leg-detail summary::-webkit-details-marker { display:none; }
.route-popover { position:fixed; z-index:80; box-sizing:border-box;width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 100px);overflow-y:auto; border:1px solid #cbd4cf; border-radius:14px; background:#f8faf6; box-shadow:0 12px 28px #13262f28; padding:16px; }
.route-popover[hidden] { display:none; }
.route-popover::after { content:""; position:absolute; left:var(--arrow-x,50%); bottom:-8px; width:14px; height:14px; background:#f8faf6; border-right:1px solid #cbd4cf; border-bottom:1px solid #cbd4cf; transform:translateX(-50%) rotate(45deg); }
.route-popover section + section { border-top:1px solid var(--line);margin-top:10px;padding-top:6px; }
.route-popover section small { font-size:11px;color:var(--muted); }
.route-popover__close { position:absolute;right:4px;top:3px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:23px;line-height:1; }
.route-popover__mode { display:flex;align-items:center;gap:9px;padding-right:28px; }
.route-popover__icon { width:32px;height:32px;display:grid;place-items:center;color:var(--lake); }
.route-popover__icon .atlas-icon { width:28px;height:28px; }
.route-popover__mode strong { display:block;font-size:14px; }
.route-popover__mode small { display:block;color:var(--muted);font-size:10px;margin-top:2px; }
.route-popover h4 { margin:12px 0 6px;font-size:13px;line-height:1.5; }
.route-popover h4 span { color:var(--muted);padding:0 3px; }
.route-popover p { margin:0 0 10px;color:var(--muted);font-size:11px;line-height:1.6; }
.route-popover .route-duration { font-family:Georgia,'Songti SC',serif;font-size:21px;color:#123653;margin:8px 0; }
.route-destination-pin { width:44px;height:44px; }
.route-destination-pin span { position:absolute;top:33px;left:50%;transform:translateX(-50%);font-size:12px;background:#f3f5efdd;pointer-events:none; }
.route-transport-pin { background:#f3f5efde; }
.route-static-place { pointer-events:none; }
.route-static-place i { width:6px;height:6px;border:0;box-shadow:none;background:#49665d; }
.route-date-key i { width:26px;height:3px;border-radius:3px; }
.regional-route__heading { scroll-margin-top:65px; }
.route-destination-pin[data-point="murren"] span,
.route-destination-pin[data-point="gimmel"] span,
.route-destination-pin[data-point="laut"] span,
.route-destination-pin[data-point="bach"] span { left:auto;right:32px;top:12px;transform:none; }
.route-destination-pin[data-point="stech"] span,
.route-destination-pin[data-point="staub"] span,
.route-destination-pin[data-point="cliff"] span { left:32px;top:12px;transform:none; }
.route-destination-pin[data-point="spiez"] span,
.route-destination-pin[data-point="brienz"] span { top:-12px; }
.route-popover__actions { display:flex;gap:7px;flex-wrap:wrap; }
.place-illustration { width:100%;height:112px;border-radius:10px;background-color:#edf1e7;background-size:220% auto;background-repeat:no-repeat;border:1px solid var(--line);margin-bottom:10px; }
@keyframes route-pop { from { opacity:0;transform:translateY(5px); } to { opacity:1;transform:none; } }
@media (prefers-reduced-motion: reduce) { .route-popover.is-visible { animation:none; } }
