:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #697488;
  --line: #d8dee8;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --accent: #0a7f83;
  --accent-strong: #075f62;
  --signal: #dd5a3f;
  --shadow: 0 18px 50px rgba(21, 33, 48, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #aad3df;
  color: var(--ink);
}

button,
a {
  font: inherit;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #aad3df;
}

.leaflet-container {
  background: #aad3df;
}

.map[data-map-style="colorful"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(135deg, #a9e5ff 0%, #c8f0f4 42%, #9ed9ff 100%);
}

.map[data-map-style="colorful"].leaflet-container {
  background: transparent;
}

.colorful-base-tiles {
  filter: saturate(1.28) contrast(0.92) brightness(1.05);
  mix-blend-mode: multiply;
}

.map[data-map-style="infographic"] {
  background:
    linear-gradient(rgba(30, 82, 112, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 82, 112, 0.09) 1px, transparent 1px),
    radial-gradient(circle, rgba(20, 52, 76, 0.18) 1px, transparent 1.5px),
    linear-gradient(135deg, #f6fbff 0%, #d8eef5 52%, #f7f3df 100%);
  background-size:
    92px 92px,
    92px 92px,
    22px 22px,
    auto;
}

.map[data-map-style="infographic"].leaflet-container {
  background: transparent;
}

.infographic-base-tiles {
  filter: saturate(0.45) contrast(0.88) brightness(1.2);
  mix-blend-mode: multiply;
}

.map[data-map-style="infographic"] .atlas-country-info {
  cursor: pointer;
}

.map[data-map-style="infographic"] .atlas-country-info:hover {
  filter: brightness(1.12);
}

.country-info-tooltip {
  padding: 5px 8px;
  border: 1px solid rgba(16, 34, 52, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #102234;
  box-shadow: 0 8px 22px rgba(16, 34, 52, 0.16);
  font-size: 0.76rem;
  font-weight: 850;
}

.country-info-popup-frame .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.country-info-popup {
  min-width: 180px;
  color: var(--ink);
}

.country-info-popup h2 {
  margin: 0 0 7px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.country-info-popup p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.map[data-map-style="infographic"] .news-cluster {
  border: 3px solid #102234;
  background: #ffcf33;
  color: #102234;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.72),
    0 10px 0 rgba(16, 34, 52, 0.14),
    0 12px 24px rgba(16, 34, 52, 0.24);
}

.map[data-map-style="infographic"] .news-marker {
  border-color: #102234;
  background: #ffcf33;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.74),
    0 7px 16px rgba(16, 34, 52, 0.28);
}

.map[data-map-style="infographic"] .news-marker::after {
  background: #102234;
}

.map[data-map-style="infographic"] .visitor-marker,
.map[data-map-style="infographic"] .visitor-cluster {
  border-color: #102234;
  background: #00a6a6;
  color: #ffffff;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container {
  overflow: hidden;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 800;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.leaflet-control-zoom {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 33, 48, 0.16);
}

.leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.leaflet-control-zoom a + a {
  border-top: 1px solid var(--line);
}

.leaflet-control-attribution {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 33, 48, 0.2);
}

.leaflet-popup-content {
  margin: 14px 18px 14px;
  line-height: 1.35;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  transform: rotate(45deg);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 33, 48, 0.16);
}

.leaflet-popup-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
}

.leaflet-popup-close-button:hover {
  color: var(--ink);
}

.news-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #dd5a3f;
  box-shadow: 0 2px 10px rgba(21, 33, 48, 0.28);
}

.news-marker::before {
  position: absolute;
  inset: -10px;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  content: "";
  animation: news-marker-pulse 2s ease-out infinite;
}

.news-marker::after {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

@keyframes news-marker-pulse {
  0% {
    opacity: 0.92;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-marker::before {
    animation: none;
    opacity: 0;
  }
}

.news-marker-africa {
  background: #dd5a3f;
}

.news-marker-antarctica {
  background: #4c88c7;
}

.news-marker-asia {
  background: #d59b22;
}

.news-marker-europe {
  background: #6d62c7;
}

.news-marker-north-america {
  background: #2f8f5b;
}

.news-marker-oceania {
  background: #0a7f83;
}

.news-marker-south-america {
  background: #b3487b;
}

.news-cluster {
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #e05b3d;
  color: #ffffff;
  box-shadow:
    0 0 0 6px rgba(224, 91, 61, 0.22),
    0 8px 22px rgba(21, 33, 48, 0.25);
  font-size: 0.82rem;
  font-weight: 900;
}

.visitor-marker {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #0a7f83;
  box-shadow: 0 2px 12px rgba(21, 33, 48, 0.28);
}

.visitor-marker::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  content: "";
}

.visitor-cluster {
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #0a7f83;
  color: #ffffff;
  box-shadow:
    0 0 0 6px rgba(10, 127, 131, 0.22),
    0 8px 22px rgba(21, 33, 48, 0.25);
  font-size: 0.82rem;
  font-weight: 900;
}

.category-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(21, 33, 48, 0.28);
}

.category-marker::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  content: "";
}

.category-marker-local-food,
.category-cluster-local-food,
.layer-swatch-food {
  background: #c9572f;
}

.category-marker-travel-spot,
.category-cluster-travel-spot,
.layer-swatch-travel {
  background: #2f8f5b;
}

.category-marker-world-wonders,
.category-cluster-world-wonders,
.layer-swatch-wonder {
  background: #6d62c7;
}

.category-cluster {
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: #ffffff;
  box-shadow:
    0 0 0 6px rgba(21, 33, 48, 0.1),
    0 8px 22px rgba(21, 33, 48, 0.25);
  font-size: 0.8rem;
  font-weight: 900;
}

.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.topbar {
  position: absolute;
  z-index: 500;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.topbar h1,
.panel-title {
  margin: 2px 0 0;
  max-width: 720px;
  font-size: 2.65rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.topbar h1 {
  text-transform: lowercase;
}

.control-panel.hidden-panel,
.location-panel.hidden-panel {
  display: none !important;
}

.panel-title {
  font-size: 1rem;
  font-weight: 850;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button,
.text-button,
.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.category-panel {
  position: absolute;
  z-index: 500;
  right: 22px;
  top: 86px;
  width: 190px;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.style-panel {
  position: absolute;
  z-index: 500;
  right: 22px;
  top: 238px;
  width: 190px;
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drag-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.panel-icon-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 33, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
}

.panel-icon-button.light {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.floating-panel-button {
  position: absolute;
  z-index: 520;
  right: 22px;
  top: 238px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.floating-panel-button.translation-toggle {
  left: 22px;
  right: auto;
  top: auto;
  bottom: 22px;
}

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

.style-select-label {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.style-select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.compact-button {
  min-height: 34px;
}

.style-status {
  min-height: 17px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.layer-toggle {
  display: grid;
  grid-template-columns: 18px 14px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.layer-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.layer-swatch {
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 33, 48, 0.14);
}

.icon-button span {
  font-size: 1.55rem;
  line-height: 1;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 750;
}

.filter {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--muted);
}

.filter.active,
.filter:hover,
.text-button:hover,
.icon-button:hover {
  border-color: rgba(10, 127, 131, 0.48);
  background: #e8f7f5;
  color: var(--accent-strong);
}

.icon-button:active,
.text-button:active,
.filter:active {
  transform: translateY(1px);
}

.location-panel {
  position: absolute;
  z-index: 500;
  left: 22px;
  bottom: 22px;
  width: min(520px, calc(100% - 44px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.dashboard-panel {
  position: absolute;
  z-index: 620;
  right: 22px;
  top: 86px;
  width: min(560px, calc(100% - 44px));
  max-height: calc(100vh - 120px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(16, 34, 52, 0.24);
  backdrop-filter: blur(16px);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-kicker {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-stats article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.dashboard-stats strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stats span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-map {
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d8eef5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.dashboard-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.visitor-chart,
.visitor-recent-list {
  display: grid;
  gap: 9px;
}

.visitor-chart-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(90px, 1.4fr) 28px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.visitor-chart-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.visitor-chart-bar span {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: #00a6a6;
}

.visitor-recent-item {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf1f6;
}

.visitor-recent-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.visitor-recent-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-recent-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.control-panel {
  position: absolute;
  z-index: 500;
  right: 22px;
  bottom: 22px;
  width: min(520px, calc(100% - 44px));
  display: grid;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.news-loading-panel {
  position: absolute;
  z-index: 560;
  left: 50%;
  top: 94px;
  width: min(360px, calc(100% - 44px));
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.news-loading-spinner {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 3px solid rgba(16, 34, 52, 0.14);
  border-top-color: #ffcf33;
  border-radius: 50%;
  animation: loading-spin 0.9s linear infinite;
}

.news-loading-title {
  margin: 0 0 2px;
  font-weight: 900;
}

.news-loading-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.translation-panel {
  position: absolute;
  z-index: 500;
  left: 50%;
  bottom: 20px;
  width: min(760px, calc(100% - 44px));
  transform: translateX(-50%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(68, 68, 68, 0.3);
  box-shadow: 0 16px 46px rgba(16, 30, 44, 0.22);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.translation-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.translation-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.translation-language-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 850;
}

.translation-language-select {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.translation-language-select option {
  color: var(--ink);
}

.translation-panel h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.translation-panel p:last-child {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d2a137;
  box-shadow: 0 0 0 5px rgba(210, 161, 55, 0.16);
}

.status-dot.ready {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(10, 127, 131, 0.16);
}

.status-dot.error {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(221, 90, 63, 0.16);
}

.location-label,
.location-meta {
  margin: 0;
}

.location-label {
  font-weight: 800;
}

.location-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.news-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.leaflet-control-attribution {
  font-size: 0.7rem;
}

.news-popup {
  min-width: 220px;
  max-width: 320px;
}

.visitor-popup {
  min-width: 180px;
}

.visitor-popup strong {
  display: block;
  padding-right: 18px;
}

.visitor-popup p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.category-popup {
  min-width: 220px;
  max-width: 280px;
}

.category-popup img {
  width: 100%;
  height: 132px;
  display: block;
  object-fit: cover;
  border-radius: 7px;
  background: #d8dee8;
}

.category-popup-label {
  margin: 10px 0 4px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-popup h2 {
  margin: 0;
  padding-right: 18px;
  font-size: 1.03rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.category-popup p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.news-popup h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.news-popup p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.news-popup a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 10px;
  border-radius: 8px;
  background: #e8f7f5;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  pointer-events: auto;
}

.news-popup a:hover {
  background: #d7efeb;
}

@media (max-width: 560px) {
  .topbar {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .topbar {
    display: grid;
  }

  .topbar h1 {
    font-size: 1.35rem;
    max-width: 280px;
  }

  .location-panel {
    left: 14px;
    bottom: 148px;
    width: calc(100% - 28px);
  }

  .control-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .dashboard-panel {
    top: 116px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 150px);
  }

  .dashboard-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-map {
    height: 210px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .category-panel {
    top: 106px;
    left: 14px;
    right: 14px;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-panel .panel-title {
    grid-column: 1 / -1;
  }

  .layer-toggle {
    grid-template-columns: 16px 12px 1fr;
    gap: 6px;
    font-size: 0.82rem;
  }

  .style-panel {
    top: 226px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .style-status {
    min-height: 0;
  }

  .floating-panel-button {
    top: 226px;
    right: 14px;
  }

  .translation-panel {
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 13px 14px;
  }

  .floating-panel-button.translation-toggle {
    left: 14px;
    bottom: 14px;
  }

  .translation-panel h2 {
    font-size: 1rem;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .topbar h1 {
    font-size: 2rem;
  }
}
