* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, Arial, sans-serif;
  color: #17201b;
  background: #f4f7f5;
}

body {
  margin: 0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid #dfe7e2;
  position: relative;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 5px 0 0;
  color: #617067;
}

#search {
  width: min(540px, 48vw);
  padding: 13px 16px;
  border: 1px solid #bdc9c1;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
}

#search:focus {
  border-color: #237a4b;
  box-shadow: 0 0 0 3px rgba(35, 122, 75, 0.14);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  height: calc(100vh - 101px);
}

.map-section,
#map {
  width: 100%;
  height: 100%;
}

.results-section {
  overflow-y: auto;
  padding: 20px;
  background: #f4f7f5;
  border-left: 1px solid #dfe7e2;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.results-header h2 {
  margin: 0;
}

#result-count {
  color: #617067;
  font-size: 14px;
}

.status {
  padding: 14px;
  background: #ffffff;
  border-radius: 10px;
  color: #617067;
}

.restaurant-list {
  display: grid;
  gap: 12px;
}

.restaurant-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.restaurant-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(25, 55, 36, 0.09);
}

.restaurant-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.restaurant-card p {
  margin: 5px 0;
  color: #536259;
  line-height: 1.4;
}

.restaurant-card a {
  color: #196a41;
}

.badge {
  display: inline-block;
  margin: 0 5px 6px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f4ec;
  color: #225f3d;
  font-size: 13px;
}

.popup-title {
  font-size: 16px;
}

.empty {
  padding: 18px;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  color: #617067;
}

@media (max-width: 850px) {
  .topbar {
    display: block;
    padding: 16px;
  }

  #search {
    width: 100%;
    margin-top: 14px;
  }

  .layout {
    display: block;
    height: auto;
  }

  .map-section,
  #map {
    height: 55vh;
    min-height: 380px;
  }

  .results-section {
    border-left: 0;
    border-top: 1px solid #dfe7e2;
  }
}
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #dcdcdc;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.search-suggestion,
.suggestion-empty {
  padding: 12px 14px;
  border-bottom: 1px solid #eeeeee;
}

.search-suggestion {
  cursor: pointer;
}

.search-suggestion:hover {
  background: #f4f4f4;
}

.search-suggestion:last-child {
  border-bottom: none;
}
