* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: rgba(173, 172, 172, 0.582);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #ff9900;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 18px;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid #e4e7ec;
  border-radius: 8px;
  outline: none;
  color: #1a1f36;
  background: #fafbfc;
  transition: border-color 0.2s;
}

input[type="text"]::placeholder {
  color: #b0b8c4;
}

input[type="text"]:focus {
  border-color: #f47920;
  background: #fff;
}

.search-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: #f47920;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-btn:hover {
  background: #d9671a;
}

.search-btn:disabled {
  background: #fac89a;
  cursor: not-allowed;
}

.message {
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 4px;
}

.error {
  color: #e05252;
}

.loading {
  color: #9ca3af;
}

.weather {
  display: none;
}

.weather.visible {
  display: block;
}

.divider {
  height: 1px;
  background: #f0f2f5;
  margin: 18px 0;
}

.city {
  font-size: 17px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 2px;
}

.condition {
  font-size: 13px;
  color: #8a94a6;
  margin-bottom: 18px;
}

.temp-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 22px;
}

.temp {
  font-size: 72px;
  font-weight: 300;
  color: #1a1f36;
  line-height: 1;
  letter-spacing: -3px;
}

.temp-unit {
  font-size: 22px;
  color: #8a94a6;
  margin-top: 12px;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail {
  background: #fafbfc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 12px 14px;
}

.detail-label {
  font-size: 11px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 18px;
  font-weight: 500;
  color: #1a1f36;
}