/* Turkey Holiday Diary - gezi haritasi sayfasi (tam genislik harita) */
.thd-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #475569); vertical-align: middle; }
[hidden] { display: none !important; }

/* Minimal baslik */
.thd-map-head { background: var(--thd-surface); padding-block: 10px 12px; }
.thd-map-head .thd-breadcrumbs { margin-bottom: 2px; font-size: .78rem; }
.thd-map-head__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.thd-map-head__title { margin: 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.2; }
.thd-map-head__count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: .82rem; color: var(--thd-muted); }
.thd-map-head__guides { display: inline-flex; align-items: center; gap: 6px; }
.thd-map-head__intro { margin-top: 4px; max-width: 980px; font-size: .86rem; line-height: 1.5; color: var(--thd-muted); }
.thd-map-head__intro p { margin: 0 0 .25em; }
.thd-map-head__intro p:last-child { margin-bottom: 0; }
.thd-pin-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--thd-primary); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--thd-primary); }

/* Arac cubugu */
.thd-map-app { margin-bottom: 40px; }
.thd-map-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	padding: 10px max(var(--thd-gutter), calc((100% - var(--thd-container)) / 2)); border-bottom: 1px solid var(--thd-border); background: var(--thd-bg);
}
.thd-map-search { position: relative; flex: 1 1 220px; max-width: 340px; }
.thd-map-search .thd-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--thd-muted); pointer-events: none; }
.thd-map-search input,
.thd-map-select {
	width: 100%; height: 38px; padding: 0 12px; border: 1.5px solid var(--thd-border); border-radius: 10px;
	background: var(--thd-bg); color: var(--thd-text); font: inherit; font-size: .88rem;
}
.thd-map-search input { padding-left: 34px; }
.thd-map-search input::placeholder { color: var(--thd-muted); opacity: 1; }
.thd-map-search input:focus, .thd-map-select:focus { border-color: var(--thd-primary); outline: none; box-shadow: 0 0 0 3px var(--thd-primary-soft); }
.thd-map-select { width: auto; min-width: 160px; cursor: pointer; }
.thd-guide-toggle {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1.5px solid var(--thd-border); border-radius: 999px;
	background: var(--thd-bg); color: var(--thd-heading); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
}
.thd-guide-toggle:hover { border-color: var(--thd-primary); }
.thd-guide-toggle.is-on { background: var(--thd-primary); border-color: var(--thd-primary); color: #fff; }
.thd-guide-toggle.is-on .thd-pin-key { background: #fff; box-shadow: 0 0 0 2px var(--thd-primary), 0 0 0 3.5px #fff; }
.thd-map-types { display: flex; flex-wrap: wrap; gap: 5px; }
.thd-type-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1.5px solid var(--thd-border); border-radius: 999px;
	background: var(--thd-bg); color: var(--thd-muted); font: inherit; font-size: .78rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, color .15s;
}
.thd-type-chip .thd-dot { width: 9px; height: 9px; opacity: .3; }
.thd-type-chip.is-on { color: var(--thd-heading); border-color: color-mix(in srgb, var(--thd-text) 20%, var(--thd-bg)); }
.thd-type-chip.is-on .thd-dot { opacity: 1; }
.thd-type-chip:hover { border-color: var(--thd-primary); }
.thd-map-count { flex-basis: 100%; margin: 0; font-size: .82rem; color: var(--thd-muted); }
.thd-map-count:empty { display: none; }
.thd-map-reset { padding: 0; border: 0; background: none; color: var(--thd-primary); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Tam genislik harita sahnesi */
.thd-map-stage { position: relative; isolation: isolate; }
.thd-map { height: 62vh; min-height: 340px; max-height: 560px; background: var(--thd-surface); }
.thd-map-hint { margin-top: 6px; margin-bottom: 0; font-size: .78rem; color: var(--thd-muted); }
.thd-map .leaflet-control-attribution { font-size: 11px; }
.thd-map .leaflet-control-zoom a { color: var(--thd-heading); }
@media (min-width: 1024px) {
	.thd-map { height: calc(100vh - 150px); min-height: 560px; max-height: 900px; }
	.thd-route {
		position: absolute; z-index: 1000; top: 14px; right: 14px; width: 320px; max-height: calc(100% - 48px); overflow: auto;
		box-shadow: 0 10px 34px rgb(15 37 43 / .22);
	}
}

/* Isaretler */
.thd-pin { background: none; border: 0; }
.thd-pin span { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .35); transition: transform .15s; }
.thd-pin.is-guide span { border-width: 3px; box-shadow: 0 0 0 2px var(--c), 0 3px 9px rgb(0 0 0 / .35); }
.thd-pin:hover span, .thd-pin:focus span { transform: scale(1.2); }
.thd-rpin { background: none; border: 0; }
.thd-rpin span {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--thd-accent); color: #fff;
	font: 700 13px/1 var(--thd-font-body); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .4);
}
.thd-rpin.is-me span { background: #111827; }
.thd-map .marker-cluster { background: color-mix(in srgb, var(--thd-primary) 22%, transparent); }
.thd-map .marker-cluster div { background: #fff; color: var(--thd-primary-dark); box-shadow: inset 0 0 0 2px var(--thd-primary); font: 700 12px/30px var(--thd-font-body); }
.thd-map .marker-cluster span { line-height: 30px; }

/* Acilir kutu */
.thd-map .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; box-shadow: var(--thd-shadow); }
.thd-map .leaflet-popup-content { margin: 0; width: auto !important; min-width: 220px; max-width: 280px; font-family: var(--thd-font-body); font-size: .88rem; line-height: 1.45; color: var(--thd-text); }
.thd-map .leaflet-popup-close-button { width: 28px !important; height: 28px !important; top: 6px !important; right: 6px !important; border-radius: 50%; background: rgb(255 255 255 / .92) !important; color: #111 !important; font: 18px/28px sans-serif !important; text-align: center; z-index: 2; }
.thd-pop__img { display: block; width: 100%; height: 135px; object-fit: cover; background: var(--thd-surface); }
.thd-pop__meta { display: flex; align-items: center; gap: 7px; margin: 12px 36px 4px 14px !important; font-size: .74rem; font-weight: 600; color: var(--thd-muted); text-transform: uppercase; letter-spacing: .04em; }
.thd-pop__img + .thd-pop__meta { margin-right: 14px !important; }
.thd-pop__meta .thd-dot { width: 9px; height: 9px; }
.thd-pop__name { margin: 0 14px 6px; font-family: var(--thd-font-heading); font-weight: var(--thd-heading-weight); font-size: 1.05rem; line-height: 1.25; color: var(--thd-heading); }
.thd-pop__desc { margin: 0 14px 10px !important; font-size: .84rem; color: var(--thd-text); }
.thd-pop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px 12px; border-top: 1px solid var(--thd-border); }
.thd-pop__guide, .thd-pop__gmaps { font-weight: 700; color: var(--thd-primary) !important; text-decoration: none; }
.thd-pop__gmaps { font-weight: 600; font-size: .84rem; }
.thd-pop__guide:hover, .thd-pop__gmaps:hover { text-decoration: underline; }
.thd-pop__add { margin-left: auto; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--thd-primary); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.thd-pop__add:hover { background: var(--thd-primary-dark); }
.thd-pop__add.is-in { background: transparent; color: #b91c1c; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Rota paneli */
.thd-route { margin: 12px var(--thd-gutter) 0; padding: 16px; border: 1px solid var(--thd-border); border-radius: 14px; background: var(--thd-bg); box-shadow: var(--thd-shadow-sm); }
@media (min-width: 1024px) { .thd-route { margin: 0; } }
.thd-route__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.thd-route__title .thd-icon { color: var(--thd-accent); }
.thd-route__empty { margin: 0 0 10px; font-size: .84rem; color: var(--thd-muted); }
.thd-route__list { list-style: none; margin: 0 0 10px; padding: 0; }
.thd-route__list:empty { display: none; }
.thd-route__stop { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--thd-border); }
.thd-route__stop:last-child { border-bottom: 0; }
.thd-route__num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--thd-accent); color: #fff; font-size: .76rem; font-weight: 700; }
.thd-route__stop.is-me .thd-route__num { background: #111827; }
.thd-route__body { flex: 1; min-width: 0; display: grid; }
.thd-route__name { font-weight: 700; color: var(--thd-heading); font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.thd-route__name a { color: inherit; text-decoration: none; }
.thd-route__name a:hover { color: var(--thd-primary); text-decoration: underline; }
.thd-route__leg { font-size: .76rem; color: var(--thd-muted); }
.thd-route__ctl { display: flex; gap: 2px; flex: none; }
.thd-route__ctl button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--thd-border); border-radius: 7px; background: var(--thd-bg); color: var(--thd-heading); font-size: .9rem; line-height: 1; cursor: pointer; }
.thd-route__ctl button:hover:not(:disabled) { border-color: var(--thd-primary); color: var(--thd-primary); }
.thd-route__ctl button[data-act="rm"]:hover { border-color: #b91c1c; color: #b91c1c; }
.thd-route__ctl button:disabled { opacity: .35; cursor: default; }
.thd-route__total { margin: 0 0 10px; padding: 8px 10px; border-radius: 9px; background: var(--thd-primary-soft); font-size: .8rem; color: var(--thd-heading); }
.thd-route__status { margin: 0 0 8px; font-size: .8rem; color: var(--thd-primary-dark); font-weight: 600; }
.thd-route__status:empty { display: none; }
.thd-route__actions { display: grid; gap: 7px; }
.thd-route__actions .btn { justify-content: center; width: 100%; padding: 10px 14px; font-size: .86rem; }
.thd-route__clear { justify-self: start; padding: 2px 0; border: 0; background: none; color: #b91c1c; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.thd-route__note { margin: 10px 0 0; font-size: .72rem; color: var(--thd-muted); line-height: 1.45; }
@media (min-width: 1024px) { .thd-route:not(.has-stops) .thd-route__note { display: none; } }

/* Bolgelere gore liste */
.thd-places { margin-top: 36px; margin-bottom: 64px; }
.thd-places__region + .thd-places__region { margin-top: 32px; }
.thd-places__region-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--thd-border); font-size: 1.25rem; }
.thd-places__region-title span { color: var(--thd-muted); font-weight: 500; font-size: .85em; }
.thd-places__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .thd-places__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .thd-places__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thd-place { display: flex; gap: 12px; padding: 13px 15px; border: 1px solid var(--thd-border); border-radius: var(--thd-radius); background: var(--thd-bg); }
.thd-place > .thd-dot { margin-top: 7px; }
.thd-place__body { min-width: 0; display: flex; flex-direction: column; }
.thd-place__name { margin: 0; font-size: 1rem; line-height: 1.3; }
.thd-place__name a { color: var(--thd-heading); text-decoration: none; }
.thd-place__name a:hover { color: var(--thd-primary); text-decoration: underline; }
.thd-place__meta { margin: 2px 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--thd-muted); }
.thd-place__desc { margin: 0 0 8px; font-size: .86rem; line-height: 1.5; color: var(--thd-text); }
.thd-place__show { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; color: var(--thd-primary); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.thd-place__show:hover { text-decoration: underline; }
.thd-places__more { margin-top: 4px; }
.thd-places__more > summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--thd-primary); font-weight: 700; font-size: .92rem; cursor: pointer; list-style: none; }
.thd-places__more > summary::-webkit-details-marker { display: none; }
.thd-places__more > summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--thd-primary-soft); font-size: .9rem; line-height: 1; }
.thd-places__more[open] > summary::before { content: "\2212"; }
.thd-places__mini { list-style: none; margin: 6px 0 0; padding: 0; columns: 1; column-gap: 24px; }
@media (min-width: 640px) { .thd-places__mini { columns: 2; } }
@media (min-width: 1024px) { .thd-places__mini { columns: 3; } }
@media (min-width: 1280px) { .thd-places__mini { columns: 4; } }
.thd-places__mini li { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; break-inside: avoid; }
.thd-places__mini button { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--thd-heading); font: inherit; font-weight: 500; font-size: .86rem; text-align: left; line-height: 1.35; cursor: pointer; }
.thd-places__mini button:hover { color: var(--thd-primary); text-decoration: underline; }
.thd-places__mini i { display: inline-block; width: 8px; height: 8px; margin: -2px 7px 0 0; border-radius: 50%; background: var(--c); vertical-align: middle; }
.thd-places__mini small { font-size: .74rem; color: var(--thd-muted); white-space: nowrap; }
.thd-places__credit { margin-top: 28px; font-size: .78rem; color: var(--thd-muted); }

@media (max-width: 639px) {
	.thd-map-toolbar { padding-inline: var(--thd-gutter); }
	.thd-map-search { max-width: none; flex-basis: 100%; }
	.thd-map-select { flex: 1 1 110px; min-width: 0; }
	.thd-guide-toggle { flex: none; padding: 0 11px; font-size: .76rem; gap: 6px; }
	.thd-map-toolbar { gap: 7px 8px; padding-block: 8px; }
	.thd-map-types { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--thd-gutter) * -1); padding: 2px var(--thd-gutter) 4px; scrollbar-width: none; flex-basis: calc(100% + var(--thd-gutter) * 2); }
	.thd-map-types::-webkit-scrollbar { display: none; }
	.thd-type-chip { flex: none; }
	.thd-map-head__intro { font-size: .82rem; }
}
