* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  color: #0f172a;
}

.app {
  width: min(950px, 92%);
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.subtitle {
  max-width: 520px;
  margin: 18px auto 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.search-card,
.weather-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  padding: 24px;
}

#searchBtn {
  grid-column: 1 / -1;
}

.input-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.origin,
.destination{
    display:flex;
    flex-direction:column;
    gap:12px;
}


label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  margin-top:6px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  
}

input:focus {
  outline: 3px solid #bae6fd;
  border-color: #0284c7;
}

button {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: #0284c7;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #0369a1;
}

button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.weather-card {
  margin-top: 24px;
  padding: 28px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.trip-summary {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.trip-summary h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.trip-summary p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.weather-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.weather-location-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.weather-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.description {
  margin: 6px 0 0;
  color: #475569;
  text-transform: capitalize;
}

.temp {
  font-size: 3rem;
  font-weight: 800;
  color: #0284c7;
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.weather-stat {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
}

.weather-stat span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.weather-stat strong {
  font-size: 1.1rem;
}

.error {
  color: #b91c1c;
  font-weight: 700;
}

.hidden {
  display: none;
}

@media (max-width: 850px) {
  .search-card {
    grid-template-columns: 1fr;
  }

  .weather-header {
    flex-direction: column;
  }

  .weather-grid {
    grid-template-columns: 1fr;
  }
  .weather-card-grid{
    grid-template-columns:1fr;
  }
}