body {
  font-family: 'Arial', sans-serif;
  background-color: #ffeea9;
  text-align: center;
  margin: 0;
  padding-top: 20px;
  box-sizing: border-box;
}

/* 대시보드로 돌아가기 버튼 */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 15px;
  background-color: white;
  color: #5D4037;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-weight: bold;
  z-index: 10;
}

/* 제목 */
h1 {
  color: #5D4037;
  margin: 100px 0 30px;
}

/* 검색 박스 */
.search-box {
  margin: 0 0 24px;
}

#searchInput {
  width: 300px;
  max-width: 82vw;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
}

.search-box button {
  padding: 10px 15px;
  border: none;
  background-color: #FBC02D;
  color: white;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 6px;
}

.search-box button:hover {
  background-color: #F9A825;
}

/* 명소 카드 리스트 */
.attraction-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px 40px;
}

.attraction-item {
  position: relative;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 20px;
  width: 280px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attraction-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.attraction-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.attraction-item h2 {
  color: #5D4037;
  margin: 12px 0 6px;
  font-size: 18px;
}

.attraction-item p {
  color: #7f8c8d;
  font-size: 14px;
  margin: 0;
}

/* 즐겨찾기 별 버튼 */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 6;
  padding: 4px;
  line-height: 1;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all 0.2s ease;
}

.favorite-btn.favorited {
  filter: none;
  opacity: 1;
}

/* 저작권 뱃지 */
.license-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  z-index: 6;
  line-height: 1;
}

.license-badge:hover {
  background: rgba(0,0,0,0.7);
}

/* 이미지/저작권 모달 */
.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.65);
  padding: 12px;
}

.modal-image {
  background: #000;
  color: #fff;
  width: min(920px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 16px 16px 12px;
  box-sizing: border-box;
  margin: 40px auto;
}

.modal-close-btn {
  color: #fff;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: 0;
}

#modal-big {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}

.credit-box {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.credit-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #eee;
  text-align: left;
}

.credit-link {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.credit-link:hover {
  opacity: 0.9;
}

/* 필요시 쓰는 숨김 클래스 */
.hidden {
  display: none;
}
