/* ══════════════════════════════════════════════════════════════════════════
   HARİTADA TURLAR (Emrah 2026-09-24)
   ⚠️ Yeni palet uydurulmadı: marka rengi `--theme-primary`, nötr griler mevcut
      ölçekten. Köşe yarıçapları 8/10/12/16 ölçeğinde.
   ⚠️ Dokunma hedefleri ≥44px (iOS HIG / Material).
   ══════════════════════════════════════════════════════════════════════════ */

.mp-wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px 28px; }

/* ── Üst çubuk ───────────────────────────────────────────────────────────── */
.mp-bar { padding: 20px 0 14px; }
.mp-bar-ic { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.mp-ti { font-size: 27px; font-weight: 800; color: #0a1628; margin: 0 0 4px; letter-spacing: -.01em; }
.mp-alt { font-size: 14px; color: #64748b; margin: 0; line-height: 1.5; }
.mp-alt strong { color: #0a1628; font-weight: 700; }

.mp-filtre { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mp-ara { position: relative; display: flex; align-items: center; }
.mp-ara-ic { position: absolute; left: 11px; display: flex; color: #94a3b8; pointer-events: none; }
.mp-ara input {
  min-height: 44px; padding: 0 14px 0 36px; width: 240px;
  border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 15px; color: #0f172a; background: #fff;
}
.mp-ara input:focus { outline: none; border-color: var(--theme-primary, #1557DC);
  box-shadow: 0 0 0 3px rgba(21, 87, 220, .12); }
.mp-filtre select {
  min-height: 44px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 15px; color: #0f172a; background: #fff; cursor: pointer;
}
.mp-filtre select:focus { outline: none; border-color: var(--theme-primary, #1557DC); }

/* ── Mobil liste/harita geçişi (masaüstünde gizli) ───────────────────────── */
.mp-gecis { display: none; }
.mp-gecis-b {
  flex: 1 1 0; min-height: 44px; border: 1px solid #d1d5db; background: #fff;
  font-size: 14.5px; font-weight: 700; color: #475569; cursor: pointer;
}
.mp-gecis-b:first-child { border-radius: 10px 0 0 10px; }
.mp-gecis-b:last-child  { border-radius: 0 10px 10px 0; border-left: 0; }
.mp-gecis-b.is-on { background: var(--theme-primary, #1557DC); border-color: var(--theme-primary, #1557DC); color: #fff; }

/* ── Gövde: liste + harita ───────────────────────────────────────────────── */
.mp-govde {
  display: grid; grid-template-columns: 380px 1fr; gap: 16px;
  align-items: start;
}

.mp-liste {
  /* ⚠️ Kendi kaydırması var; sayfa kaydırmasıyla yarışmaması için sabit yükseklik. */
  max-height: calc(100vh - 210px); min-height: 420px;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #e5e7eb; border-radius: 14px; background: #fff;
}

.mp-kart {
  display: flex; gap: 11px; padding: 11px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f1f5f9; transition: background .15s ease;
}
.mp-kart:last-child { border-bottom: 0; }
.mp-kart:hover { background: #f8fafc; }
.mp-kart:focus-visible { outline: 2px solid var(--theme-primary, #1557DC); outline-offset: -2px; }

.mp-kart-img { width: 96px; height: 72px; flex: 0 0 96px; border-radius: 10px; object-fit: cover; background: #e2e8f0; }
.mp-kart-img--bos { display: block; }
.mp-kart-ic { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mp-kart-ti {
  font-size: 14.5px; font-weight: 700; color: #0f172a; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-kart-meta {
  font-size: 12.5px; color: #64748b; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-kart-alt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mp-puan { font-size: 12.5px; font-weight: 700; color: #b45309; white-space: nowrap; }
.mp-puan em { font-style: normal; font-weight: 500; color: #94a3b8; }
.mp-fiyat { font-size: 13px; color: #0f172a; white-space: nowrap; margin-left: auto; }
.mp-fiyat s { color: #94a3b8; margin-right: 5px; font-size: 12px; }
.mp-fiyat strong { font-weight: 800; }

.mp-harita-sar { position: relative; }
.mp-harita {
  height: calc(100vh - 210px); min-height: 420px;
  border-radius: 14px; border: 1px solid #e5e7eb; overflow: hidden; background: #e8eef5;
}
.mp-nojs { padding: 16px; font-size: 14px; color: #475569; }

/* ── Harita balonu (popup) ───────────────────────────────────────────────── */
.mp-pop-bas { font-size: 12px; font-weight: 800; color: #64748b; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 2px 7px; }
.mp-pop { display: flex; gap: 9px; padding: 7px 2px; text-decoration: none; color: inherit;
  border-top: 1px solid #f1f5f9; }
.mp-pop:first-of-type { border-top: 0; }
.mp-pop img { width: 56px; height: 44px; flex: 0 0 56px; border-radius: 8px; object-fit: cover; }
.mp-pop-ic { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-pop-ti { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.mp-pop-meta { font-size: 12px; color: #64748b; }
.mp-pop-alt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #0f172a; }
.mp-pop-puan { font-weight: 700; color: #b45309; }
/* ⚠️ Leaflet popup içeriğine kendi padding'ini verir; iki kez boşluk olmasın. */
.leaflet-popup-content { margin: 10px 12px; }

/* ── Boş durum ───────────────────────────────────────────────────────────── */
.mp-bos { text-align: center; padding: 56px 20px; }
.mp-bos-ic { display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px; background: #eff4ff;
  color: var(--theme-primary, #1557DC); margin-bottom: 14px; }
.mp-bos h2 { font-size: 19px; font-weight: 800; color: #0a1628; margin: 0 0 6px; }
.mp-bos p { font-size: 14.5px; color: #64748b; margin: 0 0 16px; }
.mp-bos-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: 10px; background: var(--theme-primary, #1557DC); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; }

/* ══ TABLET ══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .mp-govde { grid-template-columns: 300px 1fr; }
  .mp-ara input { width: 190px; }
}

/* ══ MOBİL — harita ve liste AYNI ANDA sığmaz, sekmeyle geçilir ══════════ */
@media (max-width: 767px) {
  .mp-wrap { padding: 0 12px 20px; }
  .mp-bar { padding: 14px 0 10px; }
  .mp-ti { font-size: 22px; }
  .mp-alt { font-size: 13px; }
  .mp-filtre { width: 100%; }
  .mp-ara { flex: 1 1 auto; }
  .mp-ara input { width: 100%; }
  .mp-filtre select { flex: 1 1 100%; }

  .mp-gecis { display: flex; margin-bottom: 10px; }
  .mp-govde { grid-template-columns: 1fr; gap: 0; }
  /* Seçili olmayan görünüm gizlenir — ikisini birden göstermek 390px'te okunmaz. */
  .mp-govde[data-gorunum="harita"] .mp-liste { display: none; }
  .mp-govde[data-gorunum="liste"]  .mp-harita-sar { display: none; }

  /* ⚠️ `dvh` KULLANILMADI: URL çubuğu açılıp kapandıkça değişir ve harita her
     karede yeniden boyutlanıp titrer. `svh` sabittir. */
  .mp-harita { height: 68svh; min-height: 360px; border-radius: 12px; }
  .mp-liste  { max-height: none; min-height: 0; border-radius: 12px; overflow-y: visible; }
  .mp-kart-img { width: 84px; height: 64px; flex-basis: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-kart { transition: none; }
}
