* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #312e81);
  color: white;
  padding: 25px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 25px;
}

.search-box {
  max-width: 700px;
  margin: auto;
  display: flex;
  gap: 10px;
  position: relative;
}

input {
  flex: 1;
  padding: 15px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 16px;
}

button {
  padding: 15px 22px;
  border: none;
  border-radius: 14px;
  background: #38bdf8;
  color: #082f49;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #7dd3fc;
}

.location-btn {
  display: block;
  margin: 15px auto;
  background: #facc15;
  color: #422006;
}

#suggestions {
  max-width: 700px;
  margin: 5px auto 0;
  background: white;
  color: #111;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 1000;
}

.suggestion-item {
  padding: 13px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #e0f2fe;
}

#error {
  text-align: center;
  color: #fecaca;
  font-weight: bold;
  margin: 12px 0;
}

.content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  margin-top: 25px;
}

.weather-card {
  background: rgba(255, 255, 255, 0.14);
  padding: 25px;
  border-radius: 24px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.weather-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

#placeDetails {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.temp {
  font-size: 55px;
  font-weight: bold;
  margin-bottom: 10px;
}

.details {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.details p {
  background: rgba(0,0,0,0.25);
  padding: 12px;
  border-radius: 12px;
}

#map {
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.forecast {
  margin-top: 25px;
  background: rgba(255,255,255,0.12);
  padding: 22px;
  border-radius: 24px;
}

.forecast h2 {
  margin-bottom: 15px;
}

#forecastList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

.forecast-card {
  background: rgba(0,0,0,0.25);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
}

.forecast-card h3 {
  margin-bottom: 8px;
  color: #bae6fd;
}

.hidden {
  display: none;
}

@media (max-width: 800px) {
  .content {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .search-box {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}