/* MeteoLab SK — mestské podstránky (Bratislava, Košice) */

.city-body { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }

.city-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(12px, 3vw, 24px);
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; z-index: 1200;
}
.back-link {
  font-family: var(--font-display); font-size: .76rem; font-weight: 600;
  color: var(--azure); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
  background: #fff; white-space: nowrap;
}
.back-link:hover { border-color: var(--azure); }
.city-title h1 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.city-title p { font-size: .7rem; color: var(--ink-soft); }
.city-top .spacer { flex: 1; }

.param-bar {
  display: flex; gap: 6px;
  padding: 8px clamp(12px, 3vw, 24px);
  background: #fff; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; flex: 0 0 auto;
}
.param-bar::-webkit-scrollbar { display: none; }
.param-chip {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 13px; cursor: pointer; white-space: nowrap; flex: 0 0 auto;
  touch-action: manipulation;
}
.param-chip.is-active { background: var(--azure); border-color: var(--azure); color: #fff; }
.param-chip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.city-main { display: flex; flex: 1; min-height: 0; }
#cityMap { flex: 1; min-width: 0; background: #dfe9f2; }

.city-side {
  width: 380px; flex: 0 0 auto;
  border-left: 1px solid var(--line); background: var(--card);
  overflow-y: auto; padding: 14px 16px 22px;
}
.side-h {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  margin: 14px 0 8px; display: flex; align-items: center; gap: 6px;
}
.side-h:first-child { margin-top: 0; }

.assist-cards { display: flex; flex-direction: column; gap: 8px; }
.assist {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: var(--paper);
  display: flex; gap: 10px; align-items: flex-start;
}
.assist .em { font-size: 1.3rem; line-height: 1; }
.assist b { font-size: .78rem; display: block; }
.assist span { font-size: .72rem; color: var(--ink-soft); line-height: 1.45; }
.assist.hot { background: #fdf3e3; border-color: #f3ddb0; }
.assist.rain { background: #e8f2fb; border-color: #c9dff2; }

.casti-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.casti-table th {
  font-family: var(--font-display); font-size: .64rem; text-align: left;
  color: var(--ink-soft); padding: 4px 6px; border-bottom: 1px solid var(--line);
}
.casti-table td { padding: 6px; border-bottom: 1px solid #eef3f8; }
.casti-table tr { cursor: pointer; }
.casti-table tr:hover td { background: var(--paper); }
.casti-table tr.is-sel td { background: #e8f2fb; }
.casti-table .val { font-family: var(--font-display); font-weight: 700; text-align: right; white-space: nowrap; }
.casti-table .badge {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: baseline;
}

.city-src { font-size: .62rem; color: var(--ink-soft); margin-top: 14px; line-height: 1.55; }
.city-src a { color: var(--azure); }

.city-note {
  font-size: .7rem; color: var(--ink-soft);
  background: var(--paper); border: 1px dashed var(--line);
  border-radius: 10px; padding: 8px 10px; margin-top: 8px;
}

.cast-label {
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  color: #0e2233; background: rgba(255,255,255,.88);
  border: 1px solid rgba(14,34,51,.18); border-radius: 999px;
  padding: 2px 7px; white-space: nowrap; transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(14,34,51,.18); pointer-events: none;
}
.cast-label small { font-weight: 500; font-size: .58rem; color: var(--ink-soft); }

.radar-toggle {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
  background: #fff; color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.radar-toggle.is-active { background: var(--azure); border-color: var(--azure); color: #fff; }

.city-loading {
  position: absolute; inset: 0; z-index: 500;
  background: rgba(242,247,252,.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: .8rem; color: var(--ink-soft);
}
.city-loading.is-hidden { display: none; }

@media (max-width: 860px) {
  .city-main { flex-direction: column; }
  #cityMap { flex: 0 0 46dvh; }
  .city-side { width: 100%; border-left: 0; border-top: 1px solid var(--line); flex: 1; }
  .city-title p { display: none; }
}

/* Kompaktné menovky pri oddialení */
#cityMap.labels-compact .cast-label small { display: none; }
#cityMap.labels-compact .cast-label { padding: 2px 6px; font-size: .64rem; }
