* {
  box-sizing: border-box;
}

body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: #f7f7f5;
  color: #222;
}

header {
  padding: 24px 0 8px;
}

h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

#search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

#search-form input {
  flex: 1 1 160px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

#search-form button {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

#map {
  height: calc(100vh - 260px);
  min-height: 380px;
  position: sticky;
  top: 16px;
  border-radius: 12px;
  background: #e7e7e4;
}

.panel {
  min-width: 0;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }
  #map {
    position: static;
    height: 320px;
    min-height: 0;
  }
}

#status {
  color: #666;
  font-size: 14px;
}

#results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e2;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card .meta {
  color: #666;
  font-size: 13px;
  margin: 2px 0;
}

.band {
  display: inline-block;
  background: #eef3ff;
  color: #2f6bff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin-top: 6px;
}

.card.active {
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px #d7e3ff;
}

.combo {
  flex: 1 1 160px;
  position: relative;
}

.combo input {
  width: 100%;
}

.combo-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5e2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

.combo.open .combo-list {
  display: block;
  border-color: #2f6bff;
}

#search-form .combo input:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px #d7e3ff;
}

.combo-list .item {
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
}

.combo-list .item:hover {
  background: #eef3ff;
}

.combo-list .empty {
  padding: 9px 12px;
  font-size: 13px;
  color: #999;
}
