@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fafafa;
  color: #333;
}

body {
  max-width: 1200px;
  margin: 0 auto;
}

#universal-search {
  display: flex;
  padding: 12px;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#universal-search input {
  flex: 1;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

#universal-search button {
  padding: 10px 16px;
  font-size: 15px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#universal-search button:hover {
  background-color: #3367d6;
}

#map {
  height: 60%;
  width: 100%;
  display: block;
}

#places-list {
  height: 30%;
  overflow-y: auto;
  padding: 12px;
  position: relative;
  background-color: #fafafa;
}

#places-list > div {
  background: white;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

#places-list > div strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

#places-list > div span {
  font-size: 14px;
  color: #666;
}

#places-list > div:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#places-list button#show-more-btn {
  margin: 20px auto;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f8f8;
  cursor: pointer;
  display: block;
}

#redo-search {
  display: none;
  background: white;
  border: 1px solid #ccc;
  padding: 10px 16px;
  font-size: 14px;
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 6px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#view-toggle {
  display: none;
  justify-content: space-around;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

#view-toggle button {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #f8f8f8;
  cursor: pointer;
}

@media (max-width: 768px) {
  #map, #places-list {
    height: 70vh;
    width: 100%;
    display: none;
  }

  #map.show, #places-list.show {
    display: block;
  }

  #view-toggle {
    display: flex;
    padding: 12px 16px;
  }

  #view-toggle button {
    font-size: 16px;
  }
}
