:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --border: #2d3a4f;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --mine: #a78bfa;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1419 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-row-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.25rem;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex: none;
  min-width: 0;
  text-align: left;
}

.header-logo {
  display: block;
  height: 7rem;
  width: auto;
  max-width: 14rem;
  min-width: 10rem;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.header-titles {
  min-width: 0;
  text-align: left;
}

.header-cta-marquee {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(30, 58, 95, 0.45);
  padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
}

.header-cta-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cta-link:hover {
  border-color: rgba(147, 197, 253, 0.75);
  background: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.header-cta-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-cta-track {
  display: flex;
  width: max-content;
  animation: header-cta-scroll 22s linear infinite;
}

.header-cta-text {
  flex-shrink: 0;
  padding: 0 2.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e0f2fe;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-cta-text:nth-child(2n) {
  color: #bfdbfe;
}

@keyframes header-cta-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 100%;
  }

  .header-cta-marquee {
    padding: 0.65rem 0.85rem;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .header-cta-track .header-cta-text:nth-child(n + 3) {
    display: none;
  }

  .header-cta-text {
    white-space: normal;
    text-align: left;
    padding: 0 0.5rem 0 0;
  }

  .header-cta-link {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 900px) {
  .header-row-user {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .header-cta-marquee {
    width: 100%;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 5%,
      #000 95%,
      transparent
    );
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-logo {
    height: 5.5rem;
    max-width: 12rem;
    min-width: 0;
  }
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.role-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.role-badge-user {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.role-badge-admin {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.admin-entry-link {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.admin-login-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.admin-login-box {
  width: min(360px, 100%);
}

.admin-login-box h2 {
  margin: 0 0 0.5rem;
}

.admin-login-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.my-tercih-summary p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.my-tercih-pending {
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(59, 130, 246, 0.08);
}

.my-tercih-il strong {
  color: #1d4ed8;
}

.priority-il-fieldset {
  margin: 0.75rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
}

.priority-il-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.35rem;
}

.priority-il-hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
}

.priority-il-grid {
  display: grid;
  gap: 0.5rem;
}

.priority-il-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.priority-il-select {
  width: 100%;
}

.my-tercih-priority {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.priority-il-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.priority-il-tag {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid #93c5fd;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: 0.02em;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tercih-edenler-table .priority-il-tag {
  background: rgba(59, 130, 246, 0.32);
  border-color: #bfdbfe;
  color: #ffffff;
}

.tercih-edenler-table .priority-il-cell {
  min-width: 8rem;
}

.my-tercih-priority .priority-il-tag {
  border-color: #93c5fd;
  color: #f0f9ff;
}

.my-tercih-puan strong {
  color: var(--warning);
}

.my-tercih-edit-btn {
  margin-top: 0.5rem;
  width: 100%;
}

.user-doluluk {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.user-doluluk-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.doluluk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.doluluk-chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.doluluk-chip.doluluk-bos {
  background: rgba(147, 197, 253, 0.2);
  color: #93c5fd;
}

.doluluk-chip.doluluk-dusuk {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.doluluk-chip.doluluk-yuksek {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.user-doluluk-total {
  margin: 0;
}

.legend-doluluk {
  display: flex;
  gap: 0.5rem;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.legend-doluluk .leg-bos::before,
.legend-doluluk .leg-kismi::before,
.legend-doluluk .leg-dolu::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.legend-doluluk .leg-bos::before {
  background: #dbeafe;
}

.legend-doluluk .leg-kismi::before {
  background: #fb923c;
}

.legend-doluluk .leg-dolu::before {
  background: #ef4444;
}

#institution[readonly] {
  cursor: pointer;
  background: var(--surface2);
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-user h1 {
  color: #f8fafc;
}

.header-user .subtitle {
  color: #94a3b8;
}

.header-user,
.header-admin {
  padding: 1rem 1.25rem 1.1rem;
}

.header-user .header-inner,
.header-admin .header-inner {
  margin: 0;
  max-width: none;
  width: 100%;
}

.header-row-admin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.25rem;
  width: 100%;
}

.header-admin h1 {
  color: #f8fafc;
}

.header-admin .subtitle {
  color: #94a3b8;
}

.header-titles .role-badge {
  display: inline-block;
  margin: 0 0 0.35rem;
}

@media (max-width: 1100px) {
  .header-row-admin {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-row-admin .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .header-row-admin {
    grid-template-columns: 1fr;
  }

  .header-row-admin .header-actions {
    grid-column: auto;
  }
}

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(100vh - 100px);
  border-right: 1px solid var(--border);
}

@media (max-width: 900px) {
  .sidebar {
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.guide-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--text);
}

.guide-steps li {
  margin-bottom: 0.45rem;
}

.guide-steps li strong {
  color: var(--accent);
  font-weight: 600;
}

.guide-card .hint,
.guide-card .guide-ilan-status {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.collapsible-card {
  padding-top: 0.75rem;
}

.collapsible-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
  margin: 0;
  padding: 0.1rem 0;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::marker {
  content: "";
}

.collapsible-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.collapsible-chevron {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease;
}

.collapsible-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 6px;
  margin-left: -4px;
  margin-top: -5px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.collapsible-details[open] .collapsible-chevron {
  transform: rotate(180deg);
}

.collapsible-summary:hover .collapsible-chevron {
  border-color: #64748b;
  background: rgba(59, 130, 246, 0.12);
}

.collapsible-body {
  padding-top: 0.65rem;
}

.collapsible-summary .badge {
  margin-left: 0.35rem;
  vertical-align: middle;
  font-size: 0.7rem;
}

.sidebar-pinned-hint {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}

.sidebar .collapsible-card > .sidebar-pinned-hint + .ilan-list {
  margin-top: 0;
}

.stats-in-filters {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.stats-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

label input,
label select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.9rem;
}

label input:focus,
label select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.optional {
  font-weight: 400;
  opacity: 0.7;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
  color: var(--text);
  cursor: pointer;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  margin-top: 0.25rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.btn-danger {
  width: 100%;
  margin-top: 0.5rem;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-row .btn-secondary,
.btn-row .file-label {
  flex: 1;
  text-align: center;
}

.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.hint code {
  font-size: 0.72rem;
  background: var(--surface2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.ilan-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 160px;
  overflow-y: auto;
}

.ilan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.ilan-item:hover {
  border-color: #94a3b8;
}

.kadro-ilan-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.ilan-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.ilan-item-text {
  min-width: 0;
  flex: 1;
}

.ilan-item strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilan-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.ilan-type-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.ilan-type-cte,
.ilan-type-adalet {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.ilan-type-adliye {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.ilan-type-gsb {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.ilan-type-gsb_yyp {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.yyp-kadro-steps label,
.admin-map-filters .yyp-kadro-steps label {
  margin-bottom: 0.55rem;
}

.yyp-kadro-steps select,
.admin-map-filters .yyp-kadro-steps select {
  display: block;
  width: 100%;
}

.yyp-kadro-summary {
  margin: 0.25rem 0 0;
  padding: 0.4rem 0.5rem;
  background: var(--surface2);
  border-radius: 6px;
  font-size: 0.78rem;
}

.yyp-merge-card .file-label {
  margin-top: 0.35rem;
}

.yyp-merge-status {
  margin: 0.5rem 0 0.65rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.yyp-merge-ilan-name {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
}

.yyp-merge-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yyp-merge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-size: 0.8rem;
}

.yyp-merge-item.is-done {
  color: var(--text);
}

.yyp-merge-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.yyp-merge-item.is-done .yyp-merge-icon {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.yyp-merge-file {
  color: var(--muted);
  font-size: 0.72rem;
}

.yyp-merge-ok {
  margin: 0.5rem 0 0;
  color: #86efac;
}

.yyp-merge-warn {
  margin: 0.5rem 0 0;
  color: #fcd34d;
}

.yyp-merge-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yyp-step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
}

.yyp-step-num {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.taban-puan-panel {
  padding: 0.75rem 1rem 1rem;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.taban-puan-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.taban-puan-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  align-items: flex-end;
}

.taban-puan-search-wrap {
  margin: 0.65rem 0;
}

.taban-puan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.taban-puan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.taban-puan-table th,
.taban-puan-table td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.taban-puan-table th {
  background: var(--surface2);
  font-weight: 600;
  color: var(--muted);
  position: sticky;
  top: 0;
}

.taban-puan-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.taban-puan-val,
.taban-cell strong {
  color: #86efac;
  font-variant-numeric: tabular-nums;
}

.duyuru-upload-status {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.duyuru-upload-status.is-ok {
  color: #86efac;
}

.duyuru-pdf-panel {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
  height: 100%;
  padding: 0.75rem 1rem 1rem;
}

.duyuru-pdf-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.duyuru-pdf-meta {
  margin: 0 0 0.75rem;
}

.duyuru-pdf-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.duyuru-pdf-frame {
  flex: 1;
  width: 100%;
  min-height: min(68vh, 600px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1a1f2e;
}

.map-workspace-tab.hidden {
  display: none;
}

.ilan-import-mode-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem 0.75rem;
  margin: 0 0 0.75rem;
  min-width: 0;
}

.ilan-import-mode-fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.ilan-import-mode-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
}

.ilan-import-mode-option input[type="radio"] {
  display: inline-block;
  width: auto;
  min-width: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.ilan-import-mode-option input[type="radio"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ilan-import-mode-option span {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  word-break: break-word;
}

.ilan-del {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.ilan-del:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.form-ilan-hint {
  color: var(--accent);
  margin-top: 0;
}

.tooltip-kurum-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.65rem 0 0.25rem;
}

.tooltip-kurumlar {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  max-height: 140px;
  overflow-y: auto;
}

.tooltip-kurumlar .kurum-ad {
  color: var(--text);
}

.il-kurum-panel {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-height: min(38vh, 360px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.il-kurum-panel.hidden {
  display: none;
}

.il-kurum-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.il-kurum-panel-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.il-kurum-close {
  width: auto;
  margin: 0;
  padding: 0.15rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  border: none;
  color: var(--muted);
}

.il-kurum-close:hover {
  color: var(--text);
  background: var(--surface2);
}

.il-kurum-summary {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.il-kurum-summary strong {
  color: var(--accent);
}

.il-kurum-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.il-kurum-empty {
  margin: 0;
  padding: 0.5rem 0;
}

.il-kurum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.il-kurum-table th,
.il-kurum-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.il-kurum-table th {
  position: sticky;
  top: 0;
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 1;
}

.il-kurum-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.il-kurum-table .num {
  text-align: right;
  white-space: nowrap;
  width: 5rem;
}

.il-kurum-table .kurum-cell {
  color: var(--text);
  line-height: 1.35;
}

.il-kurum-table .merkez-cell {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 10rem;
}

.il-kurum-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.il-kurum-table .col-sec {
  width: 3.5rem;
}

.il-kurum-table .col-act {
  width: 8.5rem;
  text-align: right;
}

.btn-kurum-sec {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-kurum-sec:hover {
  background: var(--accent-hover);
}

.btn-tercih-edenler {
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}

.btn-tercih-edenler:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.kurum-row-mine {
  background: rgba(167, 139, 250, 0.12) !important;
}

.tercih-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.doluluk-bos .tercih-badge {
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
}

.doluluk-dusuk .tercih-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.doluluk-orta .tercih-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.doluluk-yuksek .tercih-badge,
.doluluk-var .tercih-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.tag-mine {
  font-size: 0.7rem;
  color: var(--mine);
  font-weight: 700;
}

.single-tercih-hint {
  font-size: 0.78rem;
  color: var(--accent);
  margin: -0.25rem 0 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
}

.single-tercih-hint.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(85vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.modal-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.modal-close {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 8px;
  z-index: 10;
  pointer-events: auto;
  touch-action: manipulation;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.modal-meta {
  margin: 0 1rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0 1rem 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface2);
  border-radius: 8px;
}

.modal-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 0.5rem;
}

.modal-stat span {
  color: var(--muted);
}

.modal-stat strong {
  color: var(--text);
}

.modal-stat.mine strong {
  color: var(--mine);
}

.modal-list {
  flex: 1;
  overflow: auto;
  padding: 0 1rem;
  min-height: 0;
}

.modal-footer-actions {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0;
  display: flex;
  justify-content: flex-end;
}

.modal-kapat-btn {
  min-height: 2.25rem;
  padding: 0.4rem 1rem;
  touch-action: manipulation;
}

.modal-footer-note {
  margin: 0.5rem 1rem 1rem;
  font-size: 0.68rem;
}

body.modal-open {
  overflow: hidden;
}

.tercih-edenler-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.tercih-edenler-table th,
.tercih-edenler-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tercih-edenler-table .num {
  text-align: right;
}

.tercih-edenler-table tr.row-mine {
  background: rgba(167, 139, 250, 0.1);
}

@media (max-width: 900px) {
  .map-wrap {
    height: auto;
    max-height: none;
  }

  .kurum-overview-body {
    max-height: 180px;
  }

  .kurum-overview-tab .kurum-overview-body {
    max-height: none;
  }

  .kurum-overview-table .kurum-cell {
    max-width: 140px;
  }

  .map-stage {
    min-height: 50vh;
  }

  .il-kurum-panel {
    max-height: 40vh;
  }

  .map-legend {
    right: 0.45rem;
    bottom: 0.45rem;
    max-width: 130px;
    padding: 0.3rem 0.45rem;
  }

  .map-legend-user .legend-note {
    display: none;
  }
}

.excel-upload {
  width: 100%;
  margin-top: 0.5rem;
}

.stat-grid {
  display: grid;
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item strong {
  color: var(--warning);
}

.stat-item.mine strong {
  color: var(--mine);
}

.badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  margin-left: 0.35rem;
}

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.record-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.record-list li.mine {
  border-left: 3px solid var(--mine);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.record-meta {
  flex: 1;
  min-width: 0;
}

.record-meta .city {
  font-weight: 600;
  color: var(--text);
}

.record-meta .detail {
  color: var(--muted);
  font-size: 0.75rem;
}

.record-score {
  font-weight: 700;
  color: var(--warning);
  white-space: nowrap;
}

.record-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.record-edit,
.record-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  font-size: 0.85rem;
  line-height: 1;
}

.record-edit:hover {
  color: var(--accent);
}

.record-delete:hover {
  color: var(--danger);
}

.record-list li.editing {
  background: rgba(59, 130, 246, 0.12);
  border-radius: 4px;
}

.edit-hint {
  font-size: 0.78rem;
  color: var(--accent);
  margin: -0.35rem 0 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 6px;
}

.edit-hint.hidden,
.hidden {
  display: none !important;
}

.publish-download-panel {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
}

.publish-download-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
  text-decoration: none;
}

.publish-download-meta {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

#cancel-edit-btn {
  margin-top: 0.5rem;
}

.paste-label textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.75rem;
  font-family: inherit;
  resize: vertical;
}

.kontenjan-preview {
  font-size: 0.8rem;
  color: var(--success);
  margin: -0.25rem 0 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
}

.kontenjan-preview.hidden {
  display: none;
}

.excel-upload {
  display: flex !important;
  width: 100%;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.excel-upload:hover {
  filter: brightness(1.08);
}

.map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 100px);
  max-height: calc(100vh - 100px);
}

.map-workspace-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.map-workspace-tab {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.map-workspace-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.map-workspace-tab.is-active {
  color: var(--text);
  background: var(--bg, #0f172a);
  border-color: var(--border);
  box-shadow: 0 -1px 0 var(--bg, #0f172a);
}

.map-tab-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.map-tab-panel.is-active {
  display: flex;
}

.map-tab-panel.hidden {
  display: none !important;
}

.map-tab-panel-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.kurum-overview {
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.75rem 0.5rem;
  min-height: 0;
}

.kurum-overview-tab {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: none;
  padding: 0.65rem 0.75rem 0.75rem;
  overflow: hidden;
}

.kurum-overview-tab .kurum-overview-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.kurum-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.kurum-overview-head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.kurum-overview-meta {
  margin: 0;
  font-size: 0.72rem;
}

.kurum-overview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.45rem;
}

.kurum-overview-toolbar.hidden {
  display: none;
}

.kurum-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  font-size: 0.72rem;
}

.kurum-toolbar-search {
  flex: 1 1 160px;
  min-width: 140px;
}

.kurum-toolbar-field input[type="search"],
.kurum-toolbar-field select {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg, #0f172a);
  color: var(--text);
}

.kurum-toolbar-label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.col-fav {
  width: 2rem;
  text-align: center;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

.btn-favori {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  color: var(--muted);
  transition: color 0.15s, transform 0.1s;
}

.btn-favori:hover {
  color: #f472b6;
  transform: scale(1.1);
}

.btn-favori.is-favori {
  color: #f43f5e;
}

.doluluk-pill {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}

.doluluk-pill.doluluk-bos {
  background: rgba(147, 197, 253, 0.2);
  color: #93c5fd;
}

.doluluk-pill.doluluk-dusuk {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.doluluk-pill.doluluk-orta {
  background: rgba(234, 179, 8, 0.15);
  color: #fcd34d;
}

.doluluk-pill.doluluk-yuksek,
.doluluk-pill.doluluk-var {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.favori-kurumlar-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.favori-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.favori-tab-count.hidden {
  display: none;
}

.favori-kurumlar-meta {
  margin: 0 0 0.4rem;
}

.favori-kurumlar-scroll {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.favori-kurumlar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.favori-kurumlar-table th,
.favori-kurumlar-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.favori-kurumlar-table .num {
  text-align: right;
}

.favori-kurumlar-table .kurum-cell {
  max-width: 160px;
  line-height: 1.25;
}

.kurum-overview-body {
  max-height: min(42vh, 320px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.kurum-overview-empty {
  margin: 0.5rem 0.65rem;
  font-size: 0.78rem;
}

.kurum-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.kurum-overview-table th,
.kurum-overview-table td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.kurum-overview-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2, #1e293b);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.kurum-overview-table .num {
  text-align: right;
  white-space: nowrap;
}

.kurum-overview-table .col-sec {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface, #0f172a);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.25);
}

.kurum-overview-table thead .col-sec {
  z-index: 3;
  background: var(--surface-2, #1e293b);
}

.kurum-overview-table .kurum-overview-sec .btn-kurum-sec {
  min-width: 2.75rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}

.kurum-sec-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
  color: var(--accent);
}

.kurum-overview-table .il-cell {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.kurum-overview-table .kurum-cell {
  max-width: 220px;
  line-height: 1.25;
}

.kurum-overview-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.kurum-overview-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.btn-kurum-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  line-height: 1.2;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-kurum-action:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.btn-kurum-konum {
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.btn-kurum-konum:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.il-kurum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.btn-kurum-sahibinden {
  border-color: rgba(234, 179, 8, 0.45);
  color: #fcd34d;
}

.btn-kurum-sahibinden:hover {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  color: #fde68a;
}

.map-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  min-width: 0;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tr-svg-map {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

.il-path {
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.15s ease;
}

.il-path.il-hover {
  stroke: #3b82f6;
  stroke-width: 1.2;
  filter: brightness(1.05);
}

.il-path.il-active {
  stroke: #1d4ed8;
  stroke-width: 1.8;
}

.il-path.il-mine {
  stroke: #7c3aed;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.5));
}

.tr-labels .il-label,
.tr-labels .il-label-kont {
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.02em;
}

.tr-labels .il-label-kont {
  font-size: 12px;
  font-weight: 800;
  fill: #1e3a8a;
}

.tr-labels .il-label-kont.has-taban {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.il-path.il-rekabet-yuksek {
  filter: drop-shadow(0 0 2px rgba(194, 65, 12, 0.45));
}

.map-legend {
  position: absolute;
  top: auto;
  left: auto;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  max-width: 148px;
  backdrop-filter: blur(6px);
  color: #1e293b;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.map-legend h3,
.map-legend .legend-note {
  color: #334155;
}

.map-legend .legend-labels {
  color: #64748b;
  font-size: 0.58rem;
  margin-top: 0.15rem;
}

.map-legend h3 {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.map-legend-user {
  max-width: 155px;
}

.map-legend-user .legend-note,
.map-legend .legend-note {
  margin: 0.25rem 0 0;
  font-size: 0.55rem;
  line-height: 1.25;
}

.legend-bar {
  height: 6px;
  border-radius: 3px;
}

.legend-bar-kontenjan {
  background: linear-gradient(
    90deg,
    #e8eef4 0%,
    #bfdbfe 25%,
    #60a5fa 55%,
    #4f8ff7 75%,
    #2563eb 100%
  );
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.legend-note {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.city-tooltip {
  position: absolute;
  top: auto;
  left: 0.65rem;
  bottom: 0.65rem;
  right: auto;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.city-tooltip.hidden {
  display: none;
}

.city-tooltip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.city-tooltip-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 6px;
}

.city-tooltip-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.city-tooltip h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.city-tooltip .threat {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.threat-low { background: rgba(147, 197, 253, 0.35); color: #1d4ed8; }
.threat-mid { background: rgba(234, 88, 12, 0.25); color: #c2410c; }
.threat-high { background: rgba(220, 38, 38, 0.25); color: #dc2626; }

.city-tooltip ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
}

.footer-seo {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: left;
  padding: 0 0.5rem;
}

.footer-seo-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.footer-seo-subtitle {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.footer-seo-links {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-seo-links li {
  margin-bottom: 0.35rem;
}

.footer-seo p {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
}

.footer-seo a {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.72rem;
  opacity: 0.9;
}

