/* ==========================================================================
   🏢 SARAY KONUT, DÜKKAN & TİCARİ PİYASA ANALİZ MODÜLÜ — İZOLE STİL DOSYASI
   Arsa Analiz sistemine (style.css) hiçbir müdahalede bulunmaz.
   ========================================================================== */

/* ---- 1. Üst Mod Geçiş Çubuğu (Sol Panel Üstü) ---- */
.ust-mod-cubuk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 12px 8px;
  background: var(--yuzey2, #f4f1ea);
  border-bottom: 1px solid var(--ayrac, #e4ded2);
}

.ust-mod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--ayrac, #e4ded2);
  background: var(--yuzey, #ffffff);
  color: var(--metin2, #5c5549);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ust-mod-btn:hover {
  border-color: #b8870a;
  color: var(--metin, #1c1917);
}

.ust-mod-btn#ustModArsaBtn.aktif {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fbbf24;
  border-color: #b8870a;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.ust-mod-btn#ustModEmlakBtn.aktif {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.25);
}

.ust-mod-rozet {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
  letter-spacing: 0.02em;
}

.ust-mod-btn#ustModEmlakBtn.aktif .ust-mod-rozet {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.canli-nokta.mavi {
  background: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22) !important;
}

/* ---- 2. Girişte Mod Seçim Portalı (#modSecimPortal) ---- */
.mod-portal-perde {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(8, 13, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: mpFadeIn 0.22s ease;
}

.mod-portal-perde.gizli {
  display: none !important;
}

@keyframes mpFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.mod-portal-kutu {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px;
  color: #f8fafc;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.65);
  max-height: 92vh;
  overflow-y: auto;
}

.mod-portal-kapat {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.mod-portal-kapat:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.5);
}

.mod-portal-ust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.mod-portal-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  overflow: hidden;
  position: relative;
}

.mod-portal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
  padding: 4px;
}

.mod-portal-rozet-s {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
}

.mod-portal-etiket {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.mod-portal-ust-metin h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.mod-portal-ust-metin p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

.mod-portal-kartlar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mod-portal-kart {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.mod-portal-kart.arsa-kart:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.18);
}

.mod-portal-kart.emlak-kart:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.22);
}

.mp-kart-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mp-ikon {
  font-size: 34px;
  line-height: 1;
}

.mp-rozet {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.mp-rozet.altin {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.mp-rozet.mavi {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.mod-portal-kart h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.mod-portal-kart p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.mp-ozellikler {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #e2e8f0;
}

.mp-ozellikler b {
  color: #fbbf24;
}

.emlak-kart .mp-ozellikler b {
  color: #60a5fa;
}

.mp-aksiyon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 13.5px;
}

.mp-aksiyon.mavi-aksiyon {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.mod-portal-alt {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.mod-portal-hatirla {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ---- 3. Konut & Ticari Sol Panel (#emlakPanelKok) ---- */
.emlak-panel-sarmal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emlak-filtre-kutu {
  background: var(--yuzey2, #f5f2eb);
  border: 1px solid var(--ayrac, #e4ded2);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emlak-sekme-satir {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.emlak-sekme-satir.ikili {
  grid-template-columns: repeat(2, 1fr);
}

.emlak-hap-btn {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, #ddd6c7);
  background: var(--yuzey, #ffffff);
  color: var(--metin2, #57534e);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}

.emlak-hap-btn.aktif {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.emlak-hap-btn.islem-satilik {
  border-right: 3.5px solid #10b981;
}

.emlak-hap-btn.islem-satilik.aktif {
  background: #059669;
  border-color: #10b981;
  border-right-width: 4px;
  color: #ffffff;
}

.emlak-hap-btn.islem-kiralik {
  border-right: 3.5px solid #8b5cf6;
}

.emlak-hap-btn.islem-kiralik.aktif {
  background: #7c3aed;
  border-color: #8b5cf6;
  border-right-width: 4px;
  color: #ffffff;
}

.emlak-alt-filtreler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.emlak-secim {
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, #ddd6c7);
  background: var(--yuzey, #ffffff);
  color: var(--metin, #1c1917);
  font-size: 12px;
  font-weight: 600;
  width: 100%;
}

.emlak-arama-satir {
  display: flex;
  gap: 6px;
}

.emlak-arama-girdi {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, #ddd6c7);
  background: var(--yuzey, #ffffff);
  color: var(--metin, #1c1917);
  font-size: 12px;
}

/* ---- 4. Harita Üzerindeki Minimalist Beyaz Konut & Ticari Fiyat Balonları (Arsa Stili + Sabit Renk Kodlu) ---- */
.emlak-balon-sarmal {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, opacity 0.18s ease, filter 0.18s ease;
}

.emlak-balon-sarmal:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 35 !important;
}

.emlak-balon {
  background: #ffffff;
  color: #1B1917;
  border-radius: 9px;
  padding: 4px 8px 4px 7px;
  text-align: center;
  border: 1.5px solid var(--islem-renk, #10b981);
  border-right-width: 3px;
  border-left: 4.5px solid var(--tip-renk, #2563eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.34), 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.18;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.emlak-balon-sarmal:hover .emlak-balon {
  background: #fffbeb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.emlak-balon b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1B1917;
  letter-spacing: -0.01em;
}

.emlak-balon span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #6b6358;
}

.emlak-balon-ok {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  border: 2px solid #ffffff;
  background: var(--tip-renk, #2563eb);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* Yayından Kalkmış Konut / Dükkan İlanı (Arsa İle Birebir Sönük Görünüm) */
.emlak-balon-sarmal.kalkmis {
  opacity: 0.46;
  filter: saturate(0.2);
}

.emlak-balon-sarmal.kalkmis:hover {
  opacity: 0.92;
  filter: saturate(0.75);
  z-index: 25 !important;
}

.emlak-balon-sarmal.kalkmis .emlak-balon {
  background: rgba(241, 245, 249, 0.92) !important;
  color: #475569 !important;
  border: 1.5px dashed #94a3b8 !important;
  border-left: 4px solid #94a3b8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22) !important;
}

.emlak-balon-sarmal.kalkmis .emlak-balon b {
  text-decoration: line-through;
  color: #475569 !important;
}

.emlak-balon-sarmal.kalkmis .emlak-balon span {
  color: #64748b !important;
}

.emlak-balon-sarmal.kalkmis .emlak-balon-ok {
  background: #94a3b8 !important;
}

/* ---- 4B. Sol Panel Renk Kodlu Kategori & İşlem Filtre Çipleri ---- */
.emlak-renk-cip-kusak {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 0 2px;
}

.emlak-renk-cip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px 0 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3.5px solid var(--cip-renk, #2563eb);
  background: rgba(255, 255, 255, 0.04);
  color: var(--metin2, #cbd5e1);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.emlak-renk-cip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.emlak-renk-cip.aktif {
  background: #ffffff;
  color: #1B1917;
  border-color: var(--cip-renk, #2563eb);
  border-left-width: 4.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.emlak-renk-nokta {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cip-renk, #2563eb);
  flex-shrink: 0;
}

/* ---- 4C. Harita Üzerinde Çoklu Mahalle / İlçe Aç-Kapa Sistemi (Kasma Önleyici Akıllı Küme & Üst Çubuk) ---- */
.mahalle-kume-sarmal {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  z-index: 15;
  transition: transform 0.16s ease;
}

.mahalle-kume-sarmal:hover {
  transform: translateY(-2px) scale(1.06);
  z-index: 45 !important;
}

.mahalle-kume-balon {
  background: #ffffff;
  color: #1B1917;
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  border: 1.5px solid #cbd5e1;
  border-left: 4.5px solid var(--kume-renk, #2563eb);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32), 0 6px 18px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.15;
}

.mahalle-kume-balon.acik-mahalle {
  background: #0f172a;
  color: #ffffff;
  border-color: #10b981;
  border-left: 4.5px solid #10b981;
  padding: 3px 9px;
  opacity: 0.92;
}

.mahalle-kume-sayi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--kume-renk, #2563eb);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.mahalle-kume-metin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mahalle-kume-metin b {
  font-size: 11.5px;
  font-weight: 800;
  color: inherit;
}

.mahalle-kume-metin small {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
}

.mahalle-kume-balon.acik-mahalle .mahalle-kume-metin small {
  color: #94a3b8;
}

.mahalle-kume-aksiyon {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
}

.mahalle-kume-balon.acik-mahalle .mahalle-kume-aksiyon {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

/* Harita Üstü Yüzen Çoklu Mahalle/İlçe Yönetim Çubuğu */
.harita-bolge-cubuk {
  position: fixed;
  top: 14px;
  left: 428px;
  right: 64px;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .harita-bolge-cubuk {
    left: 14px;
    top: 66px;
    right: 14px;
  }
}

.harita-bolge-kutu {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font-size: 12px;
}

.hbc-etiket {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hbc-mahalle-cip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #10b981;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hbc-mahalle-cip:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.hbc-mahalle-cip .hbc-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  font-size: 10px;
  font-weight: 900;
}

.hbc-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hbc-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hbc-btn.aktif {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

.hbc-btn.tehlike:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.hbc-secim {
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1e293b;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- 5. Seçili Konut / Dükkan Analiz Kartı ---- */
.emlak-detay-kart {
  background: var(--yuzey, #ffffff);
  border: 1px solid var(--ayrac, #e4ded2);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#emlakDetayGovde .ist-kart,
#emlakIstModal .ist-kart {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.edm-galeri-sahne {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 360px;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.edm-galeri-sahne img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.edm-galeri-serit {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.emlak-detay-ust {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.emlak-tur-etiket {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--yuzey2, #1c2436);
  color: var(--metin2, #cbd5e1);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
}

.emlak-tur-etiket.isyeri,
.emlak-tur-etiket.kiralik {
  background: var(--yuzey2, #1c2436);
  color: var(--metin, #e2e8f0);
}

.emlak-baslik {
  margin: 4px 0 2px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--metin, #f8fafc);
  line-height: 1.3;
}

.emlak-konum-satir {
  font-size: 11.5px;
  color: var(--metin2, #94a3b8);
  font-weight: 600;
}

.emlak-fiyat-kutu {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px;
}

.emlak-fiyat-hucre {
  display: flex;
  flex-direction: column;
}

.emlak-fiyat-hucre small {
  font-size: 10px;
  font-weight: 700;
  color: var(--metin3, #7e8b9f);
  text-transform: uppercase;
}

.emlak-fiyat-hucre b {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--metin, #f8fafc);
}

.emlak-fiyat-hucre span {
  font-size: 11px;
  color: var(--metin2, #94a3b8);
}

/* Fırsat / Emsal Değerleme Barı (Sade & Uyumlu) */
.emlak-firsat-kutu {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
  background: var(--yuzey2, #1c2436);
}

.emlak-firsat-kutu.firsat {
  border-left: 3px solid #10b981;
}

.emlak-firsat-kutu.normal {
  border-left: 3px solid #94a3b8;
}

.emlak-firsat-kutu.pahali {
  border-left: 3px solid #ef4444;
}

/* Kira Çarpanı & Amortisman Kartı */
.emlak-amortisman-kart {
  background: var(--yuzey2, #1c2436);
  color: #f8fafc;
  border-radius: 12px;
  padding: 11px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.09));
}

.emlak-amortisman-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--metin2, #cbd5e1);
}

.emlak-amortisman-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.emlak-amortisman-hucre {
  background: var(--yuzey, #131926);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.06));
  border-radius: 8px;
  padding: 7px 8px;
}

.emlak-amortisman-hucre small {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.emlak-amortisman-hucre b {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

/* Özellikler Izgarası */
.emlak-ozellik-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.emlak-ozellik-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: var(--yuzey2, #1c2436);
  border-radius: 8px;
  font-size: 11.5px;
}

.emlak-ozellik-satir span {
  color: var(--metin2, #94a3b8);
}

.emlak-ozellik-satir b {
  color: var(--metin, #f8fafc);
  font-weight: 700;
  text-align: right;
}

/* Hızlı Değerleme Simülatörü */
.emlak-sim-kart {
  background: var(--yuzey, #131926);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  padding: 12px;
}

.emlak-sim-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--metin, #f8fafc);
  margin-bottom: 8px;
}

.emlak-sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.emlak-sim-sonuc {
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

/* İlan Listesi Satırları */
.emlak-liste-kutu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emlak-liste-oge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--yuzey, #ffffff);
  border: 1px solid var(--ayrac, #e4ded2);
  cursor: pointer;
  transition: all 0.14s;
}

.emlak-liste-oge:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.emlak-liste-oge.kalkmis {
  opacity: 0.62;
  border-style: dashed;
}

@media (max-width: 768px) {
  .mod-portal-kartlar {
    grid-template-columns: 1fr;
  }
  .mod-portal-kutu {
    padding: 18px;
  }
}

#fotoLightboxModal[hidden],
#fotoLightboxPerde[hidden],
#emlakIstModal[hidden],
#emlakIstPerde[hidden],
#emlakDetayModal[hidden],
#emlakDetayPerde[hidden] {
  display: none !important;
}

/* ---- 6. Kimden & Telefon: Sol Panel ve Kart Tasarım Diliyle Uyumlu Minimal Stil ---- */
.kimden-satir {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
}

.kimden-etiket {
  font-weight: 700;
  color: var(--metin2, #94a3b8);
  font-size: 11px;
}

.kimden-rozet-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: var(--yuzey, #131926);
  color: var(--metin, #f8fafc);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.kimden-rozet-hover:hover {
  border-color: rgba(212, 163, 89, 0.45);
  background: var(--yuzey3, #253147);
}

.kimden-rozet-hover.emlakci,
.kimden-rozet-hover.sahibinden,
.kimden-rozet-hover.insaat,
.kimden-rozet-hover.banka,
.kimden-rozet-hover.belirsiz {
  background: var(--yuzey, #131926);
  color: var(--metin, #e2e8f0);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kimden-hover-balon {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0b0f19;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.14s ease;
  z-index: 9999;
}

.kimden-hover-balon::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #0b0f19 transparent transparent transparent;
}

.kimden-rozet-hover:hover .kimden-hover-balon {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Cephe Çoklu/Tekli Seçim Butonları (Açılır Liste Yerine Seçim) */
.emlak-cephe-secici {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
}

.emlak-cephe-etiket {
  font-size: 11px;
  font-weight: 800;
  color: var(--metin2, #cbd5e1);
  padding: 0 3px 0 2px;
  white-space: nowrap;
}

.emlak-cephe-btn {
  height: 30px;
  padding: 0 4px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.09));
  background: var(--yuzey, #131926);
  color: var(--metin2, #cbd5e1);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.emlak-cephe-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.emlak-cephe-btn.aktif {
  background: rgba(59, 130, 246, 0.22);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

/* Sol Panel Sade Butonlar & Küçük Büyüteç İkonu */
.emlak-sade-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
  background: var(--yuzey, #131926);
  color: var(--metin, #e2e8f0);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emlak-sade-btn:hover {
  background: var(--yuzey3, #253147);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.emlak-buyutec-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.14));
  background: var(--yuzey2, #1c2436);
  color: var(--metin, #f8fafc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.emlak-buyutec-btn:hover {
  background: var(--yuzey3, #253147);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* ---- 7. Harita Üzerindeki Konut & Ticari Hızlı Bilgi Kartı (Tıklamayla Açılan Popover) ---- */
.emlak-harita-popup .mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.emlak-harita-popup .mapboxgl-popup-tip {
  border-top-color: #131926 !important;
  border-bottom-color: #131926 !important;
}

.emlak-harita-bilgi-kart {
  width: 315px;
  background: var(--yuzey, #131926);
  color: var(--metin, #f8fafc);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emlak-harita-bilgi-kart:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.68);
  border-color: rgba(255, 255, 255, 0.32);
}

.ehbk-kapak {
  position: relative;
  height: 148px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  overflow: hidden;
}

.ehbk-kapak img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ehbk-kapak-yok {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  gap: 4px;
}

.ehbk-ust-rozetler {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.ehbk-fav-btn,
.ehbk-kapat-btn {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ehbk-fav-btn {
  color: #fbbf24;
  font-size: 14px;
}

.ehbk-fiyat-serit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 7px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), transparent);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ehbk-govde {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ehbk-haplar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ehbk-hap {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--yuzey2, #1c2436);
  color: var(--metin, #e2e8f0);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.08));
}

.ehbk-alt-cta {
  padding: 8px 12px;
  background: var(--yuzey2, #1c2436);
  border-top: 1px solid var(--ayrac, rgba(255, 255, 255, 0.08));
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- 8. Çok Faktörlü Hedonik + Adaptif Çap Değerleme Kutusu ---- */
.emlak-hedonik-kutu {
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.09));
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emlak-hedonik-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

.emlak-hedonik-satir:last-child {
  border-bottom: none;
}

.hedonik-arti {
  color: #34d399;
  font-weight: 800;
}

.hedonik-eksi {
  color: #f87171;
  font-weight: 800;
}

.hedonik-notr {
  color: #94a3b8;
  font-weight: 700;
}

/* ---- 9. Gelişmiş Çok Yöntemli Ekspertiz & Değerleme Merkezi (#emlakDetayModal İçi) ---- */
.edm-degerleme-merkezi {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edm-geri-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.edm-geri-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.edm-cap-kontrol-kutu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
}

.edm-cap-butonlar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.edm-cap-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.12));
  background: var(--yuzey, #131926);
  color: var(--metin2, #cbd5e1);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edm-cap-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.edm-cap-btn.aktif {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.edm-konsensus-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 960px) {
  .edm-konsensus-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edm-konsensus-kart {
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edm-konsensus-kart.vurgu {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.96));
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
}

.edm-konsensus-kart small {
  font-size: 10px;
  font-weight: 800;
  color: var(--metin3, #94a3b8);
  letter-spacing: 0.03em;
}

.edm-konsensus-kart b {
  font-size: 18px;
  font-weight: 900;
  color: var(--metin, #ffffff);
}

.edm-konsensus-kart.vurgu b {
  color: #60a5fa;
  font-size: 20px;
}

.edm-konsensus-kart span {
  font-size: 11px;
  color: var(--metin2, #cbd5e1);
}

.edm-degerleme-sekmeler {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

@media (max-width: 960px) {
  .edm-degerleme-sekmeler {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edm-degerleme-sekme {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
  background: var(--yuzey2, #1c2436);
  color: var(--metin2, #cbd5e1);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edm-degerleme-sekme:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.edm-degerleme-sekme.aktif {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.edm-yontem-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .edm-yontem-grid {
    grid-template-columns: 1fr;
  }
}

.edm-yontem-kart {
  background: var(--yuzey2, #1c2436);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.09));
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edm-yontem-kart h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--metin, #f8fafc);
  letter-spacing: 0.02em;
}

.edm-metrik-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
  font-size: 12px;
}

.edm-metrik-satir:last-child {
  border-bottom: none;
}

.edm-metrik-satir span {
  color: var(--metin2, #cbd5e1);
}

.edm-metrik-satir b {
  color: var(--metin, #ffffff);
  font-weight: 800;
  text-align: right;
}

.edm-emsal-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.edm-emsal-tablo th {
  text-align: left;
  padding: 8px 10px;
  background: var(--yuzey, #131926);
  color: var(--metin2, #94a3b8);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ayrac, rgba(255, 255, 255, 0.1));
}

.edm-emsal-tablo td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--metin, #e2e8f0);
}

.edm-slider-satir {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--yuzey, #131926);
  border: 1px solid var(--ayrac, rgba(255, 255, 255, 0.08));
}

.edm-slider-satir label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--metin, #f8fafc);
}

.edm-slider-satir input[type="range"] {
  width: 100%;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* ---- 10. Sahibinden Tarzı Fare Ucunda Gezinen (Cursor-Following) İlçe / Mahalle Bilgi Etiketi ---- */
.harita-fare-uc-etiket {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 65;
  pointer-events: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1.5px solid #93c5fd;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  will-change: transform;
}

.harita-fare-uc-etiket.acik-bolge {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #6ee7b7;
}

.hfue-baslik {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.hfue-alt {
  font-size: 11px;
  font-weight: 700;
  color: #dbeafe;
  line-height: 1.2;
}

.harita-fare-uc-etiket.acik-bolge .hfue-alt {
  color: #d1fae5;
}

/* ---- 11. 📱 Konut & Ticari Modülü Mobil Uyumluluk İyileştirmeleri ---- */
@media (hover: none), (max-width: 768px) {
  .harita-fare-uc-etiket {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .edm-ana-kolonlar {
    grid-template-columns: 1fr !important;
  }
  .edm-galeri-sahne {
    height: 235px;
  }
  .emlak-harita-bilgi-kart {
    width: 284px;
    max-width: calc(100vw - 44px);
  }
  .ehbk-kapak {
    height: 128px;
  }
  .harita-bolge-cubuk {
    top: calc(max(10px, env(safe-area-inset-top)) + 42px);
    left: 8px;
    right: 52px;
  }
  .edm-degerleme-sekmeler {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .emlak-ozellik-grid {
    grid-template-columns: 1fr;
  }
}
