* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #eef2f7;
}
.wrapper {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}
.left, .right {
  flex: 1 1 50%;
  padding: 1rem;
  background: white;
  overflow-y: auto;
}
.left {
  border-right: 1px solid #ccc;
}
h2 {
  margin-top: 0;
}
label {
  display: block;
  margin: 6px 0;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
input[type="text"],
button {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}
button {
  background: #5c6bc0;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #3f51b5;
}
#results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.card .info {
  padding: 0.5rem;
  flex: 1;
}
.card h4 {
  margin: 0 0.3rem;
  font-size: 1rem;
}
.card p {
  margin: 0.3rem;
  font-size: 0.85rem;
  color: #555;
}
.weather {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.8);
  padding: 4px 6px;
  font-size: 0.75rem;
  border-radius: 6px;
}
.flight-btn {
  margin: 0.5rem;
  padding: 6px 8px;
  background: #ff5722;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
}
.autocomplete-item {
  padding: 10px;
  background: white;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }
  .left {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
}


#autocomplete-list {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  background: white;
  z-index: 10;
}
.autocomplete-item {
  padding: 5px 10px;
  cursor: pointer;
}
.autocomplete-item:hover {
  background: #f0f0f0;
}
