@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; background: #f5f6f8; color: #1a1a2e; min-height: 100vh; }

/* ── 공통 ── */
.container { max-width: 660px; margin: 0 auto; padding: 40px 20px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 헤더 ── */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 20px; text-align: center; }
.site-header .logo { font-size: 18px; font-weight: 700; color: #1a1a2e; letter-spacing: -0.5px; }
.site-header .logo span { color: #2563eb; }

/* ── 광고 슬롯 ── */
.ad-slot {
  background: #f0f2f5;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  text-align: center;
  padding: 6px;
  color: #9ca3af;
  font-size: 12px;
  margin: 6px 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 홈 ── */
.home { text-align: center; padding-top: 12px; }
.home h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.subtitle { color: #6b7280; margin-bottom: 8px; font-size: 15px; line-height: 1.6; }

.service-notice {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 28px;
}

.search-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 20px; }
.search-form input {
  flex: 1;
  padding: 13px 16px;
  font-size: 17px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.search-form input:focus { border-color: #2563eb; }
.search-form button {
  padding: 13px 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.search-form button:hover { background: #1d4ed8; }

.hint {
  font-size: 13px;
  color: #9ca3af;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 12px auto 20px;
  max-width: 460px;
}
.example-label { font-size: 13px; color: #6b7280; }
.example-chip {
  font-size: 13px;
  font-family: inherit;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-weight: 500;
}
.example-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* ── 홈 최근/인기 목록 ── */
.home-list {
  text-align: left;
  margin-top: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.home-list-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.home-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
a.list-chip {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none;
}
a.list-chip:hover { background: #dbeafe; text-decoration: none; }
.list-addr {
  font-size: 12px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 결과 페이지 ── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.back:hover { background: #dbeafe; border-color: #93c5fd; text-decoration: none; }

.result-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.result-subtitle { color: #6b7280; font-size: 14px; margin-bottom: 24px; }

.info-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: #6b7280; font-size: 13px; min-width: 56px; flex-shrink: 0; padding-top: 1px; white-space: nowrap; }
.info-row strong { font-weight: 600; font-size: 15px; word-break: break-all; }

.copy-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #374151;
  font-family: inherit;
  transition: background 0.15s;
}
.copy-btn:hover { background: #e5e7eb; }

/* ── 지도 ── */
#map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  overflow: hidden;
}

/* ── 외부 지도 링크 ── */
.map-links { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.map-links a {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.15s, background 0.15s;
}
.map-links a:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; background: #eff6ff; }

/* ── 푸터 ── */
.site-footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 32px 20px; border-top: 1px solid #e5e7eb; margin-top: 40px; }

/* ── 반응형 ── */
@media (max-width: 480px) {
  .search-form { flex-direction: column; }
  .home h1 { font-size: 22px; }
  .result-title { font-size: 20px; }
}
