/* İl seçici + harita sayfası */
.il-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .2s, background .2s, transform .16s var(--ease); }
.il-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.il-btn:active { transform: scale(.97); }
.il-btn svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.il-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .il-btn { padding: 0 12px; }
  .il-btn span { max-width: 74px; }
}
@media (max-width: 520px) { .il-btn span { display: none; } .il-btn { padding: 0 11px; } }

.il-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 120; display: none; place-items: center; padding: 16px; }
.il-bg.open { display: grid; }
.il-modal { width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); animation: heroIn .25s var(--ease); overflow: hidden; }
.il-modal header { padding: 22px 24px 14px; display: grid; gap: 12px; }
.il-modal h3 { font-size: 26px; }
.il-modal input[type=search] { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px; font: inherit; }
.il-modal input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.il-liste { overflow-y: auto; padding: 4px 24px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.il-liste h5 { grid-column: 1/-1; margin: 12px 0 2px; font: 600 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.il-o { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: border-color .2s, background .2s, transform .16s var(--ease); }
.il-o:hover { border-color: var(--accent); background: var(--accent-soft); }
.il-o:active { transform: scale(.97); }
.il-o.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.il-o.bos { opacity: .5; }
.il-o small { font-size: 12px; opacity: .8; }

/* Harita sayfası */
.hr-wrap { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 124px); min-height: 560px; }
.hr-liste { overflow-y: auto; border-right: 1px solid var(--line); padding: 20px; display: grid; gap: 12px; align-content: start; }
.hr-ust h1 { font-size: 28px; margin-bottom: 4px; }
.hr-filtre { display: grid; gap: 10px; margin-top: 14px; }
.hr-filtre .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.in-s { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 12px; font: inherit; }
.hr-kart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, transform .16s var(--ease), background .2s; }
.hr-kart:hover, .hr-kart.on { border-color: var(--accent); }
.hr-kart.on { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.hr-b { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hr-b h3 { font: 700 17px var(--font-body); letter-spacing: 0; }
.hr-kart ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.hr-kart li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hr-kart li a { font-weight: 600; } .hr-kart li span { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.hr-harita { position: relative; min-height: 400px; }
#map { position: absolute; inset: 0; background: var(--surface-2); }
.pin-w { background: none; border: 0; }
.pm { position: relative; width: 56px; height: 82px; animation: dus .6s var(--ease) both; cursor: pointer; }
@keyframes dus { from { opacity: 0; transform: translateY(-26px) scale(.8); } to { opacity: 1; transform: none; } }
.pm-stack { position: absolute; left: 4px; top: 2px; width: 48px; height: 68px; }
.pm-stack img, .pm-bos { position: absolute; inset: 0; width: 48px; height: 68px; object-fit: cover; border-radius: 7px; border: 2.5px solid var(--paper); background: var(--surface-2); box-shadow: 0 5px 12px rgba(0,0,0,.45); transform: translate(calc(var(--i) * 5px), calc(var(--i) * -3px)) rotate(calc(var(--i) * 5deg - 3deg)); transform-origin: bottom left; transition: transform .3s var(--ease); }
.pm-stack img:first-child { z-index: 3; } .pm-stack img:nth-child(2) { z-index: 2; } .pm-stack img:nth-child(3) { z-index: 1; }
.pm-tip { position: absolute; left: 50%; bottom: 3px; width: 14px; height: 14px; background: var(--paper); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; box-shadow: 3px 3px 6px rgba(0,0,0,.3); z-index: 0; }
.pm-n { position: absolute; right: -6px; top: -8px; z-index: 5; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 13px/24px var(--font-body); text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pm-dis { position: absolute; left: -6px; top: -8px; z-index: 5; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--accent); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pm-dis svg { width: 12px; height: 12px; }
.pm.dis .pm-stack img { border-color: var(--accent); }
.pm-c { width: 60px; height: 86px; } .pm-c .pm-n { background: var(--paper); color: var(--paper-ink); }
.pin-w:hover .pm-stack img:first-child, .vurgu .pm-stack img:first-child { transform: translate(0, -6px) scale(1.12); }
.pin-w:hover .pm-stack img:nth-child(2), .vurgu .pm-stack img:nth-child(2) { transform: translate(9px, -6px) rotate(8deg); }
.pin-w:hover, .vurgu { z-index: 900 !important; }
.hr-lej { position: absolute; left: 12px; bottom: 26px; z-index: 500; display: flex; gap: 14px; padding: 8px 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; backdrop-filter: blur(8px); }
.hr-lej span { display: inline-flex; align-items: center; gap: 6px; } .lj { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--paper); background: var(--accent); } .lj.dis { border-color: var(--accent); background: var(--paper); }
.hr-sat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hr-tik { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; } .hr-tik input { accent-color: var(--accent); width: 18px; height: 18px; }
.hr-kart { display: grid; grid-template-columns: 62px 1fr; gap: 14px; }
.hr-k-i { position: relative; height: 86px; } .hr-k-i .pm-stack { left: 2px; top: 4px; transform: scale(.9); transform-origin: top left; }
.hr-kart.on .pm-stack img:first-child { transform: translate(0, -4px) scale(1.06); }
.pop-b { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pop-sc { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pp { flex: none; width: 104px; scroll-snap-align: start; display: grid; gap: 3px; align-content: start; }
.pp-i { position: relative; width: 104px; height: 148px; border-radius: 10px; overflow: hidden; background: var(--surface-2); } .pp-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); } .pp:hover img { transform: scale(1.06); }
.pp-d { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.pp b { font: 600 13px/1.3 var(--font-body); color: var(--ink); } .pp span { font-size: 12px; color: var(--ink-2); } .pp em { font: 700 12.5px var(--font-body); font-style: normal; color: var(--accent); }
.pop-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vurgu .pm { animation: none; }
.hr-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: 16px; }
.hr-popup .leaflet-popup-tip { background: var(--surface); }
.pop b { font: 700 16px var(--font-display); } .pop ul { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; } .pop li a { font-weight: 600; color: var(--accent); } .pop li span { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 900px) { .hr-wrap { grid-template-columns: 1fr; grid-template-rows: 52vh auto; height: auto; } .hr-harita { order: -1; } .hr-liste { border-right: 0; } }

.il-bant { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

[data-mode="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.8); }
.leaflet-container { font-family: var(--font-body); }
