/* SVG T�rkiye Haritasi - Turistik Geziler */
body.turkey-map-page {
  position: relative;
  margin: 0;
  padding: 24px 20px 18px;
  background: radial-gradient(circle at top, #fffaf4 0%, #f5ede4 52%, #eadfce 100%);
}
/* T�m iller koyu, yalnizca Denizli ve Mugla beyaz (tiklanabilir) */

.svg-turkiye-haritasi {
  max-width: 100%;
  width: min(100%, 1120px);
  height: auto;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 28px;
  background: linear-gradient(155deg, #2f241d 0%, #241b16 100%);
  border: 1px solid rgba(201, 138, 74, 0.28);
  box-shadow: 0 22px 55px rgba(91, 61, 31, 0.22);
}

.svg-turkiye-haritasi svg {
  width: 168%;
  height: auto;
  transform: translate(7%, -31%);
}

/* Kibris haritasini gizle */
#kibris {
  display: none;
}

/* T�m iller koyu renk */
#turkiye g[data-iladi] path,
#turkiye g[data-plakakodu] path,
.svg-turkiye-haritasi #turkiye g path {
  fill: #302721;
  stroke: rgba(255, 245, 235, 0.75);
  stroke-width: 0.5;
  transition: fill 0.2s ease, stroke 0.2s ease;
  cursor: default;
}

/* Denizli ve Mugla beyaz ve tiklanabilir - imle� pointer olsun */
#denizli,
#mugla {
  cursor: pointer !important;
}
#denizli path,
#mugla path {
  fill: #fff8f0 !important;
  stroke: #edd3b0 !important;
  cursor: pointer !important;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

/* T�m iller hover'da mavi parlama */
#turkiye g[data-iladi]:hover path,
#turkiye g[data-plakakodu]:hover path {
  fill: #c98a4a !important;
  stroke: #edc08f !important;
  filter: drop-shadow(0 0 10px rgba(201, 138, 74, 0.55));
}

/* Denizli ve Mugla hover: sadece beyaz parlama, yerinde dursun */
#turkiye #denizli:hover path,
#turkiye #mugla:hover path {
  fill: #fff8f0 !important;
  stroke: #f1c48d !important;
  filter: drop-shadow(0 0 12px rgba(201, 138, 74, 0.45));
}

/* Il isimleri tooltip - haritanin �st�nde sabit */
.il-isimleri {
  position: fixed;
  top: 16px;
  right: 18px;
  left: auto;
  transform: none;
  pointer-events: none;
  z-index: 9999;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(201, 138, 74, 0.9);
  color: #fffaf3;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 10px 24px rgba(169, 109, 60, 0.24);
  backdrop-filter: blur(8px);
}

.il-isimleri.visible {
  opacity: 1;
}

/* Popup overlay */
.turkey-map-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 17, 12, 0.58);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.turkey-map-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.turkey-map-popup {
  background: linear-gradient(155deg, #2f241d 0%, #241b16 100%);
  border: 1px solid rgba(201, 138, 74, 0.28);
  border-radius: 18px;
  padding: 24px 28px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 64px rgba(30, 20, 13, 0.45);
}

/* Harita popup - il�e haritasi (Mugla/Denizli/Antalya ortak), Mugla ile ayni boyut */
.turkey-map-popup-mugla,
.turkey-map-popup-map {
  max-width: 820px;
  width: 92%;
  padding: 24px 20px;
}

/* Denizli il�e haritasi popup'i hafif k���k */
.turkey-map-popup-denizli {
  max-width: 620px !important;
  padding: 20px 18px !important;
}
.turkey-map-popup-denizli .ilce-map-wrapper .ilce-map {
  max-width: 560px;
}

/* Denizli: renk paleti Mugla ile ayni (beyaz il�eler, koyu �er�eve) */
.ilce-map.ilce-map-denizli #layerHarita path {
  fill: #ffffff !important;
  fill-opacity: 0.95 !important;
  stroke: #333 !important;
  stroke-width: 1 !important;
}
.ilce-map.ilce-map-denizli .labelIlce text,
.ilce-map.ilce-map-denizli g.labelIlce text {
  fill: #1a1a1a !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.2);
}
.ilce-map.ilce-map-denizli .labelIlce #labelMerkez,
.ilce-map.ilce-map-denizli g.labelIlce #labelMerkez {
  font-size: 14px !important;
}

.mugla-map-wrapper,
.ilce-map-wrapper {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.02);
}

.mugla-map-loading,
.ilce-map-loading {
  color: #b0b0b0;
  font-size: 1rem;
}

.mugla-map-wrapper .mugla-ilce-map,
.ilce-map-wrapper .ilce-map {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(201, 138, 74, 0.26);
}

/* Il�e haritasi path'leri: Mugla ile ayni (toprak rengi, seffaf, siyah �er�eve) */
.ilce-map-wrapper #layerHarita path,
.mugla-map-wrapper #layerHarita path {
  fill: #ffd392;
  fill-opacity: 0.57254902;
  stroke: #000;
  stroke-width: 1;
}

/* Mugla: deniz alanlari (path2191, path2193) koyu mavi */
.ilce-map.ilce-map-mugla #layerHarita path#path2191,
.ilce-map.ilce-map-mugla #layerHarita path#path2193 {
  fill: #0c3a3b !important;
  fill-opacity: 1 !important;
  stroke: #0a2628;
  stroke-width: 1;
}

/* Mugla: etkilesimli il�eler (tiklanabilir) beyaz */
.ilce-map.ilce-map-mugla #layerHarita path:not(.ilce-no-destinasyon):not(#path2191):not(#path2193) {
  fill: #ffffff !important;
  fill-opacity: 0.95;
  stroke: #333;
}

/* Mugla: etkilesimsiz il�eler (destinasyon yok) siyah, imle� normal */
.ilce-map-wrapper #layerHarita path.ilce-no-destinasyon,
.mugla-map-wrapper #layerHarita path.ilce-no-destinasyon {
  fill: #1a1a1a !important;
  fill-opacity: 1;
  cursor: default !important;
}

/* Il�e isimleri harita �zerinde (Denizli vb.), beyaz yazi - Mugla gibi */
.ilce-map-wrapper .labelIlce text,
.ilce-map-wrapper g.labelIlce text {
  fill: #fff !important;
  font-family: Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  pointer-events: none;
}

/* Mugla haritasi: il�e isimleri b�y�t�lm�s */
.ilce-map.ilce-map-mugla #layerMetin text,
.ilce-map.ilce-map-mugla #layerMetin tspan {
  font-size: 18px !important;
  font-weight: 600 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  pointer-events: none;
}
.ilce-map.ilce-map-mugla #layerMetin text {
  fill: #1a1a1a !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.3);
}
/* Deniz �zerindeki "Mugla ili" etiketi */
.ilce-map.ilce-map-mugla #textMuglaIli,
.ilce-map.ilce-map-mugla #textMuglaIli tspan,
.ilce-map.ilce-map-mugla #textMuğlaİli,
.ilce-map.ilce-map-mugla #textMuğlaİli tspan {
  fill: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.mugla-map-tooltip,
.ilce-map-tooltip {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(201, 138, 74, 0.95);
  color: #fffaf3;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 10px 24px rgba(169, 109, 60, 0.26);
  z-index: 1;
}

.mugla-map-tooltip.visible,
.ilce-map-tooltip.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .turkey-map-popup-mugla,
  .turkey-map-popup-map {
    max-width: 96vw;
    padding: 44px 16px 20px;
  }
  .mugla-map-wrapper .mugla-ilce-map,
  .ilce-map-wrapper .ilce-map {
    max-width: 100%;
  }
}

.turkey-map-popup h3 {
  margin: 0 0 12px 0;
  font-size: 1.35rem;
  color: #fff7ef;
}

.turkey-map-popup p {
  margin: 0 0 16px 0;
  color: rgba(255, 244, 232, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

.turkey-map-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(201, 138, 74, 0.28);
  color: #fff7ef;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  line-height: 34px;
  z-index: 10;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.turkey-map-popup-close:hover {
  background: rgba(201, 138, 74, 0.18);
  border-color: rgba(201, 138, 74, 0.42);
  color: #fff;
}

.turkey-map-popup .btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #c98a4a 0%, #a96d3c 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.turkey-map-popup .btn:hover {
  background: linear-gradient(135deg, #d79b5c 0%, #b7773f 100%);
}

/* Destinasyon popup (Mugla il�e tiklaninca: fotograflar + metin + iletisim butonu) */
.destinasyon-overlay {
  z-index: 10000;
}

.destinasyon-popup {
  max-width: 900px;
  width: 94%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 32px 32px;
  background: linear-gradient(160deg, #2f241d 0%, #241b16 100%);
  border: 1px solid rgba(201, 138, 74, 0.32);
  box-shadow: 0 24px 64px rgba(30, 20, 13, 0.45);
}

.destinasyon-badge {
  margin: 0 0 8px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 237, 219, 0.74);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.destinasyon-title {
  margin: 0 0 20px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff7ef;
  letter-spacing: 0.02em;
  padding-right: 40px;
}

.destinasyon-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.destinasyon-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #231b16;
  box-shadow: 0 10px 24px rgba(30, 20, 13, 0.28);
}

.destinasyon-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.destinasyon-img-wrap:hover .destinasyon-img {
  transform: scale(1.03);
}

.destinasyon-caption {
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 247, 239, 0.92);
  background: rgba(36, 27, 22, 0.74);
  text-align: center;
}

.destinasyon-body {
  margin-bottom: 24px;
}

.destinasyon-text {
  margin: 0 0 14px 0;
  color: rgba(255, 244, 232, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.destinasyon-text:last-child {
  margin-bottom: 0;
}

.destinasyon-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #c98a4a 0%, #a96d3c 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(169, 109, 60, 0.3);
}

.destinasyon-cta:hover {
  background: linear-gradient(135deg, #d79b5c 0%, #b7773f 100%);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .destinasyon-popup {
    padding: 24px 20px 24px;
    max-height: 90vh;
  }
  .destinasyon-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .destinasyon-img {
    height: 200px;
  }
}

/* ============ MAP THEME REFINEMENT ============ */
body.turkey-map-page {
  background: radial-gradient(circle at top, #fffaf4 0%, #f4ecdf 50%, #eadfce 100%);
}

.svg-turkiye-haritasi {
  padding: 22px 26px;
  background: linear-gradient(160deg, #13383b 0%, #0a2628 100%);
  border: 1px solid rgba(201, 138, 74, 0.34);
  box-shadow: 0 24px 56px rgba(10, 38, 40, 0.24), 0 10px 26px rgba(91, 61, 31, 0.12);
}

.svg-turkiye-haritasi svg {
  width: 100%;
  transform: none;
}

#turkiye g[data-iladi] path,
#turkiye g[data-plakakodu] path,
.svg-turkiye-haritasi #turkiye g path {
  fill: #2a2825;
  stroke: rgba(255, 247, 239, 0.76);
}

.turkey-map-popup-overlay {
  background: rgba(10, 38, 40, 0.54);
}

.turkey-map-popup,
.destinasyon-popup {
  background: linear-gradient(160deg, #13383b 0%, #0a2628 100%);
  border-color: rgba(201, 138, 74, 0.32);
  box-shadow: 0 26px 70px rgba(10, 38, 40, 0.32);
}

.mugla-map-wrapper,
.ilce-map-wrapper {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.03) 0%, rgba(255, 248, 240, 0.01) 100%);
}

.destinasyon-img-wrap {
  background: #102d30;
}

.destinasyon-caption {
  background: rgba(10, 38, 40, 0.74);
}

@media (max-width: 768px) {
  .svg-turkiye-haritasi {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .svg-turkiye-haritasi svg {
    width: 100%;
    transform: none;
  }
}

/* ============ MAP COLOR FINAL ============ */
body.turkey-map-page {
  background: radial-gradient(circle at top, #f9f4ed 0%, #efe6d9 54%, #e2d5c3 100%);
}

.svg-turkiye-haritasi {
  background: linear-gradient(160deg, #1b6f8b 0%, #135d78 52%, #0d4459 100%);
  border-color: rgba(201, 138, 74, 0.34);
  box-shadow: 0 24px 56px rgba(13, 68, 89, 0.28), 0 10px 26px rgba(91, 61, 31, 0.12);
}

#turkiye g[data-iladi] path,
#turkiye g[data-plakakodu] path,
.svg-turkiye-haritasi #turkiye g path {
  fill: #fff8ee !important;
  stroke: rgba(73, 62, 52, 0.58) !important;
  stroke-width: 0.6 !important;
}

#turkiye g[data-iladi] text,
#turkiye g[data-plakakodu] text,
.svg-turkiye-haritasi #turkiye g text {
  fill: #241d18 !important;
}

#denizli path,
#mugla path,
#turkiye #denizli path,
#turkiye #mugla path,
#turkiye g#denizli path,
#turkiye g#mugla path {
  fill: #d8b376 !important;
  stroke: #f1d7ad !important;
}

#denizli text,
#mugla text,
#turkiye #denizli text,
#turkiye #mugla text {
  fill: #1d1712 !important;
}

#turkiye g[data-iladi]:hover path,
#turkiye g[data-plakakodu]:hover path {
  fill: #f7eee2 !important;
  stroke: rgba(201, 138, 74, 0.72) !important;
  filter: drop-shadow(0 0 8px rgba(201, 138, 74, 0.24));
}

#turkiye #denizli:hover path,
#turkiye #mugla:hover path {
  fill: #e0bf87 !important;
  stroke: #f8e5c8 !important;
  filter: drop-shadow(0 0 12px rgba(216, 179, 118, 0.38));
}

/* ============ MAP EMBED STRUCTURE FINAL ============ */
body.turkey-map-page {
  margin: 0;
  padding: 0;
  background: #0f0f10;
}

.svg-turkiye-haritasi {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(160deg, #1b6f8b 0%, #135d78 52%, #0d4459 100%);
  box-shadow: none;
}

.svg-turkiye-haritasi svg {
  display: block;
  width: 100%;
  height: auto;
}

.il-isimleri {
  top: 18px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(216, 179, 118, 0.92);
  box-shadow: 0 10px 24px rgba(169, 109, 60, 0.22);
}

/* ============ POPUP SIZE FINAL ============ */
.turkey-map-popup {
  max-width: 480px;
  padding: 28px 32px;
}

.turkey-map-popup-map,
.turkey-map-popup-mugla {
  max-width: 980px;
  width: 94%;
  padding: 30px 26px;
}

.turkey-map-popup-denizli {
  max-width: 760px !important;
  padding: 26px 22px !important;
}

.turkey-map-popup-denizli .ilce-map-wrapper .ilce-map {
  max-width: 680px;
}

.mugla-map-wrapper,
.ilce-map-wrapper {
  min-height: 420px;
}

.mugla-map-wrapper .mugla-ilce-map,
.ilce-map-wrapper .ilce-map {
  max-width: 860px;
}

.destinasyon-popup {
  max-width: 980px;
  width: 95%;
  padding: 32px 36px 36px;
}

.destinasyon-gallery {
  gap: 18px;
}

.destinasyon-img {
  height: 240px;
}

@media (max-width: 768px) {
  .turkey-map-popup {
    max-width: 92vw;
    padding: 22px 18px;
  }

  .turkey-map-popup-map,
  .turkey-map-popup-mugla,
  .turkey-map-popup-denizli {
    width: 96vw;
    max-width: 96vw !important;
    padding: 42px 16px 20px !important;
  }

  .mugla-map-wrapper,
  .ilce-map-wrapper {
    min-height: 320px;
  }

  .destinasyon-popup {
    width: 96%;
    max-width: 96vw;
    padding: 24px 20px 24px;
  }

  .destinasyon-img {
    height: 200px;
  }
}

body.turkey-map-page {
  background: #0d2f39;
}
