:host { display: block; height: 100%; user-select: none; -webkit-user-select: none; }
:host ::ng-deep .leaflet-container img { max-width: none !important; max-height: none !important; }
:host ::ng-deep .leaflet-tile-pane { user-select: none; -webkit-user-select: none; }
.harita-konteyner { height: 100%; position: relative; }
.harita-div { width: 100%; height: 100%; }
.yukleniyor-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.8); z-index: 1000; gap: 8px; color: #666;
}
.harita-bos {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #999; font-size: 16px; z-index: 1;
}
:host ::ng-deep .avatar-marker-wrap {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  border: 3px solid #3b82f6; box-shadow: 0 2px 8px rgba(0,0,0,0.3); background: #3b82f6;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
:host ::ng-deep .avatar-marker-wrap:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
:host ::ng-deep .avatar-marker-wrap.vefat { border-color: #999; background: #999; opacity: 0.75; }
:host ::ng-deep .avatar-marker-wrap.kadin { border-color: #e91e63; background: #e91e63; }
:host ::ng-deep .avatar-marker-wrap .avatar-harf {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
:host ::ng-deep .avatar-marker-wrap .avatar-img {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 100%; height: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
:host ::ng-deep .avatar-fallback {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); background: #3b82f6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
:host ::ng-deep .avatar-fallback:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
:host ::ng-deep .avatar-fallback.kadin { background: #e91e63; border-color: #e91e63; }
:host ::ng-deep .avatar-fallback.vefat { background: #999; border-color: #999; opacity: 0.75; }
:host ::ng-deep .marker-container { position: relative; width: 46px; height: 46px; }
:host ::ng-deep .marker-badge {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; z-index: 2;
  pointer-events: none;
}
:host ::ng-deep .marker-badge.vefat { background: #f3f4f6; border-color: #d1d5db; }

/* Odaklama: aktif marker öne çıkar */
:host ::ng-deep .fiko-odak-aktif {
  z-index: 1000 !important;
}

/* Yaşam Yolculuğu: Polyline çizgileri */
:host ::ng-deep .fiko-yolculuk-cizgi {
  animation: fikoYolculukDash 1.5s linear infinite;
}
@keyframes fikoYolculukDash {
  to { stroke-dashoffset: -28; }
}

/* Konum pin marker (uç noktalar) */
:host ::ng-deep .fiko-konum-pin {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pin-renk, #6b7280);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25), 0 0 0 3px color-mix(in srgb, var(--pin-renk, #6b7280) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  animation: fikoPinGoruntule 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
:host ::ng-deep .fiko-konum-pin:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 5px color-mix(in srgb, var(--pin-renk, #6b7280) 30%, transparent);
}
@keyframes fikoPinGoruntule {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
:host ::ng-deep .fiko-pin-emoji {
  font-size: 18px; line-height: 1; z-index: 1;
}
:host ::ng-deep .fiko-pin-etiket {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 4px; padding: 2px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 10px; font-weight: 600; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s;
}
:host ::ng-deep .fiko-konum-pin:hover .fiko-pin-etiket {
  opacity: 1;
}

/* Çoklu konum badge (emoji satırı) */
:host ::ng-deep .marker-multi-badge {
  position: absolute; top: -6px; right: -6px;
  display: flex; gap: 1px;
  padding: 1px 3px; border-radius: 10px;
  background: #fff; border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  z-index: 2; pointer-events: none;
}
:host ::ng-deep .mmb-item {
  font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
/* Konum sayısı badge */
:host ::ng-deep .marker-count-badge {
  position: absolute; bottom: -4px; right: -6px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(37,99,235,0.4);
  z-index: 3; pointer-events: none;
}

/* Marker Cluster v2 - Avatar bazlı */
:host ::ng-deep .harita-cluster-v2 {
  position: relative; height: 32px;
  cursor: pointer; transition: transform 0.15s;
}
:host ::ng-deep .harita-cluster-v2:hover { transform: scale(1.1); }
:host ::ng-deep .cl-avatarlar { position: relative; height: 32px; }
:host ::ng-deep .cl-av {
  position: absolute; top: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid #fff; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); background: #e2e8f0;
  transition: left 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}
:host ::ng-deep .cl-av-gizli {
  opacity: 0; transform: scale(0.5); pointer-events: none;
}
:host ::ng-deep .cl-av .cl-img { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; background-size: cover; background-position: center; }
:host ::ng-deep .cl-fb {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
:host ::ng-deep .cl-fb.kadin { background: linear-gradient(135deg, #ec4899, #f472b6); }
:host ::ng-deep .cl-sayi {
  position: absolute; top: -6px; right: -10px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(37,99,235,0.35);
  z-index: 10;
}
:host ::ng-deep .leaflet-cluster-anim .leaflet-marker-icon { transition: transform 0.3s ease; }
:host ::ng-deep .leaflet-marker-icon { opacity: 1 !important; }
:host ::ng-deep .marker-cluster-small, :host ::ng-deep .marker-cluster-medium, :host ::ng-deep .marker-cluster-large { background: none !important; }
:host ::ng-deep .marker-cluster div { background: none !important; }

/* Ekrana sığdırma butonu */
:host ::ng-deep .harita-fit-btn { margin-top: 0 !important; }
:host ::ng-deep .harita-fit-btn a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; font-size: 18px; line-height: 1;
  text-decoration: none; color: #333;
}
:host ::ng-deep .harita-fit-btn a:hover { background: #f4f4f4; }

/* Kisi Context Menu */
.kctx-overlay { position: fixed; inset: 0; z-index: 10000; }
.kctx-menu {
  position: fixed; z-index: 10001;
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16), 0 1px 4px rgba(0,0,0,0.08);
  min-width: 160px; padding: 4px 0;
  border: 1px solid rgba(0,0,0,0.08);
  animation: kctxIn 0.1s ease-out;
}
@keyframes kctxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.kctx-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 4px;
}
.kctx-av {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 2px solid #3b82f6;
}
.kctx-av-fb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #3b82f6; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.kctx-av-fb.kadin { background: #e91e63; }
.kctx-isim {
  font-size: 12px; font-weight: 600; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kctx-sep { height: 1px; background: #f1f5f9; margin: 2px 0; }
.kctx-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 5px 10px; border: none;
  background: none; font-size: 12px; color: #374151;
  cursor: pointer; transition: background 0.1s;
  text-align: left; font-family: inherit;
}
.kctx-item:hover { background: #f0f4ff; color: #2563eb; }
.kctx-item span:first-child { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }
.kctx-item.kctx-danger { color: #dc2626; }
.kctx-item.kctx-danger:hover { background: #fef2f2; color: #dc2626; }
:host ::ng-deep .leaflet-container { z-index: 0; }

/* Popup kartı */
:host ::ng-deep .leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
  padding: 0 !important;
  overflow: hidden;
}
:host ::ng-deep .leaflet-popup-content { margin: 0 !important; width: auto !important; }
:host ::ng-deep .leaflet-popup-tip { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

:host ::ng-deep .gecici-konum-popup .leaflet-popup-content-wrapper {
  border-radius: 14px !important; padding: 0 !important; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06) !important;
  animation: kpPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:host ::ng-deep .gecici-konum-popup .leaflet-popup-content { margin: 0 !important; }
:host ::ng-deep .gecici-konum-popup .leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

:host ::ng-deep .kisi-popup {
  width: 320px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: kpPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kpPopIn { from { opacity: 0; transform: scale(0.92) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
:host ::ng-deep .kisi-popup-wrapper .leaflet-popup-content { margin: 0 !important; }
:host ::ng-deep .kisi-popup-wrapper .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.06); }
:host ::ng-deep .kisi-popup-wrapper .leaflet-popup-close-button {
  color: rgba(255,255,255,0.7) !important; font-size: 20px !important; top: 8px !important; right: 10px !important; z-index: 2;
}
:host ::ng-deep .kisi-popup-wrapper .leaflet-popup-close-button:hover { color: #fff !important; }
:host ::ng-deep .kisi-popup-wrapper .leaflet-popup-tip-container .leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 0 0 0 2px;
}

/* Header */
:host ::ng-deep .kp-header {
  background: linear-gradient(135deg, #0f2b4d 0%, #1d4ed8 50%, #3b82f6 100%);
  padding: 18px 16px; display: flex; gap: 14px; align-items: center;
  position: relative; overflow: hidden;
}
:host ::ng-deep .kp-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
:host ::ng-deep .kp-header.kadin-bg {
  background: linear-gradient(135deg, #4a0e2b 0%, #db2777 50%, #ec4899 100%);
}
:host ::ng-deep .kp-header.vefat-bg {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 50%, #6b7280 100%);
}

/* Avatar */
:host ::ng-deep .kp-avatar-wrap {
  position: relative; width: 56px; height: 56px; flex-shrink: 0; z-index: 1;
}
:host ::ng-deep .kp-avatar-img {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.6);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
:host ::ng-deep .kp-avatar-fallback {
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* İsim bloğu */
:host ::ng-deep .kp-isim-blok { flex: 1; min-width: 0; z-index: 1; }
:host ::ng-deep .kp-isim {
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
:host ::ng-deep .kp-meslek {
  color: rgba(255,255,255,0.75); font-size: 11.5px; margin-top: 2px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:host ::ng-deep .kp-olay-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
  padding: 2px 10px; border-radius: 12px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.02em;
}

/* Tabs */
:host ::ng-deep .kp-tabs {
  display: flex; background: #fafbfc; border-bottom: 1px solid #e5e7eb;
}
:host ::ng-deep .kp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 4px; border: none; background: none; font-size: 11.5px; font-weight: 500;
  color: #94a3b8; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.2s ease; font-family: inherit;
}
:host ::ng-deep .kp-tab:hover { color: #64748b; background: rgba(0,0,0,0.02); }
:host ::ng-deep .kp-tab--active { color: #2563eb; font-weight: 600; border-bottom-color: #2563eb; background: transparent; }
:host ::ng-deep .kp-tab-badge {
  background: #dbeafe; color: #2563eb; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center;
}
:host ::ng-deep .kp-tab--active .kp-tab-badge { background: #2563eb; color: #fff; }

/* Body */
:host ::ng-deep .kp-body { padding: 12px 16px; }
:host ::ng-deep .kp-info-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
  font-size: 12.5px; color: #374151; border-bottom: 1px solid #f1f5f9;
}
:host ::ng-deep .kp-info-row:last-child { border-bottom: none; }
:host ::ng-deep .kp-info-icon {
  width: 28px; height: 28px; background: #f1f5f9; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
:host ::ng-deep .kp-info-label { color: #94a3b8; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
:host ::ng-deep .kp-info-val { color: #1e293b; font-weight: 600; font-size: 12.5px; margin-top: 1px; }
:host ::ng-deep .kp-koordinat-row { align-items: center; }
:host ::ng-deep .kp-koord-aksiyonlar { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; }
:host ::ng-deep .kp-koord-btn {
  width: 28px; height: 28px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13px; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s; padding: 0;
}
:host ::ng-deep .kp-koord-btn:hover { border-color: #3b82f6; background: #eff6ff; transform: scale(1.05); }
:host ::ng-deep .kp-koord-sil:hover { border-color: #ef4444; background: #fef2f2; }

/* Popup konum listesi */
:host ::ng-deep .kp-konum-baslik {
  font-size: 11px; font-weight: 700; color: #64748b;
  padding: 8px 0 4px; border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}
:host ::ng-deep .kp-konum-satir {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid #f8fafc;
}
:host ::ng-deep .kp-konum-satir:last-child { border-bottom: none; }
:host ::ng-deep .kp-konum-emoji {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
:host ::ng-deep .kp-konum-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
:host ::ng-deep .kp-konum-olay { font-size: 11px; font-weight: 700; color: #374151; }
:host ::ng-deep .kp-konum-tarih { font-size: 10px; color: #94a3b8; }
:host ::ng-deep .kp-konum-yer { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:host ::ng-deep .kp-konum-git {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid #e2e8f0; background: #fff;
  cursor: pointer; font-size: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; color: #3b82f6; padding: 0;
}
:host ::ng-deep .kp-konum-git:hover { background: #eff6ff; border-color: #3b82f6; transform: scale(1.1); }

/* İlişkiler */
:host ::ng-deep .kp-iliski-list { padding: 8px 12px; max-height: 200px; overflow-y: auto; }
:host ::ng-deep .kp-iliski-list::-webkit-scrollbar { width: 4px; }
:host ::ng-deep .kp-iliski-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
:host ::ng-deep .kp-iliski-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
}
:host ::ng-deep .kp-iliski-row:hover { background: #f0f4ff; transform: translateX(2px); }
:host ::ng-deep .kp-iliski-git-btn {
  margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #94a3b8; font-size: 13px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.15s;
}
:host ::ng-deep .kp-iliski-git-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; transform: scale(1.1); }
:host ::ng-deep .kp-iliski-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 2px solid #e5e7eb; color: transparent; font-size: 0; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
:host ::ng-deep .kp-iliski-avatar.kadin { border-color: #f9a8d4; }
:host ::ng-deep .kp-iliski-avatar-fb {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
  font-size: 13px; font-weight: 700; border: 2px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
:host ::ng-deep .kp-iliski-avatar-fb.kadin {
  background: linear-gradient(135deg, #ec4899, #f472b6); border-color: #f9a8d4;
}
:host ::ng-deep .kp-iliski-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
:host ::ng-deep .kp-iliski-isim {
  font-size: 12.5px; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:host ::ng-deep .kp-iliski-tur { font-size: 10.5px; color: #94a3b8; font-weight: 500; }

/* İşlemler */
:host ::ng-deep .kp-islem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
:host ::ng-deep .kp-islem-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px; border: 1px solid #f1f5f9; border-radius: 12px;
  background: #fafbfc; font-size: 10.5px; font-weight: 600; color: #475569;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
:host ::ng-deep .kp-islem-btn span:first-child { font-size: 20px; filter: grayscale(0.2); }
:host ::ng-deep .kp-islem-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(37,99,235,0.1); }
:host ::ng-deep .kp-islem-btn:active { transform: scale(0.96) translateY(0); }
:host ::ng-deep .kp-islem-danger { color: #dc2626; }
:host ::ng-deep .kp-islem-danger:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; box-shadow: 0 2px 8px rgba(220,38,38,0.1); }

/* Empty */
:host ::ng-deep .kp-empty {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 8px;
}
:host ::ng-deep .kp-empty-icon { font-size: 28px; opacity: 0.3; }
:host ::ng-deep .kp-empty-text { font-size: 12px; color: #94a3b8; font-weight: 500; }

/* Popconfirm */
.popconfirm-overlay {
  position: absolute; inset: 0; z-index: 1300;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(1px);
  display: flex; align-items: center; justify-content: center;
  animation: ctxFadeIn 0.1s ease-out;
}
.popconfirm {
  background: #fff; border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); max-width: 320px;
  text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.popconfirm-icon { font-size: 28px; margin-bottom: 8px; }
.popconfirm-msg { font-size: 13px; color: #374151; line-height: 1.5; margin-bottom: 16px; }
.popconfirm-btns { display: flex; gap: 8px; justify-content: center; }
.popconfirm-btn {
  padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer;
  transition: all 0.12s;
}
.popconfirm-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.popconfirm-danger { background: #ef4444; border-color: #ef4444; color: #fff; }
.popconfirm-danger:hover { background: #dc2626; border-color: #dc2626; }

/* Arama */
.arama-konteyner { position: absolute; top: 12px; left: 56px; z-index: 1000; }
.arama-btn {
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #374151; transition: all 0.15s;
}
.arama-btn:hover { background: #f0f4ff; color: #2563eb; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.arama-panel {
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 360px; overflow: hidden; animation: ctxFadeIn 0.12s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.arama-input-wrap {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.arama-icon { color: #9ca3af; font-size: 16px; flex-shrink: 0; }
.arama-input {
  flex: 1; border: none; outline: none; font-size: 14px; color: #1f2937;
  background: transparent; min-width: 0;
}
.arama-input::placeholder { color: #c0c4cc; }
.arama-kapat {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: #f3f4f6;
  color: #6b7280; cursor: pointer; font-size: 11px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.12s;
}
.arama-kapat:hover { background: #e5e7eb; color: #1f2937; }
.arama-sonuclar { max-height: 320px; overflow-y: auto; padding: 4px; }
.arama-sonuc {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.1s; text-align: left; font-size: 13px;
}
.arama-sonuc:hover, .arama-sonuc.aktif { background: #f0f4ff; }
.arama-sonuc:active { background: #e0e7ff; }
.arama-sonuc.aktif .arama-sonuc-baslik { color: #3b82f6; }
.arama-sonuc-icon { font-size: 18px; flex-shrink: 0; }
.arama-sonuc-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #3b82f6; }
.arama-sonuc-basharf { width: 28px; height: 28px; border-radius: 50%; background: #3b82f6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.arama-sonuc-basharf.kadin { background: #e91e63; }
.arama-sonuc-bilgi { flex: 1; min-width: 0; }
.arama-sonuc-baslik { font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arama-sonuc-alt { font-size: 11px; color: #9ca3af; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arama-sonuc-yon { font-size: 10px; color: #d1d5db; flex-shrink: 0; }
.arama-bos { text-align: center; color: #9ca3af; font-size: 12px; padding: 12px; }
.arama-nominatim { border-top: 1px solid #f3f4f6; margin-top: 2px; }
.arama-nominatim:hover { background: #eff6ff; }

/* Katman Filtre */
.katman-konteyner { position: absolute; top: 12px; right: 12px; z-index: 1000; }
.katman-btn {
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #374151; transition: all 0.15s;
}
.katman-btn:hover, .katman-btn.acik { background: #f0f4ff; color: #2563eb; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.katman-panel {
  position: absolute; top: 46px; right: 0; min-width: 200px;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden; animation: ctxFadeIn 0.12s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 4px 0;
}
.katman-baslik {
  padding: 5px 10px 3px; font-size: 10px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.katman-item {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  cursor: pointer; transition: background 0.1s; font-size: 12px; user-select: none;
}
.katman-item:hover { background: #f0f4ff; }
.katman-item.yakinda { opacity: 0.45; cursor: default; }
.katman-item.yakinda:hover { background: transparent; }
.katman-check {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: transparent; transition: all 0.15s;
  flex-shrink: 0; background: #fff;
}
.katman-check.aktif { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.katman-renk { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.katman-etiket { flex: 1; color: #374151; font-weight: 500; }
.katman-sayi {
  font-size: 10px; color: #9ca3af; font-weight: 600; background: #f3f4f6;
  padding: 0 5px; border-radius: 6px; min-width: 18px; text-align: center; line-height: 1.6;
}
.katman-sayi.yakinda-badge { background: #fef3c7; color: #b45309; font-size: 9px; }
.katman-ayirici { height: 1px; background: #f3f4f6; margin: 3px 10px; }
.aktif-konum-pulse.aktif { animation: konumPulse 1.5s infinite; }
@keyframes konumPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); } 50% { box-shadow: 0 0 0 4px rgba(245,158,11,0); } }
:host ::ng-deep .aktif-konum-marker {
  width: 18px; height: 18px; border-radius: 50%; background: #3b82f6;
  border: 3px solid #fff; box-shadow: 0 0 0 2px #3b82f6, 0 2px 8px rgba(0,0,0,0.3);
  animation: konumMarkerPulse 2s infinite;
}
@keyframes konumMarkerPulse { 0%,100% { box-shadow: 0 0 0 2px #3b82f6, 0 2px 8px rgba(0,0,0,0.3); } 50% { box-shadow: 0 0 0 6px rgba(59,130,246,0.2), 0 2px 8px rgba(0,0,0,0.3); } }

/* Context Menu */
.ctx-menu {
  position: absolute; z-index: 1100; min-width: 220px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: ctxFadeIn 0.12s ease-out;
}
@keyframes ctxFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.ctx-header {
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 2px;
}
.ctx-coord { font-size: 11px; color: #6b7280; font-weight: 500; font-variant-numeric: tabular-nums; }
.ctx-yer { font-size: 12px; color: #1f2937; font-weight: 600; }
.ctx-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px;
  font-size: 13px; color: #374151; background: none; border: none; cursor: pointer;
  transition: background 0.1s; text-align: left; font-weight: 500;
}
.ctx-item:hover { background: #f0f4ff; color: #2563eb; }
.ctx-item:active { background: #e0e7ff; }
.ctx-item + .ctx-item { border-top: 1px solid #f3f4f6; }

/* Kişi Seçici Overlay */
.kisi-secici-overlay {
  position: absolute; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: ctxFadeIn 0.15s ease-out;
}
.kisi-secici {
  width: 380px; max-height: 480px; background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); display: flex; flex-direction: column;
  overflow: hidden;
}
.ks-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff; font-size: 13px; font-weight: 600;
}
.ks-kapat {
  background: rgba(255,255,255,0.15); border: none; color: #fff; width: 24px; height: 24px;
  border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.ks-kapat:hover { background: rgba(255,255,255,0.3); }
.ks-arama {
  padding: 10px 14px 6px;
}
.ks-arama input {
  width: 100%; padding: 7px 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; outline: none; transition: border-color 0.15s;
}
.ks-arama input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.ks-yer-satir {
  padding: 4px 14px 8px; display: flex; align-items: center; gap: 8px;
}
.ks-yer-satir label { font-size: 11px; color: #6b7280; font-weight: 600; white-space: nowrap; }
.ks-yer-satir input {
  flex: 1; padding: 5px 8px; border: 1.5px solid #e5e7eb; border-radius: 6px;
  font-size: 12px; outline: none;
}
.ks-yer-satir input:focus { border-color: #3b82f6; }
.ks-liste {
  flex: 1; overflow-y: auto; padding: 4px 8px 8px; min-height: 0;
}
.ks-kisi {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.1s; text-align: left;
}
.ks-kisi:hover { background: #f0f4ff; }
.ks-kisi:active { background: #e0e7ff; }
.ks-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #3b82f6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.ks-avatar.kadin { background: #e91e63; }
.ks-avatar.vefat { background: #9ca3af; }
.ks-avatar-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2.5px solid #3b82f6;
}
.ks-avatar-img.kadin { border-color: #e91e63; }
.ks-avatar-img.vefat { border-color: #9ca3af; opacity: 0.75; }
.ks-bilgi { flex: 1; min-width: 0; }
.ks-isim { font-size: 13px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 4px; }
.ks-vefat-badge { font-size: 11px; }
.ks-meslek { font-size: 10px; color: #6b7280; margin-top: 1px; }
.ks-detay-satir { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ks-detay { font-size: 10px; color: #9ca3af; white-space: nowrap; }
.ks-mevcut { font-size: 10px; color: #3b82f6; margin-top: 2px; font-weight: 500; }
.ks-kisi-wrap + .ks-kisi-wrap { border-top: 1px solid #f3f4f6; }
.ks-bag-btn {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px;
  border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer;
  font-size: 11px; color: #6b7280; transition: all 0.15s; flex-shrink: 0;
}
.ks-bag-btn:hover { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.ks-bag-btn.acik { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.ks-bag-sayi { font-weight: 700; }
.ks-baglar-panel {
  margin: 0 10px 6px 60px; padding: 6px 10px;
  border-left: 2.5px solid #e2e8f0; background: #f8fafc; border-radius: 0 6px 6px 0;
  animation: ctxFadeIn 0.15s ease-out;
}
.ks-bag-satir {
  display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12px;
}
.ks-bag-simge { font-size: 14px; flex-shrink: 0; }
.ks-bag-tur { font-weight: 600; font-size: 11px; white-space: nowrap; }
.ks-bag-isim { color: #374151; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-bos { text-align: center; color: #9ca3af; font-size: 12px; padding: 20px; }
