:root {
  --green: #1f6f5c;
  --green-soft: #e3f1ec;
  --ink: #1d2320;
  --muted: #69746f;
  --line: #e3e7e5;
  --bg: #f6f8f7;
  --card: #ffffff;
  --tmap: #ef3f3f;
  --kakao: #fee500;
  --naver: #03c75a;
  --radius: 14px;
  --topbar-h: 56px;
  --ui-zoom: 1;
}

/* 다크 모드 */
:root[data-theme='dark'] {
  color-scheme: dark;
  --green: #45b491;
  --green-soft: #1b3b32;
  --ink: #e5ebe8;
  --muted: #9aa7a1;
  --line: #2e3733;
  --bg: #111513;
  --card: #1a201d;
}
:root[data-theme='dark'] .btn:not(.ghost) { color: #0e1512; }
:root[data-theme='dark'] .fav-memo { background: #3a3318; color: #f1e3a8; }
:root[data-theme='dark'] .invite-box.warn-box { background: #3a2c12; }
:root[data-theme='dark'] .shared-bar, :root[data-theme='dark'] .folder-avatar { background: var(--card); }
:root[data-theme='dark'] .badge { color: #cfd8d3; }
:root[data-theme='dark'] .badge.warn { background: #3d1d1d; color: #ffb3b3; }
:root[data-theme='dark'] .badge.sub { background: #1f2946; color: #aebdff; }
:root[data-theme='dark'] .folder-card .addr, :root[data-theme='dark'] .group-tabs button { color: #cfd8d3; }
:root[data-theme='dark'] .map-tools-label { background: rgba(26, 32, 29, .9); }
:root[data-theme='dark'] .sheet-backdrop { background: rgba(0, 0, 0, .6); }
:root[data-theme='dark'] .map-label { background: var(--card); color: var(--ink); }

/* 글자 크게: 지도(카카오)는 그대로 두고 목록 · 창 · 상단바만 키운다 */
.topbar, .panel, .sheet-body, .map-tools, .toast { zoom: var(--ui-zoom); }

* { box-sizing: border-box; }
/* height: 100%로 고정하면 body가 화면 높이에서 끝나서, 그보다 아래로 스크롤하면 sticky 상단바가 같이 밀려 올라간다 */
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.break { word-break: break-all; }

/* 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--green); }
.tabs { display: flex; gap: 4px; }
.icon-btn {
  border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
}
.icon-btn:hover { background: var(--bg); }

/* 사용량 */
.usage { margin: 14px 0 10px; }
.usage-today { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.usage-today b { font-size: 32px; color: var(--green); }
.usage-bar { height: 10px; margin: 8px 0 4px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.usage-bar > i { display: block; height: 100%; min-width: 2px; background: var(--green); border-radius: inherit; }
.usage-month { margin: 12px 0 0; font-size: 14px; }
.usage-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; margin: 16px 0 6px; }
.usage-week .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--muted); }
.usage-week .bar { width: 100%; max-width: 28px; min-height: 2px; background: #8fd1b8; border-radius: 6px 6px 0 0; }
.usage-week .col.is-today .bar { background: var(--green); }
.usage-week .col.is-today { color: var(--ink); font-weight: 700; }
.usage-note { line-height: 1.6; margin: 12px 0 !important; }
.usage-section + .usage-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.usage-section h3 { margin: 0 0 6px; font-size: 15px; }

.count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

.banner {
  padding: 10px 16px; font-size: 13px; line-height: 1.5;
  background: #fff6db; color: #6b5200; border-bottom: 1px solid #f1e2b0;
}

/* 레이아웃: PC는 좌측 목록 + 우측 지도, 모바일은 지도 위 / 목록 아래 */
.layout {
  display: grid;
  grid-template-columns: min(calc(420px * var(--ui-zoom)), 55vw) 1fr;
  height: calc(100vh - var(--topbar-h) * var(--ui-zoom));
}
.panel { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
/* 보기 줄 · 검색 · 결과 줄은 스크롤해도 위에 붙어 있는다 */
.panel-head {
  position: sticky; top: 0; z-index: 400; background: var(--card);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.panel-head .filters, .panel-head .saved-filters, .panel-head .list-tools { border-bottom: 0; }
.map-wrap { position: relative; }
#map { position: absolute; inset: 0; }

@media (max-width: 899px) {
  .layout { display: flex; flex-direction: column-reverse; height: auto; }
  .map-wrap { height: 42vh; position: sticky; top: calc(var(--topbar-h) * var(--ui-zoom)); z-index: 500; border-bottom: 1px solid var(--line); }
  /* 휴대폰: 상단바 + 지도 아래에 붙는다 (글자 크기를 키우면 그만큼 보정) */
  .panel-head { top: calc(var(--topbar-h) + 42vh / var(--ui-zoom)); }
  .panel { overflow: visible; border-right: 0; }

  /* 지도는 그대로 두고, 검색창 · 기준 위치 · 결과 줄만 위로 밀려 사라진다.
     보기 줄과 정렬 · 지역 탭은 지도 아래에 붙어 남는다 (자바스크립트 없이 CSS만으로) */
  /* 상자를 없애 보기 줄 · 정렬 줄이 목록 끝까지 붙어 있을 수 있게 한다
     (sticky는 제 상자 밖으로 못 나가서, panel-head 안에 두면 상자와 함께 밀려 올라간다) */
  .panel-head { display: contents; }
  #modeTabs, #listTools {
    position: sticky; background: var(--card);
    top: calc(var(--topbar-h) + 42vh / var(--ui-zoom));
  }
  #modeTabs { z-index: 420; padding-bottom: 10px; }
  #listTools {
    z-index: 410; top: calc(var(--topbar-h) + 42vh / var(--ui-zoom) + var(--mode-h, 56px));
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
  }
  /* ➕ 추가는 목록을 내려도 누를 수 있게 오른쪽 아래에 떠 있는다 (줄 자체는 안 쓴다) */
  .panel-head .result-row { display: none; }
  .add-fab:not([hidden]) {
    display: block; position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 600;
    border-radius: 999px; padding: 13px 18px; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.28);
  }
}
}

/* 필터 */
.filters { padding: 10px 16px 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.search {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  outline: none;
}
.search:focus { border-color: var(--green); background: var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; background: var(--card); cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.radius { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.radius select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--green);
  background: var(--green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.ghost { background: var(--card); color: var(--green); border-color: var(--line); }
.btn.is-on { background: #fff4c2; border-color: #e7c64a; color: #6b5200; }

/* 목록 */
.list { list-style: none; margin: 0; padding: 4px 12px 24px; }
.card {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.card:hover, .card.is-focus { border-color: var(--green); }
.card .thumb {
  flex: 0 0 72px; height: 72px; border-radius: 10px; background: var(--green-soft) center/cover no-repeat;
  display: grid; place-items: center; font-size: 28px;
}
.card .body { min-width: 0; flex: 1; }
.card h3 { margin: 0 0 2px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .addr { margin: 0 0 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .dist { float: right; font-size: 12px; font-weight: 700; color: var(--green); margin-left: 6px; }
.card .dist.straight { color: var(--muted); font-weight: 600; }
.route-line { margin: 2px 0 10px !important; font-size: 14px; }
.route-line b { color: var(--green); }
.route-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: #37413c; }
.badge.key { background: var(--green-soft); border-color: transparent; color: var(--green); font-weight: 700; }
.badge.warn { background: #fdecec; border-color: transparent; color: #a33; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); line-height: 1.6; }

/* 상세 시트 */
.sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 18, .45); }
.sheet-body {
  position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--card); border-radius: 18px; padding: 22px 20px 20px;
}
@media (max-width: 899px) {
  .sheet { align-items: flex-end; }
  .sheet-body { border-radius: 18px 18px 0 0; max-height: 88vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
.sheet-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--bg); cursor: pointer; font-size: 15px; z-index: 1;
}
.d-image { height: 180px; margin: -22px -20px 14px; background: var(--green-soft) center/cover no-repeat; border-radius: 18px 18px 0 0; }
.sheet-body h2 { margin: 0 40px 4px 0; font-size: 20px; }
.sheet-body > p { margin: 0 0 10px; }
.d-intro { font-size: 14px; line-height: 1.6; margin-top: 12px !important; }
.nav-title { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.nav-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.nav-btn b {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,.9);
}
.nav-btn.tmap { background: var(--tmap); color: #fff; }
.nav-btn.tmap b { color: var(--tmap); }
.nav-btn.kakao { background: var(--kakao); color: #3a1d1d; }
.nav-btn.naver { background: var(--naver); color: #fff; }
.nav-btn.naver b { color: var(--naver); }
.nav-btn:active { transform: scale(.97); }
.nav-btn.pulse { animation: pulse 1.2s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(239, 63, 63, .25); } }
#navHint { margin-top: 8px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.qr-body { text-align: center; }
.qr-box { display: grid; place-items: center; margin: 16px auto; min-height: 200px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 3000; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 10px; background: rgba(20, 26, 23, .92); color: #fff; font-size: 14px;
}

/* 목록 머리 · 버튼 변형 */
.result-row { display: flex; justify-content: flex-end; padding: 10px 16px 2px; }
.add-fab { display: none; } /* 휴대폰에서만 떠 있는 추가 버튼 */
.small-btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.btn.danger { color: #c0392b; }
.btn.full { width: 100%; padding: 12px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.icon-btn { position: relative; }
.sync-dot { position: absolute; top: 6px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.sync-dot.error { background: #e74c3c; }
.sync-dot.wait { background: #f39c12; }
.badge.mine { background: #fdebd8; color: #a55a12; border-color: transparent; font-weight: 700; }

a.brand { text-decoration: none; cursor: pointer; }
a.brand:active { opacity: .7; }

/* 지도 위 도구: 이 근처 화장실 · 편의점 · 주유소 · 맛집 */
.map-tools {
  /* 지도 아래쪽 한 줄 (위쪽은 지도/스카이뷰 버튼, 오른쪽은 확대 버튼이 차지) */
  position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 10;
  display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.map-tools::-webkit-scrollbar { display: none; }
.map-tools-label { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 999px; }
.map-tool {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 11px;
  font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap;
}
.map-tool.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 480px) {
  .map-tools-label { display: none; }
  .map-tools { gap: 4px; left: 6px; right: 6px; }
  .map-tool { padding: 6px 8px; font-size: 12px; }
}
.map-tool:disabled { opacity: .6; }
/* 마우스로 쓰는 PC는 옆으로 밀기 어려우니 버튼이 넘치면 두 줄로 */
@media (hover: hover) and (pointer: fine) {
  .map-tools { flex-wrap: wrap; overflow: visible; right: 60px; }
}

/* 상세: 주변 탭 */
.nearby-tabs { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; }
.nearby-tabs button {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font-size: 13px; cursor: pointer;
}
.nearby-tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.toilet-item small { flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: 11px; }

/* 주소 검색 */
.row.nowrap { flex-wrap: nowrap; }
.search-results { display: grid; gap: 4px; margin-top: 6px; max-height: 190px; overflow-y: auto; }
.search-results button {
  display: grid; gap: 1px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 400;
}
.search-results button b { font-size: 14px; }
.search-results button span { font-size: 12px; color: var(--muted); }

/* 찾기: 노지 · 가볼 곳 · 즐겨찾기 */
.mode-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0;
  padding: 12px 16px 0; background: var(--card);
}
.mode-tabs button.locate { color: var(--green); }
.mode-tabs button.locate:disabled { opacity: .6; }
.mode-tabs button {
  padding: 9px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.mode-tabs button.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.filter-toggle { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.filter-toggle[aria-expanded="true"] { color: var(--green); font-weight: 700; }
#campChips { margin: 6px 0 8px; }
#nojiOptions { margin: 0 0 8px; }
.kind-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 4px; }
.kind-picker input { position: absolute; opacity: 0; pointer-events: none; }
.kind-picker span {
  display: block; text-align: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; background: var(--card);
}
.kind-picker input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.kind-picker input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.badge.kind { background: #fdebd8; color: #a55a12; border-color: transparent; font-weight: 700; }
.badge.kind.togo { background: #e6f0ff; color: #1d5fcf; }
.badge.kind.visited { background: #e3f6ea; color: #1e7a45; }

/* 연결된 기기 목록 (링크 연결) */
.group-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.group-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.group-list .g-head { display: flex; align-items: center; gap: 6px; }
.group-list .g-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-list .g-members { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.group-list .d-actions { margin-top: 0; gap: 6px; }
.invite-box { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--green-soft); text-align: center; }
.invite-box .d-actions { justify-content: center; }
.invite-box.warn-box { background: #fff4e0; }
#btnPasteClipboard { margin: 6px 0 8px; }
.app-sync-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-sync-hint span { flex: 1 1 220px; }
.group-create { display: grid; gap: 8px; margin-top: 8px; }
.badge.group { background: #e6f0ff; color: #1d5fcf; border-color: transparent; font-weight: 700; }
.chip-btn.group-chip { border-color: #b9d2ff; }
.chip-btn.group-chip.is-on { background: #2f7cf6; border-color: #2f7cf6; }
.cat-list .radio.group-toggle:has(input:checked) { border-color: #2f7cf6; background: #e6f0ff; }

/* 로그인 */
.btn.kakao-login { background: #fee500; border-color: #fee500; color: #191600; margin: 12px 0 6px; }
.account-line { font-size: 16px; margin: 12px 0 4px !important; }

/* 근처 화장실 */
.toilets { display: grid; gap: 6px; }
.toilet-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer;
}
.toilet-item b { flex: 0 0 auto; font-size: 13px; color: #2f7cf6; min-width: 52px; }
.toilet-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* 폼 */
.field { display: grid; gap: 4px; margin: 12px 0; font-size: 14px; font-weight: 600; border: 0; padding: 0; }
.field legend { padding: 0; margin-bottom: 4px; }
/* 글자 입력칸만 가로로 꽉 채운다 (라디오 · 체크박스까지 늘어나지 않게) */
.field input:not([type=radio]):not([type=checkbox]), .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; background: var(--bg);
}
.field input:not([type=radio]):not([type=checkbox]):focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--card); }
.radio { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 14px; font-weight: 400; margin: 6px 0; text-align: left; }
.radio input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.req { color: #c0392b; }

/* 위치 고르는 작은 지도 */
.picker { position: relative; height: 200px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 4px; }
.picker-map { position: absolute; inset: 0; }
.picker-pin {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none;
  font-size: 30px; line-height: 1; transform: translate(-50%, -100%); /* 핀 끝이 정확히 가운데 */
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}
.field .row { margin-top: 6px; }
.field > span { font-weight: 600; }

/* 카테고리 */
.saved-filters { padding: 12px 16px 4px; background: var(--card); border-bottom: 1px solid var(--line); }
.saved-filters .chips { margin: 0 0 8px; }
.chip-btn {
  display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; background: var(--card); cursor: pointer;
}
.chip-btn.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip-btn .n { opacity: .75; margin-left: 2px; }
.cat-list { display: grid; gap: 6px; margin: 10px 0; max-height: 40vh; overflow-y: auto; }
.cat-list .radio { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0; }
.cat-list .radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.cat-manage { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.cat-manage li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cat-manage li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge.cat { background: #fff4c2; color: #6b5200; border-color: transparent; }

/* 모두의 노지 */
.btn.is-liked { background: #8e44ad; border-color: #8e44ad; color: #fff; }
.share-name { font-size: 16px; font-weight: 700; margin: 10px 0 !important; }

/* 동기화 */
.sync-code {
  margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--green-soft); color: var(--green);
  font: 700 22px/1.2 ui-monospace, "Consolas", monospace; letter-spacing: 1px; text-align: center; word-break: break-all;
}
#syncLinkForm { margin-top: 6px; flex-wrap: nowrap; }

/* 카카오맵 위 표시 */
.map-label {
  padding: 4px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--green);
  font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.15);
  margin-bottom: 16px; /* 마커와 겹치지 않게 위로 */
}
.place-label { display: grid; gap: 6px; text-align: center; padding: 8px 10px; white-space: normal; width: max-content; max-width: 280px; }
.place-label b { font-size: 13px; }
.label-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.label-acts a, .label-acts button {
  font: inherit; font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: #2f7cf6; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.label-acts a { color: #03a94d; }
.label-acts button.is-on { color: #d4a000; }
.origin-dot {
  width: 16px; height: 16px; border-radius: 50%; background: #2f7cf6; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 124, 246, .25);
}
.map-error {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 16px;
  text-align: center; line-height: 1.6; color: var(--muted); background: var(--green-soft);
}

/* 지도에서 찾은 주변 편의시설 목록 */
.places-panel { padding: 10px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.places-head { display: flex; align-items: center; gap: 6px; }
.places-head b { flex: 1; min-width: 0; font-size: 15px; }
.places-panel .muted.small { margin: 4px 0 8px; }
.places-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.place-item { display: flex; align-items: stretch; gap: 6px; }
.place-row {
  flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 1px; align-items: baseline;
  text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: inherit;
}
.place-item.is-on .place-row { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.place-dist { font-size: 13px; min-width: 48px; }
.place-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.place-sub { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.place-act {
  flex: 0 0 auto; display: grid; place-items: center; min-width: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: #2f7cf6; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.place-act.star { font-size: 20px; color: #b9b9b9; padding: 0 6px; min-width: 40px; }
.place-act.star.is-on { color: #f5b400; }
.place-act.review { color: #03a94d; }
.place-act.tmap { color: #e8412d; }
@media (max-width: 420px) {
  .place-item { gap: 4px; }
  .place-act { min-width: 38px; padding: 0 5px; }
}
.places-more { width: 100%; margin-top: 8px; }
@media (min-width: 900px) {
  .places-list { max-height: 46vh; overflow-y: auto; padding-right: 2px; }
}

/* 내 장소: 왼쪽으로 밀어서 삭제 */
.swipe-wrap { position: relative; margin-bottom: 8px; border-radius: var(--radius); overflow: hidden; background: #e74c3c; }
.swipe-wrap .card { position: relative; z-index: 1; margin-bottom: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.swipe-del {
  position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: #e74c3c; color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer;
}
.toast { display: flex; align-items: center; gap: 12px; }
.toast-action { border: 0; background: transparent; color: #7fd8b5; font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; white-space: nowrap; }

/* 즐겨찾기 폴더 · 공유 폴더 보기 */
.folder-bar .d-actions { margin: 0 0 4px; gap: 6px; }
.shared-memo { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.card .fav-memo { margin: 6px 0 0; font-size: 12px; color: #37413c; background: #fff8e1; border-radius: 6px; padding: 4px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-intro { white-space: pre-line; }
.add-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; }
.add-results li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.add-results .info { flex: 1; min-width: 0; display: grid; }
.add-results .info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-results .info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-results .btn { flex: 0 0 auto; }
.add-results .btn.is-done { background: var(--green-soft); color: var(--green); border-color: transparent; }

/* 폴더 머리 (네이버 공유 폴더처럼) */
.shared-bar { padding: 14px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.folder-head-top { display: flex; align-items: center; justify-content: space-between; }
.folder-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e8f1ff; font-size: 22px; }
.folder-title { margin: 8px 0 2px; font-size: 22px; line-height: 1.3; word-break: keep-all; }
.folder-head.mine .folder-title { margin-top: 2px; font-size: 20px; }
.folder-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.folder-head-actions { display: flex; gap: 8px; margin: 10px 0 2px; }
.btn.pill { border-radius: 999px; padding: 9px 18px; }
#btnSharedSave { background: #4a6cf7; border-color: #4a6cf7; color: #fff; }
#btnSharedShare { background: var(--card); }

/* 폴더 보기: 정렬 · 묶음 탭 */
.list-tools { display: flex; align-items: center; gap: 8px; padding: 6px 16px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.list-tools select { flex: 0 0 auto; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 2px; cursor: pointer; }
.group-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-left: 1px solid var(--line); padding-left: 8px; }
.group-tabs::-webkit-scrollbar { display: none; }
.group-tabs button { flex: 0 0 auto; border: 0; background: transparent; font: inherit; font-size: 15px; color: #555; padding: 6px 9px; cursor: pointer; white-space: nowrap; }
.group-tabs button.is-on { color: #4a6cf7; font-weight: 800; }
.group-tabs button .n { font-size: 11px; color: var(--muted); margin-left: 2px; font-weight: 400; }

/* 폴더 카드: 이름 + 분류, 주소, ✏️ 메모, 사진 */
.card.folder-card { display: flex; gap: 12px; padding: 13px 14px; align-items: flex-start; }
.folder-card h3 { font-size: 17px; white-space: normal; }
.folder-card h3 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.folder-card .addr { font-size: 14px; color: #37413c; white-space: normal; margin: 2px 0 4px; }
.folder-card .addr .d { color: var(--green); font-weight: 700; }
.folder-memo { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.folder-card .badges { margin-top: 6px; }
.folder-photo {
  flex: 0 0 84px; height: 84px; border-radius: 10px; background: var(--green-soft) center/cover no-repeat;
  display: grid; place-items: center; font-size: 30px;
}
.swipe-wrap.unfav, .swipe-wrap.unfav .swipe-del { background: #f0a020; }

/* 장소 검색: 자동완성 · 최근 검색 · 관련 검색어 */
.suggest-wrap { position: relative; }
.suggest-list {
  /* 창 안에서 잘리지 않게 아래로 밀어내는 목록으로 */
  list-style: none; margin: 6px 0 0; padding: 4px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.10); max-height: 45vh; overflow-y: auto;
}
.suggest-list button {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; width: 100%; text-align: left; padding: 8px 12px;
  border: 0; background: transparent; font: inherit; cursor: pointer;
}
.suggest-list button:hover, .suggest-list button.is-active { background: var(--green-soft); }
.suggest-list .ic { grid-row: span 2; align-self: center; font-size: 16px; }
.suggest-list .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-list .nm mark { background: transparent; color: #4a6cf7; font-weight: 800; }
.suggest-list .sb { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-list .src { font-size: 11px; color: #4a6cf7; margin-left: 4px; }
.suggest-list .hint { padding: 6px 12px; font-size: 12px; color: var(--muted); }
.related-box { margin: 10px 0 0; }
.related-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.related-chips button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer;
}
.related-chips button .x { margin-left: 4px; color: var(--muted); }
.link-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* 하위 폴더 */
.parent-select { flex: 0 0 auto; max-width: 42%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 13px; padding: 8px 6px; }
.cat-list .radio.sub, .cat-manage li.sub { margin-left: 22px; }
.cat-manage li.sub b::before, .cat-list .radio.sub .tree { color: var(--muted); }
.chip-btn .sub-mark { font-size: 11px; opacity: .75; }
.folder-card .badge.sub { background: #eef2ff; color: #3d55c4; border-color: transparent; }
#filters > .suggest-list { margin: 6px 0 4px; }
#filters > .related-box { margin: 8px 0 4px; }

.weather-box { margin-top: 6px; }

/* 지도 아래 편의시설: 차박용은 “더보기”로 */
.map-tools .map-tool.extra { display: none; }
.map-tools.show-more .map-tool.extra, .map-tools .map-tool.extra.is-on { display: inline-block; }
.map-tool.more { background: var(--green-soft); color: var(--green); }

/* 여행 코스 */
.course-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer;
}
.course-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 4px 4px; }
.course-top .muted { flex: 1 1 100%; }
.course-day { margin: 10px 0 4px; list-style: none; }
.course-day-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: #fff; font-weight: 700; }
.course-day-head small { font-weight: 400; opacity: .92; margin-left: auto; text-align: right; }
.course-item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-top: 6px; }
.course-item .n { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.course-item .info { flex: 1; min-width: 0; cursor: pointer; }
.course-item .info b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-item .info span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-item .ctl { display: flex; align-items: center; gap: 2px; }
.course-item .ctl button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font: inherit; }
.course-item .ctl select { border: 1px solid var(--line); border-radius: 8px; height: 30px; font: inherit; font-size: 12px; background: var(--card); color: inherit; }
.course-leg { margin: 4px 0 0 20px; padding-left: 14px; border-left: 2px dashed var(--line); font-size: 12px; color: var(--muted); min-height: 16px; }
.course-unplanned .course-day-head { background: #95a5a6; }

/* 설정 */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; }
.seg input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); }


/* 가장 가까운 화장실 */
.toilet-near { margin: 0 0 8px !important; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.toilet-near button { border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* 캠핑장 상세 */
.camp-box { margin-top: 10px; }
.camp-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 6px 0; }
.camp-grid dt { color: var(--muted); white-space: nowrap; }
.camp-grid dd { margin: 0; }
.camp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.camp-chips span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.camp-sub { margin: 10px 0 2px; font-size: 13px; color: var(--muted); }
.camp-intro { font-size: 14px; line-height: 1.7; margin: 6px 0; }
.camp-intro summary { cursor: pointer; color: var(--green); font-size: 13px; }
.camp-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

/* 주유소 기름값 · 목록 정렬 */
.places-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.places-tools select { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 6px 8px; font-size: 13px; font-weight: 600; }
.places-tools .muted { flex: 1 1 100%; }
.place-price { grid-column: 2; font-size: 14px; font-weight: 800; color: #e67e22; }
.place-price.low { color: #c0392b; }
.place-price .tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.place-price.none { color: var(--muted); font-weight: 400; font-size: 12px; }
.label-price { font-size: 13px; color: #e67e22; }

/* 장소 사진 */
.photo-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-thumb {
  flex: 0 0 104px; height: 104px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--green-soft) center/cover no-repeat; cursor: pointer; padding: 0;
}
.photo-edit { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.photo-edit-item {
  position: relative; width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--green-soft) center/cover no-repeat;
}
.photo-del {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: #c0392b; font-size: 12px; cursor: pointer; line-height: 1;
}
.photo-add { display: inline-block; cursor: pointer; }
.photo-view { text-align: center; max-width: min(760px, 100%); }
.photo-view img { max-width: 100%; max-height: 72vh; border-radius: 12px; }
.photo-view-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.photo-view-bar .btn { font-size: 20px; padding: 4px 14px; }

/* 상세 화면: 메모 · 사진 */
.d-notes { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.d-notes-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-notes-head b { flex: 1 1 auto; font-size: 14px; }
.d-memo-text { margin: 8px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.d-memo-text.empty { color: var(--muted); font-size: 13px; }
#dMemoEdit { margin-top: 8px; }
#dMemoEdit textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: inherit; font: inherit; }
#dMemoEdit .d-actions { margin-top: 6px; }
#btnPhotoDelete { margin-top: 8px; }
.thumb.is-photo, .folder-photo.is-photo { cursor: zoom-in; }

/* 다녀옴 · 스티커 */
.trip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.trip-bar .btn.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.trip-bar input[type=date] { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--card); color: inherit; font-size: 13px; }
.sticker-picker { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sticker-picker button {
  width: 38px; height: 38px; font-size: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer;
}
.sticker-picker button.is-on { border-color: var(--green); background: var(--green-soft); }

/* 여행 지도 */
.trip-body { width: min(620px, 100%); }
.trip-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 10px; }
.trip-progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.trip-map-wrap { position: relative; margin: 0 -4px; }
.trip-map {
  --sea-top: #e8f4fb; --sea-bottom: #cbe6f6; --board: #fbfaf6;
  border-radius: 16px; overflow: hidden; background: var(--sea-top); touch-action: none; cursor: grab;
}
.trip-map:active { cursor: grabbing; }
.trip-map svg { width: 100%; height: auto; display: block; }
/* 지도 마그넷 보드: 옅은 파스텔 칸, 다녀온 칸만 색이 살아난다 */
.trip-map .r {
  fill: color-mix(in srgb, var(--tint) 38%, var(--board)); stroke: #fff; stroke-width: var(--stroke, 1.6px); stroke-linejoin: round;
  cursor: pointer; transition: fill .15s;
}
.trip-map .r.on { fill: var(--tint); }
.trip-map .r.sel { fill: #ffd27d; stroke: #d98f1f; stroke-width: 3.5; }
.trip-map .land.magnet .r { stroke-width: calc(var(--stroke, 1.6px) * 1.9); }
/* 지역 이름: 확대해도 화면에서 비슷한 크기 (크기 · 보임은 applyTripView가 정한다) */
.trip-map .nm {
  font-size: 22px; font-weight: 800; text-anchor: middle; dominant-baseline: central; fill: #5d6b64;
  pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: .18em; stroke-linejoin: round;
}
.trip-map .nm.sm { display: none; } /* 칸에 들어갈 때만 보여준다 */
.trip-map .nm.on { fill: #28413a; }
/* 바다 이름 · 나침반 · 제목 */
.trip-map .sea-names text { font-size: 20px; font-weight: 700; fill: #8fb6cf; text-anchor: middle; pointer-events: none; letter-spacing: 3px; }
.trip-map .compass circle { fill: rgba(255,255,255,.75); stroke: #a9c6d8; stroke-width: 2; }
.trip-map .compass .needle { fill: #e07a7a; }
.trip-map .compass .n { font-size: 15px; font-weight: 800; fill: #6b8ea5; text-anchor: middle; }
.trip-map .board-title { font-size: 26px; font-weight: 800; fill: #7ba6c0; text-anchor: end; letter-spacing: 1px; }
/* 다녀온 칸에 찍히는 그 지역 그림 (납작한 2D 스티커) */
.trip-map .art { pointer-events: none; }
.trip-map .art-em { text-anchor: middle; dominant-baseline: central; }
.trip-map .lb {
  font-weight: 800; text-anchor: middle; dominant-baseline: central; fill: var(--green);
  paint-order: stroke; stroke: #fff; stroke-width: .3em; stroke-linejoin: round;
}
:root[data-theme='dark'] .trip-map .lb { fill: #0e241d; stroke: #cfe6dc; }
.trip-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 4px; }
.trip-zoom .btn { width: 38px; height: 38px; padding: 0; font-size: 18px; background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
:root[data-theme='dark'] .trip-map { --sea-top: #16303f; --sea-bottom: #102331; --board: #232a27; }
:root[data-theme='dark'] .trip-map .r { stroke: #1c2320; }
:root[data-theme='dark'] .trip-map .nm { fill: #b9c4bf; stroke: #1a201d; }
:root[data-theme='dark'] .trip-map .nm.on { fill: #eef5f2; }
:root[data-theme='dark'] .trip-map .sea-names text { fill: #4e7a94; }
.trip-sido { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 2px; }
.trip-sido button, .trip-sido span {
  font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 1px solid transparent; background: var(--green-soft); color: var(--green); cursor: pointer;
}
.trip-sido button:hover { border-color: var(--green); }
.trip-sido button.is-on { background: var(--green); color: #fff; }
.trip-sido span { background: transparent; color: var(--muted); font-weight: 400; cursor: default; }
.trip-detail { margin-top: 10px; }
.trip-detail h3 { margin: 0 0 6px; font-size: 15px; }
.trip-place { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.trip-place .em { font-size: 20px; flex: 0 0 auto; }
.trip-place .ph { flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--green-soft) center/cover no-repeat; }
.trip-place b { display: block; font-size: 14px; }
.trip-place small { color: var(--muted); font-size: 12px; }
.photo-order { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.photo-order button:disabled { opacity: .4; }
#photoViewImg { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }

/* 마그넷 보기: 자석판 같은 크림색 바탕 */
.trip-map.magnet-board { box-shadow: inset 0 0 0 2px rgba(0,0,0,.05); }

/* 여행 지도: 보기 바꾸기 */
.trip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trip-head .muted { flex: 1 1 auto; margin: 0; }
.seg.trip-view span { padding: 6px 10px; font-size: 12px; }
