/* Empfehlungskarte (26.11.2026): echte Karte aus OpenStreetMap-Daten, Zoom, Kategorien */
.valley-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "map side"; gap: var(--s5); margin-top: var(--s4); }
.valley-in .map { grid-area: map; }
.valley-in .side { grid-area: side; min-width: 0; }
.map { aspect-ratio: 1 / 1; background: #eef3ec; border-radius: 10px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.map[data-zoom="near"] { touch-action: none; }
.map:active { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; width: 100%; }
.map .basemap { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1000 / 997; pointer-events: none; }
/* Linien und Schrift bleiben beim Zoomen gleich groß: --u = Karteneinheiten je Bildschirmpixel */
.basemap path { vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.basemap .bg { fill: #eef3ec; }
.basemap path.res { fill: #e2e0e9; stroke: none; }
.basemap path.glacier { fill: #f8fbfd; stroke: none; }
.basemap path.water { fill: #a9cfe0; stroke: none; }
.basemap .stream { stroke: #bcd9e6; stroke-width: .8px; }
.basemap .river { stroke: #a9cfe0; stroke-width: 3px; }
.basemap .piste { stroke: #f0bfae; stroke-width: 1.2px; }
.basemap .minor { stroke: #fff; stroke-width: 1.4px; }
.basemap .road { stroke: #fff; stroke-width: 1.8px; }
.basemap .mainc { stroke: #d6d1c2; stroke-width: 4px; }
.basemap .main { stroke: #fffdf6; stroke-width: 2.6px; }
.basemap .rail { stroke: #8f8c99; stroke-width: 1.3px; stroke-dasharray: 5 3; stroke-linecap: butt; }
.basemap .lift { stroke: #26252d; stroke-width: 1.1px; }
.basemap .liftend { fill: #26252d; r: calc(2.2px * var(--u, 2)); }
.basemap .tri { fill: #9db097; r: calc(2.5px * var(--u, 2)); }
.basemap .station { fill: #fff; stroke: #26252d; stroke-width: calc(1.5px * var(--u, 2)); r: calc(3.5px * var(--u, 2)); }
.basemap text { font-family: var(--sans); fill: #26252d; paint-order: stroke; stroke: #eef3ec; stroke-width: calc(3px * var(--u, 2)); stroke-linejoin: round; }
.basemap .town { font-size: calc(15px * var(--u, 2)); font-weight: 600; }
.basemap .village { font-size: calc(12px * var(--u, 2)); font-weight: 600; }
.basemap .hamlet, .basemap .peak, .basemap .stationname { font-size: calc(10.5px * var(--u, 2)); fill: #6a6874; }
.map[data-z="1"] .minor, .map[data-z="1"] .hamlet, .map[data-z="1"] .stationname, .map[data-z="1"] .station, .map[data-z="1"] .stream { display: none; }
.map[data-z="1"] .village { font-size: calc(10.5px * var(--u, 2)); font-weight: 500; }
.map[data-z="1"] .road { stroke-width: 1px; }
.map[data-z="1"] .piste { stroke-width: .9px; }
.map[data-z="3"] .river { stroke-width: 6px; }
.map[data-z="3"] .main { stroke-width: 5px; } .map[data-z="3"] .mainc { stroke-width: 7px; }
.map[data-z="3"] .road { stroke-width: 3.5px; } .map[data-z="3"] .minor { stroke-width: 2.6px; }
.map[data-z="3"] .piste { stroke-width: 2.4px; }

.pin { width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; }
.pin::after { display: none; }
.pin::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--c, #5f8f76); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgb(38 37 45 / .25); transition: transform .2s; }
.pin .pi-ic { position: relative; width: 16px; height: 16px; color: #fff; stroke-width: 1.8; }
.pin[aria-pressed="true"] { z-index: 2; }
.pin[aria-pressed="true"]::before { transform: scale(1.3); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c, #5f8f76), 0 2px 8px rgb(38 37 45 / .3); }
.pin[hidden] { display: none; }
.pin:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

.c-nature { --c: #5f8f76; }
.c-therme { --c: #5b9bb5; }
.c-inn { --c: #c0825a; }
.c-hut { --c: #9c6f58; }
.c-cafe { --c: #c49a45; }
.c-food { --c: #c47888; }
.c-bar { --c: #8a76b6; }
.c-shop { --c: #77905a; }

.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.zoom button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: 500 1.25rem/1 var(--sans); cursor: pointer; box-shadow: 0 1px 4px rgb(38 37 45 / .18); }
.zoom .ztxt { font-size: .75rem; }
.zoom button:hover { background: var(--soft); }

#filters { margin: var(--s4) 0 0; }
#filters .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
#filters .chip .ch-ic { width: 16px; height: 16px; color: var(--c); }
#filters .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
#filters .chip.on .ch-ic { color: #fff; }

.place .pi { aspect-ratio: 3 / 2; }
.pcat { display: flex; align-items: center; gap: 6px; font: .8125rem var(--sans); color: var(--grey); margin: 0 0 var(--s1) !important; }
.pcat .pc-ic { width: 15px; height: 15px; color: var(--c); }
.place .suggest { font: .8125rem var(--sans); color: var(--grey); }
.season-line { font: .875rem/1.5 var(--sans); color: var(--ink); background: var(--butter); border-radius: 6px; padding: 6px 10px; display: inline-block; }
.plinks { display: flex; flex-wrap: wrap; gap: var(--s4); font: .9375rem var(--sans); }
.plinks .ext::after { content: " ↗"; color: var(--grey); }

.plist { list-style: none; margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); columns: 2; column-gap: var(--s4); }
.plist li { break-inside: avoid; }
.plist li[hidden] { display: none; }
.prow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 0; font: .9375rem/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.prow .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); display: grid; place-items: center; }
.prow .dot .pi-ic { width: 13px; height: 13px; color: #fff; stroke-width: 1.8; }
.prow.on { font-weight: 600; }
@media (hover: hover) { .prow:hover { color: var(--accent-ink); } }

@media (max-width: 900px) {
  .valley-in { grid-template-columns: 1fr; grid-template-areas: "map" "side"; }
}
@media (max-width: 760px) {
  #filters { flex-wrap: nowrap; overflow-x: auto; margin: var(--s4) calc(-1 * var(--s4)) 0; padding: 0 var(--s4) var(--s1); scrollbar-width: none; }
  #filters::-webkit-scrollbar { display: none; }
  #filters .chip { white-space: nowrap; }
  .plist { columns: 1; }
  .prow { padding: 10px 0; }
}
.map[data-z="1"] .far-hide { display: none; }

/* Designer-Prüfung 2: Relief, Bündel, Namensschild, ruhigere Lifte */
.world .relief { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.map .basemap { position: relative; }
.basemap path.res { fill: rgb(214 208 226 / .75); }
.basemap .lift { stroke: #7f7c8a; stroke-width: .9px; }
.basemap .liftend { fill: #7f7c8a; r: calc(1.6px * var(--u, 2)); }
.basemap .piste { stroke: #eab7a4; }
.map[data-z="1"] .piste { display: none; }
.basemap text { stroke: rgb(244 247 241 / .9); }
.pin { transform: translate(var(--dx, 0px), var(--dy, 0px)); transition: transform .25s ease; }
.pin.in-cluster { display: none; }
.plabel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 .8125rem/1.2 var(--sans); color: var(--ink); background: #fff; border-radius: 6px; padding: 4px 8px; pointer-events: none; display: none; }
.pin[aria-pressed="true"] .plabel { display: block; }
.pin.label-left .plabel { left: auto; right: 40px; }
@media (hover: hover) { .pin:hover .plabel { display: block; } .pin:hover { z-index: 3; } }
.cluster { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.cluster::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgb(38 37 45 / .25); }
.cluster span { position: relative; color: #fff; font: 600 .8125rem/1 var(--sans); }
.attr { position: absolute; left: 8px; bottom: 6px; margin: 0; font: .6875rem var(--sans); color: var(--grey); background: rgb(255 255 255 / .7); padding: 1px 5px; border-radius: 4px; z-index: 3; }
#places { min-height: 21rem; }
.c-hut { --c: #6f8796; }
.c-shop { --c: #8a8a6a; }
.c-cafe { --c: #c9a13f; }
@media (max-width: 900px) {
  .place { display: flex; flex-direction: column; }
  .place .pi { order: 5; margin: var(--s3) 0 0; }
  #places { min-height: 0; }
}
@media (max-width: 760px) {
  .zoom { top: auto; bottom: 10px; right: 10px; flex-direction: row; }
  .zoom button { width: 42px; height: 42px; }
}
.clusters { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.clusters .cluster { pointer-events: auto; }
.cluster.has-current::before { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent), 0 1px 4px rgb(38 37 45 / .25); }
.place[hidden] { display: none !important; }
.c-peak { --c: #6d6a85; }

/* 26.11.: Karte bleibt beim Scrollen stehen, Liste nach Kategorien gruppiert */
.plist { columns: 2; column-gap: var(--s5); }
.plist ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.pgroup { break-inside: avoid; }
.pgroup[hidden] { display: none; }
.phead { display: flex; align-items: center; gap: 6px; font: 600 .8125rem var(--sans); color: var(--grey); margin: 0 0 2px; }
.phead .ph-ic { width: 15px; height: 15px; color: var(--c); }
.prow { padding: 5px 0; }
@media (min-width: 901px) {
  .valley-in { align-items: start; }
  .valley-in .map { position: sticky; top: 88px; max-height: calc(100vh - 112px); }
}
@media (max-width: 760px) { .plist { columns: 1; } .prow { padding: 9px 0; } }
