/* ============================================================
   İNTERAKTİF İZMİR HARİTASI  (includes/izmir-map.php)
   Koyu antrasit sahne + lime vurgu. Hareketler prefers-reduced-motion'da kapanır.
   ============================================================ */
.izm {
  --izm-bg: #0f171b;
  --izm-land: #1f2d33;
  --izm-land-open: #182226;
  --izm-edge: rgba(255,255,255,.10);
  --izm-edge-served: rgba(135,230,75,.38);
  --izm-lime: var(--accent, #87e64b);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "stage panel" "list list";
  gap: 0;
  background: var(--izm-bg);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  color: #e8eef0;
  box-shadow: 0 30px 80px rgba(17,24,28,.28);
  position: relative;
  isolation: isolate;
}
.izm-stage { grid-area: stage; position: relative; min-width: 0; }
.izm-svg {
  display: block; width: 100%; height: auto;            /* global svg{1em} kuralını ez */
  max-height: 78vh; aspect-ratio: 1000 / 886;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}

/* Üst araç çubuğu */
.izm-bar {
  position: absolute; z-index: 3; left: 18px; right: 18px; top: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.izm-zoom {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(17,24,28,.72); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.izm-zoom svg { width: 18px; height: 18px; }
.izm-zoom:hover { border-color: var(--izm-lime); transform: translateY(-1px); }
.izm-zoom[aria-pressed="true"] { background: var(--izm-lime); color: var(--dark, #11181c); border-color: var(--izm-lime); }
.izm-zoom:focus-visible { outline: 2px solid var(--izm-lime); outline-offset: 3px; }

.izm-legend { list-style: none; display: flex; gap: 14px; font-size: 12px; color: var(--dark-muted, #a8b3ba); }
.izm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.izm-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.izm-legend .lg-served { background: #2e4a2a; box-shadow: inset 0 0 0 1.5px var(--izm-lime); }
.izm-legend .lg-open { background: var(--izm-land-open); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.izm-legend .lg-pin { border-radius: 50%; background: var(--izm-lime); width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(135,230,75,.25); }

/* ---------- İlçeler ---------- */
.izm-halo { fill: rgba(135,230,75,.10); stroke: none; }
.izm-d path {
  fill: var(--land, var(--izm-land));
  stroke: var(--izm-edge); stroke-width: 1; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill .28s ease, stroke .28s ease, transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease;
  transform-box: fill-box; transform-origin: center;
  cursor: pointer;
}
.izm-d.is-served path { stroke: var(--izm-edge-served); }
.izm-d.is-open path { fill: var(--izm-land-open); }
.izm-d { outline: none; }

/* Aktif / hover */
.izm-d.is-hot path, .izm-d:focus-visible path {
  fill: var(--izm-lime); stroke: #fff; stroke-width: 1.6;
  transform: translateY(-3px) scale(1.015);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(135,230,75,.45));
}
.izm-d.is-open.is-hot path, .izm-d.is-open:focus-visible path {
  fill: #33444b; stroke: rgba(255,255,255,.7);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.5));
}
.izm-d.is-sel path {
  fill: var(--izm-lime); stroke: #fff; stroke-width: 2;
  filter: drop-shadow(0 0 18px rgba(135,230,75,.6));
}
/* Biri seçiliyken/hover'dayken diğerleri hafif söner */
.izm.has-hot .izm-d:not(.is-hot):not(.is-sel) path { fill-opacity: .55; }

.izm-outline {
  fill: none; stroke: rgba(135,230,75,.75); stroke-width: 1.6;
  vector-effect: non-scaling-stroke; pointer-events: none;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* ---------- Etiketler ---------- */
.izm-labels text {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600;
  text-anchor: middle; dominant-baseline: middle; pointer-events: none;
  fill: rgba(255,255,255,.78); paint-order: stroke; stroke: rgba(12,18,21,.85); stroke-width: 3px;
  stroke-linejoin: round; transition: opacity .35s ease, fill .2s ease;
}
.izm-labels .lb { font-size: 15px; }
.izm-labels .lb-open { fill: rgba(255,255,255,.42); font-weight: 500; }
.izm-labels .lb-c { font-size: 5.2px; stroke-width: 1.1px; opacity: 0; }
.izm.is-zoomed .izm-labels .lb-c { opacity: 1; }
.izm.is-zoomed .izm-labels .lb { opacity: 0; }
.izm-labels text.is-hot { fill: var(--dark, #11181c); stroke: transparent; }

/* ---------- Gerçek proje işaretleri (projects tablosu) ---------- */
.izm-prj { pointer-events: none; }
.izm-prj rect { fill: #fff; stroke: var(--izm-lime); stroke-width: 1.5; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.izm-prj text { font: 700 12px 'Poppins', system-ui, sans-serif; fill: var(--dark, #11181c); text-anchor: middle; dominant-baseline: middle; }
.izm-prj.is-c { opacity: 0; transition: opacity .35s ease; }
.izm-prj.is-c rect { transform: scale(.38); }
.izm-prj.is-c text { font-size: 4px; }
.izm.is-zoomed .izm-prj.is-c { opacity: 1; }
.izm.is-zoomed .izm-prj:not(.is-c) { opacity: 0; }
.izm.is-ready:not(.is-in) .izm-prj { opacity: 0; }
.izm-legend .lg-prj { background: #fff; border-radius: 6px; width: 14px; box-shadow: inset 0 0 0 1.5px var(--izm-lime); }
.izm-prj-list { margin: -6px 0 22px; }
.izm-prj-list ul { list-style: none; display: grid; gap: 8px; max-height: 170px; overflow: auto; }
.izm-prj-list li { display: grid; gap: 0; padding-left: 14px; position: relative; font-size: 14px; line-height: 1.4; }
.izm-prj-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--izm-lime); }
.izm-prj-list a { color: #fff; }
.izm-prj-list a:hover { color: var(--izm-lime); }
.izm-prj-list small { font-size: 12px; color: var(--dark-muted, #a8b3ba); }

/* ---------- Belde pinleri ---------- */
.izm-pin { cursor: pointer; outline: none; }
.izm-pin .pin-dot { fill: var(--izm-lime); stroke: #0f171b; stroke-width: 1.6; transition: transform .25s ease; }
.izm-pin .pin-hit { fill: transparent; }
.izm-pin .pin-pulse { fill: rgba(135,230,75,.35); transform-box: fill-box; transform-origin: center; animation: izm-pulse 2.4s ease-out infinite; animation-delay: var(--dl, 0ms); }
.izm-pin .pin-lb {
  font: 600 11px 'Poppins', system-ui, sans-serif; fill: #fff;
  paint-order: stroke; stroke: rgba(12,18,21,.9); stroke-width: 3px; stroke-linejoin: round;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.izm-pin.is-hot .pin-lb, .izm-pin:focus-visible .pin-lb, .izm.is-zoomed .izm-pin .pin-lb { opacity: 1; }
.izm-pin.is-hot .pin-dot, .izm-pin:focus-visible .pin-dot { transform: scale(1.5); transform-box: fill-box; transform-origin: center; }
.izm.is-zoomed .izm-pin .pin-lb { font-size: 4.5px; stroke-width: 1.2px; }
.izm.is-zoomed .izm-pin .pin-dot { r: 1.6; stroke-width: .6; }
.izm.is-zoomed .izm-pin .pin-pulse { r: 3; }
@keyframes izm-pulse { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Giriş animasyonu (JS: .is-ready → .is-in → .is-settled) ---------- */
.izm.is-ready:not(.is-in) .izm-d path { opacity: 0; transform: translateY(10px) scale(.96); }
.izm.is-ready:not(.is-in) .izm-labels text,
.izm.is-ready:not(.is-in) .izm-pin,
.izm.is-ready:not(.is-in) .izm-halo { opacity: 0; }
.izm.is-ready:not(.is-in) .izm-outline { stroke-dashoffset: 1; }
.izm.is-in:not(.is-settled) .izm-d path {
  transition: opacity .6s ease var(--dl), transform .7s cubic-bezier(.2,.8,.2,1) var(--dl),
              fill .28s ease, stroke .28s ease, filter .35s ease;
}
.izm.is-in:not(.is-settled) .izm-labels text,
.izm.is-in:not(.is-settled) .izm-pin { transition: opacity .5s ease var(--dl); }
.izm.is-in .izm-outline { transition: stroke-dashoffset 2.6s cubic-bezier(.6,.05,.3,1) .2s; }
.izm.is-in .izm-halo { transition: opacity 1.6s ease 1.2s; }

/* ---------- Tooltip ---------- */
.izm-tip {
  position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none;
  display: grid; gap: 1px; padding: 9px 13px; border-radius: 10px;
  background: #fff; color: var(--dark, #11181c); box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: 13px; line-height: 1.35; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity .15s ease;
}
.izm-tip b { font-size: 14.5px; font-weight: 600; }
.izm-tip span { color: var(--accent-ink, #3f7a19); font-weight: 500; }
.izm-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}

/* ---------- Yan panel ---------- */
.izm-panel {
  grid-area: panel; position: relative;
  padding: 34px 30px; border-left: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #131d22 0%, #10181c 100%);
  display: flex; flex-direction: column; justify-content: center;
}
.izm-pane[hidden] { display: none; }
.izm-pane { animation: izm-in .4s cubic-bezier(.2,.8,.2,1); }
@keyframes izm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.izm-eyebrow { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--izm-lime); margin-bottom: 12px; }
.izm-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.izm-big b { font-size: 64px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -.03em; }
.izm-big span { font-size: 17px; color: var(--dark-muted, #a8b3ba); }
.izm-note { font-size: 14.5px; color: #c9d3d8; margin-bottom: 20px; }
.izm-note b { color: #fff; }
.izm-facts { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.izm-facts li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e8eef0; }
.izm-facts svg { width: 18px; height: 18px; color: var(--izm-lime); }
.izm-hint { font-size: 12.5px; color: var(--dark-muted, #a8b3ba); border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.izm-hint b { color: #fff; font-weight: 600; }

.izm-back { font-size: 13px; color: var(--dark-muted, #a8b3ba); margin-bottom: 18px; align-self: flex-start; }
.izm-back:hover { color: var(--izm-lime); }
.izm-pane-sel { display: flex; flex-direction: column; }
.izm-pane-sel h3 { font-size: 30px; color: #fff; margin-bottom: 6px; }
.izm-sub { font-size: 14px; color: #c9d3d8; margin-bottom: 18px; }
.izm-pages { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; max-height: 210px; overflow: auto; }
.izm-pages a {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); color: #e8eef0;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.izm-pages a:hover { border-color: var(--izm-lime); background: rgba(135,230,75,.12); color: #fff; }
.izm-go { align-self: flex-start; }
.izm-quote { margin-top: 14px; font-size: 13.5px; color: var(--izm-lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Alt liste ---------- */
.izm-list {
  grid-area: list; display: flex; flex-wrap: wrap; gap: 7px;
  padding: 20px 24px 22px; border-top: 1px solid rgba(255,255,255,.08);
}
.izm-chip {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(135,230,75,.32); color: #e8eef0;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.izm-chip.is-open { border-color: rgba(255,255,255,.12); color: var(--dark-muted, #a8b3ba); }
.izm-chip.is-out { border-style: dashed; }
.izm-chip:hover, .izm-chip.is-hot { border-color: var(--izm-lime); background: var(--izm-lime); color: var(--dark, #11181c); transform: translateY(-2px); }
.izm-list { padding-bottom: 30px; }
.izm-credit { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: rgba(255,255,255,.28); pointer-events: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .izm { grid-template-columns: 1fr; grid-template-areas: "stage" "panel" "list"; }
  .izm-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 26px 22px; }
  .izm-big b { font-size: 48px; }
  .izm-svg { max-height: none; }
}
@media (max-width: 560px) {
  .izm { border-radius: var(--radius, 10px); margin-inline: -4px; }
  .izm-bar { position: static; padding: 12px 12px 0; pointer-events: auto; }
  .izm-legend { display: none; }
  .izm-zoom { font-size: 12.5px; padding: 8px 13px 8px 10px; }
  .izm-labels .lb { font-size: 22px; stroke-width: 4px; }
  .izm-labels .lb-c { font-size: 6.5px; }
  .izm-list { padding: 16px; }
  .izm-pane-sel h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .izm *, .izm *::before, .izm *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .izm.is-ready .izm-d path, .izm.is-ready .izm-labels text, .izm.is-ready .izm-pin { opacity: 1; transform: none; }
  .izm.is-ready .izm-outline { stroke-dashoffset: 0; }
}
