/*
 * Haritalar — ören yerleri ve Artemis Kutsal Yolu (assets/js/kategori/haritalar.js).
 * Ana sayfanın yazı tipleri ve altın vurgusu; harita solda, yer listesi sağda
 * (telefonda altta). İşaretler: ören yeri = altın nokta, rota durağı = numaralı halka.
 */
.hr {
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 20px 90px;
	color: var(--lx-body);
	font-family: "Open Sans", sans-serif;
}
.hr ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Başlık ---------- */
.hr-head {
	text-align: center;
}
.hr .hr-kicker {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--lx-gold);
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}
.hr-kicker::before,
.hr-kicker::after {
	content: "";
	width: 36px;
	height: 1px;
	background: currentColor;
}
.hr .hr-lead {
	max-width: 720px;
	margin: 12px auto 0;
	color: var(--lx-heading);
	font-family: var(--lx-serif);
	font-size: clamp(26px, 3.4vw, 38px);
	font-style: italic;
	line-height: 1.25;
}

/* ---------- Katman düğmeleri ---------- */
.hr-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 30px 0 22px;
}
.hr-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 16px;
	border: 1px solid var(--lx-line-strong);
	border-radius: 40px;
	background: var(--lx-surface);
	color: var(--lx-muted);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.hr-chip small {
	color: var(--lx-muted);
	font-size: 12px;
	font-weight: 400;
}
.hr-chip.is-on {
	border-color: var(--lx-gold);
	background: var(--lx-gold-wash);
	color: var(--lx-heading);
}
.hr-chip:not(.is-on) .hr-dot {
	opacity: 0.35;
}
.hr-chip:hover,
.hr-chip:focus-visible {
	border-color: var(--lx-gold);
}
.hr-chip--konum::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid var(--lx-gold);
	border-radius: 50%;
}
.hr-chip--konum.is-busy {
	opacity: 0.6;
	cursor: progress;
}
.hr-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}
.hr-dot--oren {
	background: var(--lx-gold);
	box-shadow: 0 0 0 2px var(--lx-surface), 0 0 0 3px var(--lx-gold);
}
.hr-dot--rota {
	border: 2px dashed var(--lx-heading);
}

/* ---------- Harita + liste ---------- */
.hr-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
}
.hr-map {
	height: min(72vh, 680px);
	min-height: 420px;
	overflow: hidden;
	border: 1px solid var(--lx-line);
	border-radius: 14px;
	background: var(--lx-surface-2);
	box-shadow: var(--lx-card-shadow);
	z-index: 0; /* header menüsünün altında kalsın */
}
.hr-list {
	max-height: min(72vh, 680px);
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--lx-line-strong) transparent;
}
.hr .hr-list__title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 8px;
	padding-top: 4px;
	color: var(--lx-heading);
	font-family: var(--lx-serif);
	font-size: 20px;
	font-weight: 700;
}
.hr .hr-list__title:not(:first-child) {
	margin-top: 26px;
}
.hr .hr-list__title a {
	color: var(--lx-gold);
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
}
.hr-list__items li {
	border-bottom: 1px solid var(--lx-line);
}
.hr-list__items.is-off {
	opacity: 0.45;
}
.hr-list__items button {
	display: flex;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	padding: 9px 4px 9px 0;
	border: 0;
	background: none;
	color: var(--lx-text);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease, padding 0.2s ease;
}
.hr-list__items button:hover,
.hr-list__items button:focus-visible {
	padding-left: 6px;
	color: var(--lx-gold);
}
.hr-no {
	flex: none;
	min-width: 20px;
	color: var(--lx-gold);
	font-family: var(--lx-serif);
	font-style: italic;
	font-weight: 700;
}

/* Harita karoları: renkli OSM haritası soluk ve sıcak tonda. Koyu temada ters çevrilmez
   (çok kapalı ve okunaksız oluyordu); aynı açık harita yalnızca biraz kısılır. */
.hr .hr-tiles {
	filter: grayscale(0.85) sepia(0.2) brightness(1.03) contrast(0.92);
}
:root[data-theme="dark"] .hr .hr-tiles {
	filter: grayscale(0.85) sepia(0.2) brightness(0.92) contrast(0.95);
}

/* ---------- İşaretler ---------- */
/* dokunma alanı 28px (erişilebilirlik: en az 24px); görünen nokta 22px ortada */
.hr-pin,
.hr-stop {
	display: grid;
	place-items: center;
}
.hr-pin span {
	display: block;
	width: 22px;
	height: 22px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #8c5e30;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease;
}
.hr-pin:hover span,
.hr-pin:focus span {
	transform: scale(1.2);
}
.hr-stop span {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 2px solid #2a231d;
	border-radius: 50%;
	background: #fff;
	color: #2a231d;
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hr-route {
	stroke: #2a231d;
	stroke-opacity: 0.7;
}
/* Harita iki temada da açık kaldığı için işaretler ve rota çizgisi de aynı kalır */
.hr-me span {
	display: block;
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #2f7bf5;
	box-shadow: 0 0 0 6px rgba(47, 123, 245, 0.25);
}
.hr-me-acc {
	fill: #2f7bf5;
	fill-opacity: 0.08;
	stroke: #2f7bf5;
	stroke-opacity: 0.35;
	stroke-width: 1;
}

/* ---------- Açılır kutu ---------- */
.hr .leaflet-popup-content-wrapper {
	border-radius: 10px;
	background: var(--lx-surface);
	color: var(--lx-text);
	box-shadow: var(--lx-shadow);
}
.hr .leaflet-popup-tip {
	background: var(--lx-surface);
}
.hr .leaflet-popup-content {
	margin: 14px 16px;
}
.hr-pop {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: "Open Sans", sans-serif;
}
.hr-pop__kicker {
	color: var(--lx-gold);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.hr-pop__title {
	color: var(--lx-heading);
	font-family: var(--lx-serif);
	font-size: 17px;
	line-height: 1.3;
}
.hr-pop__text {
	color: var(--lx-body);
	font-size: 13px;
	line-height: 1.5;
}
.hr-pop__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 8px;
}
.hr .hr-pop__links a {
	color: var(--lx-gold);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.hr .hr-pop__links a:hover {
	text-decoration: underline;
}
.hr .leaflet-container a.leaflet-popup-close-button {
	color: var(--lx-muted);
}
.hr .leaflet-control-attribution {
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
}
:root[data-theme="dark"] .hr .leaflet-control-attribution,
:root[data-theme="dark"] .hr .leaflet-bar a {
	background: #27221c;
	color: #a8998a;
}
:root[data-theme="dark"] .hr .leaflet-control-attribution a {
	color: #d9b08c;
}
.hr-note {
	margin: 12px 0 0;
	color: var(--lx-muted);
	text-align: center;
}

@media (max-width: 991px) {
	.hr-body {
		grid-template-columns: 1fr;
	}
	.hr-map {
		height: 62vh;
		min-height: 360px;
	}
	.hr-list {
		max-height: none;
		overflow: visible;
		padding-right: 0;
		columns: 2 240px;
		column-gap: 30px;
	}
	.hr .hr-list__title,
	.hr-list__items li {
		break-inside: avoid;
	}
}
@media (max-width: 575px) {
	.hr {
		padding: 28px 16px 60px;
	}
	.hr-map {
		border-radius: 10px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hr-chip,
	.hr-pin span,
	.hr-list__items button {
		transition: none;
	}
}
