.weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  position: relative;
  width: 90%;
  max-width: 200px;
  margin: 0 auto;
}

.weather-icon-link {
  display: block;
  line-height: 0;
  width: 85%;
}
#weather-icon {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

.weather-bottom {
  display: flex;
  align-items: center;
  gap: 2px;
}

#weather-temp {
  font-size: clamp(13px, 3vw, 24px);
  font-weight: bold;
  color: rgba(240,235,220,0.98);
  line-height: 1;
}

.weather-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--fg-dim);
  line-height: 0;
  transition: background 0.2s, color 0.2s;
}
.weather-locate-btn:hover {
  background: rgba(240,235,220,0.08);
  color: rgba(240,235,220,0.98);
}
.icon-pin {
  width: clamp(12px, 1.8vw, 16px);
  height: clamp(12px, 1.8vw, 16px);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.weather-locate-btn:hover .icon-pin { opacity: 1; }

.weather-city-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(10px, 1.5vw, 14px);
  color: var(--fg-dim);
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.weather-city-btn:hover {
  background: rgba(240,235,220,0.08);
  color: rgba(240,235,220,0.98);
}

.icon-edit {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.weather-city-btn:hover .icon-edit { opacity: 0.7; }

.locate-form {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: rgba(10,10,10,0.96);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 6px;
  z-index: 150;
  min-width: 200px;
  backdrop-filter: blur(10px);
}
#manual-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--bd);
  border-radius: 5px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 12px;
  color: rgba(240,235,220,0.98);
  outline: none;
}
#manual-input:focus { border-color: var(--bd-hover); }

#suggestions { margin-top: 4px; max-height: 200px; overflow-y: auto; }
.sug {
  padding: 5px 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  border-radius: 4px;
}
.sug:hover { background: rgba(240,235,220,0.1); }
.sug .cp { color: var(--fg-dim); margin-left: 4px; font-size: 10px; }
