* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #1a1a1a;
  background: #f7f7f9;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: #d81b1b;
  color: #fff;
}
.topbar h1 { font-size: 20px; margin: 0; }
.controls { display: flex; align-items: center; gap: 12px; }

select {
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

.mode-toggle { display: flex; gap: 6px; }
.mode-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.mode-btn.active { background: #fff; color: #d81b1b; font-weight: 600; }

.search-panel {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.search-panel.hidden { display: none; }
#keywordInput {
  flex: 1;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
#keywordSearchBtn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #d81b1b;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.theme-desc { margin: 0; color: #666; font-size: 13px; flex-basis: 100%; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; white-space: nowrap; }

#generatePanel { border-top: 1px dashed #ddd; }
#generateInput { flex: 1; max-width: 340px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
#generateBtn { padding: 10px 16px; border: none; border-radius: 6px; background: #333; color: #fff; cursor: pointer; font-size: 14px; }
#generateBtn:disabled { background: #999; cursor: default; }
.generate-hint { margin: 0; color: #888; font-size: 12px; flex-basis: 100%; }

.layout {
  display: flex;
  height: calc(100vh - 130px);
}
.result-list {
  width: 360px;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  border-right: 1px solid #eee;
}
.empty-hint { color: #999; text-align: center; margin-top: 40px; font-size: 14px; }

.spot-card {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.spot-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.spot-card h3 { margin: 0 0 4px; font-size: 15px; }
.spot-card .rating { color: #e08a00; font-weight: 600; font-size: 13px; }
.spot-card .reviews { color: #888; font-size: 12px; margin-left: 4px; }
.spot-card .address { color: #666; font-size: 12px; margin-top: 4px; }
.spot-card .desc { color: #444; font-size: 13px; margin-top: 6px; line-height: 1.4; }
.spot-card a { color: #1a73e8; font-size: 12px; text-decoration: none; }
.spot-card .thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }

.map { flex: 1; background: #e5e5e5; }
