:root {
  --color-primary: #5B6B95;
  --color-primary-dark: #3C4972;
  --color-accent: #8D9BC4;
  --color-bg: #F7F4EA;
  --color-surface: #F7F4EA;
  --color-text: #3A4363;
  --color-white: #FFFFFF;
  --color-border: #E6E0D0;
  --color-text-secondary: #7B84A3;
  --color-warm: #8D9BC4;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow: 0 4px 16px rgba(58, 67, 99, 0.08);
  --shadow-float: 0 -4px 16px rgba(58, 67, 99, 0.06);
  --max-width: 480px;
  --tabbar-height: 60px;
  --color-acc: #F2C94C;
  --color-acc-deep: #D9A918;
  --font-display: "Jua", "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
}

.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: var(--tabbar-height);
  position: relative;
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100dvh;
  background: var(--color-bg);
  transition: opacity 0.4s ease;
}

.splash__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash--hide {
  opacity: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 16px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* min-width:0 이 없으면 flex 항목이 내용 크기 아래로 못 줄어든다 —
     그래서 제목이 줄바꿈으로 삐져나갔다. */
  min-width: 0;
  flex: 1 1 auto;
}

.header__logo {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.header--home .header__logo {
  height: 28px;
  width: 28px;
}

.header__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  user-select: none;
  -webkit-user-select: none;
  /* 390px 폭에서 "by 육진대"가 "육진 / 대"로 쪼개져 두 줄이 됐다.
     제목은 한 줄로 두고, 자리가 모자라면 브랜드 블록이 줄어들게 한다. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* flex 항목의 기본 min-width 는 auto 라 내용보다 작아지지 않는다.
     이게 없으면 nowrap 을 줘도 부모를 밀어내며 줄바꿈이 남는다. */
  min-width: 0;
}

.header__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

/* 좁은 폰에서는 헤더 아이콘 넷과 설치 버튼이 자리를 다 쓴다.
   "by 육진대"까지 넣으면 제목이 잘리므로, 그 폭에서는 부제를 감춘다 —
   로고가 이미 누구 앱인지 말해 준다. */
@media (max-width: 430px) {
  .header__subtitle { display: none; }
}

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  /* 아이콘·설치 버튼은 줄이지 않는다. 제목 쪽이 먼저 줄어들어야 한다. */
  flex-shrink: 0;
}

/* 공유·알림은 헤더에서 같은 무게로 보여야 한다 — 하나만 튀면 다른 하나를 못 본다. */
.header__bell,
.header__bug,
.header__share {
  position: relative;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
}

.header__bug svg,
.header__share svg {
  width: 19px;
  height: 19px;
  display: block;
}

/* 눌렀다는 것이 보여야 한다 — 공유 시트가 안 뜨는 기기에서는 복사만 되고
   화면이 그대로라 고장난 줄 안다. */
.header__share.is-copied {
  color: #fff;
}

.header__bell svg {
  width: 19px;
  height: 19px;
  display: block;
}

.header__bell.has-unread::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--color-primary);
}

.header__install {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border: 1.5px solid #8D9BC4;
  border-radius: 999px;
  padding: 6px 12px;
  background: #8D9BC4;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.header__install[hidden] {
  display: none;
}

.header__install svg {
  width: 14px;
  height: 14px;
}

/* 새 소식 패널 */
.notices-panel {
  display: none;
  position: absolute;
  top: 54px;
  right: 16px;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(58, 67, 99, 0.18);
  overflow: hidden;
  z-index: 50;
}

.notices-panel.is-open {
  display: block;
}

.notices-panel__header {
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.notices-panel__item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.notices-panel__item-title {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text);
}

/* 새 기능 소식임을 알리는 배지. 장소가 하나 늘었다는 알림과 기능이 붙었다는
   알림은 무게가 다른데, 제목만 나열하면 구분이 안 된다. */
.notices-panel__badge {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.notices-panel__item-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.notices-panel__empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.notices-panel__footer {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

/* About / 육진대 tab */
.intro {
  padding: 32px 24px 8px;
  text-align: center;
}

.intro__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.intro__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

.intro__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.sns-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sns-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.sns-item:active {
  transform: scale(0.98);
}

.sns-item__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sns-item__icon svg {
  width: 20px;
  height: 20px;
}

.sns-item__icon--instagram {
  background: linear-gradient(155deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.sns-item__icon--youtube {
  background: #FF0000;
}

.sns-item__icon--tiktok {
  background: #010101;
}

.sns-item__icon--naver {
  background: #03C75A;
}

.sns-item__icon--kakao {
  background: #FEE500;
}

.sns-item__label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.sns-item__arrow {
  color: var(--color-text-secondary);
  font-size: 18px;
}

/* Banner slider */
.banner {
  position: relative;
  margin: 4px 18px 0;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 노션 배너 로딩이 끝나기 전까지는 자리만 잡아두고 안 보이게 해서, 기본
   배너가 잠깐 보였다가 노션 배너로 바뀌는 깜빡임을 없앤다. */
.banner.is-loading {
  visibility: hidden;
}

.banner__track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 22px 20px 30px;
  text-align: center;
}

.banner__logo {
  max-width: 120px;
  width: 40%;
  height: auto;
  margin-bottom: 10px;
}

.banner__big {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-warm);
}

.banner__tagline {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
  margin: 0;
}

.banner__slide--photo {
  position: relative;
  display: block;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.banner__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.banner__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 14px;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.banner__caption-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.banner__caption-tagline {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.banner__dot.is-active {
  width: 18px;
  background: #8D9BC4;
}

/* Search */
.search {
  padding: 20px 18px 8px;
}

.search__input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--color-text);
}

.search__input::placeholder {
  color: #7B84A3;
}

/* Region grid */
.section {
  padding: 22px 18px 26px;
}

/* 섹션 사이 경계.
   전부 같은 회색 바탕에 흰 카드가 떠 있는 구조라, 여백만으로는 어디서 한 덩어리가
   끝나고 다음이 시작되는지 읽히지 않았다. 배경보다 한 단계 진한 띠를 넣어
   "여기서 이야기가 바뀐다"를 눈으로 보이게 한다. */
.section-break {
  height: 8px;
  background: var(--color-border);
  opacity: 0.55;
}

.section__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 14px;
}

/* "추천장소" 섹션만 살짝 큰 제목 — 지역별 Top 10은 그대로 둔다 */
.section__title--diary {
  font-size: 19px;
  /* 기준 표시(.section__note)를 오른쪽 끝으로 밀려면 flex 여야 한다. */
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 대한민국 인터랙티브 지도 */
.region-map-wrap {
  position: relative;
}

.region-map {
  display: flex;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
}

.region-map__svg {
  width: 100%;
  height: auto;
}

.region-map__path {
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.region-map__path:hover {
  opacity: 1;
}

.region-map__path.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 1.1px rgba(60, 72, 58, 0.55)) drop-shadow(0 0 3px rgba(60, 72, 58, 0.25));
}

.region-map.has-selection .region-map__path:not(.is-active) {
  opacity: 0.32;
}

.region-map__caption {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 8px 0 0;
}

/* 번호-지역명 매핑 범례. 한때 지도 위에 절대배치로 겹쳐 띄워 세로 공간을
   아꼈으나, 제주 마커가 지도 뷰박스 맨 아래 가장자리에 붙어 있어서 겹치는
   범례에 가려 아예 안 보이는 문제가 있었다 — 지도 바로 아래 일반 흐름으로
   배치해 겹침 자체를 없앴다. */
.region-legend {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.region-legend__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 2px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.region-legend__name {
  width: 100%;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-legend__item.is-active .region-legend__name {
  color: inherit;
  font-weight: 700;
}

/* 5열로 좁아져서 개수까지 넣으면 너무 빽빽해져 숨김(지도/범례 클릭하면
   캡션에서 어차피 "지역명 · N곳"으로 보여줌) */
.region-legend__count {
  display: none;
}

/* 축제/코스 큐레이션 카드 */
/* 홈 축제 띠. 링크 한 줄이던 것을 실제 축제 카드로 바꿨다 — 무엇이 열리는지
   보이지 않으면 눌러볼 이유가 없다. */
.curated-links {
  margin-top: 18px;
}

.festival-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.festival-strip__more {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

/* 가로 스크롤은 자기 안에서만 흐르게 한다 — 페이지 전체가 옆으로 밀리면 안 된다. */
.festival-strip__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.festival-strip__scroll::-webkit-scrollbar { height: 0; }

.festival-strip__card {
  flex: 0 0 144px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--color-text);
}

.festival-strip__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-border);
}

.festival-strip__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.festival-strip__dday {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26, 47, 107, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.festival-strip__name {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  /* 제목 길이가 제각각이라 두 줄에서 끊어 카드 높이를 맞춘다. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.festival-strip__where {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 지역을 고른 뒤 목록으로 내려갈 때 제목이 sticky 헤더에 가리지 않게 한다. */
#place-section,
#place-heading {
  scroll-margin-top: 58px;
}

/* Category tags */
.tag-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 18px;
  /* 스크롤해도 헤더 아래에 붙어 따라온다. 목록이 길어져서, 아래까지 내려간 뒤
     카테고리를 바꾸려면 맨 위로 되돌아가야 했다. */
  position: sticky;
  top: 58px;
  z-index: 9;
  background: var(--color-bg);
  /* 스크롤바를 감춘다. 데스크톱에서 회색 막대가 칩 아래에 그대로 보였다. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 오른쪽 끝을 흐리게 지운다. 그냥 잘리면 거기서 끝인 줄 알지만, 흐려지면
     옆으로 더 있다는 것이 보인다. */
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.tag-filter::-webkit-scrollbar {
  display: none;
}

.tag-filter__item {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tag-filter__item.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Recommended place grid */
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  scroll-margin-top: 72px; /* sticky header 높이만큼 여유를 둬서, 지역 선택 시
    자동 스크롤로 내려왔을 때 카드 상단이 헤더에 가리지 않게 한다 */
}

/* 제목 옆에 무엇을 기준으로 고른 목록인지 적는다. "이번 주말"만으로는 오늘이
   무슨 요일인지 알 수 없다. */
.section__note {
  margin: -8px 0 12px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

/* 섹션 제목 오른쪽의 "더보기". 축제 띠의 "전체 24개 ›"와 같은 자리, 같은 모양이다. */
.section__more {
  margin-left: auto;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
}

/* 위치를 안 켠 사람에게 왜 먼 곳이 뜨는지 알려주는 줄. 눌러서 바로 켤 수 있다.
   경고가 아니라 제안이라 색은 차분하게 둔다. */
.place-location-hint {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 12.5px;
  font-family: inherit;
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
}

.place-location-hint b {
  color: var(--color-text);
  font-weight: 700;
}

.place-location-hint:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 축제 띠는 원래 지역 섹션 안에 있어 위 여백을 그쪽에서 받았다. 밖으로 빼면서
   자기 여백을 갖게 한다. */
.section--festival {
  margin-top: 4px;
}

/* 폴라로이드 느낌 — 사진 둘레에 흰 여백을 두르고 살짝 기울여서
   "다녀온 걸 앨범에 정리한" 인상을 준다. 색은 기존 팔레트 그대로. */
.place-grid__card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 8px 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.place-grid__card:nth-child(odd) {
  transform: rotate(-1.1deg);
}

.place-grid__card:nth-child(even) {
  transform: rotate(1deg);
}

.place-grid__card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(58, 67, 99, 0.08);
}

.place-grid__thumb-wrap {
  position: relative;
}

.place-grid__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: var(--color-surface);
  object-fit: cover;
  display: block;
}

/* 사진이 아직 없는 장소. 빈 회색 칸으로 두면 이미지를 못 불러온 것처럼 보인다 —
   앱의 색을 그대로 쓰고 로고를 흐리게 깔아 "준비 중"으로 읽히게 한다. */
.place-grid__thumb--empty {
  background:
    url("../assets/logo/character-logo-96.png") center / 44px no-repeat,
    linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
  opacity: 0.75;
}

/* 사진 위 별점. 카드에서 바로 보이는 것과 상세까지 들어가야 보이는 것은 다르다. */
.place-grid__rating {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(28, 32, 48, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.place-grid__rating em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.8;
}

.place-grid__favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.18);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.place-grid__favorite-btn.is-active {
  background: var(--color-white);
}

.place-grid__dday {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.18);
}

.place-grid__free-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #E4F5EA;
  color: #1E8A4C;
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.18);
}

/* 이달의 순위 배지. 무료입장 배지와 같은 자리라, 순위가 있으면 아래 규칙으로
   무료 배지를 한 칸 내려서 겹치지 않게 한다(HTML에서 순위가 먼저 나온다). */
/* 근처 맛집·카페가 여러 곳일 때 대표 아래로 접어두는 영역. */
.place-detail__nearby-more {
  margin-top: 6px;
}

.place-detail__nearby-more > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-secondary);
  list-style: none;
}

.place-detail__nearby-more > summary::-webkit-details-marker {
  display: none;
}

.place-detail__nearby-more > summary::after {
  content: " ▾";
}

.place-detail__nearby-more[open] > summary::after {
  content: " ▴";
}

.place-detail__nearby-more ul {
  margin: 6px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-detail__nearby-more li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.place-grid__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.28);
}

.place-grid__rank + .place-grid__free-badge {
  top: 36px;
}

.place-grid__rank-reason {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-grid__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 4px 10px;
}

.place-grid__name {
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-grid__region {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.place-list__loading,
.place-list__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 32px 0;
}

/* 테마 코스 모음 */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.course-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.course-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--color-surface);
  object-fit: cover;
  flex-shrink: 0;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.course-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
}

.course-card__desc {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-card.is-open .course-card__desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.course-card__count {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.course-card__stops {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.course-card__stops[hidden] {
  display: none;
}

.course-card__stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.course-card__stops .course-directions-btn {
  width: auto;
  margin: 4px 16px 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.course-card__stop-num {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 찜한 장소 */
.favorite-count {
  margin: 14px 18px 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.favorite-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
}

.favorite-empty__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: var(--color-acc-deep);
}

.favorite-empty__text {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--color-text-secondary);
}

.favorite-empty__btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--color-acc);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Bottom tab bar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--tabbar-height);
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-float);
}

.tabbar__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.tabbar__icon {
  font-size: 19px;
  line-height: 1;
}

.tabbar__icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.tabbar__icon--img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.tabbar__item.is-active {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--color-acc-deep);
}

.tabbar__item.is-active svg {
  fill: currentColor;
  fill-opacity: 0.16;
}

.install-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 67, 99, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.install-popup {
  position: relative;
  width: 100%;
  max-width: calc(var(--max-width) - 64px);
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px 24px 20px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(58, 67, 99, 0.28);
}

.install-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.install-popup__logo {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.install-popup__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
}

.install-popup__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.install-popup__body {
  margin-top: 20px;
}

.install-popup__install {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 13px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.install-popup__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.install-popup__note--hidden {
  display: none;
}

.install-popup__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.install-popup__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg);
  border-radius: 12px;
}

.install-popup__step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
}

.install-popup__step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary);
}

.install-popup__step-icon svg {
  width: 18px;
  height: 18px;
}

.install-popup__step-text {
  font-size: 13px;
  color: var(--color-text);
}

.install-popup__step-text b {
  color: var(--color-primary);
}

.install-popup__footer {
  margin-top: 18px;
}

.install-popup__dismiss-today {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* 오늘 날씨 한 줄 안내. 날씨를 못 가져오면 아예 렌더하지 않는다(hidden). */
/* 한 줄에 다 넣으려다 헤드라인이 한 글자씩 세로로 쪼개졌다.
   기준·강수·기온·위치버튼이 모두 줄바꿈을 거부하는 사이에서 헤드라인만 밀려
   최소 폭까지 눌린 것인데, 한국어는 단어 경계가 없어 글자 단위까지 줄어든다.
   그래서 헤드라인이 첫 줄을 통째로 쓰고 나머지가 아래로 내려가게 한다. */
.today-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.today-weather[hidden] {
  display: none;
}

.today-weather__icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.today-weather__text {
  /* 아이콘과 나란히 첫 줄을 채운다. 남는 자리가 없으므로 기준·기온·버튼은
     다음 줄로 내려간다. 34px 은 아이콘 폭과 gap 에 여유를 조금 더한 값이다. */
  flex: 1 1 calc(100% - 34px);
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

/* 어디 기준 날씨인지 밝히는 잔글씨. 본문보다 확실히 물러나 있어야 헤드라인을
   가리지 않는다. */
.today-weather__basis {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 11px;
  color: var(--color-text-muted, #6b7280);
  /* 아주 좁은 화면에서는 이 줄도 접히는 편이 낫다 — nowrap 이면 이것이 폭을
     붙들어 옆의 기온이 다시 쪼개진다. */
  overflow-wrap: anywhere;
}

.today-weather__temp {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

/* 진행 중인 할인·이벤트. 종료일이 지나면 렌더 단계에서 빠지므로 만료 처리는 불필요. */
.place-grid__event-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFF1DC;
  color: #B25E00;
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.18);
}

.place-detail__event {
  background: #FFF8EE;
  border: 1px solid #FFE2BC;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.place-detail__event-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.place-detail__event-meta a {
  color: var(--color-primary);
}

/* 서울 기준으로 보여주는 중일 때만 나오는 "내 위치" 버튼. 권한을 이미 허용했거나
   거부한 사용자에게는 렌더하지 않는다. */
.today-weather__locate {
  flex: 0 0 auto;
  /* 둘째 줄 오른쪽 끝에 붙인다. */
  margin-left: auto;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.today-weather__locate:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 사진 저작권 표기. 공공누리 이미지는 출처를 밝히는 것이 이용 조건이다. */
.place-detail__hero-wrap {
  margin: 0;
  position: relative;
}

.place-detail__photo-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 8px;
  font-size: 10.5px;
  color: var(--color-white);
  background: rgba(58, 67, 99, 0.55);
  border-radius: var(--radius) 0 0 0;
}

/* 추천장소 목록을 다 훑고 "여기 없네" 싶을 때 눈에 들어오도록 목록 바로 아래 둔다. */
.suggest-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text);
}

.suggest-cta:active {
  transform: scale(0.99);
}

.suggest-cta__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.suggest-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.suggest-cta__text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}


/* ── 제보·추천 모달 (상세페이지와 홈이 함께 쓴다) ────────── */
/* 제보 모달 */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 67, 99, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.report-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.report-modal {
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-white);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.report-modal-overlay.is-open .report-modal {
  transform: translateY(0);
}

.report-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
}

.report-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.report-modal__close {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.report-modal__body {
  padding: 18px;
}

.report-modal__label {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 6px;
}

.report-modal__field {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--color-white);
  color: var(--color-text);
}

.report-modal__value-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.report-modal__value-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.report-modal__value-btn.is-selected {
  border-color: var(--color-primary);
  background: var(--color-bg);
  color: var(--color-primary);
}

.report-modal__value-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* 화면 캡처 붙이기. 파일 입력은 브라우저마다 생김새가 제각각이라 감추고
   버튼으로 대신 연다. */
.bug-shot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1.5px dashed var(--color-border);
  border-radius: 12px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 14px;
}

/* display:flex 가 hidden 속성의 기본 display:none 을 이긴다. 사진을 붙인 뒤에도
   "사진 붙이기" 버튼이 그대로 남아 있었다. */
.bug-shot[hidden] {
  display: none;
}

.bug-shot__icon {
  font-size: 17px;
  line-height: 1;
}

.bug-shot__preview {
  position: relative;
  margin-bottom: 14px;
}

.bug-shot__preview[hidden] {
  display: none;
}

.bug-shot__preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  display: block;
}

.bug-shot__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* 오류 신고는 한 줄로 안 끝난다. 무슨 화면에서 무엇을 눌렀는지 적을 자리를 준다. */
.report-modal__textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.report-modal__value-input[hidden],
.report-modal__value-group[hidden] {
  display: none;
}

/* 신규 장소 제보의 편의시설 선택. 고르지 않으면 "모름"이라 아무 표시도 남지 않는다. */
/* 홈 추천장소 "더보기". 그리드 안에 넣으면 칸 하나를 차지해 장소 카드처럼 보여
   목록 바로 아래에 따로 둔다. */
.place-more {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.place-more:hover {
  border-color: var(--color-primary);
}

/* 첫 방문 사용법 안내. 설치 팝업과 같은 자리에 뜨지만 먼저 닫히고 나서
   설치 팝업이 뜬다(pwa.js). */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 67, 99, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.tour {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(26, 47, 107, 0.24);
}

.tour__skip {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.tour__icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
}

.tour__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.tour__body {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  /* 네 장이 길이가 달라, 넘길 때마다 카드 높이가 튀지 않도록 최소 높이를 준다. */
  min-height: 66px;
}

.tour__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

/* 이전 버튼이 생겨도 다음 버튼의 자리가 장마다 흔들리지 않아야 한다. */
.tour__actions {
  display: flex;
  gap: 8px;
}

.tour__prev {
  flex: 0 0 auto;
  padding: 13px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tour__prev[hidden] { display: none; }

.tour__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
}

.tour__dot.is-active {
  background: var(--color-primary);
  width: 18px;
  border-radius: 3px;
}

.tour__next {
  flex: 1;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}


/* 목록 끝의 보조 링크들. 자주 쓰는 것이 아니라 조용히 둔다. */
.foot-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 16px 0 0;
}

.about-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.suggest-amenity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.suggest-amenity__hint {
  color: var(--color-text-secondary);
}

.suggest-amenity__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.suggest-amenity__name {
  font-size: 13px;
  color: var(--color-text);
}

.suggest-amenity__options {
  display: flex;
  gap: 6px;
}

.suggest-amenity__opt {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.suggest-amenity__opt:hover {
  border-color: var(--color-primary);
}

.suggest-amenity__opt.is-picked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.report-modal__turnstile {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.report-modal__error {
  font-size: 12px;
  color: #D64545;
  margin: 4px 0 0;
}

.report-modal__error[hidden] {
  display: none;
}

.report-modal__success {
  padding: 24px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
}

.report-modal__success[hidden] {
  display: none;
}

.report-modal__footer {
  padding: 0 18px 20px;
}

.report-modal__footer button {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* .btn-primary 의 색은 상세·지도 화면에만 정의돼 있어서, 모달 안에서는 브라우저
   기본 회색 버튼으로 떨어져 있었다 — 다 적고 나서도 눌러도 되는지 안 보인다. */
.report-modal__footer .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.report-modal__footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 제보 오류 아래 보조 안내. 원인을 안 알려주면 앱이 고장난 줄 안다. */
.report-modal__hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 소개 페이지 맨 아래 방문자 수. 자랑처럼 보이지 않게 본문보다 확실히 물러나 있다. */
.visit-stats {
  margin: 26px 18px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted, #9aa0a6);
}

/* 제보 모달 — 목록 칸(근처맛집·근처카페)의 반영 방식 선택 */
.report-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

/* display:flex 가 hidden 속성을 이긴다. 근처맛집·근처카페가 아닌 필드를 골라도
   반영 방식 선택이 그대로 보이고 있었다. */
.report-modal__list[hidden] {
  display: none;
}

.report-modal__list-current {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub, #6b7280);
  word-break: keep-all;
}

.report-modal__list-current span {
  color: var(--text-main, #111827);
}

.report-modal__list-modes {
  display: flex;
  gap: 6px;
}

.report-modal__mode-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--text-sub, #6b7280);
  cursor: pointer;
}

.report-modal__mode-btn.is-selected {
  border-color: var(--point, #2f6fed);
  color: var(--point, #2f6fed);
  font-weight: 600;
}


/* 목록이 언제 바뀌는지 알려주는 작은 물음표. 제목 옆에 붙는다 —
   "지난주에 봤는데 왜 그대로지" 또는 "왜 어제와 다르지"를 앱 안에서 답한다. */
.info-dot {
  /* 글자 대신 아이콘을 쓴다. "?" 를 그대로 넣었더니 어두운 헤더 위에서
     깨진 글자처럼 보인다는 제보가 있었다. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  vertical-align: -3px;
}

.info-dot svg {
  width: 15px;
  height: 15px;
  display: block;
}

.info-dot:hover,
.info-dot:focus-visible { color: var(--color-primary); }

/* 헤더는 남색 바탕이라 본문 색을 그대로 쓰면 안 보인다. */
.header__title .info-dot { color: rgba(255, 255, 255, 0.72); }
.header__title .info-dot:hover,
.header__title .info-dot:focus-visible { color: #fff; }

.info-pop {
  position: absolute;
  z-index: 60;
  max-width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #2A3350;
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 24px rgba(26, 47, 107, 0.28);
}

.info-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: var(--arrow-left, 12px);
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* 상세 화면 지역·카테고리 태그. 규칙이 아예 없어서 맨 글자가 한 줄로 흘렀고,
   줄이 바뀌면 간격이 어긋나 보였다. 알약 모양으로 감싸고 줄바꿈 간격을 준다. */
.place-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.place-detail__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* 첫 태그는 지역이라 나머지 분류와 구분해 준다. */
.place-detail__tag:first-child {
  background: rgba(91, 107, 149, 0.12);
  border-color: transparent;
  color: var(--color-primary-dark);
}

/* 공식 사이트로 나가는 줄. 링크가 있는 곳만 그린다. */
.place-detail__official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.place-detail__official:hover { border-color: var(--color-primary); }

/* 소식이 언제 있었던 일인지. 제목·설명보다 물러나 있어야 읽는 순서가 흐트러지지
   않는다. */
.notices-panel__item-when {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--color-text-secondary);
  opacity: 0.85;
}

/* 개인정보처리방침. 읽으라고 만든 화면이라 본문 폭과 줄간격을 다른 화면보다 넉넉히 준다. */
.policy {
  padding: 20px 18px calc(var(--tabbar-height) + 40px);
  line-height: 1.8;
  font-size: 14.5px;
  color: var(--color-text);
}

.policy__lead {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 28px;
  color: var(--color-text-secondary);
}

.policy__lead strong {
  color: var(--color-text);
}

.policy__section {
  margin-bottom: 34px;
}

.policy h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.policy h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 20px 0 8px;
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.policy li {
  margin-bottom: 7px;
}

/* 항목과 설명이 짝지어 나오는 표. 좁은 화면에서 칸이 눌리지 않게 첫 칸을 고정한다. */
.policy__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}

.policy__table th,
.policy__table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
}

.policy__table th {
  width: 96px;
  padding-right: 12px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.policy__contact {
  font-size: 16px;
  font-weight: 700;
}

.policy__contact a {
  color: var(--color-primary);
}

.policy__meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

/* 축제 목록 — 지역 칩과 진행중/곧 시작 구분.
   축제는 장소와 달리 "지금 열리는지"가 먼저라, 지도 대신 가로 스크롤 칩을 쓴다. */
.region-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.region-chips::-webkit-scrollbar {
  display: none;
}

.region-chips:empty {
  display: none;
}

.region-chip {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.region-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.festival-section__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

/* 두 번째 섹션(곧 시작) 앞에만 간격을 준다 */
.place-grid + .festival-section__title {
  margin-top: 26px;
}

/* D-day 배지는 왼쪽 위라 요금은 오른쪽 위에 둔다 */
.festival-fee {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--color-white);
  box-shadow: 0 2px 6px rgba(58, 67, 99, 0.18);
}

.festival-fee--free {
  background: #4C9A7A;
}

.festival-fee--paid {
  background: var(--color-accent);
}

/* ── 로그인 칸 (찜 화면) ───────────────────────────────────────── */
.auth-box {
  margin: 0 16px 14px;
  padding: 14px 16px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
}
.auth-box__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sub, #6b7280);
}
.auth-box__hint--lead { margin-bottom: 10px; }
.auth-box__hint b { color: var(--text, #111827); font-weight: 600; }
.auth-box__btns { display: flex; gap: 8px; }
.auth-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--line, #e5e7eb);
}
.auth-btn--google { background: #fff; color: #1f2937; }
.auth-btn--kakao { background: #fee500; color: #191600; border-color: #fee500; }
.auth-btn:active { transform: translateY(1px); }
.auth-box__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-box__who {
  font-size: 14px; font-weight: 600; color: var(--text, #111827);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-box__out {
  flex: none;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-sub, #6b7280);
  background: transparent;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  cursor: pointer;
}
.auth-box__row + .auth-box__hint { margin-top: 8px; }

/* 종료 확인 — 설치해서 쓰는 사람이 홈에서 뒤로가기를 눌렀을 때만 뜬다. */
.ask {
  width: min(320px, 86vw);
  padding: 22px 22px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 12px 32px rgba(26, 34, 56, 0.22);
}

.ask::backdrop { background: rgba(26, 34, 56, 0.44); }

.ask__t {
  margin: 2px 0 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.ask__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ask__btn {
  padding: 13px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--color-white);
  background: var(--color-primary);
  cursor: pointer;
}

.ask__btn--ghost {
  color: var(--color-sub);
  background: #EEF0F6;
}

/* 이번 달 소식 바텀시트. 앱을 열면 아래에서 올라온다. */
.launch-sheet { position: fixed; inset: 0; z-index: 80; }

.launch-sheet__dim {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 56, 0.42);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.launch-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--max-width);
  transform: translate(-50%, 100%);
  background: var(--color-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 24px rgba(58, 67, 99, 0.18);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}

.launch-sheet.is-open .launch-sheet__dim { opacity: 1; }
.launch-sheet.is-open .launch-sheet__panel { transform: translate(-50%, 0); }

.launch-sheet__handle {
  width: 38px;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: var(--color-border);
}

.launch-sheet__body { padding: 14px 22px 22px; }

.launch-sheet__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFF3D4;
  color: #8A6410;
  font-size: 12.5px;
  font-weight: 700;
}

.launch-sheet__title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.34;
}

.launch-sheet__text {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--color-sub);
}

.launch-sheet__cta {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: var(--color-acc);
  color: var(--color-text);
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .launch-sheet__dim,
  .launch-sheet__panel { transition: none; }
}

.launch-sheet__skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--color-sub);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* 제목은 주아체. 장소 이름과 목록 글씨는 본문 글꼴을 그대로 쓴다. */
.header__title,
.intro__title,
.festival-section__title,
.launch-sheet__title,
.place-detail__name {
  font-family: var(--font-display);
  font-weight: 400;
}

/* 장소 목록은 한 줄에 한 곳. 사진 88px 와 이름·지역·한 줄 소개를 나란히 둬서
   한 화면에 보이는 장소가 두 곳에서 네다섯 곳으로 늘어난다. 홈·검색·지역 결과·찜·축제 목록이
   같은 카드를 쓰므로 한 곳에서 바꾼다. 폴라로이드 기울임과 큰 첫 카드는 걷었다. */
.place-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.place-grid .place-grid__card {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  transform: none;
}

.place-grid .place-grid__card:active {
  transform: scale(0.99);
}

.place-grid .place-grid__thumb-wrap {
  display: contents;
}

.place-grid .place-grid__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  aspect-ratio: 1;
  border-radius: 14px;
}

.place-grid .place-grid__body {
  flex: 1;
  min-width: 0;
  padding: 0 30px 0 0;
  gap: 2px;
}

.place-grid .place-grid__body > p {
  margin: 0;
}

.place-grid .place-grid__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
}

/* 축제 제목은 길어서 두 줄까지 보여준다 */
.place-grid__card[href^="festival-detail"] .place-grid__name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 요금 배지는 평점 배지 자리(오른쪽 아래)에 둔다 */
.place-grid .festival-fee {
  top: auto;
  right: 12px;
  bottom: 10px;
  font-size: 10.5px;
  padding: 2px 7px;
  box-shadow: none;
}

.place-grid__reason,
.place-grid .place-grid__rank-reason {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}

.place-grid .place-grid__favorite-btn {
  top: 8px;
  right: 8px;
}

.place-grid .place-grid__rank,
.place-grid .place-grid__free-badge,
.place-grid .place-grid__dday,
.place-grid .place-grid__rank + .place-grid__free-badge {
  top: auto;
  bottom: 16px;
  left: 16px;
  font-size: 10.5px;
  padding: 2px 7px;
  min-width: 0;
  height: auto;
  box-shadow: none;
}

.place-grid .place-grid__rank {
  top: 16px;
  bottom: auto;
}

.place-grid .place-grid__rating,
.place-grid .place-grid__event-badge {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 10px;
  font-size: 10.5px;
  padding: 2px 7px;
}
