/* Chillo’s Ortsplan – passend zu Chillo’s Guide und zum chill-in-Lageplan */
.cor {
	--g: var(--wp--preset--color--tannengruen, #183325);
	--b: var(--wp--preset--color--beige, #F3E6CB);
	--c: var(--wp--preset--color--creme, #F7F0E1);
	--k: var(--wp--preset--color--koralle, #EC6644);
	--map: #2a4033;
	--teal: #5abcb7;
	color: var(--g);
	font-size: 1rem;
}
.cor * { box-sizing: border-box; }
.cor.is-standalone { max-width: 1100px; margin: 0 auto; }
.cor-say { margin: 0 0 .75rem; }

/* ---------- Filter & Großansicht ---------- */
.cor-bar { display: flex; gap: .6rem; align-items: flex-start; }
.cor-bar .cor-chips { flex: 1; min-width: 0; }
.cor-big {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; border: 0; background: var(--g); color: #fff;
	border-radius: 999px; padding: .5rem .85rem; font: inherit; font-size: .88rem; font-weight: 700; line-height: 1.1; cursor: pointer;
}
.cor-big:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }
@media (max-width: 559px) { .cor-big span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
html.cor-noscroll, html.cor-noscroll body { overflow: hidden; }
.cor.is-big {
	position: fixed; inset: 0; z-index: 999999; margin: 0; max-width: none; width: auto; height: auto; box-sizing: border-box;
	background: var(--c); padding: 12px 16px 16px; display: flex; flex-direction: column; overflow: auto;
}
.cor.is-big .cor-say { display: none; }
.cor.is-big .cor-grid { flex: 1; min-height: 0; }
.cor.is-big .cor-map { aspect-ratio: auto; height: calc(100dvh - 130px); max-height: none; }
.cor.is-big .cor-pan { display: none; }
@media (min-width: 860px) {
	.cor.is-big .cor-grid { grid-template-columns: minmax(0, 1fr) 380px; }
	.cor.is-big .cor-side { top: 0; max-height: calc(100dvh - 80px); }
	.cor.is-big .cor-map { height: calc(100dvh - 86px); }
}

/* ---------- Filter ---------- */
.cor-chips { display: flex; gap: .4rem; overflow-x: auto; padding: 2px 2px .6rem; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cor-chips::-webkit-scrollbar { display: none; }
.cor-chips button {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem;
	border: 1.5px solid var(--b); background: #fff; color: var(--g);
	border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.1; cursor: pointer;
}
.cor-chips button i { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.08) inset; }
.cor-chips button.is-on { background: var(--g); border-color: var(--g); color: #fff; }
.cor-chips button:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }

/* ---------- Karte ---------- */
.cor-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.cor-main, .cor-side { min-width: 0; }
.cor-mapwrap { position: relative; border-radius: 16px; overflow: hidden; background: var(--map); }
.cor-map { display: block; width: 100%; aspect-ratio: 905 / 1085; max-height: 78vh; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.cor-map:active { cursor: grabbing; }
.cor-map text { font-family: Domine, Georgia, serif; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.cor-labels { pointer-events: none; }
.cor-pin, .cor-home { cursor: pointer; outline: none; }
.cor-pin:focus-visible circle:first-child, .cor-home:focus-visible circle { stroke: var(--k); stroke-width: 4; }
.cor-pin.is-sel circle:first-child { stroke: var(--k); stroke-width: 3; }
.cor-rlbl text { font-family: system-ui, -apple-system, sans-serif; letter-spacing: 0; }
.cor-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cor-tools button {
	width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.95); color: var(--g);
	font: 700 22px/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cor-tools button:focus-visible { outline: 3px solid var(--k); }
.cor-osm { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: rgba(255,255,255,.7); }
.cor-osm a { color: inherit; }
.cor-tip {
	position: absolute; transform: translate(-50%, -100%); background: #fff; color: var(--g); border-radius: 10px; padding: .35rem .6rem;
	font-size: .8rem; line-height: 1.25; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 2;
}
.cor-tip strong { display: block; }
.cor-tip span { opacity: .75; }
.cor-pan { margin: .4rem 0 0; font-size: .78rem; opacity: .65; }

/* ---------- Karte des gewählten Ortes ---------- */
.cor-card { background: #fff; border: 1.5px solid var(--b); border-radius: 16px; padding: .9rem 1rem; }
.cor-card.is-home { display: flex; gap: .8rem; align-items: center; background: var(--c); }
.cor-chillo { flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; }
.cor-k { margin: 0; font-family: Domine, Georgia, serif; font-weight: 700; }
.cor-hint { margin: .15rem 0 0; font-size: .9rem; }
.cor-card__head { display: flex; gap: .7rem; align-items: flex-start; }
.cor-card__head > div { flex: 1; min-width: 0; }
.cor-dot { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--b); }
.cor-cat { margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.cor-tipb { color: var(--k); }
.cor-name { margin: .1rem 0 0; font-family: Domine, Georgia, serif; font-size: 1.15rem; line-height: 1.2; }
.cor-sub { margin: .2rem 0 0; font-size: .9rem; }
.cor-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--g); cursor: pointer; padding: 0 .2rem; opacity: .6; }
.cor-dist { margin: .7rem 0 0; font-size: .92rem; }
.cor-walk { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cor-walk b { color: var(--k); }
.cor-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.cor-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem 1rem; border-radius: 999px;
	border: 1.5px solid var(--g); color: var(--g); text-decoration: none; font-weight: 700; font-size: .92rem;
}
.cor-btn.is-main { background: var(--k); border-color: var(--k); color: var(--g); }
.cor-btn:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }
.cor-note { margin: .7rem 0 0; font-size: .78rem; opacity: .7; }

/* ---------- Liste ---------- */
.cor-list { margin-top: 1rem; }
.cor-lh { margin: 0 0 .4rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.cor-list ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.cor-list li button {
	width: 100%; display: flex; align-items: center; gap: .65rem; text-align: left; font: inherit; color: var(--g);
	background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: .5rem .6rem; cursor: pointer;
}
.cor-list li button:hover { border-color: var(--b); }
.cor-list li button.is-sel { border-color: var(--k); }
.cor-list li button:focus-visible { outline: 3px solid var(--k); outline-offset: 1px; }
.cor-list .cor-dot { width: 28px; height: 28px; box-shadow: none; border-width: 0; }
.cor-li { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cor-li b { font-size: .95rem; line-height: 1.25; }
.cor-li small { font-size: .8rem; opacity: .75; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cor-star { color: var(--k); font-style: normal; }
.cor-min { flex: 0 0 auto; font-size: .8rem; font-weight: 700; color: var(--k); white-space: nowrap; }

.cor-more { width: 100%; min-height: 44px; border: 1.5px solid var(--g); background: transparent; color: var(--g); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; margin-bottom: 1rem; }
.cor-more:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }

/* ---------- Größere Bildschirme: Karte links, Infos rechts ---------- */
@media (min-width: 860px) {
	.cor-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); align-items: start; }
	.cor-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
	.cor-list { overflow: auto; padding-right: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .cor * { transition: none !important; } }
