/**
 * EIBE 맛집 · 회식 공유소 — 회의실과 동일 토큰 · 좌 목록 / 우 상세
 */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e5e8f0;
  --line-soft: #eef1f6;
  --text: #1b2438;
  --muted: #545c6a;
  --muted-2: #8a93a3;
  --primary: #2eac39;
  --primary-hover: #239832;
  --primary-soft: #e8f7ea;
  --dark: #1e2640;
  --danger: #cc406d;
  --warning: #d97706;
  --warning-soft: #fdf1e2;

  /* mood badges — soft pastel */
  --mood-lunch-bg: #fff3ea;
  --mood-lunch-fg: #9a5a30;
  --mood-lunch-line: #edd4c0;
  --mood-party-bg: #faf0f3;
  --mood-party-fg: #8a4d5c;
  --mood-party-line: #e8cfd6;
  --mood-cafe-bg: #eef5f0;
  --mood-cafe-fg: #3f6a51;
  --mood-cafe-line: #c8dbd0;
  --mood-staff-bg: #eef3fc;
  --mood-staff-fg: #3b5fc0;
  --mood-staff-line: #c5d3f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 27, 51, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 27, 51, 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-1: 0.22s;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.018em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.028em; line-height: 1.28; }
.hidden { display: none !important; }
.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;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.brand-mark--link {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) var(--ease-soft);
}
.brand-mark--link:hover { color: var(--dark); }

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft),
    border-color var(--dur-1) var(--ease-soft);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(46, 172, 57, 0.28); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: #f4f6fa; border-color: #d0d6e2; }
.btn-danger {
  border-color: rgba(204, 64, 109, 0.28);
  color: var(--danger);
  background: #fff;
}
.btn-danger:hover { background: #fdf2f6; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.req { color: var(--danger); }
.opt { color: var(--muted-2); font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 11px 13px;
  font: inherit;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 172, 57, 0.12);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 921px) {
  .app {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__brand .brand-mark { font-size: 1.25rem; }
.topbar__crumb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.topbar__crumb::after {
  content: "/";
  margin-left: 10px;
  color: var(--line);
  font-weight: 600;
}
.topbar__title { font-weight: 700; font-size: 1.05rem; }
.topbar__right { display: flex; align-items: center; gap: 12px; }

.sync-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  line-height: 1.3;
}
.sync-chip--wait {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.sync-chip--live {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.sync-chip--local {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}
.sync-chip--off {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.user-chip__avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--dark); color: #fff;
  border-radius: 50%;
  font-weight: 700; font-size: 0.85rem;
}
.user-chip__name { font-weight: 600; font-size: 0.9rem; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.list-panel,
.detail-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.panel-head__title { font-size: 1.08rem; }
.panel-head__sub { margin: 3px 0 0; color: var(--muted); font-size: 0.82rem; }

.count-badge {
  flex-shrink: 0;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: var(--radius-full);
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  padding-left: 36px;
  min-height: 40px;
}

.list-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.list-controls .mood-tabs {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.sort-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--line-soft);
}
.sort-toggle__btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.sort-toggle__btn:hover { color: var(--text); }
.sort-toggle__btn.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mood-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.mood-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 6px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.mood-tab:hover { border-color: #d0d6e2; color: var(--text); }
.mood-tab.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.mood-tab--lunch:not(.is-active) {
  color: var(--mood-lunch-fg);
  border-color: var(--mood-lunch-line);
  background: #fff;
}
.mood-tab--party:not(.is-active) {
  color: var(--mood-party-fg);
  border-color: var(--mood-party-line);
  background: #fff;
}
.mood-tab--cafe:not(.is-active) {
  color: var(--mood-cafe-fg);
  border-color: var(--mood-cafe-line);
  background: #fff;
}
.mood-tab--staff:not(.is-active) {
  color: var(--mood-staff-fg);
  border-color: var(--mood-staff-line);
  background: #fff;
}
.mood-tab--lunch.is-active {
  background: var(--mood-lunch-bg);
  border-color: var(--mood-lunch-line);
  color: var(--mood-lunch-fg);
}
.mood-tab--party.is-active {
  background: var(--mood-party-bg);
  border-color: var(--mood-party-line);
  color: var(--mood-party-fg);
}
.mood-tab--cafe.is-active {
  background: var(--mood-cafe-bg);
  border-color: var(--mood-cafe-line);
  color: var(--mood-cafe-fg);
}
.mood-tab--staff.is-active {
  background: var(--mood-staff-bg);
  border-color: var(--mood-staff-line);
  color: var(--mood-staff-fg);
}

.place-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.place-empty {
  margin: auto;
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}
.place-empty h2 { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.place-empty p { margin: 0; font-size: 0.88rem; }

.place-item {
  --i: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    border-color var(--dur-1) var(--ease-soft),
    background var(--dur-1) var(--ease-soft),
    box-shadow var(--dur-1) var(--ease-soft),
    transform var(--dur-fast) var(--ease-out);
  animation: item-in 0.4s var(--ease-out) both;
  animation-delay: calc(var(--i) * 40ms);
}
@keyframes item-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.place-item:hover {
  border-color: #d0d6e2;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.place-item.is-active {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(46, 172, 57, 0.22);
}
.place-item.is-active:hover {
  border-color: var(--primary);
}
.place-item__rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--line-soft);
}
.place-item.is-active .place-item__rank {
  color: var(--text);
}
.place-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.place-item__name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-item__sub {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.place-item__moods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.place-item__addr {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-head {
  align-items: flex-start;
}
.place-head__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.place-head__moods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.place-head__moods .mood-chip {
  margin: 0;
}
.place-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.place-item__reco {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.place-item.is-active .place-item__reco {
  color: var(--muted);
}
.place-item__walk {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  justify-content: flex-end;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.place-item__walk small {
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 1px;
}
.place-item__walk.is-unknown {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.btn-block { width: 100%; }

/* 등록 전 랜딩 */
.eco-landing {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  animation: detail-in 0.35s var(--ease-out);
}
.eco-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.eco-head__copy {
  min-width: 0;
  flex: 1 1 auto;
}
.eco-head__title { font-size: 1.15rem; }
.eco-head__sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.eco-head__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: flex-start;
}

.eco-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfcfe;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.eco-card--map {
  flex: 1 1 auto;
  min-height: 0;
}
.eco-card--discover {
  flex: 0 0 auto;
}
.eco-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.eco-card__head h3 {
  font-size: 0.88rem;
}
.eco-card__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-hover);
  text-decoration: none;
  white-space: nowrap;
}
.eco-card__link:hover { text-decoration: underline; }
.eco-card__hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.map-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dce4ee;
  isolation: isolate;
  z-index: 0;
}
.map-frame--landing {
  flex: 1 1 auto;
  height: auto;
  min-height: 320px;
}
.leaflet-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: 0;
  background: #dce4ee;
}
.leaflet-host .leaflet-container {
  width: 100% !important;
  height: 100% !important;
}
.map-frame--detail {
  height: 260px;
  margin-bottom: 12px;
}
.map-frame--pick {
  height: 140px;
}
.map-frame__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 22, 40, 0.78));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  pointer-events: none;
}
.map-frame__bar a {
  pointer-events: auto;
  color: #b7f0be;
  text-decoration: none;
  font-weight: 700;
}
.map-frame__bar a:hover { text-decoration: underline; }

.map-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.leaflet-div-icon.pin-wrap {
  background: transparent;
  border: none;
}
.pin-hq {
  background: var(--dark);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 12px rgba(15, 27, 51, 0.28);
  white-space: nowrap;
}
.pin-place {
  background: var(--primary);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(46, 172, 57, 0.35);
  cursor: pointer;
}
.pin-place.is-active {
  background: #fff;
  color: var(--primary-hover);
  outline: 2px solid var(--primary);
}

.pin-tooltip {
  border: none !important;
  background: rgba(15, 22, 40, 0.92) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(9, 12, 20, 0.28) !important;
}
.pin-tooltip::before {
  border-top-color: rgba(15, 22, 40, 0.92) !important;
}

.discover-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-nav {
  flex-shrink: 0;
  margin-bottom: 10px;
}
.detail-nav__back {
  white-space: nowrap;
}

.walk-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--line-soft);
  flex-shrink: 0;
}
.walk-strip__route {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 88px;
}
.walk-strip__hq {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: var(--dark);
  border-radius: 6px;
  padding: 3px 6px;
  letter-spacing: -0.02em;
}
.walk-strip__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--dark), var(--primary));
  border-radius: 2px;
  min-width: 28px;
}
.walk-strip__pin { color: var(--primary); font-size: 0.7rem; }
.walk-strip__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.detail-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  animation: detail-in 0.35s var(--ease-out);
}
@keyframes detail-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.detail-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}
.detail-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.place-head { margin-bottom: 10px; }
.mood-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: var(--line-soft);
  color: var(--muted);
}
.mood-chip--sm {
  margin-bottom: 0;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 650;
}
.mood-chip--lunch {
  background: var(--mood-lunch-bg);
  color: var(--mood-lunch-fg);
  border-color: var(--mood-lunch-line);
}
.mood-chip--party {
  background: var(--mood-party-bg);
  color: var(--mood-party-fg);
  border-color: var(--mood-party-line);
}
.mood-chip--cafe {
  background: var(--mood-cafe-bg);
  color: var(--mood-cafe-fg);
  border-color: var(--mood-cafe-line);
}
.mood-chip--staff {
  background: var(--mood-staff-bg);
  color: var(--mood-staff-fg);
  border-color: var(--mood-staff-line);
}

.place-review {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--line-soft);
  font-size: 0.92rem;
  color: var(--text);
  flex-shrink: 0;
  white-space: pre-line;
}
.place-review.is-empty {
  color: var(--muted-2);
  font-style: italic;
}

.reco-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.reco-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-1),
    border-color var(--dur-1),
    color var(--dur-1);
}
.reco-btn:hover { border-color: #d0d6e2; }
.reco-btn.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.reco-btn.is-bump { animation: reco-bump 0.35s var(--ease-out); }
@keyframes reco-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.reco-btn__icon { font-size: 0.7rem; line-height: 1; }
.reco-btn__count {
  min-width: 1.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reco-meter {
  flex: 1;
  min-width: 80px;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.reco-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #67c872, var(--primary));
  transition: width 0.45s var(--ease-out);
}

.map-link { text-decoration: none; }

.meta-row {
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--muted-2);
  flex-shrink: 0;
}

.opinions {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f7f9fc;
  padding: 12px;
}
.opinions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.opinions__title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.02em;
}
.opinions__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.opinions__feed {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding-right: 2px;
}
.opinions__empty {
  margin: auto;
  color: var(--muted-2);
  font-size: 0.88rem;
  text-align: center;
  padding: 24px 12px;
}

.opinion {
  --i: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  animation: item-in 0.35s var(--ease-out) both;
  animation-delay: calc(var(--i) * 45ms);
  flex-shrink: 0;
}
.opinion__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.opinion__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: keep-all;
}
.opinion__meta {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.opinion-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.opinion-form input { min-height: 40px; flex: 1; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 40, 0.45);
  backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: card-in 0.28s var(--ease-out);
}
.modal__card--wide {
  width: min(560px, 100%);
}
.modal__card--add {
  width: min(520px, 100%);
  max-height: min(92vh, 780px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(46, 172, 57, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 64px rgba(15, 22, 40, 0.18);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 22px 22px 16px;
  background:
    linear-gradient(135deg, rgba(46, 172, 57, 0.1), rgba(46, 172, 57, 0.02) 55%, transparent),
    #fff;
  border-bottom: 1px solid var(--line);
}
.modal__head-text { min-width: 0; }
.modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.modal__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 22, 40, 0.06);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover {
  background: rgba(15, 22, 40, 0.1);
  color: var(--text);
}
.modal__card--add .modal__title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.modal__card--add .modal__sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.modal__card--add .modal__form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 22px;
  gap: 16px;
}
.place-search--modal {
  border-color: rgba(46, 172, 57, 0.18);
  box-shadow: 0 8px 24px rgba(46, 172, 57, 0.06);
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-mood {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-mood__btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft);
}
.modal-mood__btn:hover {
  border-color: #d0d6e2;
  color: var(--text);
}
.modal-mood__btn.is-active {
  box-shadow: none;
}
.modal-mood__btn--lunch:not(.is-active),
.modal-mood__btn--party:not(.is-active),
.modal-mood__btn--cafe:not(.is-active),
.modal-mood__btn--staff:not(.is-active) {
  background: #fff;
}
.modal-mood__btn--lunch:not(.is-active) {
  color: var(--mood-lunch-fg);
  border-color: var(--mood-lunch-line);
}
.modal-mood__btn--party:not(.is-active) {
  color: var(--mood-party-fg);
  border-color: var(--mood-party-line);
}
.modal-mood__btn--cafe:not(.is-active) {
  color: var(--mood-cafe-fg);
  border-color: var(--mood-cafe-line);
}
.modal-mood__btn--staff:not(.is-active) {
  color: var(--mood-staff-fg);
  border-color: var(--mood-staff-line);
}
.modal-mood__btn--lunch.is-active {
  background: var(--mood-lunch-bg);
  border-color: var(--mood-lunch-line);
  color: var(--mood-lunch-fg);
}
.modal-mood__btn--party.is-active {
  background: var(--mood-party-bg);
  border-color: var(--mood-party-line);
  color: var(--mood-party-fg);
}
.modal-mood__btn--cafe.is-active {
  background: var(--mood-cafe-bg);
  border-color: var(--mood-cafe-line);
  color: var(--mood-cafe-fg);
}
.modal-mood__btn--staff.is-active {
  background: var(--mood-staff-bg);
  border-color: var(--mood-staff-line);
  color: var(--mood-staff-fg);
}
.field--review textarea {
  min-height: 96px;
  resize: vertical;
}
.field__hint {
  display: block;
  margin-top: -2px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.modal__card--add .modal__actions {
  margin-top: 4px;
  padding-top: 4px;
}
.modal__card--add .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 네이버 장소 검색 */
.place-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(46, 172, 57, 0.04), transparent 70%),
    #fbfcfe;
}
.place-search__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.place-search__input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.place-search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}
.place-search__input-wrap input {
  padding-left: 36px;
  padding-right: 36px;
  min-height: 40px;
}
.place-search__spin {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.place-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hint-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.hint-chip:hover {
  border-color: rgba(46, 172, 57, 0.4);
  color: var(--primary-hover);
  background: var(--primary-soft);
}
.place-search__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
}
.place-search__status.is-err { color: var(--danger); }
.place-search__status.is-ok { color: var(--primary-hover); }

.place-search__results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.place-search__results li { border-bottom: 1px solid var(--line-soft); }
.place-search__results li:last-child { border-bottom: 0; }
.place-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.place-result:hover,
.place-result.is-active {
  background: var(--primary-soft);
}
.place-result__name {
  font-weight: 700;
  font-size: 0.92rem;
}
.place-result__meta {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.4;
}
.place-result__badge {
  align-self: start;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--line-soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.picked-place {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 172, 57, 0.35);
  background: var(--primary-soft);
}
.picked-place__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
}
.picked-place__title {
  margin: 0;
  font-size: 1rem;
}
.picked-place__cat,
.picked-place__addr {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.picked-place__walk {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-hover);
}
.picked-place__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__title { font-size: 1.15rem; }
.modal__sub { margin: 6px 0 18px; color: var(--muted); font-size: 0.9rem; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  padding: 12px 18px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease-out);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.space-launcher-stack {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.space-launcher {
  --space-launcher-accent: #3cb34a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px 11px 15px;
  color: #f4f6f8;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(16, 19, 26, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(9, 12, 20, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  animation: space-launcher-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.space-launcher-stack .space-launcher:nth-child(2) { animation-delay: 0.34s; }
.space-launcher::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--space-launcher-accent);
  opacity: 0.72;
  transition: opacity 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
@keyframes space-launcher-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.space-launcher:hover {
  transform: translateY(-2px) scale(1);
  border-color: rgba(60, 179, 74, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(9, 12, 20, 0.34);
}
.space-launcher:hover::before { opacity: 1; top: 8px; bottom: 8px; }
.space-launcher:focus-visible {
  outline: 2px solid var(--space-launcher-accent);
  outline-offset: 3px;
}
.space-launcher__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; min-width: 0; }
.space-launcher__eyebrow {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.48);
}
.space-launcher__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(244, 246, 248, 0.92);
}
.space-launcher__title b { font-weight: 750; color: #67c872; }
.space-launcher__arrow {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(103, 200, 114, 0.85);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}
.space-launcher:hover .space-launcher__arrow { transform: translateX(3px); color: #7ad684; }

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 16px;
    padding: 16px;
  }
  .list-panel { max-height: min(48dvh, 480px); }
  .detail-panel { min-height: 520px; max-height: none; height: auto; }
  .detail-body { overflow: visible; height: auto; }
  .detail-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .opinions {
    height: auto;
    min-height: 280px;
  }
  .opinions__feed {
    max-height: 320px;
  }
  .map-frame { height: 240px; }
  .map-frame--landing { min-height: 260px; }
  .map-frame--detail { height: 220px; }
  .eco-card--map { min-height: 0; }
  .eco-head { flex-wrap: nowrap; }
  .eco-head__btn { white-space: nowrap; }
}

@media (max-width: 768px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar__title { font-size: 0.98rem; }
  .dev-chip { display: none; }
  .user-chip__name { display: none; }
  .layout { padding: 12px; gap: 12px; }
  .eco-head { flex-direction: column; }
  .space-launcher-stack { right: 12px; bottom: 12px; gap: 6px; }
  .space-launcher { gap: 10px; padding: 10px 12px 10px 13px; }
  .space-launcher__title { font-size: 0.82rem; }
  .opinion-form { flex-direction: column; }
}

@media (max-width: 560px) {
  .modal {
    padding: 12px;
    align-items: center;
  }
  .modal__card { width: calc(100% - 24px); padding: 20px 18px; }
  .modal__card--add {
    width: 100%;
    max-height: min(92vh, 100%);
    padding: 0;
  }
  .modal__head { padding: 18px 18px 14px; }
  .modal__card--add .modal__form { padding: 16px 18px 20px; }
  .place-search__results { max-height: 160px; }
  .map-frame--pick { height: 120px; }
  .modal__actions { flex-direction: column-reverse; }
  .sync-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
