/* ═══════════════════════════════════════════
   GEO — Населённые пункты, климат, погода
   ═══════════════════════════════════════════ */

/* ── Breadcrumbs ──────────────────────────────── */
.breadcrumbs {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-muted, #64748b);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--sea, #0891b2);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* ── Page header ──────────────────────────────── */
.geo-header {
  background: linear-gradient(135deg, var(--deep, #082f3a), var(--sea, #0891b2));
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.geo-header h1 { margin: 0 0 .5rem; }
.page-lead { opacity: .9; max-width: 680px; line-height: 1.65; }

/* ── Stats grid ───────────────────────────────── */
.geo-stats { margin-bottom: 2.5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--deep, #082f3a);
}
.stat-label {
  font-size: .8rem;
  color: var(--ink-muted, #64748b);
  margin-top: .25rem;
}

/* ── Section title ─────────────────────────────── */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep, #082f3a);
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sea, #0891b2);
  display: inline-block;
}

/* ── Settlement cards ─────────────────────────── */
.settlement-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
}
.settlement-card:hover {
  box-shadow: 0 4px 20px rgba(8,47,58,.08);
  transform: translateY(-2px);
}
.settlement-card--city {
  padding: 1.75rem;
  border-left: 4px solid var(--sea, #0891b2);
}
.settlements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.settlements-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.sc-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .2rem;
  color: var(--deep, #082f3a);
}
.sc-hist {
  font-size: .8rem;
  color: var(--ink-muted, #64748b);
  font-style: italic;
}
.sc-desc {
  font-size: .88rem;
  color: var(--ink, #1e293b);
  margin: .5rem 0 0;
  line-height: 1.5;
}
.sc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}
.sc-pop {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sea, #0891b2);
}
.sc-type {
  font-size: .78rem;
  color: var(--ink-muted, #64748b);
  background: var(--sand, #f1f5f9);
  padding: .15rem .5rem;
  border-radius: 4px;
}
.sc-sea-badge {
  font-size: .72rem;
  color: #0369a1;
  background: #e0f2fe;
  padding: .15rem .5rem;
  border-radius: 4px;
}

/* ── Settlement detail ────────────────────────── */
.sd-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.sd-hist {
  font-size: .9rem;
  opacity: .85;
  margin: .25rem 0 0;
  font-style: italic;
}
.sd-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: .78rem;
  padding: .25rem .65rem;
  border-radius: 6px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 600;
}
.badge--pop { background: rgba(255,255,255,.3); }
.badge--sea { background: #0ea5e9; }

.sd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}
.sd-section { padding: 2rem 0; }
.sd-block { margin-bottom: 2rem; }
.sd-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep, #082f3a);
  margin: 0 0 .75rem;
}
.sd-block p {
  line-height: 1.7;
  color: var(--ink, #1e293b);
}

.sd-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sd-weather-card,
.sd-info-card,
.sd-nav-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
}
.sd-weather-card h3,
.sd-info-card h3,
.sd-nav-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--deep, #082f3a);
}
.sd-info-card dl { margin: 0; }
.sd-info-card dt {
  font-size: .78rem;
  color: var(--ink-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sd-info-card dd {
  font-weight: 500;
  margin: 0 0 .5rem;
}
.sd-nav-card { display: flex; flex-direction: column; gap: .5rem; }
.btn--outline {
  display: block;
  text-align: center;
  padding: .6rem 1rem;
  border: 1px solid var(--sea, #0891b2);
  color: var(--sea, #0891b2);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.btn--outline:hover {
  background: var(--sea, #0891b2);
  color: #fff;
}

.sd-map {
  height: 300px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
}

/* ── Weather widget ────────────────────────────── */
.weather-box {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
}
.weather-box--large { padding: 1.75rem; }
.weather-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.weather-temp {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.weather-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--deep, #082f3a);
}
.weather-desc {
  font-size: 1rem;
  color: var(--ink-muted, #64748b);
}
.weather-meta {
  display: flex;
  gap: 1rem;
  color: var(--ink, #1e293b);
  font-size: .88rem;
}
.weather-forecast {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border, #e2e8f0);
}
.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: 70px;
  font-size: .82rem;
}
.forecast-date { color: var(--ink-muted, #64748b); }
.forecast-icon { display: flex; align-items: center; }
.forecast-temps { font-weight: 600; color: var(--deep, #082f3a); }
.weather-error {
  color: var(--ink-muted, #64748b);
  font-style: italic;
}

/* ── Climate table ─────────────────────────────── */
.table-wrap { overflow-x: auto; }
.climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.climate-table th,
.climate-table td {
  padding: .65rem .85rem;
  text-align: center;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.climate-table th {
  background: var(--sand, #f1f5f9);
  font-weight: 700;
  color: var(--deep, #082f3a);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.climate-table .month-cell {
  font-weight: 600;
  text-align: left;
  color: var(--deep, #082f3a);
}
.temp-cell { font-weight: 600; }
.temp-warm { color: #dc2626; }
.temp-mid { color: var(--sea, #0891b2); }
.temp-cold { color: #0369a1; }

/* ── Climate facts ─────────────────────────────── */
.climate-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.fact-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.fact-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sea, #0891b2);
}
.fact-label {
  font-size: .8rem;
  color: var(--ink-muted, #64748b);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ── Climate description ───────────────────────── */
.climate-description { margin-bottom: 2rem; }
.text-block p {
  line-height: 1.75;
  color: var(--ink, #1e293b);
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.link-sea {
  color: var(--sea, #0891b2);
  text-decoration: none;
  font-weight: 600;
}
.link-sea:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .sd-layout {
    grid-template-columns: 1fr;
  }
  .sd-sidebar { order: -1; }
}

@media (max-width: 680px) {
  .settlements-grid,
  .settlements-grid--small {
    grid-template-columns: 1fr;
  }
  .sd-title-row { flex-direction: column; }
  .climate-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
