body {
  background-color: #f4f4f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

button {
  width: 100%;
  font-size: 18px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #ffcd00;
  font-weight: bold;
  cursor: pointer;
}

button:active {
  transform: scale(0.98);
}

#result {
  margin-top: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 12px;
}


/* 모달 기본 스타일 */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.5); 
}

.modal-content {
  background-color: #fff;
  margin: 15% auto; 
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: black;
}

#modalMapLink {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 16px;
  background: #3c1e1e;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.seo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.category-section {
  text-align: center;
  margin-top: 40px;
}

.category-section h2 {
  margin-bottom: 20px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.category-item {
  position: relative;
}

.category-item input {
  display: none;
}

.category-item span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  font-size: 14px;
}

.category-item input:checked + span {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.home-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}


.share-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.share-btn:hover {
  background: #f7f7f7;
}

.buddy-wrap {
  margin-top: 12px;
}

.buddy-toggle {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #ffcd00;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.buddy-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fffbea;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  animation: slideDown 0.25s ease;
}

.buddy-panel input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  margin-bottom: 8px;
  box-sizing: border-box;   /* ✅ 이거 추가 */
}

.buddy-panel button {
  background: #ffcd00;
}

.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔥 일 방문자 수 애니메이션 (업그레이드) */
#dailyCountNum {
  display: inline-block;
  font-weight: 800;
  color: #e74c3c; /* 토마토 레드 – 식욕 자극 */
  will-change: transform;
}

#dailyCountNum.bump {
  animation: bump 0.28s cubic-bezier(.34,1.56,.64,1);
}

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* +1 떠오르는 이펙트 */
.plus-one {
  position: absolute;
  font-weight: 800;
  font-size: 14px;
  color: #ff6f00; /* 꿀색 느낌 */
  animation: floatUp 0.8s ease forwards;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.1);
  }
}

/* ✅ 맛집 썸네일 */
.place-row {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.place-thumb {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 78px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #f3f3f3;
}

.place-meta {
  flex: 1;
  min-width: 0;
}

.place-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-sub {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
