/* GOHO Ateliertage – Karte
   Schriftschnitte, Farben und Layout wie im abgestimmten Entwurf:
   Blau = aktiver Filter, Rot = Zurücksetzen, Rosa = UI-Chrome (Lightbox, Scrollbalken).
*/

@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

.goho-map-app {
	--ink: #201f1c;
	--muted: #8c887c;
	--line: #e9e5d8;
	--paper: #fffdf9;
	--map-bg: #e4e0d3;
	--blue: #1b87c2;
	--red: #ff4d2e;
	--pink: #f288cd;
	font-family: "Work Sans", system-ui, sans-serif;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-sizing: border-box;
}
.goho-map-app * { box-sizing: border-box; }
.goho-map-app button { font-family: inherit; cursor: pointer; }
.goho-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Search */
.goho-toolbar { padding: 14px 20px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.goho-search { position: relative; max-width: 420px; }
.goho-search svg { position: absolute; left: 12px; top: 50%; margin-top: -7.5px; color: #a8a396; pointer-events: none; }
.goho-search input {
	width: 100%; padding: 9px 14px 9px 34px; border-radius: 999px; border: 1px solid #e2ded1;
	font-family: inherit; font-size: 13px; color: var(--ink); outline: none;
}
.goho-search input:focus { border-color: var(--blue); }

/* Genre filter */
.goho-genres { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.goho-genres-head { display: flex; align-items: center; justify-content: space-between; height: 20px; margin-bottom: 8px; }
.goho-genres-head span { font-weight: 600; font-size: 12px; color: #56534b; }
.goho-clear-btn { font-weight: 600; font-size: 12px; color: var(--red); background: none; border: none; padding: 2px 4px; }
.goho-clear-btn.is-hidden { visibility: hidden; pointer-events: none; }
.goho-chiprow {
	display: flex; flex-wrap: wrap; gap: 6px; max-height: 118px; overflow-y: auto; align-content: flex-start;
}
.goho-chiprow::-webkit-scrollbar { width: 6px; }
.goho-chiprow::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }
.goho-chip {
	font-weight: 500; font-size: 12px; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
	border: 1px solid #e2ded1; background: #fff; color: #56534b;
}
.goho-chip:hover { filter: brightness(0.96); }
.goho-chip.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Map + popup row */
.goho-main { display: flex; min-height: 0; position: relative; align-items: flex-start; }
.goho-map-wrap { flex: 1 1 auto; background: var(--map-bg); min-width: 0; position: relative; overflow: hidden; touch-action: none; cursor: default; }
.goho-map-wrap.is-zoomed { cursor: grab; }
.goho-map-wrap.is-zoomed:active { cursor: grabbing; }
.goho-map-inner { position: relative; width: 100%; transform-origin: 0 0; }
.goho-map-inner svg { display: block; width: 100%; height: auto; }

.goho-zoom-controls { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 10; }
.goho-zoom-btn {
	width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--paper);
	box-shadow: 0 1px 6px rgba(0,0,0,.22); font-size: 17px; line-height: 1; color: var(--ink);
	display: flex; align-items: center; justify-content: center;
}
.goho-zoom-btn:hover { background: #f2f0e6; }
.goho-zoom-reset { margin-top: 4px; }
.goho-pins { position: absolute; inset: 0; }

.goho-pin {
	position: absolute; background: none; border: none; padding: 0;
	transition: opacity 140ms ease;
}
.goho-pin img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.goho-pin.is-selected img { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.goho-pin.is-dimmed { opacity: .3; }

.goho-arrow { position: absolute; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.goho-arrow.is-dimmed { opacity: .3; }

/* Popup panel (desktop: side panel in normal flow) */
.goho-popup { flex: 0 0 360px; align-self: stretch; border-left: 1px solid var(--line); background: var(--paper); overflow-y: auto; padding: 52px 24px 30px; position: relative; display: none; }
.goho-popup.is-open { display: block; }
.goho-popup-close {
	display: flex; align-items: center; justify-content: center;
	position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
	border-radius: 50%; border: none; background: #f2f0e6; color: #56534b; font-size: 17px;
}
.goho-popup-close:hover { background: #e9e5d8; }
.goho-popup-backdrop { display: none; }

.goho-popup-item + .goho-popup-item { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.goho-popup-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.goho-popup-title-row img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.goho-popup-title-row h4 { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.25; }
.goho-popup-genres { font-size: 13px; color: var(--muted); margin: 10px 0 14px; line-height: 1.5; }
.goho-popup-address { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; font-size: 13.5px; }
.goho-popup-desc { font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.goho-popup-desc a { color: var(--blue); }

.goho-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.goho-gallery::-webkit-scrollbar { height: 6px; }
.goho-gallery::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }
.goho-thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px; border: none; padding: 0; background-size: cover; background-position: center; overflow: hidden; }
.goho-thumb:hover { filter: brightness(.94); }
.goho-thumb.is-logo { background: #f3f1e9; display: flex; align-items: center; justify-content: center; }
.goho-thumb.is-logo img { width: 62%; height: 62%; object-fit: contain; }
.goho-photo-note { font-size: 11.5px; color: #a8a396; margin-top: 8px; }

/* Full list */
.goho-list-section { padding: 22px 20px 26px; border-radius: 0 0 10px 10px; }
.goho-list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.goho-list-head h3 { margin: 0; font-size: 16px; }
.goho-list-head span { font-size: 12px; color: #a8a396; }
.goho-list { border-top: 1px solid var(--line); }
.goho-list-row {
	width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 4px;
	border: none; background: none; border-bottom: 1px solid var(--line); text-align: left; font-family: inherit;
}
.goho-list-row:hover { background: #f2f1ea; }
.goho-list-row.is-selected { background: #e8e6dd; }
.goho-list-row img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.goho-list-row .goho-list-title { font-weight: 500; font-size: 14px; flex: 1 1 auto; }
.goho-list-row .goho-list-address { font-size: 12.5px; color: #a8a396; }
.goho-list-empty { padding: 20px 4px; font-size: 13px; color: #a8a396; }

.goho-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.goho-page-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e2ded1; background: #fff; color: #56534b; font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.goho-page-btn.is-current { border-color: var(--blue); background: var(--blue); color: #fff; }
.goho-page-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2ded1; background: #fff; color: #56534b; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* Lightbox */
.goho-lightbox { position: fixed; inset: 0; background: rgba(20,19,17,.88); display: none; align-items: center; justify-content: center; z-index: 9999; }
.goho-lightbox.is-open { display: flex; }
.goho-lightbox-close, .goho-lightbox-nav {
	position: absolute; border: none; background: var(--pink); color: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.goho-lightbox-close { top: 22px; right: 26px; width: 38px; height: 38px; font-size: 18px; }
.goho-lightbox-nav { width: 44px; height: 44px; font-size: 20px; top: 50%; margin-top: -22px; }
.goho-lightbox-prev { left: 26px; }
.goho-lightbox-next { right: 26px; }
.goho-lightbox-nav.is-hidden { display: none; }
.goho-lightbox-stage { max-width: 80vw; max-height: 80vh; border-radius: 16px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.goho-lightbox-stage img { max-width: 80vw; max-height: 80vh; display: block; }

/* ---------- Mobile (≤900px): popup becomes a bottom sheet ---------- */
@media (max-width: 900px) {
	.goho-main { flex-direction: column; align-items: stretch; }
	.goho-map-wrap { flex: none; }

	.goho-popup {
		display: none;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		flex: none; border-left: none; border-top: 1px solid var(--line);
		border-radius: 18px 18px 0 0; box-shadow: 0 -8px 26px rgba(0,0,0,.18);
		max-height: 70vh;
	}
	.goho-popup.is-open { display: block; }
	.goho-popup-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(20,19,17,.5); z-index: 55; }

	.goho-chiprow { max-height: 96px; }
}
