:root {
  --cream: #F5F0E8;
  --cream2: #EDE6D6;
  --sand: #D4C9B0;
  --gold: #B8953A;
  --gold-light: #E8D5A0;
  --ink: #1A1612;
  --ink2: #3D352A;
  --ink3: #6B5E4E;
  --jade: #2D6B5E;
  --jade-light: #C8E0DA;
  --lotus: #8B3A5E;
  --lotus-light: #E8C8D8;
  --sky: #3A6B8B;
  --sky-light: #C8D8E8;
  --white: #FDFAF5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.82rem; color: var(--ink3); text-decoration: none;
  font-weight: 400; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  border: none; border-radius: 40px;
  padding: 8px 20px; font-size: 0.8rem;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--ink2); }

/* ---- HERO ---- */
.hero {
  margin-top: 60px;
  min-height: calc(90vh - 60px);   /* 고정 height → 내용 따라 늘어남 */
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: start;              /* 지도는 상단 고정 */
  position: relative;
  isolation: isolate;
}
.hero-left {
  padding: 6rem 4rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(90vh - 60px);  /* 내용 짧을 땐 중앙, 길면 늘어남 */
  position: relative; z-index: 2;
}

/* ---- 목록 패널 (바텀 시트) ---- */
.map-list-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 62%; z-index: 1000;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 32px rgba(0,0,0,.18);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-list-panel.open { transform: translateY(0); }
/* 드래그 핸들 */
.mlp-handle {
  display: flex; justify-content: center;
  padding: 10px 0 4px; flex-shrink: 0;
  cursor: grab; background: var(--white);
}
.mlp-handle-bar {
  width: 40px; height: 4px;
  background: var(--sand); border-radius: 2px;
}
.mlp-header {
  padding: 8px 14px 10px; border-bottom: 1px solid var(--cream2);
  display: flex; align-items: center; gap: 8px;
  background: var(--white); flex-shrink: 0;
}
.mlp-controls { display: flex; gap: 6px; flex: 1; }
.mlp-toggle {
  display: flex; background: rgba(0,0,0,.06);
  border-radius: 16px; padding: 2px; gap: 2px;
}
.mlp-gps {
  font-size: 0.72rem; color: var(--ink3);
  padding: 5px 14px; background: var(--cream2);
  border-bottom: 1px solid var(--sand); flex-shrink: 0;
}
.mlp-items {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
}
.mlp-spot-card {
  display: flex; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--cream2);
  cursor: pointer; transition: background .15s; align-items: flex-start;
  flex-shrink: 0;
}
.mlp-spot-card:hover { background: var(--cream); }
.mlp-spot-thumb {
  width: 62px; height: 62px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: var(--cream2);
}
.mlp-spot-temple {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.mlp-spot-exp {
  font-size: 0.72rem; color: var(--ink3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlp-spot-meta {
  display: flex; gap: 6px; margin-top: 4px;
  font-size: 0.7rem; color: var(--ink3); align-items: center; flex-wrap: wrap;
}
.mlp-spot-dist { color: var(--jade); font-weight: 600; }
.hero-kicker {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 12px;
}
.hero-kicker::after {
  content: ''; flex: 1; max-width: 40px;
  height: 1px; background: var(--gold);
}
.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title strong {
  font-weight: 600;
  color: var(--jade);
}
.hero-sub {
  font-size: 1rem; color: var(--ink3);
  line-height: 1.8; max-width: 400px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; align-items: center; }
.btn-primary {
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 50px;
  padding: 14px 32px; font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; font-weight: 400;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { background: var(--jade); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--sand); border-radius: 50px;
  padding: 14px 32px; font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; font-weight: 400;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-feed {
  background: var(--jade-light); color: var(--jade);
  border: 1px solid var(--jade-light); border-radius: 50px;
  padding: 14px 28px; font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none; font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.btn-feed:hover { background: var(--jade); color: white; border-color: var(--jade); }
/* ---- 법문 인용구 ---- */
.dharma-quote {
  margin: 1.8rem 0 0;
  padding: 1rem 0 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  max-width: 380px;
  animation: fadeUp 0.6s ease;
}
.dharma-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem; font-weight: 300;
  color: var(--ink2); line-height: 1.8;
  letter-spacing: 0.01em;
  font-style: italic;
}
.dharma-source {
  margin-top: 6px;
  font-size: 0.72rem; color: var(--gold);
  font-weight: 400; letter-spacing: 0.08em;
}

/* ---- AI 자연어 큐레이션 (hero) ---- */
.hero-ai {
  margin-top: 2rem; max-width: 460px;
  background: var(--white); border: 1px solid var(--sand);
  border-radius: 18px; padding: 1.3rem 1.4rem;
  box-shadow: 0 8px 28px rgba(26,22,18,0.06);
  animation: fadeUp 0.7s ease;
}
.hero-ai-title {
  font-family: 'Noto Serif KR', serif; font-size: 1.05rem;
  color: var(--ink); font-weight: 600; margin-bottom: 4px;
}
.hero-ai-sub { font-size: 0.78rem; color: var(--ink3); margin-bottom: 12px; line-height: 1.5; }
.hero-ai-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--sand); background: var(--cream);
  color: var(--ink); font-family: inherit; font-size: 0.88rem;
  resize: vertical; box-sizing: border-box; margin-bottom: 10px;
}
.hero-ai-input:focus { outline: none; border-color: var(--jade); background: var(--white); }
.hero-ai-input::placeholder { color: var(--ink3); }
.hero-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hero-ai-chip {
  padding: 6px 11px; border-radius: 16px; font-size: 0.72rem;
  border: 1px solid var(--sand); background: var(--cream);
  color: var(--ink2); cursor: pointer; transition: all 0.18s;
}
.hero-ai-chip:hover { background: var(--jade-light); border-color: var(--jade); color: var(--jade); }
.hero-ai-btn {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: var(--jade); color: white; font-family: inherit;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.hero-ai-btn:hover:not(:disabled) { background: var(--ink); }
.hero-ai-btn:disabled { opacity: 0.55; cursor: default; }
.curation-loading { text-align: center; padding: 1.4rem; color: var(--ink3); font-size: 0.85rem; }
.curation-error { text-align: center; padding: 1.1rem; color: var(--lotus); font-size: 0.83rem; }
.curation-rec-title { font-size: 0.85rem; color: var(--jade); margin: 1.2rem 0 0.7rem; font-weight: 600; }
.curation-rec-card {
  display: flex; gap: 11px; padding: 10px; border-radius: 13px;
  background: var(--cream); border: 1px solid var(--sand);
  margin-bottom: 9px; cursor: pointer; transition: all 0.2s;
}
.curation-rec-card:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,22,18,0.08); }
.rec-thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--cream2); }
.rec-body { flex: 1; min-width: 0; }
.rec-name { font-family: 'Noto Serif KR', serif; font-size: 0.98rem; color: var(--ink); margin-bottom: 2px; }
.rec-loc { font-size: 0.7rem; color: var(--ink3); margin-bottom: 5px; }
.rec-reason { font-size: 0.8rem; color: var(--ink2); line-height: 1.55; }

.hero-stats {
  margin-top: 3rem;
  display: flex; gap: 2.5rem;
}
.stat { }
.stat-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--ink3); margin-top: 4px;
  letter-spacing: 0.05em;
}

.hero-right {
  position: relative;
  background: var(--cream2);
  height: calc(90vh - 60px);   /* 고정 — hero-left가 길어져도 지도는 안 늘어남 */
  align-self: start;
  overflow: hidden; /* 바텀시트 translateY(100%) 클립 */
}
.hero-map-preview {
  width: 100%; height: 100%;
  position: relative;
}
.map-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, var(--jade-light) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, var(--lotus-light) 0%, transparent 40%),
    var(--cream2);
}
.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 32px rgba(26,22,18,0.08);
  animation: float 4s ease-in-out infinite;
}
.floating-card.c1 { top: 15%; left: 10%; width: 200px; animation-delay: 0s; }
.floating-card.c2 { top: 45%; right: 8%; width: 220px; animation-delay: 1.5s; }
.floating-card.c3 { bottom: 20%; left: 20%; width: 180px; animation-delay: 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.fc-emoji { font-size: 1.5rem; margin-bottom: 6px; }
.fc-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.fc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.fc-tag {
  font-size: 0.65rem; padding: 2px 8px;
  border-radius: 20px; color: var(--ink3);
  background: var(--cream2);
}
.fc-tag.jade { background: var(--jade-light); color: var(--jade); }
.fc-tag.lotus { background: var(--lotus-light); color: var(--lotus); }
.map-marker {
  position: absolute;
  width: 36px; height: 36px;
  background: var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.map-marker:hover { transform: rotate(-45deg) scale(1.1); }
.map-marker span { transform: rotate(45deg); font-size: 1rem; }
.map-marker.m1 { top: 22%; left: 28%; }
.map-marker.m2 { top: 38%; right: 25%; background: var(--jade); }
.map-marker.m3 { bottom: 35%; left: 40%; background: var(--lotus); }
.map-marker.m4 { top: 60%; right: 35%; background: var(--gold); }

/* ---- FILTERS SECTION ---- */
.section {
  padding: 5rem 4rem;
  max-width: 1400px; margin: 0 auto;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem; font-weight: 400;
  color: var(--ink); letter-spacing: -0.02em;
}
.section-sub { font-size: 0.85rem; color: var(--ink3); }
.filter-strip {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--sand);
  background: var(--white);
  font-size: 0.82rem;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.filter-chip .chip-icon { margin-right: 6px; }

/* ---- 페이지네이션 ---- */
.spots-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 2.5rem; flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--sand); background: var(--white);
  border-radius: 10px; cursor: pointer;
  font-size: 0.85rem; color: var(--ink2);
  transition: all 0.18s; font-family: inherit;
}
.page-btn:hover:not(:disabled) { border-color: var(--jade); color: var(--jade); }
.page-btn.active {
  background: var(--jade); color: var(--white); border-color: var(--jade);
  font-weight: 600;
}
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-ellipsis { color: var(--ink3); padding: 0 4px; }

/* ---- SPOT CARDS ---- */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.spot-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex; flex-direction: column;  /* footer 바닥 정렬용 */
  height: 100%;                            /* 같은 행 카드 높이 통일 */
}
.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,22,18,0.1);
}
.spot-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.spot-bg { position: absolute; inset: 0; }
/* 사진 없을 때 이모지+사찰명 (그라데이션 위) */
.spot-noimg {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.95); padding: 0 16px; text-align: center;
}
.noimg-emoji { font-size: 2.6rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }
.noimg-name {
  font-family: 'Noto Serif KR', serif; font-size: 1.05rem; font-weight: 500;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3); line-height: 1.3;
}
.spot-cover-img {
  position: absolute; inset: 0; z-index: 2;  /* 사진 있으면 noimg 덮음 */
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.spot-card-img.noimg .spot-cover-img { display: none; }  /* 로드 실패 시 이모지 노출 */
.spot-card:hover .spot-cover-img { transform: scale(1.04); }
.spot-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 0.65rem; padding: 4px 10px;
  border-radius: 20px; font-weight: 500;
  letter-spacing: 0.05em;
}
.badge-hip { background: var(--ink); color: var(--cream); }
.badge-heal { background: var(--jade-light); color: var(--jade); }
.badge-temple { background: var(--lotus-light); color: var(--lotus); }
.badge-goods { background: var(--gold-light); color: #7A5A1A; }
.spot-card-body {
  padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; flex: 1;  /* footer를 바닥으로 밀기 */
}
.spot-temple {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.spot-exp-name {
  font-size: 0.78rem; color: var(--jade);
  font-weight: 500; margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.spot-mood {
  font-size: 0.8rem; color: var(--ink3);
  line-height: 1.6; margin-bottom: 12px;
  font-weight: 300;
}
.spot-hashtags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.hashtag {
  font-size: 0.7rem; color: var(--jade);
  font-weight: 500; letter-spacing: 0.01em;
}
.spot-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--cream2); gap: 8px;
  margin-top: auto;  /* 설명·태그 길이와 무관하게 항상 카드 바닥에 정렬 */
}
.spot-location-wrap {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.spot-location { font-size: 0.75rem; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-reserve {
  font-size: 0.75rem; padding: 6px 14px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--ink2); cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}
.spot-reserve:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---- MBTI SECTION ---- */
.mbti-section {
  background: linear-gradient(160deg, #1A1612 0%, #2A1F18 50%, #1A1612 100%);
  color: var(--cream);
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
}
.mbti-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,149,58,.08) 0%, transparent 60%);
  pointer-events: none;
}
.mbti-section::before {
  content: '卍';
  position: absolute;
  font-size: 30rem;
  color: rgba(255,255,255,0.02);
  right: -5rem; top: -5rem;
  font-family: serif;
}
.mbti-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.mbti-left .section-title { color: var(--cream); }
.mbti-left .section-sub-text {
  color: rgba(245,240,232,0.6);
  font-size: 0.95rem; line-height: 1.8;
  margin: 1.5rem 0 2rem;
  font-weight: 300;
}
.mbti-quiz {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
}
.quiz-step { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 1rem; }
.quiz-q {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem; color: var(--cream);
  line-height: 1.6; margin-bottom: 1.5rem;
  font-weight: 300;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(245,240,232,0.8);
  font-size: 0.85rem;
  cursor: pointer; text-align: left;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}
.quiz-opt:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); color: var(--cream); }
.quiz-opt.selected { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }
.quiz-progress {
  display: flex; gap: 6px; margin-top: 1.5rem;
}
.prog-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}
.prog-dot.done { background: var(--gold); }

/* ---- QUIZ RESULT ---- */
.quiz-result {
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.result-type-badge {
  font-size: 0.7rem; letter-spacing: 0.15em; color: var(--gold);
  margin-bottom: 0.8rem;
}
.result-emoji { font-size: 2.8rem; margin-bottom: 0.5rem; line-height: 1; }
.result-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem; color: var(--cream);
  line-height: 1.5; margin-bottom: 0.8rem; font-weight: 400;
}
.result-desc {
  font-size: 0.82rem; color: rgba(245,240,232,0.65);
  line-height: 1.7; margin-bottom: 1.2rem; font-weight: 300;
}
.result-spots-label {
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 0.5rem;
}
.result-spots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.result-spot-tag {
  font-size: 0.72rem; padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(245,240,232,0.8);
}
.result-spot-link {
  font-size: 0.72rem; padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(245,240,232,0.9);
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.result-spot-link:hover {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}
.quiz-next-btn {
  width: 100%; padding: 12px;
  border-radius: 12px; border: none;
  background: var(--gold); color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
  margin-top: 4px;
}
.quiz-next-btn:hover { background: #d4aa4a; }
/* 큐레이션 시작 버튼 (그린 계열) */
.btn-curation-start {
  background: rgba(45,107,94,.5);
  color: var(--jade-light);
  border: 1px solid rgba(200,224,218,.4);
  border-radius: 50px;
  padding: 14px 32px; font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; font-weight: 500;
  transition: all .2s; letter-spacing: .02em;
}
.btn-curation-start:hover {
  background: var(--jade);
  color: var(--cream);
  border-color: var(--jade);
}

.quiz-retry-btn {
  width: 100%; padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(245,240,232,0.6);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
  margin-top: 8px;
}
.quiz-retry-btn:hover { border-color: var(--gold); color: var(--cream); }

/* ---- CURATION SECTION ---- */
.curation-section {
  background: linear-gradient(160deg, #183326 0%, #1F4A38 40%, #163020 100%);
  color: var(--cream);
  padding: 6rem 4rem; position: relative; overflow: hidden;
  min-height: calc(100vh - 64px);
}
.curation-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,107,94,.35) 0%, transparent 65%);
  pointer-events: none;
}
.curation-section::before {
  content: '🧭'; position: absolute;
  font-size: 26rem; left: -3rem; bottom: -5rem;
  opacity: .06; pointer-events: none;
}
.curation-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.curation-inner.show-result { grid-template-columns: 1fr; max-width: 600px; }
.curation-inner.show-result .curation-left { display: none; }
.curation-section.show-result { align-items: flex-start !important; padding-top: 4rem; overflow: visible !important; min-height: auto !important; }
.curation-section.quiz-active { align-items: flex-start !important; overflow: visible !important; }
/* quiz 진행 중: 모든 화면에서 left 숨기고 1컬럼으로 */
.curation-inner.quiz-active { grid-template-columns: 1fr; max-width: 700px; }
.curation-inner.quiz-active .curation-left { display: none; }
.curation-inner.quiz-active .curation-right { display: block !important; }
.curation-left .section-sub-text {
  color: rgba(245,240,232,.6); font-size: .95rem; line-height: 1.8;
  margin: 1.2rem 0 2rem; font-weight: 300;
}
.curation-preview-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 2.5rem; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.curation-preview-idle { text-align: center; }

/* ---- MALA SECTION (염주) ---- */
.mala-section {
  padding: 6rem 4rem;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.mala-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
}
canvas#malaCanvas {
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(26,22,18,0.1));
}
.mala-text .section-kicker {
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.mala-progress-bar {
  height: 4px; background: var(--cream2);
  border-radius: 2px; margin: 1rem 0 0.5rem;
  overflow: hidden;
}
.mala-progress-fill {
  height: 100%; width: 28%;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  border-radius: 2px;
  transition: width 0.8s ease;
}
.mala-count-label {
  font-size: 0.78rem; color: var(--ink3);
}
.mala-beads-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2rem;
}
.bead-info-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.bead-info-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.6rem; font-weight: 600; color: var(--jade);
  line-height: 1;
}
.bead-info-label { font-size: 0.73rem; color: var(--ink3); margin-top: 4px; }

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.4);
  padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
footer .logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem; color: var(--cream);
  font-weight: 300;
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,22,18,0.72); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 24px;
  max-width: 490px; width: 92%;
  overflow: hidden; animation: modalIn 0.28s ease;
  max-height: 88vh; overflow-y: auto;
}
@keyframes modalIn {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
/* 이미지/캐러셀 영역 */
.modal-media {
  height: 230px; position: relative; overflow: hidden;
  background: var(--cream2);
}
.modal-carousel-track {
  display: flex; height: 100%;
  transition: transform 0.34s cubic-bezier(0.4,0,0.2,1);
}
.modal-carousel-slide {
  min-width: 100%; height: 100%; object-fit: cover;
}
.modal-emoji-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.modal-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: white; border: none;
  padding: 6px 11px; border-radius: 5px; font-size: 1.3rem;
  cursor: pointer; z-index: 10; transition: background 0.2s;
}
.modal-carousel-btn:hover { background: rgba(0,0,0,0.65); }
.modal-carousel-btn.prev { left: 8px; }
.modal-carousel-btn.next { right: 8px; }
/* 이미지 출처 표시 (모달 바디 내, 꿀팁 아래) */
.photo-attribution {
  font-size: 0.7rem; color: var(--ink3);
  padding: 6px 0 2px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  border-top: 1px solid var(--cream2); margin-bottom: 0.6rem;
}
.photo-attribution a {
  color: var(--jade); text-decoration: none;
}
.photo-attribution a:hover { text-decoration: underline; }
.modal-cdots {
  position: absolute; bottom: 9px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 5px;
}
.modal-cdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; padding: 0;
  cursor: pointer; transition: all 0.2s;
}
.modal-cdot.active { background: white; transform: scale(1.3); }
/* 바디 */
.modal-body { padding: 1.5rem 1.8rem 1.8rem; }
.modal-temple {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; color: var(--ink);
}
.modal-exp-name {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--jade); font-weight: 500;
  background: var(--jade-light); padding: 4px 10px;
  border-radius: 20px; margin-bottom: 10px;
}
.modal-section-label {
  font-size: 0.68rem; letter-spacing: 0.14em; color: var(--gold);
  font-weight: 500; text-transform: uppercase;
  margin: 12px 0 8px;
}
.modal-exp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.insta-embeds {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px;
}
.insta-embeds .instagram-media { border-radius: 12px !important; }
.modal-insta-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.modal-insta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px; font-size: 0.75rem;
  background: linear-gradient(135deg,#f9f0ff,#fff0f9);
  border: 1px solid #e0b0e0; color: #8040a0;
  text-decoration: none; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s; white-space: nowrap;
}
.modal-insta-btn:hover { background: linear-gradient(135deg,#e040fb22,#e91e6322); border-color: #c060c0; color: #600090; }
.modal-exp-item {
  font-size: 0.82rem; color: var(--ink2); line-height: 1.5;
  background: var(--cream); border-radius: 10px;
  padding: 9px 12px;
}
.modal-desc { font-size: 0.87rem; color: var(--ink3); line-height: 1.8; margin-bottom: 1.1rem; }
.modal-tips {
  background: var(--cream); border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.tip-item { font-size: 0.8rem; color: var(--ink2); margin-bottom: 4px; display: flex; gap: 8px; }
.modal-map-links { display: flex; gap: 8px; margin-bottom: 1rem; }
.modal-map-btn {
  flex: 1; padding: 9px 0; border-radius: 10px;
  font-size: 0.78rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--sand); color: var(--ink2);
  transition: all 0.2s; font-family: 'Noto Sans KR', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.modal-map-btn.kakao:hover { background: #FFFDE6; border-color: #E8B600; }
.modal-map-btn.naver:hover { background: #E8FFF3; border-color: #03C75A; }
.map-logo-icon { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.modal-footer { display: flex; gap: 10px; }
.modal-close {
  flex: 1; padding: 12px; border: 1px solid var(--sand);
  border-radius: 12px; background: transparent; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; font-size: 0.85rem;
  color: var(--ink2); transition: all 0.2s;
}
.modal-close:hover { background: var(--cream); }
.modal-share {
  flex: 1; padding: 12px 8px; border: 1px solid var(--sand);
  border-radius: 12px; background: transparent; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; font-size: 0.85rem;
  color: var(--ink2); transition: all 0.2s; white-space: nowrap;
}
.modal-share:hover { background: var(--cream); border-color: var(--jade); color: var(--jade); }
/* 토스트 */
.app-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 12px 22px; border-radius: 24px; font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); z-index: 3000;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-detail {
  flex: 2; padding: 12px; border: none; border-radius: 12px;
  background: var(--jade); cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; font-size: 0.85rem;
  color: white; transition: background 0.2s;
}
.modal-detail:hover { background: var(--ink); }

/* ---- MAP TOOLTIP ---- */
.leaflet-tooltip.map-tooltip {
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 8px;
  padding: 4px 10px; font-size: 0.75rem;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.leaflet-tooltip.map-tooltip::before { border-top-color: var(--ink); }

/* ---- 지도 하단 목록/지도 토글 ---- */
.map-view-toggle {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; background: rgba(255,255,255,.95);
  border-radius: 20px; padding: 3px; gap: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
  backdrop-filter: blur(8px); white-space: nowrap;
}
.map-toggle-btn {
  padding: 7px 16px; border-radius: 16px; border: none;
  font-size: 0.8rem; cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400; color: var(--ink3); background: transparent; transition: all .2s;
}
.map-toggle-btn.active { background: var(--jade); color: white; }
/* ---- 지도 위 스팟 목록 패널 ---- */
.map-spot-list {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 400;
  width: 260px; background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); overflow-y: auto;
  box-shadow: 4px 0 16px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.map-spot-list-title {
  padding: 14px 16px 10px; font-size: .82rem; font-weight: 600;
  color: var(--ink3); border-bottom: 1px solid var(--cream2);
  letter-spacing: .05em; position: sticky; top: 0;
  background: rgba(255,255,255,.97);
}
.map-spot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--cream2); transition: background .15s;
}
.map-spot-item:hover { background: var(--cream); }
.map-spot-icon { font-size: 1.4rem; flex-shrink: 0; }
.map-spot-info { min-width: 0; }
.map-spot-name { font-size: .82rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-spot-meta { font-size: .72rem; color: var(--ink3); display: flex; gap: 6px; margin-top: 2px; }
.map-spot-dist { color: var(--jade); font-weight: 600; }

.map-gps-badge {
  position: absolute; bottom: 14px; left: 14px; z-index: 900;
  background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 20px;
  font-size: 0.73rem; color: var(--ink3);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); backdrop-filter: blur(6px);
}
@media (max-width: 768px) {
  .map-gps-badge { top: 14px; bottom: auto; }
}

/* ---- SPOTS CONTROL BAR ---- */
.spots-control-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 1.5rem;
  padding: 12px 16px; background: var(--white);
  border: 1px solid var(--sand); border-radius: 14px;
}
.sort-group, .view-toggle { display: flex; gap: 6px; }
.sort-btn, .view-btn {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--sand);
  background: var(--white); font-size: 0.82rem; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; transition: all .2s; color: var(--ink2);
}
.sort-btn.active, .view-btn.active { background: var(--jade); color: white; border-color: var(--jade); }
.gps-status { margin-left: auto; font-size: 0.75rem; color: var(--ink3); }
.spot-distance-badge {
  font-size: 0.7rem; color: var(--jade); font-weight: 600;
  background: var(--jade-light); padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}

/* ---- BTN CURATION (맞춤 추천 - lotus 계열로 성향 테스트와 구분) ---- */
.btn-curation {
  background: var(--lotus-light); color: var(--lotus);
  border: 1px solid var(--gold); border-radius: 50px;
  padding: 14px 28px; font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif; cursor: pointer;
  font-weight: 400; transition: all .2s; white-space: nowrap;
}
.btn-curation:hover { background: var(--lotus); color: white; border-color: var(--lotus); }

/* ---- CURATION OVERLAY ---- */
.curation-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(26,22,18,.8); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.curation-overlay.open { display: flex; }
.curation-modal {
  background: var(--ink); border-radius: 24px;
  width: 92%; max-width: 520px; padding: 2rem;
  animation: modalIn .3s ease;
  border: 1px solid rgba(255,255,255,.1);
}
.curation-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.curation-step-dots { display: flex; gap: 8px; }
.curation-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); transition: background .3s;
}
.curation-step-dot.active { background: var(--gold); }
.curation-close { background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.2rem; cursor: pointer; }
.curation-question {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.3rem; font-weight: 400;
  color: var(--cream); margin-bottom: .6rem; line-height: 1.5;
}
.curation-sub {
  font-size: .85rem; color: rgba(245,240,232,.5);
  margin-bottom: 1.5rem;
}
.curation-options { display: flex; flex-direction: column; gap: 10px; }
.curation-option {
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(245,240,232,.85); font-size: .9rem;
  cursor: pointer; text-align: left;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all .2s;
}
.curation-option:hover { background: rgba(184,149,58,.2); border-color: var(--gold); color: var(--cream); }
.curation-option.selected { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }
.curation-result { animation: fadeUp .4s ease; }
.curation-result-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem; color: var(--cream); margin-bottom: .8rem;
}
.curation-result-spots { display: flex; flex-direction: column; gap: 8px; margin: 1rem 0; }
.curation-spot-btn {
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--cream); text-align: left; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; font-size: .88rem;
  transition: all .2s; display: flex; justify-content: space-between; align-items: center;
}
.curation-spot-btn:hover { background: rgba(45,107,94,.3); border-color: var(--jade); }
.curation-restart-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: rgba(245,240,232,.6); font-family: 'Noto Sans KR', sans-serif;
  font-size: .85rem; cursor: pointer; transition: all .2s; margin-top: 8px;
}
.curation-restart-btn:hover { border-color: var(--gold); color: var(--cream); }

/* ---- HERO MAP TOUCH ---- */
.hero-right, #heroMap {
  touch-action: pan-x pan-y;
}
/* 목록 패널은 세로 스크롤만, 맵으로 이벤트 전파 차단 */
.map-list-panel {
  touch-action: pan-y;
}
.mlp-items {
  touch-action: pan-y;
  overscroll-behavior: contain; /* 끝에서 맵으로 스크롤 누출 방지 */
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .mbti-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .curation-inner { grid-template-columns: 1fr; gap: 0; }
  .curation-section { padding: 2.5rem 1.5rem; }
  /* 모바일: 나침반(right)은 idle 상태에서 숨기고, left 패널만 한 화면에 표시 */
  .curation-section { min-height: calc(100dvh - 64px); }
  .curation-right { display: none; }  /* idle 상태만 숨김, quiz-active는 전역 규칙으로 표시 */
  .curation-stage { min-height: auto; }
  .mala-section { grid-template-columns: 1fr; gap: 2rem; }

  /* 태블릿(아이패드 세로 등): hero 1단으로 — 2단이 좁아 답답한 문제 */
  .hero { grid-template-columns: 1fr; min-height: auto; align-items: stretch; }
  .hero-left { min-height: auto; padding: 4rem 3rem 2.5rem; order: 1; }
  .hero-right { height: 58vh; min-height: 420px; order: 2; }
  .hero-ai { max-width: 100%; }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-cta { padding: 7px 14px; font-size: 0.75rem; }

  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-left { padding: 3rem 1.5rem 2rem; order: 1; }
  .hero-right { height: 72vh; min-height: 470px; order: 2; }
  .map-list-panel { height: 72%; }
  .hero-sub { max-width: 100%; }
  .hero-btns { flex-wrap: wrap; gap: 0.6rem; }
  /* 4개 버튼 2×2 균등 크기로 통일 (패딩·폰트 제각각 방지) */
  .hero-btns > .btn-primary,
  .hero-btns > .btn-ghost,
  .hero-btns > .btn-curation,
  .hero-btns > .btn-feed {
    flex: 1 1 calc(50% - 0.3rem);
    display: flex; align-items: center; justify-content: center;
    padding: 13px 10px; font-size: 0.82rem;
    box-sizing: border-box; white-space: nowrap; gap: 4px;
  }
  .hero-stats { gap: 1.5rem; margin-top: 2rem; }
  .stat-num { font-size: 1.5rem; }

  .section { padding: 3rem 1.5rem; }
  .section-header { flex-direction: column; gap: 0.5rem; }
  .mbti-section { padding: 4rem 1.5rem; }
  .mala-section { padding: 3rem 1.5rem; gap: 2rem; }
  .mala-canvas-wrap { padding: 1rem; }
  canvas#malaCanvas { width: 280px !important; height: 280px !important; }

  .filter-strip { gap: 6px; }
  .filter-chip { padding: 8px 14px; font-size: 0.76rem; }
  .spots-grid { grid-template-columns: 1fr; }

  footer {
    flex-direction: column; gap: 1rem;
    text-align: center; padding: 2rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-left { padding: 2rem 1rem 1.5rem; }
  .hero-right { height: 68vh; min-height: 420px; }
  .map-list-panel { height: 78%; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo span { font-size: 1.2rem; }
  .hero-stats { flex-wrap: wrap; }
  .mala-beads-info { grid-template-columns: 1fr 1fr; }
}

/* ============ 멀티페이지: 홈 랜딩 + 페이지 레이아웃 ============ */
.hero-home { grid-template-columns: 1fr; min-height: calc(100vh - 64px); align-items: center; height: auto; }
.hero-home .hero-left { max-width: 720px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.hero-home .hero-sub { margin-left: auto; margin-right: auto; }
.hero-home .dharma-quote { margin-left: 0; margin-right: auto; text-align: left; max-width: 100%; }
.hero-home .dharma-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.home-menu-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .home-menu-3 { grid-template-columns: 1fr; } }

/* ===== 맞춤 큐레이션 (페이지 인라인 단계+결과) ===== */
.curation-stage { min-height: 300px; display: flex; align-items: center; justify-content: center; width: 100%; }
.curation-stage-idle { text-align: center; color: rgba(245,240,232,.7); }
.cstep { width: 100%; }
.cstep-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 1.5rem; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .2s; }
.cdot.on { background: var(--jade-light, #8fd4c2); }
.cstep-q { font-family: 'Noto Serif KR', serif; font-size: 1.3rem; color: var(--cream, #f5f0e8); text-align: center; margin-bottom: .5rem; }
.cstep-sub { font-size: .85rem; color: rgba(245,240,232,.55); text-align: center; margin-bottom: 1.5rem; }
.cstep-options { display: flex; flex-direction: column; gap: .7rem; }
.cstep-opt { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(200,224,218,.25); background: rgba(45,107,94,.25); color: var(--cream, #f5f0e8); font-size: .95rem; cursor: pointer; transition: all .15s; text-align: left; }
.cstep-opt:hover { background: rgba(45,107,94,.5); transform: translateY(-1px); }
.cstep-opt.selected { background: var(--jade, #2d6b5e); border-color: var(--jade-light, #8fd4c2); }
.cstep-back { margin-top: 1.2rem; background: none; border: none; color: rgba(245,240,232,.6); font-size: .85rem; cursor: pointer; }
.cstep-back:hover { color: var(--cream, #f5f0e8); }
.cresult-title { font-family: 'Noto Serif KR', serif; font-size: 1.25rem; color: var(--cream, #f5f0e8); text-align: center; }
.cresult-sub { font-size: .8rem; color: rgba(245,240,232,.5); text-align: center; margin: .4rem 0 1.2rem; }
.cresult-list { display: flex; flex-direction: column; gap: .6rem; }
.cresult-card { text-align: left; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(200,224,218,.2); background: rgba(255,255,255,.05); color: var(--cream, #f5f0e8); cursor: pointer; transition: all .15s; width: 100%; }
.cresult-card:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.cresult-name { font-size: 1rem; font-weight: 600; }
.cresult-loc { font-size: .78rem; color: rgba(245,240,232,.55); margin-top: 3px; }
.cresult-transit { font-size: .78rem; color: var(--jade-light, #8fd4c2); margin-top: 3px; }
.cresult-empty { text-align: center; color: rgba(245,240,232,.5); padding: 1rem; }
.cresult-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.2rem; }

/* ===== 스팟 정렬 + 정류장/리뷰 배지 ===== */
.spot-sort-bar { display: flex; gap: 8px; margin-bottom: 1rem; }
.spot-sort-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(0,0,0,.12); background: #fff; color: var(--ink3, #8a8278); font-size: .82rem; cursor: pointer; transition: all .15s; }
.spot-sort-btn.active { background: var(--ink, #1a1612); color: #fff; border-color: var(--ink, #1a1612); }
.spot-transit { font-size: .76rem; color: var(--jade, #2d6b5e); margin: 6px 0 2px; font-weight: 500; }
.spot-transit.car { color: var(--ink3, #8a8278); }
.spot-review-badge { font-size: .72rem; color: var(--gold, #b8953a); }

/* ===== 스팟 카드 이미지 캐러셀 (모바일 스와이프) ===== */
.spot-carousel { position: absolute; inset: 0; display: flex; overflow-x: scroll; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; z-index: 1; background: #111; overscroll-behavior-x: contain; }
.spot-carousel::-webkit-scrollbar { display: none; }
.spot-carousel .spot-cover-img { position: static; inset: auto; flex: 0 0 100%; min-width: 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; display: block; transform: none !important; transition: none; }
.spot-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.spot-carousel-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s; }
.spot-carousel-dots span.on { background: #fff; }

/* 지도 목록 카드의 리뷰수/정류장 */
.mlp-spot-review { color: var(--gold, #b8953a); font-size: .72rem; }
.mlp-spot-transit { font-size: .72rem; color: var(--jade, #2d6b5e); margin-top: 3px; }
.mlp-spot-transit.car { color: var(--ink3, #8a8278); }

/* 지도 현위치 GPS 버튼 (네이버풍) */
.map-gps-fab { position: absolute; right: 14px; bottom: 96px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--jade, #2d6b5e); transition: background .15s, color .15s; }
.map-gps-fab:hover { background: #f6f6f6; }
.map-gps-fab:active { transform: scale(0.95); }
.map-gps-fab.loading { color: #94a3b8; animation: gps-spin 1s linear infinite; }
.map-gps-fab.active  { background: #3B82F6; color: #fff; border-color: #3B82F6; }
@keyframes gps-spin { to { transform: rotate(360deg); } }

/* ---- 공유 시트 (iOS 스타일) ---- */
.share-sheet {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.share-sheet.open { pointer-events: auto; opacity: 1; }
.share-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(3px);
}
.share-sheet-panel {
  position: relative; width: 100%; max-width: 560px;
  background: #fff; border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.32,1,.33,1);
}
.share-sheet.open .share-sheet-panel { transform: translateY(0); }
.share-sheet-handle {
  width: 36px; height: 4px; background: #e0e0e0;
  border-radius: 2px; margin: 12px auto 0;
}
.share-sheet-meta {
  padding: 14px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.share-sheet-name {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  font-family: 'Noto Serif KR', serif; line-height: 1.4;
}
.share-sheet-sub {
  font-size: 0.73rem; color: var(--ink3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-sheet-grid {
  display: flex; gap: 4px; padding: 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.share-sheet-grid::-webkit-scrollbar { display: none; }
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 76px; border: none; background: none; cursor: pointer;
  padding: 8px; border-radius: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.15s;
}
.share-option:hover { background: var(--cream, #f7f4ef); }
.share-option:active { background: rgba(0,0,0,.06); }
.share-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.share-option > span {
  font-size: 0.72rem; color: var(--ink); white-space: nowrap;
}
.share-sheet-cancel {
  display: block; width: calc(100% - 32px); margin: 6px 16px 16px;
  padding: 16px; background: #f5f5f5; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.15s;
}
.share-sheet-cancel:hover, .share-sheet-cancel:active { background: #e8e8e8; }

/* 모달 우상단 X 닫기 버튼 */
.modal { position: relative; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 20; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-x:hover { background: rgba(0,0,0,.7); }
.home-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 1.5rem 1.3rem; border-radius: 18px; text-decoration: none; text-align: left;
  background: var(--card, #fff); border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.home-card-emoji { font-size: 1.8rem; }
.home-card-title { font-size: 1.05rem; font-weight: 600; color: var(--ink, #1a1612); }
.home-card-sub { font-size: 0.8rem; color: var(--ink3, #8a8278); }

/* 지도 전용 페이지 */
.map-page { position: relative; margin-top: 56px; height: calc(100vh - 56px); width: 100%; }
.map-page .hero-right { height: 100%; width: 100%; }

/* 단독 페이지 공통 (스팟/AI/큐레이션) */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem 4rem; min-height: calc(100vh - 64px); }
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { font-family: 'Noto Serif KR', serif; font-size: 1.8rem; font-weight: 400; color: var(--ink, #1a1612); }
.page-head p { font-size: 0.9rem; color: var(--ink3, #8a8278); margin-top: 0.4rem; }

@media (max-width: 600px) {
  .home-menu { gap: 0.7rem; }
  .home-card { padding: 1.1rem 0.9rem; }
  /* 홈을 스크롤 없이 한 화면에 */
  .hero-home { min-height: calc(100vh - 56px); display: flex; flex-direction: column; justify-content: flex-start; }
  .hero-home .hero-left { width: 100%; padding: 1rem 1.1rem 1.1rem; }
  .hero-home .hero-kicker { margin-bottom: 0.3rem; font-size: 0.68rem; }
  .hero-home .hero-title { font-size: 1.4rem; margin-bottom: 0.3rem; line-height: 1.22; }
  .hero-home .hero-sub { display: none; }
  .hero-home .dharma-quote { margin: 0.4rem 0 0.5rem; font-size: 0.8rem; }
  .hero-home .hero-ai { margin-top: 2rem; padding: 0.8rem; }
  .hero-home .home-menu { margin-top: 1.6rem; }
  .hero-home .hero-ai-sub { display: none; }
  .hero-home .hero-ai-chips { display: none; }
  .hero-home .hero-ai-input { min-height: 34px; }
  .hero-home .home-menu { margin-top: 0.9rem; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .hero-home .home-card { padding: 0.75rem 0.4rem; text-align: center; align-items: center; }
  .hero-home .home-card-sub { display: none; }
  .hero-home .home-card-emoji { font-size: 1.45rem; }
  .hero-home .home-card-title { font-size: 0.78rem; }
  .hero-home ~ footer { display: none; }  /* 홈 한 화면 — footer는 모바일에서 숨김 */
}
