/* =============================================================================
 * ÜNİFEB Mezunlar Derneği — Efsaneleri Anma Projesi
 * Tema: Sarı–Lacivert · modern minimalist · ağırbaşlı anma tonu
 * Tipografi: Fraunces (başlık) + Plus Jakarta Sans (gövde)
 * ========================================================================== */

:root {
  --navy-950: #050e26;
  --navy-900: #08152f;
  --navy-850: #0b1d3d;
  --navy-800: #0e244c;
  --navy-700: #16305f;
  --navy-600: #1e3d74;
  --gold:     #f5c451;
  --gold-soft:#e7b23e;
  --gold-line:rgba(245,196,81,0.14);
  --ink:      #eef2fb;
  --ink-dim:  #9fb0d4;
  --ink-mute: #6f80a6;
  --line:     rgba(255,255,255,0.08);
  --panel:    rgba(8,18,42,0.86);
  --panel-solid:#0a1a3a;
  --shadow:   0 24px 70px rgba(0,0,0,0.55);
  --shadow-sm:0 8px 24px rgba(0,0,0,0.35);
  --r:        18px;
  --r-sm:     12px;
}

/* Logo başlığı için özel font */
@font-face {
  font-family: "TrSah Ambient";
  src: url("../assets/fonts/TrSahAmbient-Medium.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--navy-950);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Harita ---------- */
#map { position: absolute; inset: 0; background: var(--navy-950); z-index: 1; }
.leaflet-tile-pane {
  filter: brightness(0.98) contrast(1.0) hue-rotate(179deg) saturate(1.22);
}
.leaflet-container { background: var(--navy-950); font-family: inherit; }

/* Zoom kontrolü — sağ altta, karttan uzak, minimalist */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  width: 38px !important; height: 38px !important; line-height: 38px !important;
  background: rgba(10,26,58,0.88) !important;
  backdrop-filter: blur(8px);
  color: var(--gold) !important;
  border: 1px solid var(--line) !important;
  font-size: 18px !important; font-weight: 400 !important;
}
.leaflet-control-zoom a:first-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--navy-700) !important; }
.leaflet-bottom.leaflet-right { margin: 0 16px 20px 0; }
.leaflet-control-attribution {
  background: rgba(5,14,38,0.72) !important;
  color: var(--ink-mute) !important; font-size: 10px !important;
  border-radius: 8px 0 0 0 !important; padding: 3px 8px !important;
}
.leaflet-control-attribution a { color: var(--gold-soft) !important; }

/* Sarı dekoratif ince ızgara */
#map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 400;
  background-image:
    linear-gradient(rgba(245,196,81,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,196,81,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
}
/* Kenar vinyet — derinlik */
#map::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 401;
  box-shadow: inset 0 0 200px 10px rgba(4,10,28,0.42);
}

/* ---------- Madalyon işaretçi ---------- */
.pin {
  position: relative; width: 54px; height: 54px;
  --pin: var(--gold);              /* kategori rengi (JS'ten class ile ayarlanır) */
  --pin-glow: rgba(245,196,81,0.32);
}
.pin.cat-bakim  { --pin: #f5c451; --pin-glow: rgba(245,196,81,0.32); }
.pin.cat-tespit { --pin: #7ba7ff; --pin-glow: rgba(123,167,255,0.34); }

.pin-medallion {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2.5px solid var(--pin);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);      /* küme fotoğraflarıyla tutarlı: glow yok */
  overflow: hidden; background: var(--navy-700);
  display: grid; place-items: center;
  transition: transform .2s cubic-bezier(.34,1.4,.5,1), box-shadow .2s ease;
}
.pin-medallion img,
.p-portrait img,
.rl-mini img,
.nr-mini img,
.cl-face img {
  width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important;
  object-fit: cover; object-position: center 26%;   /* yüzleri düzgün çerçevele */
  display: block; border: none;
}
.pin-initials {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 15px; color: var(--pin);
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, var(--navy-600), var(--navy-850));
}
/* Zemin gölgesi — işaretçinin haritaya oturduğu hissi (baklava uç kaldırıldı) */
.pin::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 26px; height: 7px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 72%);
  z-index: -1; pointer-events: none;
}
.leaflet-marker-icon:hover .pin-medallion {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 14px 26px rgba(0,0,0,.55), 0 0 0 6px var(--pin-glow);
}
/* Son tıklanan / seçili mezar — resim sabit, etrafındaki halka canlı nabız atar.
   (Halka box-shadow ile; çünkü medalyonun overflow:hidden'ı psödo-elemanı kırpardı.) */
.pin-medallion.is-active {
  transform: translateY(-3px) scale(1.14);          /* sabit; oynamıyor */
  border-color: #fff;
  z-index: 6;
  animation: pinPulse 1.5s ease-out infinite;
}
@keyframes pinPulse {
  0% {
    box-shadow: 0 14px 26px rgba(0,0,0,.55), 0 0 0 4px var(--pin), 0 0 0 6px var(--pin-glow);
  }
  100% {
    box-shadow: 0 14px 26px rgba(0,0,0,.55), 0 0 0 4px var(--pin), 0 0 0 22px rgba(0,0,0,0);
  }
}

/* ---------- Küme (yakın mezarlar) — 2 foto + "+N" rozeti ---------- */
.cluster-wrap { background: transparent !important; }
.cluster-stack { display: flex; align-items: center; transition: transform .15s ease; }
.cluster-wrap:hover .cluster-stack { transform: scale(1.06); }
.cl-face {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid var(--gold); background: var(--navy-700);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  margin-left: -16px; position: relative;
}
.cl-face:first-child { margin-left: 0; }
.cl-chip {
  height: 42px; min-width: 42px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; margin-left: -14px; position: relative; z-index: 1;
  background: radial-gradient(circle at 32% 28%, var(--navy-600), var(--navy-850));
  border: 2.5px solid var(--gold);
  color: var(--gold); font-family: "Fraunces", serif; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}


/* ---------- Panel alt bilgi: Son bakım (küçük not) ---------- */
.p-foot-note {
  margin: 0; padding: 16px 32px 24px;
  font-size: 12px; color: var(--ink-mute); font-style: italic;
}

/* ---------- Üst başlık ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500;
  padding: 26px 24px 64px; display: flex; justify-content: center; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,14,38,0.92) 30%, rgba(5,14,38,0.5) 62%, transparent);
}
.brand { pointer-events: auto; display: flex; align-items: center; gap: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong {
  font-family: "TrSah Ambient", "Fraunces", serif; font-weight: 500; font-size: 24px; color: #fff;
  letter-spacing: 0.02em; line-height: 1;
}
.brand-text span {
  font-size: 10px; color: var(--gold); letter-spacing: 2.6px;
  text-transform: uppercase; font-weight: 600; margin-top: 3px;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img {
  width: 54px; height: 54px; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
}
.brand-logo-fallback { filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

/* ---------- Sol üst kart ---------- */
.info-card {
  position: absolute; top: 128px; left: 22px; z-index: 500;
  width: 316px; max-width: calc(100vw - 44px);
  display: flex; flex-direction: column;
  /* alt kısımda "?" butonu ve iletişim barı için yer bırak */
  max-height: calc(100vh - 208px);
  max-height: calc(100dvh - 208px);
  background: var(--panel); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-toggle {
  display: none;                 /* masaüstünde gizli */
  width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; padding: 15px 20px; cursor: pointer;
  background: transparent; border: none; color: #fff;
  font-family: "Plus Jakarta Sans"; font-weight: 600; font-size: 13px; letter-spacing: .2px;
}
.card-toggle .ct-label { display: flex; align-items: center; gap: 9px; }
.card-toggle .ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.card-toggle .ct-chevron { width: 18px; height: 18px; color: var(--gold); transition: transform .25s ease; flex: none; }
.info-card.collapsed .card-toggle .ct-chevron { transform: rotate(-90deg); }
.card-body { padding: 22px 22px 22px; overflow-y: auto; min-height: 0; }
.card-body::-webkit-scrollbar { width: 7px; }
.card-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 8px; }
.card-lead { margin: 0 0 20px; font-size: 13px; line-height: 1.62; color: var(--ink-dim); font-weight: 400; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 22px; }
.stat {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 6px 11px; text-align: center;
}
.stat b {
  display: block; font-family: "Fraunces", serif; font-weight: 600;
  font-size: 26px; color: var(--gold); line-height: 1;
}
.stat span { font-size: 9px; color: var(--ink-mute); letter-spacing: .8px; font-weight: 600; text-transform: uppercase; margin-top: 5px; display: block; }

.recent h3 {
  margin: 0 0 4px; font-size: 11px; color: var(--ink-dim); letter-spacing: 1.6px;
  text-transform: uppercase; font-family: "Plus Jakarta Sans"; font-weight: 700;
}
.recent ul { list-style: none; margin: 8px 0 20px; padding: 0; }
.recent li {
  display: flex; align-items: center; gap: 11px; padding: 9px 8px; margin: 0 -8px;
  border-radius: 10px; cursor: pointer; transition: background .15s;
}
.recent li:hover { background: rgba(255,255,255,0.04); }
.recent li:hover .rl-name { color: var(--gold); }
.rl-mini {
  width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden;
  border: 1.5px solid var(--gold-line);
}
.rl-mini img { width: 100%; height: 100%; object-fit: cover; }
.rl-name { font-size: 13px; font-weight: 500; transition: color .15s; }
.rl-role { margin-left: auto; font-size: 10px; color: var(--ink-mute); font-weight: 500; }

.names-link {
  width: 100%; padding: 13px; cursor: pointer;
  background: var(--gold); color: var(--navy-950); font-weight: 700; font-size: 13px;
  font-family: "Plus Jakarta Sans"; border: none; border-radius: var(--r-sm);
  letter-spacing: .2px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, background .15s;
}
.names-link:hover { background: #ffd469; transform: translateY(-1px); }
.names-link svg { width: 16px; height: 16px; }

/* Sabit iletişim barı (alt-orta): mail + sosyal medya */
.contact-bar {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 650; display: flex; align-items: center; gap: 12px;
  padding: 7px 9px 7px 16px; border-radius: 999px;
  background: rgba(8,18,42,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  max-width: calc(100vw - 150px);
}
.cb-mail {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink-dim); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: color .15s;
}
.cb-mail svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.cb-mail:hover { color: var(--gold); }
.cb-sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.cb-socials { display: flex; gap: 3px; }
.cb-socials a {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-dim); transition: color .15s, background .15s;
}
.cb-socials a svg { width: 15px; height: 15px; }
.cb-socials a:hover { color: var(--navy-950); background: var(--gold); }
/* Dar ekranda: e-posta metnini gizle, sadece ikon kalsın (bar kompakt olsun) */
@media (max-width: 600px) {
  .contact-bar { gap: 8px; padding: 6px 8px; bottom: 14px; max-width: calc(100vw - 24px); }
  .cb-mail-text { display: none; }
  .cb-sep { display: none; }
}

/* ---------- Sağ panel (kişi) ---------- */
.detail-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw;
  z-index: 900; background: var(--panel-solid);
  border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(0,0,0,.5);
  transform: translateX(105%); transition: transform .4s cubic-bezier(.4,0,.15,1);
  display: flex; flex-direction: column;
}
.detail-panel.open { transform: translateX(0); }
.panel-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: background .15s, transform .15s;
}
.panel-close svg { width: 16px; height: 16px; }
.panel-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.panel-scroll { overflow-y: auto; height: 100%; }

.p-hero {
  position: relative; padding: 46px 32px 28px; text-align: center;
  background:
    radial-gradient(130% 100% at 50% -10%, rgba(30,61,116,0.6), transparent 65%),
    linear-gradient(to bottom, var(--navy-800), var(--panel-solid));
  border-bottom: 1px solid var(--line);
}
.p-portrait {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 7px rgba(245,196,81,0.09), var(--shadow-sm);
  background: var(--navy-600);
}
.p-portrait img { width: 100%; height: 100%; object-fit: cover; }
.p-portrait .pin-initials { font-size: 38px; }
.p-name { margin: 0; font-size: 30px; color: #fff; font-weight: 600; line-height: 1.1; }
.p-role {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 5px 14px; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,196,81,0.08);
  border: 1px solid var(--gold-line); border-radius: 999px; font-weight: 700;
  font-family: "Plus Jakarta Sans";
}
.p-years { margin: 14px 0 0; color: var(--ink-dim); font-size: 13px; letter-spacing: 1.5px; font-weight: 500; }

.p-section { padding: 26px 32px; border-bottom: 1px solid var(--line); }
.p-section:last-child { border-bottom: none; }
.p-section h4 {
  margin: 0 0 16px; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-family: "Plus Jakarta Sans"; font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
.p-section h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.p-bio { margin: 0; font-size: 14.5px; line-height: 1.72; color: #cfd8f0; font-weight: 400; }

.p-facts { display: grid; gap: 4px; }
.fact {
  display: flex; gap: 14px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fact:last-child { border-bottom: none; }
.fact-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(245,196,81,0.08); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold);
}
.fact-ic svg { width: 17px; height: 17px; }
.fact-txt { display: flex; flex-direction: column; gap: 2px; }
.fact-txt b { font-size: 10px; color: var(--ink-mute); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.fact-txt span { font-size: 14px; color: #e7ecfb; font-weight: 500; }
.fact-txt .coord { font-variant-numeric: tabular-nums; color: var(--gold-soft); font-weight: 600; }

/* Dernek çalışmaları */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.work-thumb {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; border: 1px solid var(--line); transition: transform .18s, border-color .18s;
}
.work-thumb .thumb-img { position: absolute; inset: 0; }
.work-thumb .thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 11px 10px;
  font-size: 11px; color: #fff; font-weight: 600; line-height: 1.3;
  background: linear-gradient(to top, rgba(5,14,38,.96), transparent);
}
.work-thumb:hover { transform: translateY(-2px); border-color: var(--gold); }
.work-thumb .expand-ic {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(5,14,38,0.6); backdrop-filter: blur(4px); color: var(--gold);
  opacity: 0; transition: opacity .15s;
}
.work-thumb .expand-ic svg { width: 13px; height: 13px; }
.work-thumb:hover .expand-ic { opacity: 1; }

/* ---------- İsim listesi modalı ---------- */
.modal-overlay, .lightbox {
  position: absolute; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(3,9,24,0.84); backdrop-filter: blur(8px); padding: 24px;
}
.modal-overlay.open, .lightbox.open { display: flex; animation: overlayIn .25s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(780px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 34px 34px 36px;
  animation: modalIn .3s cubic-bezier(.34,1.2,.5,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close, .lightbox-close {
  position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; background: rgba(255,255,255,0.06); color: var(--ink);
  border: 1px solid var(--line); display: grid; place-items: center; z-index: 10;
  transition: background .15s, transform .15s;
}
.modal-close svg, .lightbox-close svg { width: 16px; height: 16px; }
.modal-close:hover, .lightbox-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.modal-title { margin: 0; font-size: 32px; color: #fff; font-weight: 600; }
.modal-sub { margin: 6px 0 18px; color: var(--ink-dim); font-size: 13px; }

/* Arama kutusu */
.names-search {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.names-search:focus-within { border-color: var(--gold-line); background: rgba(255,255,255,0.06); }
.names-search svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.names-search input {
  flex: 1; background: none; border: none; outline: none;
  padding: 12px 0; color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
}
.names-search input::placeholder { color: var(--ink-mute); }
.names-empty {
  display: none; margin: 6px 0 4px; text-align: center;
  color: var(--ink-mute); font-size: 13.5px; padding: 20px 0;
}

.names-col { margin-bottom: 26px; }
.names-col:last-child { margin-bottom: 0; }
.names-col h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 12px; color: var(--ink-dim); letter-spacing: 1.4px; text-transform: uppercase;
  font-family: "Plus Jakarta Sans"; font-weight: 700;
}
.names-col h3 .cat-count {
  font-size: 11px; font-weight: 700; color: var(--navy-950); background: var(--gold);
  padding: 2px 9px; border-radius: 999px; letter-spacing: 0;
}
.name-row {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 13px;
  cursor: pointer; border: 1px solid transparent; transition: background .14s, border-color .14s;
}
.name-row:hover { background: rgba(255,255,255,0.04); border-color: var(--line); }
.name-row.no-map { opacity: .9; }
.nr-mini {
  width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden;
  border: 1.5px solid var(--gold); background: var(--navy-600);
}
.nr-mini img { width: 100%; height: 100%; object-fit: cover; }
.nr-mini .pin-initials { font-size: 13px; }
.nr-info { min-width: 0; }
.nr-info b { font-size: 14px; font-weight: 600; color: #fff; display: block; }
.nr-info span { font-size: 11.5px; color: var(--ink-mute); font-weight: 500; }
.nr-badge {
  margin-left: auto; font-size: 10px; padding: 4px 11px; border-radius: 999px;
  letter-spacing: .2px; white-space: nowrap; font-weight: 600;
}
.badge-bakim { background: rgba(245,196,81,.14); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-tespit { background: rgba(125,167,255,.13); color: #9dc0ff; border: 1px solid rgba(125,167,255,.22); }
.badge-arastiriliyor { background: rgba(255,255,255,.05); color: var(--ink-mute); border: 1px solid var(--line); }

.cat-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-bakim { background: var(--gold); }
.dot-tespit { background: #7ba7ff; }
.dot-arastiriliyor { background: #6f7ba0; }

/* ---------- Lightbox ---------- */
.lightbox-fig { margin: 0; max-width: 920px; width: 100%; text-align: center;
  animation: modalIn .3s cubic-bezier(.34,1.2,.5,1); }
.lightbox-img {
  width: 100%; aspect-ratio: 16/10; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background-size: cover; background-position: center;
}
.lightbox-fig figcaption { margin-top: 16px; color: var(--ink); font-size: 15px; font-weight: 500; }

/* ---------- Backdrop ---------- */
.backdrop {
  position: absolute; inset: 0; z-index: 800; background: rgba(3,9,24,0.5);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- Tanıtım modalı ---------- */
.intro-overlay {
  position: absolute; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(3,9,24,0.86); backdrop-filter: blur(10px);
}
.intro-overlay.open { display: flex; animation: overlayIn .3s ease; }
.intro-card {
  position: relative; width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(30,61,116,0.55), transparent 60%),
    var(--navy-850);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  animation: modalIn .35s cubic-bezier(.34,1.2,.5,1);
}
.intro-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.intro-close svg { width: 16px; height: 16px; }
.intro-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

.intro-hero { text-align: center; padding: 40px 32px 22px; }
.intro-logo {
  width: 84px; height: 84px; object-fit: contain; margin: 0 auto 16px; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.intro-title { margin: 0; font-size: 30px; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.intro-eyebrow {
  margin: 8px 0 0; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

.intro-body { padding: 0 32px; }
.intro-lead { margin: 0 0 22px; font-size: 14px; line-height: 1.7; color: #cfd8f0; text-align: center; }

.intro-features { display: flex; flex-direction: column; gap: 16px; }
.intro-feat { display: flex; gap: 14px; align-items: flex-start; }
.intro-feat-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(245,196,81,0.09); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold);
}
.intro-feat-ic svg { width: 20px; height: 20px; }
.intro-feat div { display: flex; flex-direction: column; gap: 3px; }
.intro-feat b { font-size: 14px; color: #fff; font-weight: 600; }
.intro-feat > div > span { font-size: 12.5px; line-height: 1.5; color: var(--ink-dim); }

.intro-cta {
  display: block; width: calc(100% - 64px); margin: 26px 32px 12px; padding: 14px;
  background: var(--gold); color: var(--navy-950); font-weight: 700; font-size: 14px;
  font-family: "Plus Jakarta Sans"; border: none; border-radius: 13px; cursor: pointer;
  letter-spacing: .2px; transition: background .15s, transform .15s;
}
.intro-cta:hover { background: #ffd469; transform: translateY(-1px); }

/* Yardım butonu (sol alt) */
.help-fab {
  position: absolute; left: 20px; bottom: 22px; z-index: 700;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--gold); color: var(--navy-950);
  border: none; box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 4px rgba(245,196,81,0.18);
  display: none; place-items: center;
  transition: transform .18s ease, background .15s;
}
.help-fab.show { display: grid; animation: fabIn .35s cubic-bezier(.34,1.4,.5,1); }
.help-fab svg { width: 24px; height: 24px; }
.help-fab:hover { transform: translateY(-2px) scale(1.05); background: #ffd469; }
@keyframes fabIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

/* ---------- Çerez / gizlilik bilgilendirme çubuğu ---------- */
.cookie-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1150;
  display: none; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(8,18,42,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 34px rgba(0,0,0,0.45);
}
.cookie-bar.show { display: flex; animation: cookieIn .4s cubic-bezier(.3,.7,.3,1); }
@keyframes cookieIn { from { transform: translateY(100%); } to { transform: none; } }
.cookie-text { margin: 0; max-width: 780px; font-size: 12.5px; line-height: 1.55; color: var(--ink-dim); }
.cookie-text a { color: var(--ink); text-decoration: none; }
.cookie-accept {
  flex: none; padding: 11px 24px; border: none; border-radius: 11px; cursor: pointer;
  background: var(--gold); color: var(--navy-950); font-weight: 700; font-size: 13px;
  font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: .2px; transition: background .15s, transform .15s;
}
.cookie-accept:hover { background: #ffd469; transform: translateY(-1px); }
@media (max-width: 600px) {
  .cookie-bar { padding: 12px 16px; gap: 10px; }
  .cookie-accept { width: 100%; }
}

/* ---------- Gizlilik / KVKK modalı ---------- */
#privacyModal { z-index: 1300; }              /* tanıtım ve çerez çubuğunun üstünde */
.legal-text { color: var(--ink-dim); font-size: 13.5px; line-height: 1.7; }
.legal-text h3 {
  color: var(--gold); font-size: 14px; margin: 20px 0 6px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; letter-spacing: .2px;
}
.legal-text p { margin: 0 0 10px; }
.legal-text ul { margin: 0 0 12px; padding-left: 18px; }
.legal-text li { margin-bottom: 7px; }
.legal-text a { color: var(--gold); }
.legal-text strong { color: var(--ink); font-weight: 600; }
.legal-text em { color: var(--ink-mute); font-style: italic; }
.legal-updated { color: var(--ink-mute); font-size: 12px; margin-top: 16px; }
.intro-legal {
  display: block; text-align: center; margin: 2px 32px 22px;
  font-size: 12px; color: var(--ink-mute); text-decoration: none;
}
.intro-legal:hover { color: var(--gold); }

/* ---------- Scrollbar ---------- */
.panel-scroll::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 7px; }
.panel-scroll::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 8px;
}
.panel-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) { .detail-panel { width: 400px; } }

@media (max-width: 768px) {
  .topbar { padding: 18px 14px 34px; }
  .brand { gap: 12px; }
  .brand-logo img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 18px; }

  .info-card {
    top: 92px; left: 12px; right: 12px; width: auto;
    /* "?" butonu + iletişim barı için altta ~76px boşluk bırak */
    max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px);
  }
  .card-toggle { display: flex; }
  .card-body { border-top: 1px solid var(--line); }
  .info-card.collapsed .card-body { display: none; border-top: none; }

  .detail-panel {
    width: 100%; top: auto; bottom: 0; height: 86vh; border-left: none;
    border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
    transform: translateY(105%); box-shadow: 0 -24px 60px rgba(0,0,0,.5);
  }
  .detail-panel.open { transform: translateY(0); }
  /* Alt sayfa için tutma çubuğu (mobil his) */
  .detail-panel::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.22); z-index: 6;
  }
  .panel-close { top: 14px; right: 14px; }

  .leaflet-bottom.leaflet-right { margin: 0 12px 14px 0; }
  .help-fab { left: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .modal { padding: 26px 18px 28px; }
  .modal-title { font-size: 26px; }
  .p-hero { padding: 40px 22px 22px; }
  .p-name { font-size: 26px; }
  .p-section { padding: 22px; }

  /* Tanıtım modalı — küçük ekran */
  .intro-hero { padding: 34px 24px 18px; }
  .intro-logo { width: 72px; height: 72px; }
  .intro-title { font-size: 25px; }
  .intro-body { padding: 0 24px; }
  .intro-cta { width: calc(100% - 48px); margin: 22px 24px 10px; }
  .intro-legal { margin: 2px 24px 22px; }
  .intro-feat-ic { width: 36px; height: 36px; }

  /* İletişim barındaki ikonları biraz büyüt (dokunma hedefi) */
  .cb-socials a { width: 33px; height: 33px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none; } }
.panel-scroll > * { animation: fadeUp .4s ease both; }
.panel-scroll > *:nth-child(2) { animation-delay: .04s; }
.panel-scroll > *:nth-child(3) { animation-delay: .08s; }
.panel-scroll > *:nth-child(4) { animation-delay: .12s; }
