/* ============================================================
   Parcel Editor — 3D Viewer Styles
   ============================================================ */

/* --- Fullscreen Overlay --- */
.pe3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  display: none;
  flex-direction: column;
  font-family: var(--pe-font, 'DM Sans', sans-serif);
}
.pe3d-overlay.open {
  display: flex;
}

/* --- Topbar --- */
.pe3d-topbar {
  height: 40px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2d42 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(45,106,79,.4);
}
.pe3d-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pe3d-title {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pe3d-title svg { width: 14px; height: 14px; opacity: .7; }
.pe3d-badge {
  background: rgba(45,106,79,.3);
  border: 1px solid rgba(45,106,79,.5);
  color: #4ade80;
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pe3d-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pe3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: .7rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  transition: all .15s;
}
.pe3d-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.pe3d-btn svg { width: 12px; height: 12px; }
.pe3d-btn-active {
  background: rgba(45,106,79,.3);
  border-color: rgba(45,106,79,.6);
  color: #4ade80;
}
.pe3d-btn-close {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.3);
  color: #fca5a5;
}
.pe3d-btn-close:hover {
  background: rgba(239,68,68,.3);
  color: #fff;
}

/* --- Map Container --- */
.pe3d-map-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}
.pe3d-map {
  width: 100%;
  height: 100%;
}

/* --- CSS 3D Perspective Container --- */
.pe3d-perspective-container {
  width: 140%;
  height: 140%;
  margin: -20% 0 0 -20%;
  transition: transform 0.3s ease;
  transform-origin: center center;
  transform: perspective(1200px) rotateX(45deg) rotateZ(0deg);
}

/* --- WebGL Canvas Overlay --- */
.pe3d-webgl-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* --- Controls Panel --- */
.pe3d-controls {
  position: fixed;
  top: 60px;
  right: 12px;
  z-index: 100010;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pe3d-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(13,27,42,.85);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  backdrop-filter: blur(8px);
}
.pe3d-ctrl-btn:hover {
  background: rgba(13,27,42,.95);
  color: #fff;
  border-color: rgba(45,106,79,.5);
}
.pe3d-ctrl-btn.active {
  background: rgba(45,106,79,.4);
  border-color: rgba(45,106,79,.7);
  color: #4ade80;
}
.pe3d-ctrl-btn svg { width: 18px; height: 18px; }

/* --- Info HUD (bottom-left) --- */
.pe3d-hud {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100010;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}
.pe3d-hud-card {
  background: rgba(13,27,42,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  color: #fff;
}
.pe3d-hud-title {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  margin-bottom: 8px;
}
.pe3d-hud-stats {
  display: flex;
  gap: 16px;
}
.pe3d-hud-stat-val {
  font-size: 1.125rem;
  font-weight: 700;
}
.pe3d-hud-stat-label {
  font-size: .625rem;
  color: rgba(255,255,255,.45);
  margin-top: 1px;
}

/* --- Parcel Legend (bottom-right) --- */
.pe3d-legend {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100010;
  background: rgba(13,27,42,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
}
.pe3d-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: color .15s;
}
.pe3d-legend-item:hover { color: #fff; }
.pe3d-legend-item.highlighted { color: #fff; font-weight: 600; }
.pe3d-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
}
.pe3d-legend-item.highlighted .pe3d-legend-dot {
  box-shadow: 0 0 8px 2px currentColor;
}

/* --- Glow Pulse Animation --- */
@keyframes pe3d-glow-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes pe3d-scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes pe3d-rotate-hint {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* --- Rotate Hint --- */
.pe3d-rotate-hint {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(13,27,42,.9);
  border: 1px solid rgba(45,106,79,.4);
  border-radius: 8px;
  padding: 8px 16px;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pe3d-rotate-hint 4s ease forwards;
  pointer-events: none;
}
.pe3d-rotate-hint svg { width: 16px; height: 16px; opacity: .5; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .pe3d-topbar { height: 44px; padding: 0 12px; }
  .pe3d-title { font-size: .78rem; }
  .pe3d-badge { font-size: .55rem; padding: 2px 6px; }
  .pe3d-btn { padding: 5px 10px; font-size: .7rem; }
  .pe3d-btn span { display: none; }
  .pe3d-btn-close span { display: inline; }
  
  .pe3d-hud { 
    left: 8px; 
    bottom: 8px; 
    max-width: 160px;
    gap: 6px;
  }
  .pe3d-hud-card {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .pe3d-hud-title { font-size: .6rem; margin-bottom: 6px; }
  .pe3d-hud-stats { flex-direction: column; gap: 4px; }
  .pe3d-hud-stat-val { font-size: .9rem; }
  .pe3d-hud-stat-label { font-size: .55rem; }
  .pe3d-hud-details { display: none; }
  
  .pe3d-legend { 
    right: 8px; 
    bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    max-height: 35vh;
    overflow-y: auto;
  }
  .pe3d-legend-item { font-size: .68rem; padding: 2px 0; gap: 6px; }
  .pe3d-legend-dot { width: 10px; height: 10px; }
  
  .pe3d-controls { top: 8px; right: 8px; gap: 4px; }
  .pe3d-ctrl-btn { width: 36px; height: 36px; border-radius: 6px; }
  .pe3d-ctrl-btn svg { width: 16px; height: 16px; }
  
  .pe3d-rotate-hint { 
    top: 52px; 
    font-size: .68rem; 
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .pe3d-topbar { height: 40px; padding: 0 8px; }
  .pe3d-topbar-left { gap: 8px; }
  .pe3d-title { font-size: .72rem; gap: 6px; }
  .pe3d-title svg { width: 14px; height: 14px; }
  .pe3d-badge { display: none; }
  .pe3d-btn { padding: 4px 8px; font-size: .65rem; gap: 3px; }
  .pe3d-btn svg { width: 11px; height: 11px; }
  
  .pe3d-hud { 
    left: 6px; 
    bottom: 6px; 
    max-width: 130px;
  }
  .pe3d-hud-card { padding: 8px 10px; }
  .pe3d-hud-title { font-size: .55rem; margin-bottom: 4px; }
  .pe3d-hud-stat-val { font-size: .8rem; }
  .pe3d-hud-stat-label { font-size: .5rem; }
  
  .pe3d-legend { 
    right: 6px; 
    bottom: 6px;
    padding: 8px 10px;
    max-height: 30vh;
  }
  .pe3d-legend-item { font-size: .62rem; }
  .pe3d-legend-dot { width: 8px; height: 8px; }
  
  .pe3d-controls { top: 6px; right: 6px; }
  .pe3d-ctrl-btn { width: 32px; height: 32px; }
  .pe3d-ctrl-btn svg { width: 14px; height: 14px; }
  
  .pe3d-rotate-hint { display: none; }
}

/* --- Parsel Etiketleri (3D harita üzerinde) --- */
.pe3d-parcel-label {
  background: transparent !important;
  border: none !important;
}
.pe3d-parcel-label-inner {
  display: inline-block;
  padding: 0;
  font-size: .5rem;
  font-weight: 700;
  font-family: var(--pe-font, 'DM Sans', sans-serif);
  color: #fff;
  background: none;
  border: none;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 3px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.7), 0 1px 1px rgba(0,0,0,.8);
  pointer-events: none;
}

/* --- HUD Detay Satırları --- */
.pe3d-hud-details {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 6px;
  margin-top: 2px;
}
.pe3d-hud-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: .6875rem;
}
.pe3d-hud-detail-label {
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
.pe3d-hud-detail-val {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ============================================================
   POI (Çevre Noktaları) Stilleri
   ============================================================ */

/* POI Marker */
.pe3d-poi-marker {
  background: transparent !important;
  border: none !important;
}
.pe3d-poi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.8);
  margin: 0 auto;
}
.pe3d-poi-label {
  background: rgba(13,27,42,.9);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  margin-top: 4px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mesafe Çizgisi Etiketi */
.pe3d-mesafe-label {
  background: transparent !important;
  border: none !important;
}
.pe3d-mesafe-text {
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* POI Panel (Sağ tarafta) */
.pe3d-poi-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 100010;
  background: rgba(13,27,42,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  max-width: 200px;
  max-height: 40vh;
  overflow-y: auto;
}
.pe3d-poi-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  color: rgba(255,255,255,.8);
  font-size: .75rem;
}
.pe3d-poi-item:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.pe3d-poi-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.pe3d-poi-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pe3d-poi-delete {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239,68,68,.2);
  border: none;
  color: #fca5a5;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.pe3d-poi-item:hover .pe3d-poi-delete {
  opacity: 1;
}
.pe3d-poi-delete:hover {
  background: rgba(239,68,68,.4);
  color: #fff;
}

/* Edit Tools */
.pe3d-edit-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.pe3d-btn-tool {
  background: rgba(59,130,246,.15) !important;
  border-color: rgba(59,130,246,.3) !important;
  color: #93c5fd !important;
}
.pe3d-btn-tool:hover {
  background: rgba(59,130,246,.25) !important;
  color: #fff !important;
}
.pe3d-btn-tool.pe3d-btn-active {
  background: rgba(59,130,246,.4) !important;
  border-color: rgba(59,130,246,.6) !important;
  color: #fff !important;
}
.pe3d-btn-save {
  background: rgba(34,197,94,.15) !important;
  border-color: rgba(34,197,94,.3) !important;
  color: #86efac !important;
}
.pe3d-btn-save:hover {
  background: rgba(34,197,94,.25) !important;
  color: #fff !important;
}
.pe3d-btn-primary {
  background: #2D6A4F !important;
  border-color: #2D6A4F !important;
  color: #fff !important;
}
.pe3d-btn-primary:hover {
  background: #245c43 !important;
}

/* Edit Badge */
.pe3d-badge-edit {
  background: rgba(59,130,246,.3) !important;
  border-color: rgba(59,130,246,.5) !important;
  color: #93c5fd !important;
}

/* Modal */
.pe3d-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100020;
  backdrop-filter: blur(4px);
}
.pe3d-modal {
  width: 100%;
  max-width: 360px;
  margin: 16px;
}
.pe3d-modal-content {
  background: #1a2d42;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.pe3d-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2d42 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pe3d-modal-header h3 {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
}
.pe3d-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.pe3d-modal-close:hover {
  background: rgba(239,68,68,.2);
  color: #fca5a5;
}
.pe3d-modal-body {
  padding: 18px;
}
.pe3d-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.05);
}

/* Form */
.pe3d-form-group {
  margin-bottom: 14px;
}
.pe3d-form-group:last-child {
  margin-bottom: 0;
}
.pe3d-form-group label {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.pe3d-form-group input,
.pe3d-form-group select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  font-size: .85rem;
  font-family: inherit;
  transition: border-color .15s;
}
.pe3d-form-group input:focus,
.pe3d-form-group select:focus {
  outline: none;
  border-color: rgba(59,130,246,.5);
}
.pe3d-form-group input[type="color"] {
  padding: 4px;
  height: 40px;
  cursor: pointer;
}
.pe3d-form-group small {
  display: block;
  color: rgba(255,255,255,.4);
  font-size: .68rem;
  margin-top: 4px;
}

/* Notification */
.pe3d-notification {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100030;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  animation: pe3d-notif-in .3s ease;
}
.pe3d-notification-info {
  background: rgba(59,130,246,.9);
  color: #fff;
}
.pe3d-notification-success {
  background: rgba(34,197,94,.9);
  color: #fff;
}
.pe3d-notification-error {
  background: rgba(239,68,68,.9);
  color: #fff;
}
.pe3d-notification-hide {
  animation: pe3d-notif-out .3s ease forwards;
}
@keyframes pe3d-notif-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pe3d-notif-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
  .pe3d-edit-tools {
    margin-right: 8px;
    padding-right: 8px;
    gap: 4px;
  }
  .pe3d-btn-tool span,
  .pe3d-btn-save span {
    display: none;
  }
  .pe3d-poi-panel {
    top: auto;
    bottom: 80px;
    right: 8px;
    max-width: 160px;
    max-height: 30vh;
    padding: 10px 12px;
  }
  .pe3d-poi-item {
    padding: 5px 6px;
    font-size: .7rem;
  }
  .pe3d-modal {
    max-width: 320px;
  }
  .pe3d-modal-header {
    padding: 12px 14px;
  }
  .pe3d-modal-body {
    padding: 14px;
  }
  .pe3d-modal-footer {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .pe3d-edit-tools {
    margin-right: 6px;
    padding-right: 6px;
    gap: 3px;
  }
  .pe3d-edit-tools .pe3d-btn {
    padding: 4px 6px;
    font-size: .6rem;
  }
  .pe3d-edit-tools .pe3d-btn svg {
    width: 12px;
    height: 12px;
  }
  .pe3d-poi-panel {
    bottom: 60px;
    right: 6px;
    max-width: 140px;
    padding: 8px 10px;
  }
  .pe3d-poi-item {
    padding: 4px 5px;
    font-size: .65rem;
    gap: 6px;
  }
  .pe3d-poi-item-icon {
    font-size: .85rem;
  }
}


/* ============================================================
   Profesyonel POI Pin Stilleri
   ============================================================ */

/* POI Pin (Yeni Tasarım) */
.pe3d-poi-pin {
  position: relative;
  width: 36px;
  height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pe3d-poi-pin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--poi-color, #3b82f6);
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0,0,0,.35), inset 0 -2px 6px rgba(0,0,0,.2);
  border: 2px solid rgba(255,255,255,.9);
}
.pe3d-poi-pin::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 4px;
  background: rgba(0,0,0,.25);
  border-radius: 50%;
  filter: blur(2px);
}

.pe3d-poi-icon-wrap {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pe3d-poi-icon-wrap svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}

/* POI Pulse Animasyonu */
.pe3d-poi-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--poi-color, #3b82f6);
  opacity: 0;
  animation: pe3d-poi-pulse 2s ease-out infinite;
}
@keyframes pe3d-poi-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

/* POI Tooltip */
.pe3d-poi-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(13,27,42,.95);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.pe3d-poi-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(13,27,42,.95);
}
.pe3d-poi-marker:hover .pe3d-poi-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

/* POI Her Zaman Görünür Başlık */
.pe3d-poi-label-always {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: rgba(13,27,42,.9);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  z-index: 1;
}
.pe3d-poi-tooltip-title {
  display: block;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.pe3d-poi-tooltip-cat {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* POI Hover Efekti */
.pe3d-poi-marker:hover .pe3d-poi-pin {
  transform: scale(1.15) translateY(-4px);
}
.pe3d-poi-marker:hover .pe3d-poi-pulse {
  animation: none;
  opacity: 0;
}

/* POI Highlight (Panel'den tıklandığında) */
.pe3d-poi-highlight .pe3d-poi-pin {
  animation: pe3d-poi-bounce 0.6s ease;
}
.pe3d-poi-highlight .pe3d-poi-pulse {
  animation: pe3d-poi-highlight-pulse 0.6s ease-out 3;
}
@keyframes pe3d-poi-bounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.3) translateY(-8px); }
}
@keyframes pe3d-poi-highlight-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(3); opacity: 0; }
}

/* ============================================================
   Mesafe Badge Stilleri
   ============================================================ */

.pe3d-mesafe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mesafe-color, #f59e0b);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,.3);
}
.pe3d-mesafe-badge svg {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

/* Mesafe çizgisi hover */
.pe3d-mesafe-line {
  transition: stroke-width 0.2s ease;
}
.pe3d-mesafe-line:hover {
  stroke-width: 5px !important;
}

/* ============================================================
   Filtre Bar Stilleri
   ============================================================ */

.pe3d-filter-bar {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100015;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,27,42,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 25px;
  padding: 6px 12px;
  backdrop-filter: blur(12px);
}
.pe3d-filter-label {
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  font-weight: 500;
  margin-right: 4px;
}
.pe3d-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: .7rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all .15s;
}
.pe3d-filter-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.pe3d-filter-btn.active {
  background: var(--filter-color, rgba(59,130,246,.3));
  border-color: var(--filter-color, rgba(59,130,246,.5));
  color: #fff;
}
.pe3d-filter-count {
  background: rgba(255,255,255,.15);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: .6rem;
}

/* ============================================================
   POI Panel Gelişmiş Stilleri
   ============================================================ */

.pe3d-poi-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pe3d-poi-count {
  color: rgba(255,255,255,.4);
  font-size: .65rem;
}

.pe3d-poi-group {
  margin-bottom: 12px;
}
.pe3d-poi-group:last-child {
  margin-bottom: 0;
}
.pe3d-poi-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  border-left: 3px solid var(--group-color, #3b82f6);
}
.pe3d-poi-group-header span:first-child {
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 600;
}
.pe3d-poi-group-count {
  background: var(--group-color, #3b82f6);
  color: #fff;
  font-size: .6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

.pe3d-poi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 3px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  background: transparent;
}
.pe3d-poi-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(4px);
}

.pe3d-poi-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--item-color, rgba(255,255,255,.1));
}
.pe3d-poi-item-icon svg {
  width: 16px;
  height: 16px;
}

.pe3d-poi-item-info {
  flex: 1;
  min-width: 0;
}
.pe3d-poi-item-title {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pe3d-poi-item-type {
  display: block;
  color: rgba(255,255,255,.4);
  font-size: .65rem;
  margin-top: 1px;
}

.pe3d-poi-item-delete {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,.15);
  border: none;
  color: #fca5a5;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .15s;
  flex-shrink: 0;
}
.pe3d-poi-item:hover .pe3d-poi-item-delete {
  opacity: 1;
}
.pe3d-poi-item-delete:hover {
  background: rgba(239,68,68,.3);
  color: #fff;
}

/* ============================================================
   Info Box (Modal içinde)
   ============================================================ */

.pe3d-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 8px;
  margin-bottom: 16px;
  color: #93c5fd;
  font-size: .8rem;
}
.pe3d-info-box svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.pe3d-info-box strong {
  color: #fff;
}

/* ============================================================
   Color Row (Form içinde)
   ============================================================ */

.pe3d-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pe3d-color-row input[type="color"] {
  width: 50px;
  flex-shrink: 0;
}
.pe3d-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
}
.pe3d-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ============================================================
   Danger Button
   ============================================================ */

.pe3d-btn-danger {
  background: rgba(239,68,68,.15) !important;
  border-color: rgba(239,68,68,.3) !important;
  color: #fca5a5 !important;
  margin-right: auto;
}
.pe3d-btn-danger:hover {
  background: rgba(239,68,68,.25) !important;
  color: #fff !important;
}

/* ============================================================
   Responsive Güncellemeler
   ============================================================ */

@media (max-width: 768px) {
  .pe3d-filter-bar {
    top: 52px;
    padding: 5px 10px;
    gap: 4px;
    max-width: calc(100% - 24px);
    overflow-x: auto;
  }
  .pe3d-filter-label {
    display: none;
  }
  .pe3d-filter-btn {
    padding: 4px 10px;
    font-size: .65rem;
  }
  .pe3d-filter-count {
    display: none;
  }
  
  .pe3d-poi-pin {
    width: 30px;
    height: 38px;
  }
  .pe3d-poi-pin::before {
    width: 26px;
    height: 26px;
  }
  .pe3d-poi-icon-wrap {
    width: 14px;
    height: 14px;
    margin-top: 4px;
  }
  .pe3d-poi-icon-wrap svg {
    width: 12px;
    height: 12px;
  }
  
  .pe3d-poi-label-always {
    font-size: .6rem;
    padding: 2px 6px;
    max-width: 100px;
  }
  
  .pe3d-poi-panel {
    max-width: 180px;
    max-height: 35vh;
  }
  .pe3d-poi-item {
    padding: 6px 8px;
    gap: 8px;
  }
  .pe3d-poi-item-icon {
    width: 24px;
    height: 24px;
  }
  .pe3d-poi-item-icon svg {
    width: 14px;
    height: 14px;
  }
  .pe3d-poi-item-title {
    font-size: .7rem;
  }
  .pe3d-poi-item-type {
    font-size: .6rem;
  }
  
  .pe3d-mesafe-badge {
    font-size: .68rem;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .pe3d-filter-bar {
    top: 48px;
    padding: 4px 8px;
    border-radius: 20px;
  }
  .pe3d-filter-btn {
    padding: 3px 8px;
    font-size: .6rem;
    border-radius: 12px;
  }
  
  .pe3d-poi-pin {
    width: 26px;
    height: 34px;
  }
  .pe3d-poi-pin::before {
    width: 22px;
    height: 22px;
  }
  .pe3d-poi-icon-wrap {
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }
  .pe3d-poi-icon-wrap svg {
    width: 10px;
    height: 10px;
  }
  
  .pe3d-poi-label-always {
    font-size: .55rem;
    padding: 2px 5px;
    max-width: 80px;
  }
  
  .pe3d-poi-tooltip {
    display: none;
  }
  
  .pe3d-poi-panel {
    max-width: 150px;
    max-height: 30vh;
    padding: 8px 10px;
  }
  .pe3d-poi-group-header {
    padding: 5px 6px;
  }
  .pe3d-poi-group-header span:first-child {
    font-size: .68rem;
  }
  .pe3d-poi-item {
    padding: 5px 6px;
    gap: 6px;
  }
  .pe3d-poi-item-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  
  .pe3d-mesafe-badge {
    font-size: .62rem;
    padding: 3px 8px;
    gap: 4px;
  }
  .pe3d-mesafe-badge svg {
    width: 10px;
    height: 10px;
  }
}
