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

/* ===== 기본 설정 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFBE00;
  --yellow-dark: #e6a800;
  --yellow-light: #FFF3CC;
  --black: #1a1a1a;
  --gray: #6b6b6b;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ===== 공통 레이아웃 ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.section-subtitle { font-size: 15px; color: var(--gray); text-align: center; margin-bottom: 48px; }

/* ===== 네비게이션 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }
.navbar-logo { font-family: 'Zen Kurenaido', sans-serif; font-size: 22px; color: var(--black); }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { font-size: 14px; font-weight: 500; color: var(--gray); transition: color 0.2s; }
.navbar-links a:hover { color: var(--black); }
.btn-primary {
  background: var(--yellow); color: var(--black); font-weight: 700;
  padding: 10px 22px; border-radius: 8px; font-size: 14px;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }

/* ===== 메인 히어로 ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.50)),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1400') center/cover no-repeat;
  padding-top: 64px;
}
.hero-content { padding: 60px 40px 40px; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,190,0,0.85); color: #1a1a1a;
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title { font-size: 38px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 16px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.8; }

/* ===== 검색 박스 ===== */
.search-box {
  margin: 32px 40px 0;
  background: rgba(255,255,255,0.97);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  max-width: 820px;
}
.search-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.search-field label { display: block; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.search-field input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-border);
  border-radius: 8px; font-size: 14px; background: #fff;
  transition: border-color 0.2s;
}
.search-field input:focus { border-color: var(--yellow); }
.style-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--gray-border); background: #fff; color: var(--gray);
  cursor: pointer; transition: all 0.15s;
}
.tag:hover, .tag.active { background: var(--yellow); border-color: var(--yellow); color: #1a1a1a; }
.btn-search {
  width: 100%; padding: 14px; background: var(--yellow);
  color: #1a1a1a; font-size: 15px; font-weight: 700;
  border-radius: 10px; transition: background 0.2s, transform 0.1s;
}
.btn-search:hover { background: var(--yellow-dark); transform: translateY(-1px); }

/* ===== 왜 AI 플래너? ===== */
.why-section { background: #fff; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--gray-light); border-radius: var(--radius);
  padding: 32px 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ===== 인기 여행지 ===== */
.popular-section { background: var(--gray-light); }
.dest-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dest-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; cursor: pointer;
}
.dest-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dest-card-img { height: 200px; position: relative; }
.dest-card-img img { height: 100%; }
.dest-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: #1a1a1a;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.dest-card-body { padding: 18px; }
.dest-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dest-card-days { font-size: 13px; color: var(--gray); }

/* ===== CTA 배너 ===== */
.cta-section {
  background: var(--yellow); padding: 80px 40px; text-align: center;
}
.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: #555; margin-bottom: 32px; }
.btn-cta {
  display: inline-block; padding: 14px 36px;
  background: #fff; color: #1a1a1a; font-size: 15px; font-weight: 700;
  border-radius: 10px; border: 2px solid #1a1a1a;
  transition: background 0.2s, transform 0.1s;
}
.btn-cta:hover { background: #1a1a1a; color: #fff; transform: translateY(-2px); }

/* ===== 푸터 ===== */
.footer {
  background: #1a1a1a; color: rgba(255,255,255,0.7);
  padding: 48px 40px 32px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.footer-logo { font-family: 'Zen Kurenaido', sans-serif; font-size: 20px; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-sns { display: flex; gap: 14px; margin-top: 16px; }
.footer-sns a { font-size: 18px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-sns a:hover { color: var(--yellow); }
.footer-col-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ===== 여행지 목록 페이지 ===== */
.page-hero {
  background: var(--yellow); padding: 100px 40px 48px;
  text-align: left;
}
.page-hero-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-hero-sub { font-size: 15px; color: #555; }
.dest-search-bar {
  max-width: 1100px; margin: 0 auto; padding: 32px 24px 0;
  display: flex; gap: 12px;
}
.dest-search-bar input {
  flex: 1; padding: 12px 20px; border: 1.5px solid var(--gray-border);
  border-radius: 10px; font-size: 14px; background: #fff;
}
.dest-search-bar input:focus { border-color: var(--yellow); }
.btn-search-sm {
  padding: 12px 24px; background: var(--yellow); color: #1a1a1a;
  font-weight: 700; font-size: 14px; border-radius: 10px;
  transition: background 0.2s;
}
.btn-search-sm:hover { background: var(--yellow-dark); }
.dest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 32px auto; padding: 0 24px;
}
.dest-list-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.dest-list-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dest-list-img { height: 180px; position: relative; }
.dest-list-img img { height: 100%; }
.dest-rating-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.dest-list-body { padding: 16px; }
.dest-list-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dest-list-loc { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.dest-list-desc { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 12px; }
.dest-list-footer { display: flex; justify-content: space-between; align-items: center; }
.dest-list-price { font-size: 13px; color: var(--gray); }
.btn-detail { font-size: 13px; font-weight: 600; color: var(--yellow-dark); transition: color 0.2s; }
.btn-detail:hover { color: var(--black); }

/* ===== 상세 페이지 ===== */
.detail-hero { height: 360px; position: relative; margin-top: 64px; }
.detail-hero img { height: 100%; }
.detail-hero-overlay {
  position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.6));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 40px;
}
.detail-hero-title { font-size: 28px; font-weight: 700; color: #fff; }
.detail-hero-loc { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.detail-body { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.detail-section { margin-bottom: 40px; }
.detail-section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-border); }
.detail-desc { font-size: 14px; color: var(--gray); line-height: 1.8; }
.rating-display { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rating-num { font-size: 40px; font-weight: 700; }
.stars { color: var(--yellow); font-size: 20px; letter-spacing: 2px; }
.stars-sm { color: var(--yellow); font-size: 16px; }
.rating-count { font-size: 13px; color: var(--gray); }
.review-write { background: var(--gray-light); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.review-write-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.review-stars { display: flex; gap: 4px; margin-bottom: 12px; }
.review-stars span { font-size: 24px; color: #ddd; cursor: pointer; transition: color 0.15s; }
.review-stars span.filled, .review-stars span:hover { color: var(--yellow); }
.review-write textarea {
  width: 100%; height: 90px; padding: 12px; border: 1.5px solid var(--gray-border);
  border-radius: 8px; resize: none; font-size: 14px; margin-bottom: 12px;
}
.review-write textarea:focus { border-color: var(--yellow); }
.btn-review {
  padding: 10px 24px; background: var(--yellow); color: #1a1a1a;
  font-weight: 700; font-size: 14px; border-radius: 8px;
}
.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { display: flex; gap: 14px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.review-date { font-size: 12px; color: var(--gray); }
.review-text { font-size: 13px; color: var(--gray); margin-top: 6px; line-height: 1.7; }
.travel-info { display: flex; gap: 32px; }
.travel-info-item { display: flex; align-items: flex-start; gap: 10px; }
.travel-info-icon { font-size: 20px; }
.travel-info-label { font-size: 12px; color: var(--gray); }
.travel-info-val { font-size: 14px; font-weight: 600; }
.btn-add-schedule {
  display: block; width: 100%; padding: 16px;
  background: var(--yellow); color: #1a1a1a; font-size: 16px; font-weight: 700;
  border-radius: 12px; text-align: center; margin-top: 40px;
  transition: background 0.2s, transform 0.1s;
}
.btn-add-schedule:hover { background: var(--yellow-dark); transform: translateY(-1px); }

/* ===== 로그인 / 회원가입 ===== */
.auth-page {
  min-height: 100vh; background: #b8a898;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-back { align-self: flex-start; margin: 24px 0 0 40px; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; }
.auth-back:hover { text-decoration: underline; }
.auth-card {
  background: #fff; border-radius: 16px; padding: 40px 40px 36px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--gray); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-border);
  border-radius: 8px; font-size: 14px; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--yellow); }
.btn-full {
  width: 100%; padding: 13px; background: var(--yellow); color: #1a1a1a;
  font-size: 15px; font-weight: 700; border-radius: 9px; margin-top: 8px;
  transition: background 0.2s;
}
.btn-full:hover { background: var(--yellow-dark); }
.auth-options { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 13px; color: var(--gray); }
.auth-link { color: var(--yellow-dark); font-weight: 600; cursor: pointer; }
.auth-divider { border: none; border-top: 1.5px solid var(--gray-border); margin: 20px 0; }
.btn-outline-full {
  width: 100%; padding: 12px; background: #fff; color: #1a1a1a;
  font-size: 14px; font-weight: 600; border-radius: 9px; border: 1.5px solid var(--gray-border);
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.btn-outline-full:hover { border-color: var(--yellow); background: var(--yellow-light); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray); }

/* ===== 마이페이지 ===== */
.mypage-hero {
  background: var(--yellow); padding: 100px 40px 40px;
  display: flex; align-items: center; gap: 24px;
}
.mypage-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.mypage-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; flex-shrink: 0;
}
.mypage-username { font-size: 26px; font-weight: 700; }
.mypage-body { max-width: 720px; margin: 32px auto; padding: 0 24px 80px; }
.search-bar-my { display: flex; gap: 10px; margin-bottom: 32px; }
.search-bar-my input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--gray-border); border-radius: 8px; font-size: 14px; }
.search-bar-my input:focus { border-color: var(--yellow); }
.btn-sm { padding: 11px 20px; background: var(--yellow); color: #1a1a1a; font-weight: 700; font-size: 14px; border-radius: 8px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.menu-item {
  background: #fff; border: 1.5px solid var(--gray-border); border-radius: var(--radius);
  padding: 20px 18px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.menu-item:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.menu-item-left { display: flex; align-items: center; gap: 10px; }
.menu-item-icon { font-size: 20px; }
.menu-item-label { font-size: 14px; font-weight: 600; }
.menu-item-arrow { font-size: 18px; color: var(--gray); }
.menu-item.danger { border-color: #ffcccc; }
.menu-item.danger:hover { border-color: #ff4444; }
.menu-item.danger .menu-item-label { color: #cc0000; }

/* ===== 숨김/보임 ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .cards-3, .dest-cards, .dest-grid, .footer-inner, .menu-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-content, .search-box { padding: 32px 20px; margin: 16px 20px 0; }
  .navbar { padding: 0 20px; }
  .navbar-links { gap: 16px; }
}
