@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --primary: #1E5EFF;
  --primary-hover: #1549D6;
  --secondary: #A9C8F5;
  --primary-soft: #E8F1FF;
  --bg-grad-top: #F2F9FF;
  --bg-grad-bot: #DDEBFF;
  --surface: #FFFFFF;
  --text-main: #333333;
  --text-sub: #888888;
  --divider-quick: #EEEEEE;
  --divider-row: #F0F0F0;
  --border-light: #E6EEF8;
  --shadow-quick: 0 4px 20px rgba(30, 94, 255, 0.08);
  --shadow-card: 0 6px 22px rgba(30, 94, 255, 0.07);
  --shadow-frame: 0 24px 64px rgba(30, 94, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-bot) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100dvh;
  word-break: keep-all;
}

[dir="rtl"] {
  word-break: normal;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* ================= PC 좌측 소개 영역 + 중앙 모바일 프레임 ================= */
.outer-layout {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 959px) {
  .outer-layout {
    padding: 0;
  }
}

.desktop-side-intro {
  display: none;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  padding: 48px 0;
}

@media (min-width: 960px) {
  .desktop-side-intro {
    display: flex;
  }
  .app-shell {
    margin: 22px 0;
    border-radius: 30px;
    height: calc(100dvh - 44px);
    border: 1px solid rgba(169, 200, 245, 0.45);
  }
}

.intro-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(30, 94, 255, 0.08);
}

.intro-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.intro-title span {
  color: var(--primary);
}

.intro-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.7;
}

.intro-feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.intro-feature-item {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(30, 94, 255, 0.06);
}

.intro-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-qr-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.intro-qr-card img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 1px solid var(--divider-quick);
}

/* ================= 메인 모바일 포털 쉘 ================= */
.app-shell {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-bot) 100%);
  box-shadow: var(--shadow-frame);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
}

/* 상단 미니멀 헤더 */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(242, 249, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(169, 200, 245, 0.3);
  z-index: 30;
  min-height: 58px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 94, 255, 0.24);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.util-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.util-link-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.util-divider {
  color: var(--secondary);
  font-size: 12px;
}

.lang-dropdown-wrap {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 94, 255, 0.12);
  min-width: 148px;
  padding: 6px;
  z-index: 60;
  display: none;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lang-code-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-option:hover, .lang-option.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* 본문 스크롤 영역 */
.view-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 96px;
  scroll-behavior: smooth;
}

/* ================= 메인 홈 화면 (리뉴얼 핵심) ================= */
.home-container {
  padding: 36px 20px 28px;
}

.home-section {
  margin-bottom: 52px;
}

.home-section:last-child {
  margin-bottom: 16px;
}

/* 상단 히어로 영역: 밝은 하늘색 그라데이션 위 가운데 정렬 2줄 제목 + 흰색 챗봇 바 */
.hero-header-block {
  text-align: center;
  margin-bottom: 24px;
}

.hero-sub-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.45;
  margin-bottom: 6px;
}

.hero-main-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero-chat-pill {
  width: 100%;
  background: var(--surface);
  border: none;
  border-radius: 999px;
  padding: 13px 16px 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(30, 94, 255, 0.08);
  transition: box-shadow 0.2s ease, transform 0.16s ease;
}

.hero-chat-pill:hover {
  box-shadow: 0 6px 24px rgba(30, 94, 255, 0.13);
  transform: translateY(-1px);
}

.hero-chat-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.hero-chat-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-chat-text {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-chat-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-chat-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hero-chat-mic-btn:hover {
  background: #DCE9FF;
  transform: scale(1.05);
}

.hero-chat-bubble-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 6대 퀵메뉴 통합 화이트 카드 (3x2 그리드 + 1px #EEEEEE 세로 구분선 + 투톤 SVG) */
.quick-card-outer {
  margin-top: 24px;
}

.quick-menu-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-quick);
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, padding 0.28s ease;
  max-height: 360px;
  opacity: 1;
  padding: 6px 0;
}

.quick-menu-card.folded {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.quick-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-grid-item {
  background: none;
  border: none;
  padding: 20px 8px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border-inline-end: 1px solid var(--divider-quick);
}

/* 3열마다 오른쪽(RTL에서는 왼쪽) 세로 구분선 제거 */
.quick-grid-item:nth-child(3n) {
  border-inline-end: none;
}

/* 1행과 2행 사이 옅은 가로 구분선 */
.quick-grid-item:nth-child(-n+3) {
  border-bottom: 1px solid var(--divider-quick);
}

.quick-svg-box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-item-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.quick-grid-item:hover .quick-svg-box,
.quick-grid-item:focus-visible .quick-svg-box {
  transform: translateY(-4px);
}

.quick-grid-item:hover .quick-item-label,
.quick-grid-item:focus-visible .quick-item-label {
  color: var(--primary);
}

/* 접었다 폈다 토글 버튼 */
.fold-toggle-btn {
  margin: 10px auto 0;
  background: none;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}

.fold-toggle-btn:hover {
  color: var(--primary);
}

.fold-chevron-svg {
  display: inline-flex;
  color: var(--primary);
  transition: transform 0.28s ease;
}

.fold-chevron-svg.rotated {
  transform: rotate(180deg);
}

/* 섹션 공통 헤더 */
.section-head {
  margin-bottom: 18px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.section-title-lg {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* 정착 가이드 카드 가로 스크롤 캐러셀 + 양옆 40px 원형 화살표 버튼 */
.guide-carousel-wrap {
  position: relative;
}

.guide-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.guide-carousel-track::-webkit-scrollbar {
  display: none;
}

.info-card-btn {
  flex: 0 0 186px;
  scroll-snap-align: start;
  background: var(--surface);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(30, 94, 255, 0.12);
}

.info-card-thumb {
  height: 126px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #E8F2FF 0%, #FFFFFF 100%);
}

.info-card-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 2;
}

.info-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.info-card-btn:hover .info-card-thumb img {
  transform: scale(1.04);
}

.soon-pill {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(30, 94, 255, 0.12);
}

.info-card-body {
  padding: 14px 15px 16px;
}

.info-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.info-card-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: 3px;
}

.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-56%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(30, 94, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: background 0.15s, transform 0.15s;
}

.carousel-arrow-btn:hover {
  background: #FFFFFF;
  transform: translateY(-56%) scale(1.05);
}

.carousel-arrow-btn.prev {
  left: -8px;
}

.carousel-arrow-btn.next {
  right: -8px;
}

/* 마을 참여 소식 화이트 카드 */
.home-board-box {
  background: var(--surface);
  border: none;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-quick);
}

.home-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-board-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.more-text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mini-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--divider-row);
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.15s;
}

.mini-post-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.mini-post-item:hover .mini-post-title {
  color: var(--primary);
}

.mini-board-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mini-post-title {
  flex: 1;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.mini-post-date {
  font-size: 12.5px;
  color: var(--text-sub);
  text-align: end;
  flex-shrink: 0;
}

/* ================= 공통 상단 서브탭 ================= */
.sub-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 20;
  scrollbar-width: none;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.sub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s;
}

.sub-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 94, 255, 0.22);
}

/* ================= 생활안내 HTML (밝은 블루 톤 리뉴얼) ================= */
.guide-container {
  padding: 24px 20px 36px;
}

.incheoner-banner {
  border-radius: 18px;
  padding: 22px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-quick);
  margin-bottom: 20px;
  border-inline-start: 5px solid var(--primary);
}

.incheoner-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.incheoner-main-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.incheoner-lead {
  font-size: 14px;
  color: var(--text-main);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  line-height: 1.65;
  box-shadow: var(--shadow-quick);
}

.step4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.step4-card {
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow-quick);
}

.step4-svg-wrap {
  width: 54px;
  height: 54px;
  margin: 4px auto 8px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step4-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.step4-ko {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.step4-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.guide-table-head {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-th {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.guide-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-row {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 8px;
  align-items: stretch;
}

.guide-cat {
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}

.guide-val {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(30, 94, 255, 0.04);
}

.guide-val ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.guide-val li {
  position: relative;
  padding-inline-start: 12px;
  line-height: 1.55;
}

.guide-val li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
}

.guide-val a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.guide-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.primary-action-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(30, 94, 255, 0.2);
  transition: background 0.15s;
}

.primary-action-btn:hover {
  background: var(--primary-hover);
}

.secondary-action-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: var(--surface);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 3px 12px rgba(30, 94, 255, 0.06);
  transition: color 0.15s, background 0.15s;
}

.secondary-action-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.coming-soon-box {
  margin: 28px 0;
  padding: 44px 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-quick);
  text-align: center;
}

/* ================= 지도 뷰 ================= */
.map-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 136px);
  min-height: 480px;
}

@media (min-width: 960px) {
  .map-wrapper {
    height: calc(100dvh - 180px);
  }
}

.map-canvas-box {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #E8F1FF;
}

#mapCanvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gps-fab {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  z-index: 15;
  background: var(--surface);
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(30, 94, 255, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-spot-list {
  background: var(--surface);
  max-height: 225px;
  overflow-y: auto;
  padding: 14px 18px;
  box-shadow: 0 -4px 18px rgba(30, 94, 255, 0.06);
}

.spot-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: #F8FBFF;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.spot-card.selected, .spot-card:hover {
  border-color: var(--secondary);
  background: var(--primary-soft);
}

.spot-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 5px;
}

/* ================= 참여하기 게시판 ================= */
.board-wrap {
  padding: 24px 20px 36px;
}

.board-card-surface {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-quick);
}

.board-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider-quick);
}

.board-heading {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
}

.write-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid var(--divider-row);
  font-size: 13px;
  color: var(--text-sub);
}

.board-list {
  list-style: none;
}

.board-item {
  padding: 15px 4px;
  border-bottom: 1px solid var(--divider-row);
  cursor: pointer;
}

.board-item:hover .board-item-title {
  color: var(--primary);
}

.board-item-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.pin-tag, .status-tag {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.board-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
  transition: color 0.15s;
}

.comment-cnt {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.board-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-sub);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--divider-quick);
  background: var(--surface);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* 게시글 상세 & 댓글 */
.post-detail-card {
  margin: 20px;
  padding: 22px 20px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-quick);
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
}

.detail-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-sub);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider-row);
  margin-bottom: 18px;
}

.detail-content {
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--text-main);
  margin-bottom: 18px;
}

.detail-images {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-images img {
  width: 100%;
  border-radius: 14px;
}

.comments-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--divider-row);
}

.comment-item {
  background: #F7FAFF;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 13.5px;
}

/* ================= AI 챗봇 뷰 ================= */
.chatbot-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 68px);
}

@media (min-width: 960px) {
  .chatbot-screen {
    height: calc(100dvh - 112px);
  }
}

.chat-back-bar {
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider-row);
}

.chat-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.chat-blue-bar {
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bot-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.chat-bubble {
  max-width: 90%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.62;
  box-shadow: 0 4px 14px rgba(30, 94, 255, 0.06);
}

.chat-bubble.bot {
  background: var(--surface);
  color: var(--text-main);
  align-self: flex-start;
  border-top-left-radius: 4px;
}

[dir="rtl"] .chat-bubble.bot {
  border-top-left-radius: 18px;
  border-top-right-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary);
  color: #FFFFFF;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

[dir="rtl"] .chat-bubble.user {
  border-top-right-radius: 18px;
  border-top-left-radius: 4px;
}

.tip-list {
  margin: 11px 0;
  padding: 11px 12px;
  background: #F4F8FF;
  border-radius: 12px;
  display: grid;
  gap: 6px;
}

.tip-q-btn {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 7px 11px;
  text-align: start;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.llm-notice {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--divider-row);
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 18px 10px;
}

.chat-chip-btn {
  border: 1.5px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-chip-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.chat-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-action-btn {
  background: var(--primary-soft);
  color: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chat-voice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 6px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #EEF4FF;
  border: 1px solid #C9DCFF;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
}

.chat-voice-banner[hidden] {
  display: none !important;
}

.chat-voice-banner-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.voice-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}

.voice-wave-bars span {
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: #EF4444;
  animation: voiceWave 0.9s ease-in-out infinite;
}

.voice-wave-bars span:nth-child(2) {
  animation-delay: 0.18s;
}

.voice-wave-bars span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes voiceWave {
  0%, 100% { height: 5px; opacity: 0.65; }
  50% { height: 14px; opacity: 1; }
}

@keyframes voicePulseRing {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.42); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chat-input-bar {
  padding: 10px 16px 14px;
  background: var(--surface);
  border-top: 1px solid var(--divider-row);
}

.chat-input-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--secondary);
  border-radius: 999px;
  padding: 4px 5px 4px 16px;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-input-pill:focus-within {
  border-color: var(--primary);
}

.chat-input-pill.is-listening {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.chat-input-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13.5px;
  background: transparent;
}

.chat-voice-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, transform 0.15s ease;
}

.chat-voice-btn:hover {
  background: #DCE9FF;
}

.chat-voice-btn.listening {
  background: #EF4444;
  color: #FFFFFF;
  animation: voicePulseRing 1.4s infinite;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.chat-cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--border-light);
  background: #F9FBFF;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: background 0.15s, color 0.15s;
}

.chat-cat-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.chat-attached-imgs {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chat-img-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #FFFFFF;
}

.chat-img-card img {
  width: 100%;
  display: block;
}

.chat-img-caption {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--primary-soft);
}

.chat-related-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--divider-row);
  display: grid;
  gap: 6px;
}

.chat-related-btn {
  width: 100%;
  text-align: start;
  background: #F8FBFF;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.chat-related-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ================= 하단 고정 5탭 네비게이션 바 (깔끔한 화이트 + #1E5EFF 포인트) ================= */
.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--surface);
  border-top: 1px solid var(--divider-quick);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(30, 94, 255, 0.06);
}

@media (max-width: 959px) {
  .bottom-tab-bar {
    position: fixed;
    max-width: 480px;
    margin: 0 auto;
  }
}

.tab-item-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.tab-item-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================= 모달 & 폼 ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 24px 52px rgba(30, 94, 255, 0.18);
}

.social-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.social-naver { background: #03C75A; color: #FFFFFF; }
.social-kakao { background: #FEE500; color: #191919; }
.social-google { background: #FFFFFF; color: #333333; border: 1px solid #DCDFE4; }

.form-field {
  margin-bottom: 13px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 14px;
  outline: none;
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--primary);
}

.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.92);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

/* ================= 스마트폰·PC 고해상도 확대 이미지 뷰어 ================= */
.img-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  user-select: none;
}

.img-viewer-backdrop.open {
  display: flex;
}

.img-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  flex-shrink: 0;
}

.img-viewer-titles {
  min-width: 0;
}

.img-viewer-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.img-viewer-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-viewer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.img-viewer-close-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.img-viewer-stage {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 0 84px;
  cursor: grab;
}

.img-viewer-stage.dragging {
  cursor: grabbing;
}

.img-viewer-inner {
  min-height: 100%;
  min-width: 100%;
  width: max-content;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: 0 8px;
}

.img-viewer-inner img {
  display: block;
  height: auto;
  max-width: none;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transition: width 0.14s ease-out;
}

.img-viewer-stage.pinching .img-viewer-inner img {
  transition: none;
}

.img-viewer-controls {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 145;
  max-width: calc(100vw - 20px);
}

.img-zoom-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.img-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.img-zoom-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.img-zoom-step {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

/* 게시글 상세 다국어 자동번역/원문 전환 토글 배지 */
.translate-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #C9DCFF;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.translate-toggle-pill:hover {
  background: #DCE9FF;
}

.translate-toggle-pill.is-orig {
  background: #F4F6FA;
  border-color: #DCDFE6;
  color: #555555;
}

/* ================= 온라인 설문조사 (홈 배너 + 반응형 설문 화면 + 미션 복귀 FAB) ================= */
.home-survey-banner {
  margin-top: 18px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border: 1.5px solid #CFE1FF;
  box-shadow: 0 6px 20px rgba(30, 94, 255, 0.09);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-survey-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 94, 255, 0.14);
}

.home-survey-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-survey-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-survey-texts {
  min-width: 0;
}

.home-survey-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.home-survey-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.home-survey-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.home-survey-cta {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-survey-cta.done {
  background: var(--primary-soft);
  color: var(--primary);
}

/* 설문 작성 화면 */
.survey-wrap {
  padding: 20px 18px 44px;
}

.survey-hero-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow-quick);
  border-top: 4px solid var(--primary);
  margin-bottom: 20px;
}

.survey-section-block {
  margin-bottom: 22px;
}

.survey-section-head {
  margin-bottom: 12px;
}

.survey-section-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
}

.survey-section-desc {
  margin-top: 6px;
  background: #EEF5FF;
  border: 1px solid #D3E3FF;
  color: #1E40AF;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.survey-q-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 3px 14px rgba(30, 94, 255, 0.06);
  margin-bottom: 12px;
}

.survey-q-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.survey-q-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
}

.survey-req-star {
  color: #EF4444;
  margin-inline-start: 3px;
}

.survey-try-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #BBD4FF;
  background: #F3F8FF;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.survey-try-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.survey-opt-list {
  display: grid;
  gap: 8px;
}

.survey-opt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #FAFCFF;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  transition: border-color 0.14s, background 0.14s;
}

.survey-opt-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.survey-opt-item input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.survey-scale-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.survey-scale-btn {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #FAFCFF;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.survey-scale-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 94, 255, 0.25);
}

.survey-scale-anchors {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 600;
  margin-top: 7px;
  padding: 0 2px;
}

.survey-text-input,
.survey-textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  background: #FAFCFF;
  outline: none;
  font-family: inherit;
}

.survey-text-input:focus,
.survey-textarea:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

/* 다른 화면에서 과업 체험 중 설문으로 1탭 복귀하는 플로팅 버튼 */
.survey-return-fab {
  position: fixed;
  bottom: 82px;
  right: max(16px, calc(50vw - 224px));
  z-index: 95;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 94, 255, 0.36);
}

@media (max-width: 959px) {
  .survey-return-fab {
    right: 16px;
  }
}

.survey-return-fab.visible {
  display: inline-flex;
}


/* ================= 5개국어 생활안내 일러스트 카드 & 함박마을 소개 페이지 ================= */
.guide-illust-card {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 1.5px solid #DCE7F9;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  cursor: pointer;
  display: block;
  box-shadow: 0 4px 16px rgba(30, 94, 255, 0.06);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.guide-illust-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.guide-illust-card img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-illust-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #EEF4FF;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  border-top: 1px solid #DCE7F9;
}

/* 홈 화면 함박마을 소개 배너 */
.home-about-banner {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #005FFF 0%, #1E5EFF 60%, #2B70FF 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 95, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-about-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 95, 255, 0.26);
}

.home-about-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-about-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.home-about-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
}

.home-about-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.home-about-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[dir="rtl"] .home-about-arrow svg {
  transform: scaleX(-1);
}

/* 함박마을 소개 전용 페이지 (Figma 시안 매칭) */
.about-page {
  background: #EFF4FC;
  min-height: 100%;
  padding-bottom: 32px;
}

.about-hero {
  background: #005FFF;
  color: #FFFFFF;
  padding: 16px 22px 26px;
}

.about-back-row {
  margin-bottom: 12px;
}

.about-back-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.about-back-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.about-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.about-hero-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #FFFFFF;
  margin: 0;
  flex-shrink: 0;
}

.about-hero-title.compact {
  font-size: 32px;
  line-height: 1.08;
}

.about-hero-loc {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: end;
  margin: 2px 0 0;
  max-width: 215px;
  word-break: keep-all;
}

@media (max-width: 380px) {
  .about-hero-top {
    flex-direction: column;
    gap: 8px;
  }
  .about-hero-loc {
    text-align: start;
    max-width: 100%;
  }
}

.about-hero-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  margin: 18px 0 16px;
}

.about-hero-origin {
  font-size: 13px;
  line-height: 1.66;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  word-break: keep-all;
}

.about-body {
  padding: 24px 18px 12px;
}

.about-sec {
  margin-bottom: 28px;
}

.about-sec-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0B57E3;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.about-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 6px 20px;
  box-shadow: 0 6px 22px rgba(15, 52, 130, 0.06);
}

.about-era-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #E6ECF5;
}

.about-era-row:last-child {
  border-bottom: none;
}

.about-era-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: #EAF2FF;
  color: #005FFF;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.about-era-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #1E293B;
  text-align: end;
  word-break: keep-all;
}

@media (max-width: 400px) {
  .about-era-row {
    flex-direction: column;
    gap: 8px;
  }
  .about-era-desc {
    text-align: start;
  }
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.about-photo-btn {
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #DDE6F3;
  cursor: pointer;
  aspect-ratio: 1.32 / 1;
  display: block;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.14s ease;
}

.about-photo-btn:hover {
  transform: scale(1.03);
}

.about-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.about-reason-card {
  padding: 18px 16px;
}

.about-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.about-reason-cell {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-reason-cell:nth-child(1),
.about-reason-cell:nth-child(2) {
  border-bottom: 1px solid #DDE5F0;
}

.about-reason-cell:nth-child(1),
.about-reason-cell:nth-child(3) {
  border-inline-end: 1px solid #DDE5F0;
}

@media (max-width: 355px) {
  .about-reason-grid {
    grid-template-columns: 1fr;
  }
  .about-reason-cell {
    border-inline-end: none !important;
    border-bottom: 1px solid #DDE5F0;
  }
  .about-reason-cell:last-child {
    border-bottom: none;
  }
}

.about-reason-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.about-reason-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EDF3FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-reason-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  text-align: end;
  line-height: 1.3;
  word-break: keep-all;
}

.about-reason-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.58;
  color: #475569;
  text-align: center;
  word-break: keep-all;
}

/* 큰글씨 모드 대응 */
body.large-text-mode .about-hero-origin,
body.large-text-mode .about-era-desc,
body.large-text-mode .about-reason-desc {
  font-size: 15px;
  line-height: 1.68;
}

body.large-text-mode .about-era-row {
  flex-direction: column;
  gap: 8px;
}

body.large-text-mode .about-era-desc {
  text-align: start;
}

body.large-text-mode .about-reason-title {
  font-size: 16px;
}
