/* matoktok.com SEO 웹페이지 스타일 */

:root {
  --brand: #7c3aed;
  --brand-light: #f3f0ff;
  --brand-text: #3C3489;
  --brand-text-soft: #534AB7;
  --brand-dark: #1a1726;
  --brand-dark-soft: #AFA9EC;
  --brand-dark-text: #CECBF6;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --border: #e5e7eb;
  --border-soft: #f0f0f3;
  --star: #EF9F27;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text); transition: color 0.15s; }
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); }
.nav-cta { color: var(--brand) !important; font-weight: 700; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 20px 0 14px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* SEO용 화면 숨김 (스크린리더/크롤러는 읽음) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 히어로 배너 이미지 */
.hero-banner {
  max-width: 1200px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.search-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 20px;
}
.search-loc,
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
}
.search-loc { flex: 1; }
.search-input { flex: 2; }
.search-loc svg,
.search-input svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.placeholder { color: var(--text-soft); }

.hero-buttons {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: opacity 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-soft); }

/* ── Sections common ──────────────────────────────────────── */
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head .section-label { margin-bottom: 0; }
.section-more {
  font-size: 12px;
  color: var(--text-soft);
}
.loc-status {
  font-size: 12px;
  color: var(--brand, #7c3aed);
  background: #f3eeff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.shop-distance {
  color: var(--brand, #7c3aed);
  font-weight: 600;
}

/* ── Nearby page ──────────────────────────────────────────── */
.nearby-hero {
  padding: 20px 0 8px;
}
.nearby-h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
  color: var(--text);
}
.nearby-filter {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
}
.cat-filter-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.cat-filter-grid::-webkit-scrollbar { display: none; }
.cat-filter-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: 56px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.cat-filter-item.active {
  opacity: 1;
}
.cat-filter-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.cat-filter-all {
  background: var(--brand, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.cat-filter-single {
  background: #fef3c7;
  color: #a16207;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.cat-filter-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.nearby-page {
  padding: 24px 0 40px;
}

/* ── Categories ───────────────────────────────────────────── */
.categories { padding: 0 0 24px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.cat-item {
  text-align: center;
  padding: 4px 0;
  transition: transform 0.15s;
}
.cat-item:hover {
  transform: translateY(-2px);
}
.cat-img {
  display: block;
  width: 100%;
  max-width: 80px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
}
.cat-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

/* ── Shops ────────────────────────────────────────────────── */
.shops { padding: 0 0 24px; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shop-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.shop-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.shop-thumb {
  position: relative;
  height: 120px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.shop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 12px;
}
.shop-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.empty-shops {
  text-align: center;
  padding: 40px 0;
  color: var(--text-soft);
  font-size: 13px;
}

/* ── Regions ──────────────────────────────────────────────── */
.regions { padding: 0 0 24px; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.region-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.region-item:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

/* ── App CTA ──────────────────────────────────────────────── */
.app-cta { padding: 0 0 20px; }
.app-cta-box {
  padding: 20px;
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-cta-text { flex: 1; }
.app-cta-tag {
  font-size: 12px;
  color: var(--brand-dark-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
.app-cta-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.app-cta-desc {
  color: var(--brand-dark-text);
  font-size: 12px;
}
.app-cta-btn {
  background: #fff;
  color: var(--brand-dark);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.app-cta-btn:hover { opacity: 0.9; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 16px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-soft);
}
.footer .container { padding-top: 16px; }
.footer-biz { margin-bottom: 4px; line-height: 1.6; }
.footer-links { line-height: 1.6; }
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

/* ── Mobile adjustments ───────────────────────────────────── */
@media (max-width: 480px) {
  .nav { gap: 14px; font-size: 13px; }
  .hero { padding: 16px 0 10px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .cat-name { font-size: 11px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(4, 1fr); }
  .app-cta-box { padding: 16px; gap: 12px; }
  .app-cta-title { font-size: 14px; }
}

@media (max-width: 360px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ════════════════════════════════════════════════════════════
   매장 상세 페이지
   ════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { margin: 0 6px; color: var(--text-soft); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Shop hero image ──────────────────────────────────────── */
.shop-hero {
  background: #f3eeff;
}
.shop-hero .container {
  max-width: 720px;
  height: 280px;
  overflow: hidden;
}
.shop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 8px 8px;
}
.shop-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 14px;
}

/* ── Menu list ───────────────────────────────────────────── */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.menu-row:last-child {
  border-bottom: none;
}
.menu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-name {
  font-size: 16px;
  color: var(--text);
}
.menu-duration {
  font-size: 16px;
  color: var(--text);
}
.menu-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary, #7c3aed);
  white-space: nowrap;
}

/* ── Shop detail header ───────────────────────────────────── */
.shop-detail { padding: 20px 0 8px; }
.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tag {
  font-size: 13px;
  padding: 5px 12px;
  background: var(--brand-light);
  color: var(--brand-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}
.shop-h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.shop-addr {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.shop-phone { font-size: 14px; }
.shop-phone a {
  color: var(--brand);
  font-weight: 600;
}

/* ── Shop info header (name + review) ────────────────────── */
.shop-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.shop-info-left { flex: 1; }
.shop-review-badge {
  text-align: right;
  flex-shrink: 0;
}
.review-score {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
}
.review-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Map buttons ──────────────────────────────────────────── */
.map-buttons {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.map-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
}
.map-btn-kakao {
  background: #fee500;
  color: #3c1e1e;
}
.map-btn-naver {
  background: #03c75a;
  color: #fff;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge-single_shop { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-category    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-capacity    { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-amenity     { background: #fef3c7; color: #a16207; border: 1px solid #fde68a; }
.badge-therapist_nat { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }

/* ── Event box ────────────────────────────────────────────── */
.event-box {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.event-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.event-label {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
}
.event-date {
  font-size: 11px;
  color: var(--text-muted);
}
.event-title {
  font-size: 13px;
  font-weight: 500;
}

/* ── Menu prices (day/night) ──────────────────────────────── */
.menu-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.menu-price-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-price-line .price-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.menu-price-line.night .price-label {
  color: #94a3b8;
}
.menu-price-line.night .menu-price {
  color: #94a3b8;
}

/* ── Bio box ──────────────────────────────────────────────── */
.shop-bio-box {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Parking info ─────────────────────────────────────────── */
.parking-info {
  font-size: 13px;
  color: var(--text);
}

/* ── Shop sections (소개/사진/정보) ──────────────────────── */
.shop-section {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.section-h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── Gallery carousel ─────────────────────────────────────── */
.gallery-wrap {
  position: relative;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-prev { left: 6px; }
.gallery-next { right: 6px; }

/* ── Info list ────────────────────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 1.7;
}
.info-key {
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}
.info-val { color: var(--text); }

/* ── Chat CTA on shop page ────────────────────────────────── */
.chat-cta-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
}
.chat-cta-text { flex: 1; }
.chat-cta-small {
  color: var(--brand-dark-text);
  font-size: 11px;
  margin-bottom: 2px;
}
.chat-cta-big {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.chat-cta-btn {
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.chat-cta-btn:hover { opacity: 0.9; }

/* ── 404 page ─────────────────────────────────────────────── */
.error-page {
  padding: 80px 0;
  text-align: center;
}
.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 16px;
}
.error-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.error-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Mobile adjustments — shop page ───────────────────────── */
@media (max-width: 480px) {
  .shop-hero .container { height: 220px; }
  .shop-h1 { font-size: 20px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .chat-cta-box { padding: 14px 16px; }
  .chat-cta-big { font-size: 13px; }
  .chat-cta-btn { padding: 10px 18px; font-size: 13px; }
  .error-code { font-size: 56px; }
  .error-title { font-size: 18px; }
}

/* ════════════════════════════════════════════════════════════
   지역 페이지 (/area, /area/:region)
   ════════════════════════════════════════════════════════════ */

.area-hero {
  padding: 40px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.area-h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.area-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.area-shops { padding: 24px 0; }

.empty-area {
  text-align: center;
  padding: 60px 20px;
}
.empty-area-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-area-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.empty-area-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── /area 인덱스 — 광역 카드 ─────────────────────────────── */
.province-section { padding: 24px 0 48px; }
.province-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.province-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.province-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-2px);
}
.province-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.province-count {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .area-h1 { font-size: 22px; }
  .province-grid { grid-template-columns: repeat(3, 1fr); }
  .province-card { padding: 14px 6px; }
  .province-name { font-size: 14px; }
}

/* ── 시군구 섹션 (area-index 페이지) ───────────────────────── */
.sigungu-section {
  padding: 0 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
}
.sigungu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sigungu-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.sigungu-card:hover {
  background: var(--brand-light);
  color: var(--brand-text);
}
.sigungu-name { font-weight: 500; }
.sigungu-count {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 400;
}
/* ── area 지역 페이지 — 제목 인라인 + ㄱㄴㄷ 필터 ──────────── */
.area-shops-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.area-shops-header .area-h1 {
  text-align: left;
  margin-bottom: 6px;
}
.area-shops-header .area-sub {
  text-align: left;
}

.chosung-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.chosung-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.chosung-btn:hover {
  background: var(--brand-light);
  color: var(--brand-text);
  border-color: var(--brand);
}
.chosung-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.chosung-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 480px) {
  .chosung-btn { padding: 5px 10px; font-size: 12px; }
}

.sigungu-card:hover .sigungu-count {
  color: var(--brand-text-soft);
}

/* ── 크로스링크 섹션 (지역×카테고리 연결) ─────────────────── */
.cross-links-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cross-link {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.cross-link:hover {
  background: var(--brand);
  color: #fff;
}

/* ── 좌측 플로팅 이미지 배너 (화면 고정) ──────────────────── */
.float-banner {
  position: fixed;
  top: 50%;
  left: calc(50% - 545px);
  transform: translateY(-50%);
  width: 165px;
  z-index: 900;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.float-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.float-banner-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 배너+콘텐츠 폭이 안 나오는 좁은 화면에선 숨김 */
@media (max-width: 1120px) {
  .float-banner { display: none; }
}
}

/* ── 메인 흘러가는 공지 띠 ──────────────────────────────────── */
.marquee-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #4c1d95, #7c3aed);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  overflow: hidden;
}
.marquee-label {
  flex-shrink: 0;
  background: #fff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
}
.marquee-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  padding-left: 100%;
  font-size: 14px;
  font-weight: 600;
  animation: marquee-scroll 15s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.marquee-bar:hover .marquee-text { animation-play-state: paused; }

/* ── 공지사항 아코디언 페이지 ───────────────────────────────── */
.notice-section { padding: 28px 0 60px; }
.notice-h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.notice-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.notice-list {
  border-top: 2px solid var(--text);
}
.notice-item {
  border-bottom: 1px solid var(--border);
}
.notice-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.notice-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.notice-pin {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  margin-right: 6px;
}
.notice-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.notice-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.notice-item.is-open .notice-arrow { transform: rotate(180deg); }
.notice-item.is-open .notice-head { border-bottom: 1px solid var(--border); }
.notice-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}
.notice-item.is-open .notice-body { max-height: 2000px; }
.notice-content {
  padding: 20px 16px 24px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-line;
}

/* ── 카테고리 위 공지 박스 ──────────────────────────────────── */
.notice-box-wrap {
  margin: 16px 0 4px;
}
.notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #f5f3ff, #ede9fe);
  border: 1.5px solid #c4b5fd;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.notice-box:hover {
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}
.notice-box-label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
}
.notice-box-text {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #4c1d95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
