/* ═══════════════════════════════════════════════════════════════════════════
   WorldPin — Hlavní stylesheet

   Typografie:
     --font-display: 'Space Grotesk'  → logo, nadpisy, čísla ve statistikách
     --font-body:    'Inter'          → veškerý zbytek UI

   Barevný systém:
     --bg-base:    #0f172a   tmavé pozadí (slate-900)
     --bg-card:    #1e293b   karty a panely (slate-800)
     --bg-input:   #334155   vstupy (slate-700)
     --accent:     #6366f1   indigo — primární akcentová barva
     --accent-2:   #818cf8   světlejší indigo pro hover/gradienty
     --orange:     #f97316   teplý akcent (hot piny, gradient loga)
     --green:      #22c55e   ověřeno, úspěch
     --red:        #ef4444   nebezpečné akce, chyby
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-base:    #0f172a;
  --bg-card:    #1e293b;
  --bg-input:   #334155;
  --accent:     #6366f1;
  --accent-2:   #818cf8;
  --text-main:  #f1f5f9;
  --text-muted: #94a3b8;
  --green:      #22c55e;
  --orange:     #f97316;
  --red:        #ef4444;
  --amber:      #fbbf24;
  --border:     rgba(255,255,255,0.08);
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --radius:     12px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-main);
  overflow: hidden;
}

/* Viditelný focus ring pro klávesovou navigaci — nikde jinde ho nepotlačujeme */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Mapa ─────────────────────────────────────────────────────────────────── */
#map {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg-base);
}

#map.crosshair-cursor { cursor: crosshair; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(to bottom, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0) 100%);
  backdrop-filter: blur(2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin-right: 4px;
  color: var(--text-main);
}

.logo-mark { flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(99,102,241,0.5)); }

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(30,41,59,0.9);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  backdrop-filter: blur(8px);
}

.topbar-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.topbar-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

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

.account-btn { margin-left: auto; }

.account-points {
  background: rgba(249,115,22,0.18);
  color: var(--orange);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ── Marker styly ─────────────────────────────────────────────────────────── */
.pin-marker {
  position: relative;
  width: 40px;
  height: 50px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
  transition: transform 0.15s;
}

.pin-marker:hover { transform: scale(1.15); }

.pin-bubble {
  width: 36px;
  height: 36px;
  background: var(--pin-color, #6366f1);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  position: relative;
}

.pin-emoji { font-size: 17px; transform: rotate(45deg); display: block; line-height: 1; }
.pin-hot { position: absolute; top: -8px; right: -8px; font-size: 12px; transform: rotate(45deg); }
.pin-stem { width: 3px; height: 12px; background: var(--pin-color, #6366f1); margin: 0 auto; }

.pin-verified-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  font-weight: 700;
}

.worldpin-cluster { background: transparent !important; }

.cluster-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  color: white;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(99,102,241,0.5);
}

.user-location-dot { position: relative; width: 20px; height: 20px; }
.dot-core { position: absolute; inset: 4px; background: var(--accent); border-radius: 50%; border: 2px solid white; }
.pulse-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-anim 1.5s ease-out infinite;
}
@keyframes pulse-anim { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }

.leaflet-tooltip.map-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.tooltip-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.tooltip-tags span {
  font-size: 11px;
  color: var(--accent-2);
  background: rgba(99,102,241,0.15);
  padding: 1px 6px;
  border-radius: 99px;
}

/* ── Detail panel ─────────────────────────────────────────────────────────── */
#detail-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 200;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-input) transparent;
}

#detail-panel.open { right: 0; }

.detail-header {
  position: sticky; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.btn-close {
  background: var(--bg-input);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-close:hover { background: var(--red); color: white; }

.detail-votes { display: flex; align-items: center; gap: 10px; }

.vote-btn {
  background: var(--bg-input);
  border: none;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.vote-btn:hover { background: var(--accent); color: white; }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vote-btn.active-up { background: var(--green); color: white; }
.vote-btn.active-down { background: var(--red); color: white; }

.vote-score { font-family: var(--font-display); font-weight: 700; font-size: 15px; min-width: 28px; text-align: center; }
.vote-score.pos { color: var(--green); }
.vote-score.neg { color: var(--red); }

.detail-image { width: 100%; height: 220px; background-size: cover; background-position: center; background-color: var(--bg-input); }
.detail-image-placeholder {
  width: 100%; height: 120px;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}

.detail-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.detail-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.3; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }

.verification-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
}

.verification-pending {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(245,158,11,0.1);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px;
}

.btn-verify {
  margin-left: auto;
  background: var(--green);
  border: none; color: white;
  padding: 4px 12px; border-radius: 6px;
  font-size: 12px; cursor: pointer; font-weight: 600;
  font-family: inherit;
}
.verified-by-me { font-size: 12px; color: var(--green); margin-left: auto; }

.detail-description { font-size: 14px; line-height: 1.7; color: var(--text-muted); white-space: pre-wrap; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  background: rgba(99,102,241,0.15);
  color: var(--accent-2);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 10px; border-radius: 99px;
  font-size: 12px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tag:hover { background: var(--accent); color: white; border-color: var(--accent); }

.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
  flex: 1; min-width: 80px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 12px; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.btn-action:hover { background: var(--accent); border-color: var(--accent); }
.btn-action.danger:hover { background: var(--red); border-color: var(--red); }

.detail-comments h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; }
.comment { padding: 10px; background: var(--bg-base); border-radius: 8px; margin-bottom: 8px; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 12px; }
.comment-header strong { color: var(--text-main); }
.comment-time { color: var(--text-muted); }
.comment p { font-size: 13px; color: var(--text-muted); line-height: 1.5; white-space: pre-wrap; }
.no-comments { font-size: 13px; color: var(--text-muted); text-align: center; padding: 16px; }

.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.comment-form textarea {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-main);
  padding: 10px 12px; font-size: 13px; resize: vertical; font-family: inherit;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form button {
  align-self: flex-end;
  background: var(--accent); border: none; color: white;
  padding: 8px 20px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 13px; font-family: inherit;
}

/* Skeleton loading — dokud se detail/statistiky/přehled ještě načítají */
.skeleton-block, .skeleton-line {
  background: linear-gradient(90deg, var(--bg-input) 25%, rgba(255,255,255,0.08) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-line { height: 14px; margin: 10px 16px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.detail-error { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ── Vyhledávání ─────────────────────────────────────────────────────────── */
#search-panel {
  position: fixed;
  top: 58px; left: -360px;
  width: 340px;
  max-height: calc(100vh - 70px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow);
  margin-left: 12px;
}
#search-panel.open { left: 0; }

.search-header { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
#search-input {
  width: 100%;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-main);
  padding: 10px 14px; font-size: 14px; font-family: inherit;
}
#search-input:focus { outline: none; border-color: var(--accent); }

.filter-tags-row { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-tag {
  padding: 4px 10px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 99px; font-size: 11px; cursor: pointer;
  color: var(--text-muted); font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-tag.active { background: var(--accent); border-color: var(--accent); color: white; }

#search-results { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.results-count { padding: 8px 12px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.result-item {
  display: flex; gap: 10px; padding: 10px 12px;
  cursor: pointer; border-bottom: 1px solid var(--border);
  transition: background 0.1s; align-items: center;
}
.result-item:hover { background: var(--bg-input); }
.result-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  background-size: cover; background-position: center;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.result-info { flex: 1; min-width: 0; }
.result-info strong { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-tags { font-size: 11px; color: var(--accent-2); margin-top: 2px; }
.result-score { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: block; }

/* ── Modální okna ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade-in 0.15s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%; max-width: 500px; max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  animation: modal-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-box h2 { font-family: var(--font-display); font-size: 19px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.form-input, .form-textarea, .form-select {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-main);
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  width: 100%; transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tags-input-wrap {
  display: flex; flex-wrap: wrap; gap: 5px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; min-height: 44px; align-items: center;
}
.tag-pill {
  background: rgba(99,102,241,0.2); color: var(--accent-2);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 3px 8px; border-radius: 99px; font-size: 12px;
  display: flex; align-items: center; gap: 4px;
}
.tag-pill button { background: none; border: none; color: currentColor; cursor: pointer; font-size: 12px; padding: 0; line-height: 1; opacity: 0.7; }
.tags-input-bare { background: none; border: none; color: var(--text-main); font-size: 13px; outline: none; flex: 1; min-width: 80px; font-family: inherit; }

.form-image-area {
  border: 2px dashed var(--border); border-radius: 8px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text-muted); font-size: 13px;
}
.form-image-area:hover { border-color: var(--accent); background: rgba(99,102,241,0.05); }
.btn-remove-image {
  margin-top: 4px; background: var(--red); border: none; color: white;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; font-family: inherit;
}

.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-submit {
  flex: 1; padding: 12px;
  background: var(--accent); border: none; border-radius: 10px;
  color: white; font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-cancel {
  padding: 12px 20px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-muted);
  font-size: 14px; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-cancel:hover { background: var(--red); color: white; border-color: var(--red); }

/* Statistiky modal */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--bg-base); border-radius: 10px; padding: 16px; text-align: center; border: 1px solid var(--border); }
.stat-number { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent-2); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.tag-cloud-item { color: var(--accent-2); cursor: pointer; transition: color 0.15s; }
.tag-cloud-item:hover { color: var(--orange); }

.leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  margin-bottom: 4px; transition: background 0.1s;
}
.leaderboard-item:hover { background: var(--bg-input); }
.lb-rank { font-size: 18px; width: 28px; text-align: center; }
.lb-title { flex: 1; font-size: 13px; }
.lb-value { font-size: 12px; color: var(--text-muted); }

h3 { font-family: var(--font-display); }

/* Profil modal */
.profile-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: white;
  margin: 0 auto 12px;
}
.role-badge {
  display: inline-block; margin: 0 auto 16px; text-align: center;
  background: rgba(249,115,22,0.15); color: var(--orange);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.profile-name-edit { display: flex; gap: 8px; margin-bottom: 16px; }
.profile-name-edit input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-main); padding: 8px 12px; font-size: 14px; font-family: inherit;
}
.profile-name-edit button {
  background: var(--accent); border: none; border-radius: 8px; color: white;
  padding: 8px 16px; cursor: pointer; font-weight: 600; font-family: inherit;
}
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ps-item { background: var(--bg-base); border-radius: 8px; padding: 12px; text-align: center; border: 1px solid var(--border); }
.ps-item span { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent-2); }
.ps-item small { font-size: 11px; color: var(--text-muted); }
.profile-badges h3 { font-size: 14px; margin-bottom: 10px; }
.badge {
  display: inline-block; background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3); color: var(--accent-2);
  padding: 5px 12px; border-radius: 99px; font-size: 13px; margin: 4px;
}
.no-badges { font-size: 13px; color: var(--text-muted); }
.profile-tip { margin-top: 16px; background: var(--bg-base); border-radius: 8px; padding: 12px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Přihlášení / registrace ─────────────────────────────────────────────── */
.auth-box { max-width: 400px; }

.auth-hero {
  margin: -24px -24px 20px;
  padding: 32px 24px 20px;
  display: flex; justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(129,140,248,0.28), transparent 55%),
    repeating-radial-gradient(circle at 50% 0%, transparent 0, transparent 13px, rgba(255,255,255,0.045) 14px, rgba(255,255,255,0.045) 15px);
  border-bottom: 1px solid var(--border);
}

.auth-tabs { display: flex; gap: 4px; background: var(--bg-input); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 9px; border: none; background: transparent;
  color: var(--text-muted); font-weight: 600; font-size: 13px; font-family: inherit;
  border-radius: 7px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.auth-tab.active { background: var(--accent); color: white; }
.auth-form { display: flex; flex-direction: column; }
.auth-hint { font-size: 12px; color: var(--text-muted); line-height: 1.6; text-align: center; margin-top: 4px; }

/* ── Moderace ─────────────────────────────────────────────────────────────── */
.admin-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 12px; background: var(--bg-base);
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.admin-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.admin-item-main strong { font-size: 14px; }
.admin-item-meta { font-size: 12px; color: var(--text-muted); }
.admin-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-item-actions .btn-action { flex: none; }

/* ── Toast notifikace ─────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; box-shadow: var(--shadow);
  font-size: 13px; color: var(--text-main);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(90vw, 420px);
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(34,197,94,0.4); }
.toast-error { border-color: rgba(239,68,68,0.4); }
.toast-warning { border-color: rgba(245,158,11,0.4); }

/* ── Indikátor "klikni na mapu" ──────────────────────────────────────────── */
#add-pin-hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  z-index: 400; display: none;
  animation: bounce 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(99,102,241,0.6);
}
#add-pin-hint.visible { display: block; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Poznámka: podklad mapy (CARTO Dark Matter) je už tmavý sám o sobě —
   záměrně sem NEDÁVÁME CSS filter na ztmavení dlaždic. Filtr aplikovaný na
   vrstvu, kterou Leaflet neustále posouvá/transformuje, způsoboval viditelné
   problikávání při pohybu mapy. */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 99px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #detail-panel { width: 100%; right: -100%; }
  #search-panel { width: calc(100vw - 24px); }
  .modal-box { padding: 16px; }
  .auth-hero { margin: -16px -16px 16px; }
  .topbar-btn span { display: none; }
  .account-points { display: none !important; }
}
