* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  color: #1a73e8;
  margin-bottom: 8px;
}

header p {
  color: #666;
  font-size: 1rem;
}

.data-status {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #888;
}

.data-status.ready {
  color: #34a853;
}

.data-status.loading {
  color: #f9ab00;
}

.ad-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.filter-row {
  margin-bottom: 16px;
}

.filter-row select {
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  background: white;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}

.filter-row select:focus {
  border-color: #1a73e8;
}

.no-result {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-box input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #1a73e8;
}

.search-box button {
  padding: 14px 28px;
  background: #1a73e8;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #1557b0;
}

.status {
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.status.loading {
  background: #e8f0fe;
  color: #1a73e8;
}

.status.error {
  background: #fce8e6;
  color: #d93025;
}

.hidden {
  display: none;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

#resultCount {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.map-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-label {
  font-size: 0.85rem;
  color: #888;
}

.map-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.map-btn:hover {
  opacity: 0.85;
}

.map-btn.naver {
  background: #03c75a;
  color: white;
}

.map-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.category-wrap {
  margin-bottom: 16px;
}

.category-wrap select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.category-wrap select:focus {
  border-color: #1a73e8;
}

.card-list {
  display: grid;
  gap: 14px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-info {
  flex: 1;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.card-category {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.card-address {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
}

.card-phone {
  font-size: 0.85rem;
  color: #888;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.card-map-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
  min-width: 76px;
}

.card-map-btn:hover {
  opacity: 0.85;
}

.card-map-btn.naver {
  background: #03c75a;
  color: white;
}

.card-map-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.page-btn.active {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  .card {
    flex-direction: column;
  }

  .card-actions {
    flex-direction: row;
    width: 100%;
  }

  .card-map-btn {
    flex: 1;
  }
}
