body.weather-page {
  margin: 0;
  min-height: 100vh;
  background: #1a1a2e;
  color: #eee;
}

.weather-header {
  background: rgba(20, 20, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1100;
  position: relative;
}

.weather-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.weather-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.weather-brand:hover {
  color: #ffc107;
}

.weather-updated {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.weather-yandex-link {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.weather-yandex-link:hover {
  color: #ffc107;
}

.layer-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.75rem 0.75rem;
  overflow-x: auto;
}

.layer-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.layer-tab:hover {
  background: rgba(255, 255, 255, 0.15);
}

.layer-tab.active {
  background: #ffc107;
  color: #1a1a2e;
  font-weight: 600;
}

.layer-tab-icon {
  font-size: 1rem;
}

.map-wrap {
  position: relative;
  height: calc(100vh - 96px);
}

#map {
  width: 100%;
  height: 100%;
  background: #0d1117;
}

.field-canvas-layer {
  pointer-events: none;
}

.opacity-control {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.opacity-slider {
  width: 100%;
  margin-top: 0.25rem;
  accent-color: #ffc107;
}

.precip-icon-wrap {
  background: transparent;
  border: none;
}

.precip-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 18px;
  pointer-events: none;
}

.precip-rain span {
  display: block;
  width: 2px;
  height: 10px;
  background: rgba(180, 210, 255, 0.95);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(100, 160, 255, 0.8);
}

.precip-rain span:nth-child(2) { height: 14px; }
.precip-rain span:nth-child(3) { height: 11px; }

.precip-storm {
  font-size: 16px;
  line-height: 1;
  color: #ffe066;
  text-shadow: 0 0 8px rgba(255, 220, 80, 0.9), 0 0 2px #fff;
  filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.8));
}

.precip-legend-rain {
  color: rgba(180, 210, 255, 0.95);
  font-weight: bold;
  letter-spacing: -2px;
}

.precip-legend-storm {
  color: #ffe066;
}

.wind-grid-arrow {
  background: transparent;
  border: none;
}

.wind-arrow-line {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wind-arrow-shaft {
  display: block;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

.wind-arrow-shaft::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.9);
}

.map-legend {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  z-index: 1000;
  background: rgba(20, 20, 35, 0.9);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  pointer-events: none;
}

.legend-bar {
  height: 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  width: 160px;
}

.temp-bar {
  background: linear-gradient(to right, #313695, #74add1, #ffffbf, #fdae61, #d73027);
}

.precip-bar {
  background: linear-gradient(to right, rgba(140, 150, 170, 0.4), rgba(30, 100, 220, 0.9));
}

.wind-bar {
  background: linear-gradient(to right, #313695, #4575b4, #abd9e9, #e0f3f8);
}

.elev-bar {
  background: linear-gradient(to right, #387638, #8bc34a, #fff59d, #ff9800, #e57373);
}

.btn-refresh-map {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 20, 35, 0.9);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-refresh-map:hover {
  background: #ffc107;
  color: #1a1a2e;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-zoom a {
  background: rgba(20, 20, 35, 0.9) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Install wizard (unchanged layout) */
.weather-container {
  display: flex;
  height: calc(100vh - 56px);
  position: relative;
}

.layer-panel {
  width: 280px;
  padding: 1rem;
  background: #fff;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  z-index: 1000;
}

#install-log {
  font-family: monospace;
  font-size: 12px;
}

@media (max-width: 768px) {
  .map-wrap {
    height: calc(100vh - 110px);
  }

  .layer-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}
