/* Çatışmalar — MapLibre düz harita */

.page-catismalar .ct-hero p {
  max-width: 42rem;
  color: var(--text-2);
}

.ct-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.ct-stats strong {
  color: var(--text);
  font-weight: 700;
}

.ct-wrap { padding-bottom: 4rem; }

.ct-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.ct-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ct-chip:hover { border-color: #94a3b8; color: var(--text); }
.ct-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.ct-map-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  /* visible: MapLibre popup taşabilsin; canvas .ct-map'te kırpılır */
  overflow: visible;
  background: #0b1220;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.ct-map-shell:fullscreen,
.ct-map-shell:-webkit-full-screen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ct-map-shell:fullscreen .ct-map,
.ct-map-shell:-webkit-full-screen .ct-map {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}
.ct-map {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
}
.ct-map .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255,255,255,.75);
}

/* MapLibre popup */
.ct-map-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.ct-map-popup .maplibregl-popup-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}
.ct-map-popup .maplibregl-popup-close-button:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ct-popup {
  position: relative;
  padding: 0.85rem 2.4rem 0.9rem 0.95rem;
  max-width: 320px;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ct-pop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.ct-pop-close:hover { background: #e2e8f0; color: #0f172a; }
.ct-pop-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 0.35rem;
}
.ct-pop-badge.war { background: #dc2626; }
.ct-pop-badge.conflict { background: #ea580c; }
.ct-pop-badge.tension { background: #d97706; }
.ct-pop-title {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.ct-pop-ozet, .ct-pop-neden {
  margin: 0 0 0.55rem;
  color: #475569;
}
.ct-pop-neden em { font-style: normal; color: #64748b; font-size: 0.75rem; }
.ct-pop-row { margin-bottom: 0.55rem; }
.ct-pop-k {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.ct-pop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
a.ct-pop-chip {
  display: inline-flex;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.75rem;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}
a.ct-pop-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ct-pop-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.5rem 0 0.55rem;
}
.ct-pop-stats div {
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ct-pop-stats strong {
  display: block;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.ct-pop-stats span {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
}
.ct-pop-src {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.ct-tag-org {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.ct-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 0.78rem;
  pointer-events: none;
}
.ct-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.ct-dot.war { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.ct-dot.conflict { background: #ea580c; }
.ct-dot.tension { background: #d97706; }

.ct-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  max-width: 240px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transform: translate(-50%, calc(-100% - 12px));
}
.ct-tooltip strong { display: block; margin-bottom: 0.15rem; }
.ct-tooltip span { opacity: 0.85; }

.ct-news-head {
  margin: 2rem 0 0.75rem;
}
.ct-news-head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.ct-news-note {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.ct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 2;
}
.ct-tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}
.ct-tag:hover { border-color: #94a3b8; }
.ct-tag-topic {
  background: #f8fafc;
  color: var(--text-2);
}

.ct-empty {
  grid-column: 1 / -1;
  color: var(--text-2);
  padding: 1rem 0 2rem;
}

/* Modal */
.ct-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}
.ct-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.ct-modal-inner { margin: 0; }
.ct-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ct-modal-head h2 {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.ct-modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.ct-modal-close:hover { background: #e2e8f0; }
.ct-modal-body {
  padding: 1rem 1.25rem 1.35rem;
}
.ct-modal-body > p {
  margin: 0 0 1rem;
  color: var(--text-2);
  line-height: 1.55;
}
.ct-modal-block { margin-bottom: 1rem; }
.ct-modal-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.ct-modal-block p {
  margin: 0;
  line-height: 1.5;
}
.ct-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ct-parties span {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.82rem;
}
.ct-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}
.ct-badge.war { background: #dc2626; }
.ct-badge.conflict { background: #ea580c; }
.ct-badge.tension { background: #d97706; }

.ct-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}
.ct-modal-stats div {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.ct-modal-stats strong {
  display: block;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.ct-modal-stats span {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ct-modal-src {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .ct-map { min-height: 300px; height: 52vh; }
  .ct-modal-stats { grid-template-columns: 1fr; }
}
