﻿/* ===== INTERAKTIF HARITA ===== */
.map-page-wrapper {
  position: relative;
  width: 100%;
  height: calc(100dvh - 100px);
  margin-top: 0;
  background: #0d1117;
  display: flex;
  flex-direction: column;
}

#map-container {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Harita Icindeki Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
  background: rgba(15, 12, 25, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  color: #fff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}
.leaflet-popup-tip {
  background: rgba(15, 12, 25, 0.95) !important;
  border-top: 1px solid var(--color-border) !important;
  border-left: 1px solid var(--color-border) !important;
}
.leaflet-popup-content {
  font-family: var(--font-body) !important;
  margin: 16px !important;
}
.leaflet-popup-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary-light);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding-bottom: 8px;
}
.leaflet-popup-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.leaflet-popup-close-button {
  color: var(--color-text-muted) !important;
  padding: 4px 8px !important;
}
.leaflet-popup-close-button:hover { color: #fff !important; }

/* Harita Sidebar (Sag taraftaki liste) */
.map-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 320px;
  max-height: calc(100% - 40px);
  background: rgba(10, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.map-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-sidebar-title i { color: var(--color-primary-light); }
.map-sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.map-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.map-blip-item {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-blip-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(-5px);
}
.map-blip-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: #fff;
}
.map-blip-info h4 { font-size: 1rem; color: #fff; margin:0; }
.map-blip-info p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* Sadece harita sayfasinda footeri kucultelim veya gizleyelim */
body.map-active { overflow: hidden; }

@media (max-width: 768px) {
  .map-sidebar {
    width: 90%;
    right: 5%;
    top: auto;
    bottom: 20px;
    max-height: 40vh;
  }
}
/* Map Container Fix */
.map-page-wrapper {
  height: calc(100dvh - 90px) !important;
  min-height: 400px;
}
#map-container {
  height: 100%;
  width: 100%;
}

/* Leaflet Arkaplan Rengi (Gri yerine siteye uygun koyu renk) */
.leaflet-container {
  background: #050507 !important;
}

.leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
}


/* Fix Leaflet Controls */
.leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 1.2rem !important;
  color: #333 !important;
  background: #fff !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: block !important;
  padding: 0 !important;
}
