/* ============================================================
   自転車王国とくしまデジタルマップ 公開画面スタイル
   デザインカンプ(degi-cycle_CC2025 / ICON_degi-cycle_CC2025)準拠
   色・アイコンはデザインデータから抽出した実値を使用
   ============================================================ */

:root {
  --navy: #2b458e;            /* デザイン基準の紺 */
  --navy-dark: #22376f;
  --blue: #4285f4;            /* コース線(公式) */
  --red: #dc2c46;             /* 通行止め・ハート */
  --orange: #df6c52;          /* 工事情報・星 */
  --star: #df6c52;
  --cat-sight: #5a74bb;
  --cat-view: #40bd85;
  --cat-rest: #f25373;
  --cat-bike: #9d8e8a;
  --ink: #222a35;
  --gray: #6b7684;
  --line: #dde4ec;
  --bg: #f4f6f9;
  --lavender: #ededf9;        /* 公式コースボックス bg */
  --shadow: 0 4px 18px rgba(16, 42, 84, .16);
  --radius: 12px;
  --header-h: 64px;
  --sidebar-w: 292px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }
.hidden { display: none !important; }

/* ============ ヘッダー(紺色バー) ============ */
.app-header {
  height: var(--header-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px 0 12px;
  position: relative;
  z-index: 1200;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; display: block; }

.search-box {
  position: relative;
  min-width: 0;
  flex: 0 1 400px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0 18px;
  height: 42px;
  color: var(--gray);
}
.search-box .icon { flex-shrink: 0; color: var(--navy); width: 1.35em; height: 1.35em; }
.search-box input {
  flex: 1; border: none; outline: none; background: none;
  padding: 0 10px; font-size: 13.5px; color: var(--ink);
}
.search-suggest {
  position: absolute; top: 48px; left: 0; right: 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto; z-index: 1300; padding: 6px 0;
}
.search-suggest .sg-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 14px; font-size: 13px; text-align: left;
}
.search-suggest .sg-item:hover { background: #f0f4fa; }
.search-suggest .sg-badge {
  flex-shrink: 0; font-size: 10px; color: #fff; border-radius: 999px; padding: 2px 8px; font-weight: 700;
}
.search-suggest .sg-none { padding: 12px 14px; font-size: 12.5px; color: var(--gray); }

.lang-tabs { display: flex; margin-left: auto; flex-shrink: 0; }
.lang-tab {
  min-width: 78px; height: 42px; padding: 0 12px;
  background: transparent; color: #fff;
  font-size: 13.5px; font-weight: 700;
  border: 1.5px solid #fff;
  border-right-width: 0;
}
.lang-tab:first-child { border-radius: 7px 0 0 7px; }
.lang-tab:last-child { border-radius: 0 7px 7px 0; border-right-width: 1.5px; }
.lang-tab.active { background: #fff; color: var(--navy); }

.fav-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 18px;
  border: 1.5px solid #fff; border-radius: 999px;
  color: #fff; font-size: 13.5px; font-weight: 700;
  background: transparent;
}
.fav-btn:hover { background: rgba(255, 255, 255, .12); }
.mobile-menu-btn { display: none; color: #fff; }
.lang-tabs-mobile { display: none; }

/* ============ レイアウト ============ */
.app-body {
  display: flex;
  height: calc(100dvh - var(--header-h));
}

/* ============ サイドバー ============ */
.side-panel {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
}
.panel-tabs {
  display: flex;
  position: sticky; top: 0; background: #fff; z-index: 5;
}
.panel-tab {
  flex: 1; padding: 16px 4px 12px;
  font-size: 14.5px; font-weight: 900; color: var(--ink);
  border-bottom: 3.5px solid #d9dee6;
}
.panel-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.panel-section { display: none; padding: 16px 15px 26px; }
.panel-section.active { display: block; }
.panel-heading { font-size: 15px; font-weight: 900; margin: 10px 0 14px; }
.panel-heading:first-child { margin-top: 4px; }

/* --- カテゴリ行 --- */
.category-list { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.category-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 2px; font-size: 13.5px; font-weight: 700;
  text-align: left;
}
.cat-icon-img { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.category-row .cbx { margin-left: auto; }
.cbx {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1.5px solid #c3ccd7; border-radius: 8px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.cbx svg { width: 16px; height: 16px; opacity: 0; }
.cbx.on { background: var(--navy); border-color: var(--navy); }
.cbx.on svg { opacity: 1; }

/* --- 設備グリッド --- */
.facility-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.facility-btn {
  border: 1.5px solid #c9d1db; border-radius: 10px; background: #fff;
  padding: 10px 2px 7px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 6px; min-height: 76px;
  color: var(--ink);
}
.facility-btn img { width: 32px; height: 30px; object-fit: contain; display: block; }
.facility-btn .fl { font-size: 10px; font-weight: 700; line-height: 1.25; text-align: center; white-space: pre-line; }
.facility-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.facility-btn.on img { filter: brightness(0) invert(1); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px;
}
.btn-block { width: 100%; padding: 13px 10px; margin-bottom: 10px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 14px; }
.btn-outline:hover { background: #eef3fa; }

/* --- コースツリー(公式コース: 薄紫のカードにまとめる) --- */
.official-wrap {
  background: var(--lavender);
  border: 1.5px solid rgba(43, 69, 142, .55);
  border-radius: 14px;
  padding: 12px 12px 4px;
  margin-bottom: 14px;
}
.official-box {
  width: 100%; text-align: left;
  display: flex; gap: 10px; align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43, 69, 142, .28);
}
.official-box .oc-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; }
.official-box .oc-title { font-size: 13.5px; font-weight: 900; color: var(--ink); line-height: 1.4; white-space: pre-line; }
.official-box .oc-desc { font-size: 10.5px; color: var(--gray); margin-top: 5px; line-height: 1.55; }
.official-box .caret { margin-left: auto; color: var(--navy); flex-shrink: 0; transition: transform .2s; }
.official-box.open .caret { transform: rotate(180deg); }

.area-label { font-size: 12px; font-weight: 700; color: var(--ink); margin: 12px 0 4px; }
.area-block { border-bottom: 1px solid rgba(43, 69, 142, .22); }
.area-block:last-child { border-bottom: none; }
.area-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 12px 2px; font-size: 13.5px; font-weight: 900; text-align: left;
}
.area-head .pin-img { width: 22px; height: 22px; flex-shrink: 0; }
.area-head .count { margin-left: auto; font-size: 11.5px; color: var(--gray); font-weight: 700; }
.area-head .caret { color: var(--navy); transition: transform .2s; }
.area-block.open .area-head .caret { transform: rotate(180deg); }
.area-courses { display: none; padding-bottom: 6px; }
.area-block.open .area-courses { display: block; }
.course-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 4px 9px 6px; font-size: 12.5px; font-weight: 700; text-align: left;
  border-radius: 8px;
}
.course-item:hover { background: rgba(255, 255, 255, .7); }
.course-item.selected { background: #fff; color: var(--navy); }
.course-item .no { color: var(--ink); font-size: 12px; width: 15px; flex-shrink: 0; text-align: center; }
.course-item .chev { margin-left: auto; color: var(--navy); font-weight: 900; }

/* --- 特別ルートカード --- */
.special-card {
  width: 100%; text-align: left;
  border-radius: 12px; padding: 13px 12px;
  display: flex; gap: 11px; align-items: center;
  margin-top: 12px;
  border-left: 6px solid transparent;
}
.special-card.sp-tline            { background: #fee4c4; border-left-color: #f68636; }
.special-card.sp-naruto_tokushima { background: #d9f3fd; border-left-color: #19b5f1; }
.special-card.sp-anan_tokushima   { background: #f0d6ee; border-left-color: #b989c7; }
.special-card.sp-shikoku          { background: #cceee5; border-left-color: #4cc2a9; }
.special-card .sp-icon-img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; }
.special-card .sp-name { font-size: 13.5px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.special-card .sp-desc { font-size: 10.5px; color: #5c6470; margin-top: 4px; line-height: 1.5; white-space: pre-line; }
.special-card .chev { margin-left: auto; color: var(--navy); font-size: 18px; font-weight: 900; }
.special-card.selected { outline: 2.5px solid var(--navy); }

/* ============ 地図 ============ */
.map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; z-index: 1; background: #dfe9f0; }

.leaflet-control-zoom { border: none !important; box-shadow: none !important; }
.leaflet-control-zoom a {
  width: 38px !important; height: 38px !important; line-height: 38px !important;
  border-radius: 8px !important; margin-bottom: 8px;
  box-shadow: var(--shadow) !important; border: none !important;
  color: var(--navy) !important; font-size: 20px !important; font-weight: 400;
}
.leaflet-top.leaflet-left { top: 12px; left: 12px; }
.map-wrap .leaflet-top.leaflet-left { top: auto; bottom: 210px; }

.map-fab {
  position: absolute; left: 12px; bottom: 160px; z-index: 900;
  width: 38px; height: 38px; border-radius: 8px;
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.map-fab .icon { width: 19px; height: 19px; }

/* --- マーカー(カテゴリ円アイコンをそのまま使用) --- */
.marker-cat {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  background: #fff;
  display: block;
}
.marker-cat.marker-highlight { outline: 3px solid #ffd43b; outline-offset: 1px; }
.marker-start {
  width: 34px; height: 34px; color: #e03131;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}
.current-pos {
  width: 18px; height: 18px; border-radius: 50%;
  background: #1c7ed6; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(28, 126, 214, .25);
}

/* ============ お知らせパネル ============ */
.notices-panel {
  position: absolute; top: 14px; left: 14px; z-index: 950;
  width: 272px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  padding: 4px 0;
}
.notices-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px; font-size: 15px; font-weight: 900;
}
.icon-btn { color: var(--navy); font-size: 16px; padding: 3px 5px; font-weight: 700; }
.icon-btn:hover { opacity: .7; }
.notices-list { list-style: none; padding: 2px 16px 0; }
.notice-item { display: flex; gap: 11px; padding: 10px 0; }
.notice-ico { flex-shrink: 0; width: 30px; height: 30px; margin-top: 2px; }
.notice-ico img { width: 100%; height: 100%; display: block; }
.notice-body-wrap { flex: 1; min-width: 0; }
.notice-kind { font-size: 12px; font-weight: 900; }
.notice-kind.closure { color: #dc2c46; }
.notice-kind.construction { color: #df6c52; }
.notice-kind.event, .notice-kind.other { color: var(--navy); }
.notice-title { font-size: 12.5px; font-weight: 700; line-height: 1.5; margin-top: 2px; color: var(--ink); }
.notice-date {
  display: block; width: fit-content; margin: 8px 0 0 auto;
  font-size: 11px; font-weight: 700;
  border-radius: 8px; padding: 4px 14px;
}
.notice-date.closure { background: #f8d5da; color: #dc2c46; }
.notice-date.construction { background: #f9e2dc; color: #df6c52; }
.notice-date.event, .notice-date.other { background: #d5dae8; color: var(--navy); }
.notices-all {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 14px; font-size: 12.5px; font-weight: 900; color: var(--navy);
}
.notices-all .chev { color: var(--navy); font-size: 17px; }
.notices-all:hover { background: #f5f8fc; }

/* ============ コース沿いスポット ============ */
.nearby-panel {
  position: absolute; z-index: 940;
  left: 14px; right: 356px; bottom: 14px;
  max-width: 860px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}
.nearby-head {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 900; margin-bottom: 12px;
}
.nearby-all { margin-left: auto; font-size: 12.5px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.nearby-all .chev { font-size: 16px; }
.nearby-scroll-wrap { position: relative; }
.nearby-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: thin;
}
.nearby-card {
  flex: 0 0 186px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.nearby-card:hover { box-shadow: 0 3px 10px rgba(16,42,84,.14); }
.nearby-card .nc-photo {
  position: relative; height: 106px; background: linear-gradient(135deg, #b8cde4, #8aa8c9);
}
.nearby-card .nc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nearby-card .nc-cat {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 10px; border-radius: 999px;
}
.nearby-card .nc-name {
  font-size: 13px; font-weight: 700; padding: 9px 11px 2px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.nearby-card .nc-city { font-size: 11.5px; color: var(--gray); padding: 0 11px 10px; }
.nearby-arrow {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  color: var(--navy); font-size: 21px; font-weight: 900;
}

/* ============ 詳細パネル(右) ============ */
.detail-panel {
  position: absolute; top: 14px; right: 14px; bottom: 14px; z-index: 960;
  width: 330px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 18px;
}
.dp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dp-badge {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--navy); border-radius: 8px; padding: 5px 14px;
}
.dp-top .spacer { flex: 1; }
.heart-btn { padding: 0; }
.heart-btn img { width: 24px; height: 24px; display: block; }
.dp-name { font-size: 18px; font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.dp-stats { display: flex; gap: 6px; margin-bottom: 14px; }
.dp-stat { flex: 1; min-width: 0; }
.dp-stat .lbl { font-size: 11px; color: var(--gray); font-weight: 700; }
.dp-stat .val { font-size: 15.5px; font-weight: 900; margin-top: 4px; white-space: nowrap; color: var(--ink); }
.dp-stat .val small { font-size: 11px; font-weight: 700; }
.stars { color: var(--star); letter-spacing: -1px; font-size: 14px; }
.stars .off { color: #d4dae2; }
.review-link { cursor: pointer; }

.dp-photo {
  margin: 0 -16px 12px;
  aspect-ratio: 16 / 11; overflow: hidden;
  background: linear-gradient(135deg, #9fc0e2, #5c86b8);
  position: relative;
}
.dp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-photo .ph-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 14px; text-align: center; padding: 10px;
  text-shadow: 0 1px 6px rgba(10, 35, 70, .6);
}
.dp-desc { font-size: 12.5px; line-height: 1.8; }
.dp-desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dp-more {
  display: block; margin: 12px auto 4px; padding: 8px 30px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  font-size: 13px; font-weight: 900; color: var(--navy);
  background: #fff;
}
.dp-more:hover { background: #eef3fa; }
.dp-extra { margin-top: 10px; }
.dp-extra h4 { font-size: 12px; color: var(--red); margin-bottom: 4px; }
.dp-extra p { font-size: 12px; line-height: 1.7; color: var(--ink); }
.dp-extra a { color: var(--blue); font-size: 12px; }

.dp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.dp-action {
  border: 1px solid #cfd6df; border-radius: 10px; background: #fff;
  padding: 14px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-height: 108px; justify-content: flex-start;
}
.dp-action:hover { box-shadow: 0 3px 10px rgba(16,42,84,.13); }
.dp-action img { width: 44px; height: 44px; object-fit: contain; }
.dp-action .al { font-size: 10.5px; font-weight: 700; line-height: 1.45; text-align: center; color: var(--ink); }

.dp-report {
  width: 100%; margin-top: 14px; padding: 14px;
  border: 2px solid var(--navy); border-radius: 12px;
  color: var(--navy); font-size: 14.5px; font-weight: 900;
  background: #fff;
}
.dp-report:hover { background: #eef3fa; }

.dp-rows { margin-top: 4px; margin-bottom: 4px; }
.dp-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f3f7; font-size: 12px; }
.dp-row .k { flex: 0 0 64px; color: var(--gray); font-weight: 700; }
.dp-row .v { flex: 1; line-height: 1.6; word-break: break-all; }
.dp-row .v a { color: var(--blue); }
.fac-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.fac-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; color: var(--navy);
  background: #e9edf8; border-radius: 6px; padding: 4px 8px;
}
.fac-badge img { width: 16px; height: 15px; object-fit: contain; }
.tag-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: #40bd85; border-radius: 6px; padding: 4px 8px; margin: 2px 4px 2px 0;
}

/* ============ モーダル ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 30, 55, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  width: 100%; max-width: 460px; max-height: 86dvh; overflow-y: auto;
  padding: 20px 22px 22px;
}
.modal h3 { font-size: 16px; font-weight: 900; margin-bottom: 14px; display: flex; align-items: center; }
.modal h3 .icon-btn { margin-left: auto; }
.modal .lead { font-size: 12.5px; color: var(--gray); margin: -6px 0 14px; line-height: 1.6; }
.modal label { display: block; font-size: 12.5px; font-weight: 700; margin: 12px 0 5px; }
.modal input[type="text"], .modal select, .modal textarea {
  width: 100%; border: 1.5px solid #c6d0dc; border-radius: 8px;
  padding: 10px 12px; font-size: 13.5px; outline: none;
}
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--navy); }
.modal textarea { min-height: 96px; resize: vertical; }
.modal .btn-block { margin-top: 16px; }
.star-input { display: flex; gap: 6px; font-size: 30px; color: #d4dae2; }
.star-input button { color: inherit; }
.star-input button.on { color: var(--star); }
.review-item { border-bottom: 1px solid #eef1f5; padding: 11px 0; }
.review-item .ri-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--gray); }
.review-item .ri-head .nick { font-weight: 700; color: var(--ink); }
.review-item p { font-size: 12.5px; line-height: 1.7; margin-top: 4px; }
.modal .notice-item { padding: 12px 0; }
.modal .notice-body { font-size: 12px; color: var(--ink); line-height: 1.7; margin-top: 4px; }
.fav-group h4 { font-size: 12.5px; color: var(--gray); margin: 14px 0 4px; }
.fav-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; font-size: 13px; font-weight: 700; text-align: left;
  border-bottom: 1px solid #eef1f5;
}
.fav-row:hover { background: #f5f8fc; }
.fav-row .chev { margin-left: auto; color: var(--navy); }
.fav-row .fr-del { color: var(--gray); font-size: 15px; padding: 4px 6px; margin-left: 4px; }
.fav-row .fr-del:hover { color: var(--red); }
.msg-ok { text-align: center; padding: 20px 6px; font-size: 14px; font-weight: 700; color: #2b8a3e; line-height: 1.8; }

/* ============ レスポンシブ ============ */
@media (max-width: 1080px) {
  .search-box { flex-basis: 250px; }
  .lang-tab { min-width: 58px; padding: 0 8px; font-size: 11.5px; }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .app-header { gap: 8px; padding: 0 10px; }
  .brand-logo { height: 34px; }
  .search-box { flex: 1; height: 36px; }
  .lang-tabs { display: none; }
  .fav-btn { padding: 0 10px; height: 36px; }
  .fav-btn span { display: none; }
  .mobile-menu-btn { display: block; }

  .side-panel {
    position: fixed; top: var(--header-h); bottom: 0; left: 0;
    width: min(84vw, 330px);
    transform: translateX(-105%); transition: transform .25s ease;
    box-shadow: var(--shadow); z-index: 1500;
  }
  .side-panel.open { transform: translateX(0); }
  .side-panel .lang-tabs-mobile {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 4px;
  }
  .side-panel .lang-tabs-mobile .lang-tab {
    border: none; border-radius: 6px; min-width: 62px; height: 34px; font-size: 12px;
    background: var(--navy); color: #fff;
  }
  .side-panel .lang-tabs-mobile .lang-tab.active { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }

  .notices-panel { width: min(66vw, 250px); }
  .notices-panel .notice-title { font-size: 11px; }
  .detail-panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 62dvh;
    border-radius: 16px 16px 0 0;
  }
  .dp-photo { margin: 0 -16px 12px; }
  .nearby-panel { right: 14px; bottom: 10px; }
  .map-wrap .leaflet-top.leaflet-left { bottom: auto; top: 260px; }
  .map-fab { bottom: auto; top: 356px; }
}
