/* ===================== Design tokens — "Golden Hour Taipei" ===================== */
:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-alt: #fbf1e6;
  --surface-sunk: #f5e9d9;

  --terracotta: #c2703f;
  --terracotta-dark: #9c5228;
  --terracotta-tint: #f3ded0;

  --coral: #e0917f;
  --coral-tint: #f7e2dc;

  --gold: #cf9a3d;
  --gold-tint: #f4e6c8;

  --sage: #7c8a68;
  --sage-tint: #e7ebdd;

  --ink: #2a1f16;
  --ink-soft: #6c5c4b;
  --ink-faint: #9c8a76;

  --border: #ead9c2;
  --border-soft: #f0e4d2;

  --shadow-sm: 0 2px 10px rgba(42, 31, 22, 0.06);
  --shadow-md: 0 10px 30px rgba(42, 31, 22, 0.10);
  --shadow-lg: 0 20px 50px rgba(42, 31, 22, 0.16);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --font-display: 'Fraunces', 'Pretendard Variable', 'Pretendard', serif;
  --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --header-h: 76px;
}

/* ===================== Reset ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--terracotta);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn.primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(194, 112, 63, 0.35);
}
.btn.primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn.ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: rgba(255,255,255,0.24); }
.btn.outline {
  background: transparent;
  color: var(--terracotta-dark);
  border: 1.5px solid var(--border);
}
.btn.outline:hover { border-color: var(--terracotta); background: var(--terracotta-tint); }
.btn:active { transform: scale(0.96); }

/* ===================== Header ===================== */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#site-header.scrolled {
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
#site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(194, 112, 63, 0.35);
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.brand .name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.02em; }

#site-nav { display: flex; align-items: center; gap: 6px; }
#site-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
#site-nav a:hover, #site-nav a.active { background: var(--surface-alt); color: var(--terracotta-dark); }

.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft);
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 132px;
  display: none;
  flex-direction: column;
  z-index: 1200;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  border: none; background: none; text-align: left;
  padding: 9px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.lang-menu button:hover, .lang-menu button.active { background: var(--surface-alt); color: var(--terracotta-dark); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav dropdown */
@media (max-width: 720px) {
  #site-nav {
    position: absolute; top: 100%; left: 12px; right: 12px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  #site-nav.mobile-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  #site-nav a { padding: 12px 14px; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  margin: 20px 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
  background: #2a1f16;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30, 21, 14, 0.86) 0%, rgba(30, 21, 14, 0.55) 45%, rgba(30, 21, 14, 0.15) 75%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 60px 56px;
  max-width: 620px;
}
.hero .eyebrow { color: var(--gold-tint); }
.hero .eyebrow::before { background: var(--gold-tint); }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  margin: 16px 0 18px;
}
.hero h1 em { font-style: italic; color: var(--gold-tint); }
.hero p {
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 24px; color: #fff; font-weight: 600; }
.hero-stats .stat span { font-size: 11.5px; color: rgba(255,255,255,0.7); }

/* ===================== Section shell ===================== */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; margin-top: 10px; }
.section-head p { font-size: 14.5px; color: var(--ink-faint); margin: 10px 0 0; max-width: 460px; }
.section-head .link-all { font-size: 13.5px; font-weight: 700; color: var(--terracotta-dark); white-space: nowrap; display: flex; align-items: center; gap: 5px; }

.section.alt { background: var(--surface-alt); }

/* ===================== Category grid ===================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,21,14,0) 45%, rgba(30,21,14,0.78) 100%);
}
.cat-card .lbl {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 10px;
  z-index: 1;
  color: #fff;
  font-size: 13px; font-weight: 700;
  text-align: center;
}

/* ===================== Embedded map (홈 "무엇을 먹어볼까요?") ===================== */
.embedded-map-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-filter-panel.embedded {
  position: static;
  border: none; border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  box-shadow: none;
}
.map-filter-panel.embedded .filter-toggle { padding: 14px 24px; }
.map-filter-panel.embedded .filter-panel-body { padding: 0 24px; }
.map-filter-panel.embedded.expanded .filter-panel-body { max-height: 260px; overflow-y: auto; padding: 2px 24px 16px; }
.embedded-map-wrap { position: relative; height: 460px; }
.embedded-map-wrap #homeMap { position: absolute; inset: 0; }
.embedded-map-wrap .map-loading { top: 16px; bottom: auto; }
.embedded-map-wrap .empty-note-float { position: absolute; }

@media (max-width: 720px) {
  .map-filter-panel.embedded .filter-toggle { padding: 12px 16px; }
  .map-filter-panel.embedded .filter-panel-body { padding: 0 16px; }
  .map-filter-panel.embedded.expanded .filter-panel-body { padding: 2px 16px 12px; }
  .embedded-map-wrap { height: 380px; }
}

/* ===================== Recent contributors banner ===================== */
.recent-banner-wrap { padding: 0 24px; margin: -28px 0 32px; position: relative; z-index: 1; }
.recent-banner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--sage-tint); border: 1px solid var(--sage);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 13px; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.recent-banner .rb-emoji { font-size: 16px; flex: none; }
.recent-banner .rb-label { font-weight: 700; color: var(--sage); white-space: nowrap; flex: none; }
.recent-banner .rb-marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.recent-banner .rb-track {
  display: flex; flex-wrap: nowrap; gap: 8px; width: max-content;
  animation: rb-scroll 26s linear infinite;
}
.recent-banner:hover .rb-track { animation-play-state: paused; }
.recent-banner .name-chip {
  display: inline-block; background: #fff; white-space: nowrap;
  border: 1px solid var(--border-soft); border-radius: var(--radius-full);
  padding: 3px 12px; font-size: 12px; font-weight: 700; color: var(--terracotta-dark);
}
@keyframes rb-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .recent-banner .rb-track { animation: none; }
  .recent-banner .rb-marquee { overflow-x: auto; }
}

/* ===================== Region cards ===================== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.region-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-md);
}
.region-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.region-card:hover img { transform: scale(1.08); }
.region-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,21,14,0.05) 30%, rgba(30,21,14,0.88) 100%);
}
.region-card .tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.region-card .info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; color: #fff; }
.region-card .info .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.region-card .info .sub { font-size: 12px; color: rgba(255,255,255,0.78); margin-top: 4px; }

/* ===================== Region guide article ===================== */
.region-hero .hero-content { max-width: 680px; }
.region-article { max-width: 720px; margin: 0 auto; }
.region-intro {
  font-size: 18px; line-height: 1.75; color: var(--ink-soft);
  margin: 0 0 48px;
}
.region-h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink);
  margin: 0 0 22px;
}

.region-highlight-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 48px;
}
.region-highlight-card {
  display: flex; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.region-highlight-card .num {
  flex: 0 0 auto;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--terracotta-tint);
  -webkit-text-stroke: 1px var(--terracotta);
}
.region-highlight-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.region-highlight-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.region-activity-list { list-style: none; padding: 0; margin: 0 0 8px; }
.region-activity-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-soft); line-height: 1.6;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.region-activity-list li:last-child { border-bottom: none; }
.region-activity-list .check {
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}

@media (max-width: 720px) {
  .region-highlight-grid { grid-template-columns: 1fr; }
  .region-intro { font-size: 16px; }
}

/* ---- 지역별 실제 등록된 맛집 목록 (카테고리별 그룹) ---- */
.region-spots-subarea { margin-bottom: 44px; }
.region-spots-subarea:last-child { margin-bottom: 0; }
.region-spots-subarea-head {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1.5px solid var(--border);
}
.region-spots-group { margin-bottom: 32px; }
.region-spots-group:last-child { margin-bottom: 0; }
.region-spots-group-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--terracotta-dark);
  margin-bottom: 14px;
}
.region-spots-group-head .ico { font-size: 17px; }

.region-spot-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.region-spot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.region-spot-card .name {
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.region-spot-card .view-link {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--sage);
  white-space: nowrap;
}

/* ===================== CTA band ===================== */
.cta-band {
  margin: 0 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--terracotta-dark), var(--terracotta) 60%, var(--gold));
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; max-width: 480px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 10px 0 0; }

/* ===================== Footer ===================== */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid .brand .name { font-size: 16px; }
.footer-grid p.desc { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; max-width: 260px; line-height: 1.7; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13.5px; color: var(--ink-soft); }
.footer-col ul a:hover { color: var(--terracotta-dark); }
.footer-lang-btn {
  background: none; border: none; padding: 0; text-align: left;
  font-size: 13.5px; color: var(--ink-soft); font-family: inherit;
}
.footer-lang-btn:hover { color: var(--terracotta-dark); }
.footer-lang-btn.active { color: var(--terracotta-dark); font-weight: 700; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--ink-faint);
}

/* ===================== Scroll reveal ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i, 0) * 40ms); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  #site-nav, .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .hero { margin: 12px 12px 0; min-height: 480px; }
  .hero-content { padding: 36px 26px; }
  .hero-stats { gap: 18px; }
  .section { padding: 56px 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .region-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0 12px; flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ===================== Map page ===================== */
body.map-page { height: 100%; overflow: hidden; }
html:has(body.map-page) { height: 100%; }
.map-shell { position: relative; height: calc(100vh - var(--header-h)); }
#map { position: absolute; inset: 0; z-index: 0; }
.leaflet-tile { filter: sepia(0.1) saturate(1.08) hue-rotate(-4deg); }

.map-filter-panel {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 500;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.filter-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: none; border: none;
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.filter-toggle-label { display: flex; align-items: center; gap: 6px; }
.filter-toggle-label .ico { font-size: 15px; line-height: 1; }
.filter-toggle-chevron {
  flex: 0 0 auto;
  color: var(--ink-faint); font-size: 11px;
  transition: transform 0.2s ease;
}
.map-filter-panel.expanded .filter-toggle-chevron { transform: rotate(180deg); }
.map-filter-panel.expanded .filter-toggle { border-bottom: 1px solid var(--border-soft); }

.filter-panel-body {
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: max-height 0.25s ease;
}
.map-filter-panel.expanded .filter-panel-body {
  max-height: calc(100vh - var(--header-h) - 160px);
  overflow-y: auto;
  padding: 10px 14px 14px;
}
.filter-panel-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.filter-action-btn {
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 11.5px; font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: transform 0.15s ease, background 0.15s ease;
}
.filter-action-btn:hover { background: var(--terracotta-tint); color: var(--terracotta-dark); border-color: var(--terracotta-tint); }
.filter-action-btn:active { transform: scale(0.95); }
.filter-count { font-size: 12.5px; font-weight: 700; color: var(--terracotta-dark); }

.map-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-chip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip-ico { font-size: 15px; line-height: 1; }
.filter-chip.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.filter-chip:active, .lang-opt:active, .round-fab:active, .add-fab:active { transform: scale(0.95); }

.map-fab-col {
  position: absolute; bottom: 24px; right: 20px; z-index: 500;
  display: flex; flex-direction: column; gap: 12px;
}
.round-fab {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  font-size: 19px;
  transition: transform 0.15s ease;
}
.add-fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: none; font-size: 26px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(194, 112, 63, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.add-fab:hover { background: var(--terracotta-dark); }

.map-loading {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
  z-index: 500;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-md);
}
.map-loading .spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--terracotta);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-note-float {
  display: none;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 500;
  flex-direction: column; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  max-width: 240px;
  pointer-events: none;
}
.empty-note-float .ico { font-size: 26px; }

.map-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 500;
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0.92;
}

/* Leaflet marker pin — 아이콘 배지 */
.spot-pin {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(42,31,22,0.35);
  border: 2.5px solid #fff;
  background: var(--terracotta);
}
.spot-pin.verified { background: var(--sage); }
.spot-pin .pin-ico { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.spot-pin .verified-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; transform: rotate(45deg);
  border: 1.5px solid #fff;
}
.spot-pin .new-badge {
  position: absolute; top: -7px; left: -9px;
  background: var(--terracotta-dark); color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: 0.02em;
  padding: 1px 5px; border-radius: var(--radius-full);
  transform: rotate(45deg);
  border: 1.5px solid #fff;
  animation: newBadgePulse 1.6s ease-in-out infinite;
}
@keyframes newBadgePulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .spot-pin .new-badge { animation: none; }
}

/* 겹치는 핀을 묶어 보여주는 클러스터 뱃지 */
.spot-cluster {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; font-family: var(--font-display); font-weight: 600;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(42, 31, 22, 0.35);
}
.spot-cluster.small { width: 38px; height: 38px; font-size: 13px; background: var(--terracotta); }
.spot-cluster.medium { width: 46px; height: 46px; font-size: 15px; background: var(--terracotta-dark); }
.spot-cluster.large { width: 56px; height: 56px; font-size: 17px; background: var(--sage); }

/* 등록 시트가 열려있는 동안 "여기에 등록됩니다" 표시하는 임시 핀 */
.draft-pin {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: flex-end; justify-content: center;
}
.draft-pin-pulse {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(207, 154, 61, 0.35);
  animation: draftPulse 1.4s ease-out infinite;
}
.draft-pin-dot {
  position: relative; z-index: 1;
  font-size: 30px; line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(42,31,22,0.4));
  animation: draftBounce 0.6s ease infinite alternate;
}
@keyframes draftPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(2.6); opacity: 0; }
}
@keyframes draftBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.leaflet-popup-content-wrapper { border-radius: 18px; padding: 2px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; }
.popup-card { width: 240px; font-family: var(--font-body); padding: 4px; }
.popup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.popup-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--terracotta-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.popup-card .cat-line {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.popup-card .popup-name {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink);
  line-height: 1.3;
}
.popup-card .popup-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--ink-faint);
}
.popup-card .verified-tag { background: var(--sage-tint); color: var(--sage); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.popup-card .popup-address { font-size: 11.5px; color: var(--ink-faint); margin: 0 0 8px; line-height: 1.4; }
.popup-card .review { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 10px; }
.popup-card .popup-link {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--sage);
  margin: -2px 0 10px; text-decoration: none;
}
.vote-row { display: flex; gap: 6px; }
.vote-btn {
  flex: 1; border: 1.5px solid var(--border-soft); background: var(--surface-alt);
  border-radius: 12px; padding: 8px 4px;
  font-size: 11px; font-weight: 700; color: var(--ink-soft); line-height: 1.3; text-align: center;
}
.vote-btn.up { background: var(--sage-tint); border-color: transparent; color: var(--sage); }
.vote-btn.down { background: var(--coral-tint); border-color: transparent; color: var(--terracotta-dark); }
.vote-btn:disabled { opacity: 0.5; }
.vote-counts { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-faint); margin-top: 8px; }
.popup-contributor { margin: 8px 0 0; font-size: 10.5px; color: var(--ink-faint); text-align: right; }

/* ===================== Add-spot sheet ===================== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(42, 31, 22, 0.42);
  display: none; align-items: flex-end; justify-content: center;
}
.sheet-overlay.open { display: flex; }
.sheet {
  background: var(--bg);
  width: 100%; max-width: 520px;
  border-radius: 26px 26px 0 0;
  padding: 20px 22px 26px;
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 721px) {
  .sheet-overlay { align-items: center; }
  .sheet { border-radius: 26px; max-height: 84vh; }
}
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 4px; margin: 0 auto 16px; }
.sheet-intro {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #fff; border-radius: 20px; padding: 18px 20px 20px; margin-bottom: 20px;
}
.sheet-intro h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.sheet-intro p { font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.86); margin: 0; }

.sheet-steps { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.sheet-steps li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.94); }
.sheet-steps .step-num {
  flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; color: #fff;
  margin-top: 1px;
}

.field-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.field-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.field-label small { font-weight: 600; color: var(--ink-faint); }

.field-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: -4px 0 12px; }
.field-hint.nickname-hint { margin: -12px 0 20px; }

.text-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--surface);
  margin-bottom: 18px;
}

.select-wrap { position: relative; margin-bottom: 18px; }
.select-wrap::after {
  content: "▾";
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--ink-faint);
  pointer-events: none;
}
.select-input {
  appearance: none; -webkit-appearance: none;
  margin-bottom: 0;
  padding-right: 36px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.link-row input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12.5px;
  font-family: var(--font-body);
  background: var(--surface);
}
.autofill-btn {
  border: none;
  background: var(--terracotta-tint);
  color: var(--terracotta-dark);
  font-weight: 700; font-size: 12px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.autofill-btn:hover { background: var(--terracotta); color: #fff; }
.autofill-btn:active { transform: scale(0.96); }


.sheet textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  min-height: 70px;
  margin-bottom: 18px;
  background: var(--surface);
}
.sheet-actions { display: flex; gap: 10px; }
.sheet .btn { flex: 1; justify-content: center; }
.btn.ghost-light { background: var(--surface-alt); color: var(--ink-soft); }
.btn:disabled { opacity: 0.5; }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700;
  z-index: 3000; opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; max-width: 85%; text-align: center;
}
.toast.show { opacity: 1; }

/* ===================== Profile page ===================== */
.profile-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 100px; }

.profile-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta) 55%, var(--gold));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.avatar-circle {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}
.profile-hero .level-pill {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.profile-hero h2 { color: #fff; font-size: 24px; margin: 4px 0 6px; }
.profile-hero .uid { font-size: 11.5px; color: rgba(255,255,255,0.7); }

.stat-row { display: flex; gap: 16px; margin: 24px 0; }
.stat-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--terracotta-dark); }
.stat-card.sage .num { color: var(--sage); }
.stat-card .lbl { font-size: 12px; font-weight: 600; color: var(--ink-faint); margin-top: 4px; }

.card-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.level-track { position: relative; height: 4px; background: var(--border-soft); border-radius: 4px; margin: 20px 6px 10px; }
.level-track .fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--sage); border-radius: 4px; transition: width 0.4s ease; }
.level-track .dot {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: var(--border-soft); border: 2px solid var(--surface);
  transform: translate(-50%, -50%);
}
.level-track .dot.done { background: var(--sage); }
.level-track .dot.current { background: var(--terracotta); width: 17px; height: 17px; box-shadow: 0 0 0 5px var(--terracotta-tint); }
.level-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-faint); padding: 0 2px; }
.level-note { margin-top: 16px; background: var(--surface-alt); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.lb-row:last-child { border-bottom: none; }
.lb-row.me { background: var(--surface-alt); border-radius: 12px; padding: 12px 12px; margin: 0 -12px; }
.lb-rank { width: 24px; text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--terracotta-dark); font-size: 15px; }
.lb-row:nth-child(1) .lb-rank { color: var(--gold); font-size: 19px; }
.lb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lb-name { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.lb-pts { font-size: 12px; font-weight: 700; color: var(--sage); }

.lang-grid-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-opt {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lang-opt.active { background: var(--terracotta-tint); border-color: var(--terracotta); color: var(--terracotta-dark); }

@media (max-width: 620px) {
  .profile-wrap { padding: 32px 18px 80px; }
  .stat-row { flex-direction: column; }
}

/* ===================== Board (게시판) ===================== */
.board-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 100px; }

.board-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.board-tab {
  border: 1.5px solid var(--border-soft);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px; font-weight: 700;
  padding: 8px 15px; border-radius: var(--radius-full);
  transition: transform 0.15s ease, background 0.15s ease;
}
.board-tab.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.board-tab:active { transform: scale(0.95); }

.board-list {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.board-row {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s ease;
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--surface-alt); }
.board-cat-tag {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--terracotta-tint); color: var(--terracotta-dark);
}
.board-row .board-main { flex: 1; min-width: 0; }
.board-row .board-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-row .board-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.board-row .board-comment-count {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--sage);
  min-width: 28px; text-align: right;
}

.board-empty, .board-loading {
  padding: 60px 20px; text-align: center;
  color: var(--ink-faint); font-size: 13.5px;
}

.board-load-more {
  display: block; margin: 20px auto 0;
  background: var(--surface-alt); color: var(--ink-soft);
  border: 1.5px solid var(--border-soft);
  font-size: 13px; font-weight: 700;
  padding: 11px 24px; border-radius: var(--radius-full);
}
.board-load-more:hover { background: var(--terracotta-tint); color: var(--terracotta-dark); }

/* ---- Post detail ---- */
.post-detail-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.post-detail-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); margin: 10px 0 12px; line-height: 1.35; }
.post-detail-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-faint); padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; }
.post-detail-meta .dot-sep::before { content: "·"; margin: 0 2px; }
.post-detail-content { font-size: 15px; line-height: 1.8; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }

.comment-section h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.comment-list { margin-bottom: 24px; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.comment-item:last-child { border-bottom: none; }
.comment-item .comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.comment-item .comment-meta .date { font-weight: 500; color: var(--ink-faint); }
.comment-item .comment-body { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea {
  width: 100%; min-height: 72px; resize: none;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 12px 14px; font-family: var(--font-body); font-size: 13.5px;
  background: var(--surface);
}
.comment-form-row { display: flex; gap: 10px; }
.comment-form-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; font-family: var(--font-body);
  background: var(--surface);
}
.comment-form-row .btn { flex: 0 0 auto; padding: 10px 20px; font-size: 13px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink-faint);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--terracotta-dark); }

@media (max-width: 620px) {
  .board-wrap { padding: 32px 16px 80px; }
  .board-row { padding: 14px 16px; }
  .post-detail-card { padding: 22px 18px; }
}

/* ===================== Admin mode ===================== */
.tfm-admin-toggle {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 9999; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 17px; opacity: 0.55;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
}
.tfm-admin-toggle:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }

.tfm-admin-panel {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%) translateX(120%);
  z-index: 9999; width: 230px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 16px;
  transition: transform 0.2s ease;
}
.tfm-admin-panel.open { transform: translateY(-50%) translateX(0); }
.tfm-admin-panel-head { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.tfm-admin-panel-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 12px; }
.tfm-admin-panel-count { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.tfm-admin-panel-actions { display: flex; gap: 8px; }
.tfm-admin-save, .tfm-admin-exit {
  flex: 1; font-size: 12.5px; font-weight: 700; padding: 9px 0;
  border-radius: var(--radius-full); border: 1.5px solid var(--border);
}
.tfm-admin-save { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.tfm-admin-save:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.tfm-admin-exit { background: var(--surface); color: var(--ink-soft); }
.tfm-admin-exit:hover { background: var(--surface-alt); }

body.tfm-admin-editing [data-i18n], body.tfm-admin-editing [data-i18n-html] {
  border-radius: 4px;
}
.tfm-admin-editable { outline: 1.5px dashed var(--sage); outline-offset: 2px; cursor: text; }
.tfm-admin-editable:focus { outline: 2px solid var(--terracotta); background: var(--gold-tint); }
.tfm-admin-dirty { background: var(--sage-tint); }

@media (max-width: 620px) {
  .tfm-admin-toggle { right: 10px; width: 36px; height: 36px; font-size: 15px; }
  .tfm-admin-panel { right: 10px; width: 190px; padding: 14px 12px; }
}
