/* === TÜRKİYE HARİTASI === */
#turkiye-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1000 / 422;
  margin: 0 auto;
  background: #ba0809;
  line-height: 0;
  overflow: hidden;
}

#turkiye-map-wrapper svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#turkiye-map-wrapper svg path {
  fill: #ffffff;
  stroke: #ba0809;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.3s;
}
#turkiye-map-wrapper svg path:hover {
  fill: #ba0809;
}

/* === TOOLTIP === */
.il-tooltip {
  position: absolute;
  background: #fff;
  color: #ba0809;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}
.il-tooltip.active {
  opacity: 1;
  transform: translate(-50%, -150%);
}

/* === POPUP GENEL === */
#vogue-popup {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#vogue-popup.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

/* === POPUP İÇERİK === */
#vogue-popup .popup-inner {
  background: #fff;
  color: #111;
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  margin: auto;
  position: relative;
  padding-top: 40px; /* üst boşluğu biraz azalttık */
  padding-bottom: 40px;
}

/* === Sol sütun === */
.popup-media {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  gap: 10px;
  margin-top: 0 !important;
}

/* === Görsel (isteğe bağlı) === */
#il-resim {
  width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* === Video === */
#il-video-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
#il-video-wrapper iframe,
#il-video-wrapper video {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* === Sağ sütun (bilgi kutusu) === */
.popup-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
}

/* === Başlık (kırmızı kutunun üstünde ortalı) === */
#il-baslik {
  position: absolute;
  top: -55px; /* kırmızı kutunun hemen üstünde */
  left: 50%;
  transform: translateX(-50%);
  color: #ba0809;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  z-index: 10;
  width: 100%;
}

/* Alt çizgiyi kaldır */
#il-baslik::after {
  display: none !important;
}

/* === Bilgi Kutusu === */
.general-info {
  background: #ba0809;
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  margin: 0; /* boşluk kaldırıldı */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.general-info h2 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 15px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.info-item:last-child {
  border-bottom: none;
}

/* === Kapat Butonu === */
#vogue-popup .close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: rgba(255,255,255,0.9);
  border: none;
  color: #ba0809;
  font-size: 26px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}
#vogue-popup .close:hover {
  background: #ba0809;
  color: #fff;
  transform: scale(1.1);
}

/* === Fade Animasyonu === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Mobil Uyum === */
@media (max-width: 992px) {
  #vogue-popup .popup-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }

  .popup-media {
    width: 100%;
    padding: 10px;
  }

  #il-video-wrapper iframe,
  #il-video-wrapper video {
    height: 220px;
  }

  .popup-content {
    width: 100%;
    padding: 20px 15px;
  }

  #il-baslik {
    position: static;
    margin-top: 10px;
    font-size: 24px;
  }
}

/* === Mobilde video görünmeme düzeltmesi === */
#il-video-wrapper {
  width: 100%;
  position: relative;
  display: block;
}

#il-video-wrapper iframe,
#il-video-wrapper video {
  width: 100%;
  height: auto; /* auto olmalı */
  min-height: 220px; /* 👈 mobilde minimum yükseklik garanti */
  max-height: 400px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #il-video-wrapper iframe,
  #il-video-wrapper video {
    height: auto !important;
    min-height: 250px !important; /* 📱 mobilde garanti görünür */
  }
}

/* === Mobilde popup başlığını gizle === */
@media (max-width: 992px) {
  #il-baslik {
    display: none !important;
  }
}
