/* ========================================================
   Geo NLink - Modern Travel & Geo Interface Stylesheet
   ======================================================== */

:root {
  color-scheme: dark;
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', 'Pretendard', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --bg-primary: #0c1322;
  --bg-dark: #060911;
  --bg-card: rgba(11, 15, 25, 0.92);
  --bg-card-border: rgba(34, 211, 238, 0.22);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --danger: #f43f5e;
  --danger-glow: rgba(244, 63, 94, 0.35);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(6, 182, 212, 0.12);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 16px rgba(6, 182, 212, 0.1);
  --blur: blur(20px);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden], [hidden="true"], [hidden="hidden"] {
  display: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
}

input, textarea, [contenteditable="true"], .selectable, .selectable-text {
  -webkit-user-select: text;
  user-select: text;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* ── MAP CONTAINER & GPU HARDWARE ACCELERATION ───────────────────────── */
#map,
.leaflet-map-pane,
.leaflet-tile-pane,
.maplibregl-canvas {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgb(148, 192, 255);
}

.route-info-panel {
  position: absolute;
  top: auto;
  bottom: 24px;
  left: 20px;
  z-index: 25;
  width: min(380px, calc(100% - 32px));
  max-height: 48vh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  color: #f8fafc;
}

.route-info-panel[hidden] { display: none; }

.tip-learning-panel {
  position: absolute; top: 150px; right: 16px; z-index: 27;
  width: min(390px, calc(100% - 32px)); max-height: 69vh; overflow: auto;
  padding: 16px; border: 1px solid rgba(56, 189, 248, .65); border-radius: 14px;
  background: rgba(15, 23, 42, .97); color: #f8fafc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}
.tip-learning-panel[hidden], .tip-learning-place[hidden], .tip-learning-actions button[hidden] { display: none; }
.map-search {
  position: absolute; top: 50px; left: 16px; z-index: 24;
  display: flex; width: min(360px, calc(100% - 32px));
  border: 1px solid rgba(56, 189, 248, .55); border-radius: 999px;
  background: rgba(15, 23, 42, .94); box-shadow: 0 8px 24px rgba(0,0,0,.28); overflow: visible;
}
.map-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 14px; background: transparent; color: #f8fafc; font: inherit; font-size: 13px; }
.map-search input::placeholder { color: #94a3b8; }
.map-search > button { border: 0; border-left: 1px solid rgba(56, 189, 248, .35); padding: 0 15px; background: #075985; color: #e0f2fe; font-weight: 800; cursor: pointer; }
.map-search > button:disabled { opacity: .65; cursor: wait; }
.map-search-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; overflow: hidden; border: 1px solid rgba(56, 189, 248, .4); border-radius: 12px; background: rgba(15, 23, 42, .97); box-shadow: 0 10px 28px rgba(0,0,0,.36); }
.map-search-results[hidden] { display: none; }
.map-search-result { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(148, 163, 184, .14); padding: 10px 12px; background: transparent; color: #e2e8f0; text-align: left; font-size: 12px; line-height: 1.4; cursor: pointer; }
.map-search-result:last-child { border-bottom: 0; }
.map-search-result:hover, .map-search-result:focus-visible { background: #123047; color: #fff; }
.leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 68px !important; margin-left: 14px !important; }
.tip-learning-panel.compact { max-height: none; padding-bottom: 10px; }
.tip-learning-panel.compact > :not(.tip-learning-head):not(.tip-learning-numbers) { display: none; }
.tip-learning-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tip-learning-head strong { font-size: 17px; }
.tip-learning-head span { color: #7dd3fc; font-size: 13px; font-weight: 800; }
.tip-learning-head > div { display: flex; align-items: center; gap: 9px; }
.tip-learning-head button { cursor: pointer; font: inherit; }
.tip-learning-toggle {
  min-width: 47px; height: 28px; padding: 0 9px; border: 1px solid rgba(125, 211, 252, .45);
  border-radius: 999px; background: rgba(14, 116, 144, .26); color: #bae6fd;
  font-size: 11px !important; font-weight: 800; line-height: 26px;
}
.tip-learning-toggle:hover, .tip-learning-toggle:focus-visible { background: #075985; border-color: #7dd3fc; color: #fff; }
.tip-learning-close {
  width: 28px; height: 28px; padding: 0; border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 50%; background: rgba(30, 41, 59, .85); color: #cbd5e1;
  font-size: 18px !important; line-height: 24px;
}
.tip-learning-close:hover, .tip-learning-close:focus-visible { border-color: #fda4af; background: rgba(127, 29, 29, .6); color: #fff; }
.tip-learning-help { margin: 7px 0 12px; color: #94a3b8; font-size: 11px; line-height: 1.4; }
.tip-learning-numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.tip-learning-numbers button { min-width: 34px; min-height: 34px; border: 1px solid #475569; border-radius: 8px; background: #1e293b; color: #cbd5e1; font-weight: 800; cursor: pointer; }
.tip-learning-numbers button.active, .tip-learning-numbers button:focus-visible { background: #075985; border-color: #7dd3fc; color: #fff; }
.tip-learning-place { margin-bottom: 12px; padding: 10px; border: 1px solid #075985; border-radius: 8px; background: #123047; color: #c8e8fa; font-size: 11px; line-height: 1.5; white-space: pre-line; }
.tip-learning-panel h2 { margin: 0 0 9px; font-size: 15px; line-height: 1.45; }
.tip-learning-answer { color: #cbd5e1; font-size: 12px; line-height: 1.6; }
.tip-learning-answer b { color: #7dd3fc; }
.tip-learning-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tip-learning-actions button { border: 1px solid #38bdf8; border-radius: 8px; padding: 9px 11px; background: #14344c; color: #e0f2fe; font-size: 12px; font-weight: 700; cursor: pointer; }
.tip-learning-actions #tipLearningQuizBtn { background: #0369a1; color: #fff; }
.tip-learning-bottom-toggle { display: block; width: 100%; margin-top: 11px; border: 1px solid rgba(125, 211, 252, .38); border-radius: 8px; padding: 7px 10px; background: rgba(30, 41, 59, .75); color: #bae6fd; font-size: 11px; font-weight: 800; cursor: pointer; }
.tip-learning-bottom-toggle:hover, .tip-learning-bottom-toggle:focus-visible { background: #075985; color: #fff; }
.tip-learning-route-info { margin: 0 0 13px; padding: 10px; border: 1px solid rgba(56, 189, 248, .28); border-radius: 10px; background: rgba(15, 42, 64, .58); }
.tip-learning-route-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #bae6fd; font-size: 12px; font-weight: 800; }
.tip-learning-route-title button { border: 1px solid rgba(125, 211, 252, .4); border-radius: 999px; padding: 4px 9px; background: rgba(14, 116, 144, .24); color: #bae6fd; font-size: 10px; font-weight: 800; cursor: pointer; }
.tip-learning-route-title button:hover, .tip-learning-route-title button:focus-visible { background: #075985; color: #fff; }
.tip-learning-route-info:has(.route-info-body[hidden]) .route-info-note { display: none; }
.tip-learning-route-info .route-info-body { gap: 6px; }
.tip-learning-route-info .route-info-body[hidden] { display: none !important; }
.tip-learning-route-info .route-info-segment { padding: 7px 8px; }
.tip-learning-route-info .route-info-note { margin: 7px 0 0; }
@media (max-width: 640px) {
  .leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 132px !important; margin-left: 12px !important; }
  .map-left-controls { top: 50px !important; left: 10px !important; }
  .map-attribution-pill { bottom: 10px !important; right: 10px !important; top: auto !important; }
  .tip-learning-panel {
    top: auto; right: 0; left: 0; bottom: 0; width: auto;
    max-height: min(32vh, 240px); border-radius: 16px 16px 0 0; padding: 10px 14px 12px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
    transition: max-height 0.25s ease, padding 0.2s ease;
  }
  .tip-learning-panel h2 { font-size: 13.5px; margin-bottom: 6px; }
  .tip-learning-numbers { margin-bottom: 8px; gap: 4px; }
  .tip-learning-numbers button { min-width: 30px; min-height: 30px; font-size: 12px; }
  .tip-learning-answer { font-size: 11.5px; line-height: 1.5; }
  .tip-learning-actions { margin-top: 8px; gap: 6px; }
  .tip-learning-actions button { padding: 7px 10px; font-size: 11px; }
}

.seoul-places-fab {
  position: absolute; top: 145px; right: 16px; left: auto; z-index: 26;
  border: 1px solid #38bdf8; border-radius: 999px; padding: 7px 11px;
  background: #0f2940; color: #e0f2fe; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.seoul-places-fab[hidden], .seoul-place-panel[hidden] { display: none; }
.seoul-place-panel {
  position: absolute;
  top: auto;
  bottom: 24px;
  left: 20px;
  z-index: 26;
  width: 420px;
  max-width: calc(100% - 40px);
  max-height: min(65vh, 520px);
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fafc;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.seoul-place-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.seoul-place-panel-head strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}
.seoul-place-panel-head button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.seoul-place-panel-head button:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.seoul-place-panel p {
  margin: 10px 0;
  line-height: 1.55;
  font-size: 13.5px;
}
#seoulPlaceLocation {
  color: #7dd3fc;
  font-weight: 700;
  font-size: 14px;
}
#seoulPlaceSense {
  color: #e2e8f0;
  line-height: 1.6;
}
#seoulPlaceNearby {
  color: #94a3b8;
  font-size: 12.5px;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.55);
  border-radius: 8px;
  border-left: 3px solid #38bdf8;
}
.seoul-place-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.seoul-place-actions button, .seoul-intro-quiz {
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  background: #14344c;
  color: #e0f2fe;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.seoul-place-actions button:hover, .seoul-intro-quiz:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
#seoulQuizBtn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #38bdf8;
}
#seoulQuizBtn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}
.seoul-places-modal { max-width: 650px; }
.seoul-places-modal .modal-header { align-items: start; }
.seoul-places-modal .modal-header h2 { margin: 0 0 6px; font-size: 21px; }
.seoul-places-modal .modal-header p { margin: 0; color: #cbd5e1; font-size: 13px; line-height: 1.45; }
.seoul-places-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 18px; overflow-y: auto; }
.seoul-place-option { text-align: left; border: 1px solid #334155; border-radius: 10px; background: #1e293b; color: #f8fafc; padding: 13px; cursor: pointer; }
.seoul-place-option:hover, .seoul-place-option:focus-visible { border-color: #38bdf8; background: #173650; }
.seoul-place-option strong, .seoul-place-option span { display: block; }
.seoul-place-option strong { font-size: 15px; margin-bottom: 5px; }
.seoul-place-option span { font-size: 11px; color: #94a3b8; line-height: 1.4; }
.seoul-intro-quiz { margin: 0 18px 18px; align-self: flex-start; }
@media (max-width: 640px) {
  .seoul-places-list { grid-template-columns: 1fr; gap: 7px; }
  .seoul-place-panel {
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 440px;
    max-height: 48vh;
    padding: 14px 16px;
    border-radius: 16px;
  }
}

.route-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.route-info-head button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.route-info-body { display: grid; gap: 8px; }
.route-info-total { color: #fbbf24; font-size: 12px; }

.route-info-segment {
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
}

.route-info-segment strong,
.route-info-segment span,
.route-info-segment small { display: block; }

.route-info-segment strong { font-size: 12px; line-height: 1.4; }
.route-info-segment span { margin-top: 4px; color: #7dd3fc; font-size: 12px; font-weight: 700; }
.route-info-segment small { margin-top: 3px; color: #cbd5e1; font-size: 11px; line-height: 1.4; }
.route-info-segment a { display: inline-block; margin-top: 5px; color: #7dd3fc; font-size: 11px; }
.route-info-note { margin-top: 9px; color: #94a3b8; font-size: 10.5px; line-height: 1.4; }

/* Custom Leaflet overrides (Replaced by .custom-zoom-dock with % and Reset) */
.leaflet-control-zoom {
  display: none !important;
}

.custom-zoom-dock {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  padding: 3.5px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.zoom-dock-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.zoom-dock-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-dock-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
}

.zoom-percent-label {
  min-width: 32px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #e0f2fe;
  cursor: pointer;
  padding: 0 1px;
  user-select: none;
}

.zoom-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 2.5px 4px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.65);
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.zoom-reset-btn:hover,
.zoom-reset-btn.custom-active {
  background: rgba(14, 116, 144, 0.55);
  border-color: rgba(56, 189, 248, 0.75);
  color: #e0f2fe;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.28);
}

.zoom-dock-subrow {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.pitch-3d-btn {
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.pitch-3d-btn:hover,
.pitch-3d-btn.active-3d {
  background: rgba(2, 132, 199, 0.65) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

/* ── 3D 나침반(Compass) & 360° 회전 컨트롤 ───────────────── */
.zoom-dock-rotrow {
  margin-top: 1px;
  gap: 2.5px;
}

.zoom-rot-btn {
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 0;
  flex: 1;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zoom-rot-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
}

.compass-btn {
  flex: 1.25;
  position: relative;
  overflow: visible;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.compass-needle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

.compass-icon {
  font-size: 11px;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.compass-btn.rotated {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.compass-btn.rotated:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* PC 우클릭 360도 회전 힌트 툴팁 */
@media (hover: hover) and (pointer: fine) {
  .compass-btn:hover::after {
    content: "우클릭 드래그: 360° 회전 · 클릭: 정북향 리셋";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.6);
    border-radius: 7px;
    color: #e0f2fe;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    animation: fadeInCompassTooltip 0.18s ease;
  }
}

@keyframes fadeInCompassTooltip {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ── 지역명 영구 라벨 (정답 후 지도에 남는 이름 - 모든 테마에서 완벽한 가독성) ──── */
.geo-label,
.maplibre-marker-tooltip {
  background: rgba(11, 15, 25, 0.94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.55) !important;
  color: #f8fafc !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 7px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(56, 189, 248, 0.3) !important;
  pointer-events: none;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
}
.leaflet-tooltip.geo-label::before {
  border-top-color: rgba(56, 189, 248, 0.55) !important;
}

/* ── FLOATING TOP HEADER ───────────────────────────── */
.top-header {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.top-header > * {
  pointer-events: auto;
}

/* ── Top Header Left Cluster (Twin Pills: Region + World) ── */
.header-left-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

/* ── Clean Region Pill (Header Left) ─────────────── */
.clean-region-btn {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.clean-region-btn:hover {
  background: rgba(17, 24, 39, 0.95);
  border-color: #22d3ee;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.clean-region-btn:active {
  transform: translateY(0);
}

.clean-region-btn .dest-current-badge {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.clean-region-btn .region-menu-icon {
  font-size: 13.5px;
  color: #22d3ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
  line-height: 1;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--bg-card-border);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo span.dot {
  color: var(--accent);
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ── Destination Grouped Selector ─────────────────── */
.dest-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dest-select-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dest-select-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.dest-arrow {
  font-size: 11px;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.dest-selector-wrap.open .dest-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dest-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
  padding: 12px 14px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dest-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.dest-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.dest-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dest-world-hub-btn {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dest-world-hub-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(59, 130, 246, 0.3));
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.dest-group {
  margin-bottom: 10px;
}

.dest-group:last-child {
  margin-bottom: 0;
}

.dest-group-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dest-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dest-item {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dest-item:hover:not(.disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.dest-item.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.dest-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── TOP WORLD BUTTON (HEADER QUICK ACCESS) ─────────── */
.top-world-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 10px rgba(56, 189, 248, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.top-world-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}
.top-world-btn:active {
  transform: translateY(0);
}
.top-world-icon {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 480px) {
  .top-world-btn {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 4px;
  }
}

.icon-btn {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.icon-btn:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.qna-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(56, 189, 248, 0.2));
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.qna-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(56, 189, 248, 0.35));
}

/* ── PROGRESS & STATS PILL ─────────────────────────── */
.stats-pill {
  position: static;
  transform: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(6, 182, 212, 0.12);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13.5px;
  font-feature-settings: "tnum" on, "zero" on;
}

#scoreVal {
  color: #22d3ee;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

#streakVal {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

/* ── FLOATING QUESTION CARD (BOTTOM) ──────────────── */
.bottom-sheet {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 580px;
  z-index: 20;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sheet-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.progress-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Collapse toggle button */
.collapse-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(56, 189, 248, 0.15);
  flex-shrink: 0;
}

.collapse-btn:hover,
.collapse-btn:active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.collapse-icon {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Sheet body - collapsible */
.sheet-body {
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin 0.3s ease;
  margin-top: 0;
}

/* Collapsed state */
.bottom-sheet.collapsed {
  padding-bottom: 14px;
}

.bottom-sheet.collapsed .sheet-header {
  margin-bottom: 0;
}

.bottom-sheet.collapsed .sheet-body {
  max-height: 0;
  opacity: 0;
  margin-top: -4px;
}

.bottom-sheet.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.stage-badge {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}

.stage-badge:hover,
.stage-badge:focus-visible {
  background: rgba(56, 189, 248, 0.3);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.question-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 8px;
}

.question-hint-box {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.question-hint-box .icon {
  flex-shrink: 0;
  color: var(--warning);
}

/* Multiple choice options (for Stage 3) */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.option-btn {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-btn:hover {
  background: #162238;
  border-color: #22d3ee;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  transform: translateY(-1.5px);
}

.option-btn:disabled:hover,
.option-btn.correct:hover,
.option-btn.wrong:hover {
  transform: none !important;
  cursor: default;
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
}

.option-btn.wrong {
  background: rgba(244, 63, 94, 0.22) !important;
  border-color: #f43f5e !important;
  color: #fb7185 !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35) !important;
}

/* Korea Home 2-Column Paired Grid (서울 | 서울지하철, 경기광주 | 부산, 부산지하철 | 강원도, 6대 코스 랜덤) */
.options-grid.korea-home-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.options-grid.korea-home-grid .option-btn {
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.3px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.options-grid.korea-home-grid .option-btn.random-course-btn {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 70, 239, 0.16));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.options-grid.korea-home-grid .option-btn.random-course-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 70, 239, 0.28));
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.options-grid.korea-home-grid .option-btn.featured-province-option {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(16, 185, 129, 0.22));
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.options-grid.korea-home-grid .option-btn.featured-province-option:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.35));
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

/* Stage 3 Route Options Grid - 1-Column Stack with Full Word-wrap */
.options-grid.route-options-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 10px;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 3px 2px !important;
}

.options-grid.route-options-grid .option-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-break: keep-all !important;
  word-wrap: break-word !important;
  line-height: 1.45 !important;
  padding: 11px 13px !important;
  text-align: left !important;
  gap: 8px !important;
}

.options-grid.route-options-grid .option-btn span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.options-grid.route-options-grid .option-btn .arrow {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--accent);
  margin-left: 4px;
}

/* Region Quiz 1-Column Stack Layout (긴 권역/명소 텍스트 잘림 방지 및 모바일 가독성 최적화) */
.options-grid.region-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px;
  margin-top: 6px;
  width: 100%;
}

.options-grid.region-grid .option-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 10px 14px !important;
  min-height: 44px;
  font-size: 13.5px;
  line-height: 1.4;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.options-grid.region-grid .option-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #38bdf8;
}

.options-grid.region-grid .option-btn:active {
  transform: scale(0.985);
}

.options-grid.region-grid .region-opt-num {
  font-weight: 800;
  color: #38bdf8;
  margin-right: 9px;
  flex-shrink: 0;
  font-size: 13.5px;
}

.options-grid.region-grid .region-opt-text {
  flex: 1;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* Subway 2x2 Grid for compact mobile layout */
.options-grid.subway-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.options-grid.subway-grid .option-btn {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 42px;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.options-grid.subway-grid .option-btn .subway-opt-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-grid.subway-grid .option-btn.subway-btn-next-ready {
  cursor: pointer !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.options-grid.subway-grid .option-btn.subway-btn-next-ready:hover {
  filter: brightness(1.15);
}

.options-grid.subway-grid .option-btn.subway-btn-next-ready:active {
  transform: scale(0.96);
  filter: brightness(1.25);
}

.options-grid.subway-grid .option-btn.correct {
  background: rgba(16, 185, 129, 0.28) !important;
  border: 1.5px solid #10b981 !important;
  color: #34d399 !important;
  justify-content: space-between !important;
  text-align: left !important;
  padding: 6px 10px !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.options-grid.subway-grid .option-btn.wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1.5px solid #ef4444 !important;
  color: #f87171 !important;
  justify-content: space-between !important;
  text-align: left !important;
  padding: 6px 10px !important;
}

.options-grid.subway-grid .option-btn.subway-opt-dimmed {
  opacity: 0.5;
}

.subway-next-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.45);
  animation: subwayPulseNext 1.2s ease-in-out infinite;
}

@keyframes subwayPulseNext {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.7);
  }
}

.subway-wrong-indicator {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  color: #fca5a5;
}


/* Feedback alert with integrated Next action */
.feedback-box {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideUp 0.25s ease;
}

.feedback-box.success {
  display: flex !important;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.feedback-box.error {
  display: flex !important;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.feedback-text {
  min-width: 0;
  flex: 1;
}

/* Compact, prominently visible Next button inside feedback */
.btn-next-step {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-next-step:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.55);
}

.btn-next-step:active {
  transform: translateY(0);
}

/* Header Next button (compact chip in sheet-header) */
.header-next-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  animation: pulseNext 1.8s infinite;
}

@keyframes pulseNext {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25); }
}

.header-next-btn:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  transform: translateY(-1px);
}

.next-action-bar {
  display: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

/* ── MAP CUSTOM MARKERS ────────────────────────────── */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0284c7;
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-pin span {
  transform: rotate(45deg);
  font-size: 14px;
}

.target-pulse {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.4);
  border: 2px solid #10b981;
  border-radius: 50%;
  position: relative;
  animation: pulseAnim 1.6s infinite ease-out;
}

@keyframes pulseAnim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3) rotate(-45deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(-45deg); }
  100% { transform: scale(1) rotate(-45deg); opacity: 1; }
}

/* Korea Hub Pin (Default Map) */
.korea-hub-pin {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.korea-hub-pin span {
  transform: none !important;
}
.korea-hub-pin .hub-pin-inner {
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid #38bdf8;
  border-radius: 20px;
  padding: 5px 12px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.korea-hub-pin .hub-pin-inner:hover {
  background: #0284c7;
  border-color: #e0f2fe;
  transform: translateY(-2px) scale(1.05);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── MODALS (Q&A & SUMMARY CARD) ───────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

/* Common Modal Dialog (FPV Rehearsal, etc.) */
.modal-dialog {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
  overscroll-behavior-y: contain;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.7);
  flex-shrink: 0;
}

.modal-head h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: rotate(90deg);
}

.modal-container {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: linear-gradient(165deg, #060911 0%, #0c1322 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.8);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.modal-body > * {
  flex-shrink: 0;
}

.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* Q&A Accordion Item */
.qna-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}

.qna-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.qna-question {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qna-question .q-badge {
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.qna-answer {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 26px;
}

.qna-answer b {
  color: #38bdf8;
}

/* Q&A 지도에서 보기 버튼 */
.qna-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  margin-left: 26px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.qna-map-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* ── SUMMARY REWARD CARD (VIRAL SHARE IMAGE) ──────── */
.summary-card-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#summaryCard {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #060911 0%, #0c1322 60%, #111827 100%);
  border: 2px solid rgba(34, 211, 238, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.18), inset 0 0 40px rgba(6, 182, 212, 0.08);
  position: relative;
  overflow: hidden;
}

#summaryCard::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-title-group h2 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.card-title-group p {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 3px;
}

.card-score-badge {
  text-align: right;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 12px;
  border-radius: 12px;
}

.card-score-badge .score-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.card-score-badge .score-lbl {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Route Diagrams in Card */
.route-diagram-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.route-flow-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.route-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  margin-bottom: 4px;
}

.step-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.step-desc {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
}

.route-connector {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  margin: 0 4px;
  margin-top: -16px;
  position: relative;
}

.connector-time {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: #0f172a;
  padding: 0 4px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Card Bottom (Branding & QR) */
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.branding-text {
  display: flex;
  flex-direction: column;
}

.branding-logo {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.branding-logo span {
  color: var(--accent);
}

.branding-url {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.branding-scan-tip {
  font-size: 10px;
  color: #38bdf8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-qr-box {
  width: 60px;
  height: 60px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-qr-box canvas, .card-qr-box img {
  width: 100% !important;
  height: 100% !important;
}

.modal-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions-row button {
  flex: 1;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
}

/* ── WORLD MAP HUB & MISSION SELECTOR ──────────────── */
.world-hub-container {
  max-width: 680px;
  width: 94%;
  max-height: 90vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
}

.world-hub-header {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
}

.world-hub-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.world-hub-body {
  padding: 20px;
  overflow-y: auto;
}

.world-hub-intro {
  text-align: center;
  margin-bottom: 22px;
}

.world-hub-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.world-hub-title .nowrap {
  white-space: nowrap;
}

.world-hub-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.world-explore-map-btn {
  margin-top: 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.world-explore-map-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.world-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0 10px;
  padding: 8px 16px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.world-install-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

@media (max-width: 640px) {
  .world-install-btn {
    margin-left: 0;
  }
}

.world-hub-countries {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.world-country-group {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.country-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
}

.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.world-city-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

.world-city-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.25);
}

.world-city-card .city-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.world-city-card .city-info {
  flex-grow: 1;
  min-width: 0;
}

.world-city-card .city-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-city-card .city-tagline {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.world-city-card .city-action {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s;
}

.world-city-card:hover .city-action {
  opacity: 1;
  transform: translateX(3px);
}

.world-hub-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.world-hub-footer b {
  color: #38bdf8;
}

/* ── WORLD MAP GUIDE PILL & FLOATING CONTROLS ──────── */
.world-map-guide-pill {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.3);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 12.5px;
  white-space: nowrap;
  animation: guidePillPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 32px);
}

.world-map-guide-pill b {
  color: #38bdf8;
}

.guide-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  position: relative;
  flex-shrink: 0;
}

.guide-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  animation: worldPinPulse 1.8s infinite ease-out;
}

.world-guide-list-btn {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.world-guide-list-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

@keyframes guidePillPop {
  0% { transform: translate(-50%, -10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ── WORLD MAP PIN STYLES (ON LEAFLET) ──────────────── */
.world-map-pin {
  background: transparent !important;
  border: none !important;
}

.world-pin-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #38bdf8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: auto;
}

.world-pin-wrap:hover {
  transform: translate(-50%, -50%) scale(1.18);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 26px rgba(56, 189, 248, 0.9);
}

.world-pin-wrap.korea {
  border-color: #38bdf8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.world-pin-wrap.vietnam {
  border-color: #10b981;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.world-pin-wrap.spain {
  border-color: #f59e0b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.world-pin-wrap .pin-fly-hint {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.world-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  position: relative;
}

.world-pin-wrap.vietnam .world-pin-dot { background: #10b981; }
.world-pin-wrap.spain .world-pin-dot { background: #f59e0b; }

.world-pin-wrap.is-seoul-pin .world-pin-dot::after,
.world-pin-wrap:hover .world-pin-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid inherit;
  animation: worldPinPulse 2.2s infinite ease-out;
}

@keyframes worldPinPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

.world-pin-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

/* ── RESPONSIVE MOBILE TWEAKS ──────────────────────── */
@media (max-width: 640px) {
  .top-header {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .header-left-cluster {
    gap: 6px;
  }
  .clean-region-btn {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .header-pwa-btn {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 4px;
  }
  .brand-bar {
    padding: 6px 12px;
  }
  .brand-logo {
    font-size: 13.5px;
  }
  .brand-badge {
    display: none;
  }
  .dest-select-btn {
    font-size: 11.5px;
    padding: 4px 9px;
  }
  .dest-dropdown {
    min-width: 230px;
    max-width: calc(100vw - 32px);
    left: -10px;
  }
  .icon-btn span.btn-label {
    display: none;
  }
  .icon-btn {
    padding: 8px 10px;
  }
  .stats-pill {
    padding: 4px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .bottom-sheet {
    bottom: 8px;
    width: calc(100% - 16px);
    max-width: 520px;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom, 14px));
    max-height: min(64vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .stage-badge {
    max-width: calc(100vw - 160px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    padding: 5px 9px;
  }
  .sheet-briefing-btn {
    padding: 5px 8px;
    font-size: 10.5px;
  }
  .collapse-btn {
    width: 32px;
    height: 32px;
  }
  .question-title {
    font-size: 13.5px;
    margin-bottom: 4px;
    line-height: 1.35;
  }
  .question-hint-box {
    margin-bottom: 6px;
    font-size: 11px;
    padding: 4px 8px;
    line-height: 1.35;
  }
  .subway-mode-tabs {
    gap: 4px;
    margin-bottom: 5px;
    padding: 2.5px;
  }
  .subway-tab {
    padding: 4px 6px;
    font-size: 11px;
  }
  .subway-reverse-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .subway-sub-nav {
    padding: 1px 2px 4px;
    margin-bottom: 5px;
    gap: 4px;
  }
  .subway-nav-chip {
    padding: 3px 8px;
    font-size: 11px;
  }
  .options-grid.subway-grid {
    gap: 6px;
    margin-top: 5px;
    flex-shrink: 0;
  }
  .options-grid.subway-grid .option-btn {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .leaflet-control-zoom {
    margin-top: 58px !important;
    margin-left: 10px !important;
  }
  #summaryCard {
    padding: 16px;
  }
}

/* ── DESTINATION SUGGESTION & REQUEST FORM STYLES ───── */
.icon-btn.suggest-btn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fef08a;
}

.icon-btn.suggest-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
}

.dest-suggest-btn {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px dashed rgba(234, 179, 8, 0.45);
  border-radius: 8px;
  color: #facc15;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.dest-suggest-btn:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: #facc15;
  color: #fff;
}

.world-hub-footer-tip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.world-hub-suggest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  gap: 16px;
}

.world-hub-suggest-row > span {
  flex: 1;
  min-width: 0;
}

.world-suggest-link-btn {
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .world-hub-suggest-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .world-hub-suggest-row > span {
    flex-basis: 100%;
  }
}

.world-suggest-link-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fff;
}

/* Suggest Modal */
.suggest-container {
  max-width: 490px;
  width: 92%;
}

.suggest-lead-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.suggest-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.suggest-form .form-label {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.suggest-form .form-label .req {
  color: #f43f5e;
}

.suggest-form .form-input,
.suggest-form .form-textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.suggest-form .form-textarea {
  resize: vertical;
  min-height: 70px;
}

.suggest-form .form-input:focus,
.suggest-form .form-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.suggest-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .suggest-form .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.suggest-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.suggest-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.suggest-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.suggest-status.loading {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

/* ── WEEKLY MAP VOTING SYSTEM UI ────────────────────── */
.weekly-vote-container {
  max-width: 530px !important;
  width: 93% !important;
}

.weekly-nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 14px;
}

.weekly-nav-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.weekly-nav-tab.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.weekly-dday-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #fcd34d;
}

.weekly-dday-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
  letter-spacing: 0.3px;
}

.weekly-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.candidate-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.candidate-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.candidate-card.rank-1 {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.85));
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.candidate-card.voted {
  border-color: rgba(16, 185, 129, 0.6);
}

.candidate-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.candidate-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.candidate-rank {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  flex-shrink: 0;
}

.candidate-card.rank-1 .candidate-rank {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.candidate-name-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.candidate-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
}

.candidate-tag {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.candidate-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.candidate-vote-btn:hover:not(:disabled) {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transform: scale(1.04);
}

.candidate-vote-btn.voted-btn {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  cursor: default;
}

.candidate-reason {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.candidate-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.candidate-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.candidate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.candidate-card.rank-1 .candidate-progress-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.candidate-votes-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  min-width: 32px;
  text-align: right;
}

.weekly-winner-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.weekly-winner-btn {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.weekly-winner-btn:hover {
  background: #10b981;
}

/* 헤더 및 드로어 위클리 픽 뱃지 */
.drawer-weekly-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.95)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18) !important;
}

.drawer-weekly-card .suggest-card-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

/* ── CITY BRIEFING MODAL & CONTROLS ────────────────── */
.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-briefing-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-briefing-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.icon-btn.info-btn {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.icon-btn.info-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.city-briefing-container {
  max-width: 520px;
  width: 94%;
  background: linear-gradient(160deg, #060911 0%, #0c1322 60%, #111827 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(6, 182, 212, 0.12);
}

.briefing-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.briefing-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.briefing-flag {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.briefing-city-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 3px 0;
  letter-spacing: -0.3px;
}

.briefing-status-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.briefing-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.briefing-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.briefing-stat-card.area-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.8));
  border-color: rgba(16, 185, 129, 0.3);
}

.briefing-stat-card.area-card .stat-sub {
  color: #34d399;
}

@media (max-width: 480px) {
  .briefing-stats-grid {
    grid-template-columns: 1fr;
  }
  .briefing-stat-card.area-card {
    grid-column: span 1;
  }
}

.briefing-stat-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.briefing-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.briefing-stat-card .stat-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.briefing-stat-card .stat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.briefing-stat-card .stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.briefing-stat-card .stat-main {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.briefing-stat-card .stat-sub {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.25;
}

.briefing-geo-section {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-sec-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.geo-sec-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.briefing-actions {
  margin-top: 4px;
}

.briefing-start-btn {
  width: 100%;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
}

/* ── HAMBURGER MENU BUTTON ────────────────────────── */
.menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

/* ── RIGHT SLIDE-IN DRAWER ─────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: linear-gradient(165deg, rgba(6, 9, 17, 0.98) 0%, rgba(11, 15, 25, 0.98) 50%, rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(34, 211, 238, 0.22);
  border-left: none;
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
  z-index: 2010;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease, box-shadow 0.32s ease;
  overflow: hidden;
}

.side-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.1);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 17, 0.95);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.drawer-home-btn {
  padding: 6px 9px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.drawer-home-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1) Drawer Briefing Card */
.drawer-briefing-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-briefing-card.drawer-briefing-slim {
  padding: 10px 12px;
  gap: 0;
  margin-bottom: 2px;
}

.drawer-briefing-card.drawer-briefing-slim .drawer-briefing-top {
  align-items: center;
}

.drawer-briefing-card.drawer-briefing-slim .drawer-flag {
  font-size: 24px;
}

.drawer-briefing-card.drawer-briefing-slim .drawer-city-title {
  font-size: 14.5px;
  margin: 0;
}

.drawer-briefing-card.drawer-briefing-slim .drawer-status-badge {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  display: inline-block;
}

.drawer-briefing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.briefing-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-flag {
  font-size: 28px;
  line-height: 1;
}

.drawer-city-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
}

.drawer-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.drawer-more-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-more-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.drawer-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.d-stat-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.d-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.d-stat-val {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.drawer-geo-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
  background: rgba(30, 41, 59, 0.4);
  padding: 8px 10px;
  border-radius: 6px;
}

/* 2) Country Accordion */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-item.open {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.accordion-header {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  gap: 6px;
}

.acc-country {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.acc-count {
  font-size: 11px;
  color: #64748b;
  margin-left: 4px;
  margin-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.acc-arrow {
  font-size: 11px;
  color: #38bdf8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.open .acc-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0 10px 10px 10px;
  flex-direction: column;
  gap: 6px;
}

.accordion-item.open .accordion-body {
  display: flex;
}

.drawer-city-btn {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.drawer-city-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
  transform: translateX(2px);
}

.drawer-city-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.25));
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 800;
}

.city-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.drawer-city-btn.active .city-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.featured-province-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(16, 185, 129, 0.16));
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

.featured-province-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25));
  border-color: #38bdf8;
}

.featured-province-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.35));
  border-color: #38bdf8;
  color: #38bdf8;
}

.featured-province-btn .city-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.drawer-city-disabled {
  font-size: 11.5px;
  color: #64748b;
  padding: 8px 10px;
  font-style: italic;
}

/* Seoul Subplaces Accordion in Drawer */
.drawer-city-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-city-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-city-row .drawer-city-btn {
  flex: 1;
}
.drawer-city-subtoggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(14, 116, 144, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.drawer-city-subtoggle:hover {
  background: rgba(14, 116, 144, 0.45);
  border-color: #38bdf8;
  color: #fff;
}
.drawer-city-subtoggle .subtoggle-arrow {
  transition: transform 0.2s ease;
  font-size: 10px;
}
.drawer-city-group:not(.open) .drawer-subplaces-list {
  display: none;
}
.drawer-city-group:not(.open) .subtoggle-arrow {
  transform: rotate(-90deg);
}
.drawer-subplaces-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px 6px 8px 14px;
  background: rgba(15, 23, 42, 0.45);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: 0 0 8px 8px;
  margin-top: 2px;
  margin-bottom: 4px;
}
.drawer-subgroup-title {
  grid-column: 1 / -1;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 2px 2px;
  letter-spacing: 0.3px;
}
/* Bundled Regional Subway Sub-sections */
.drawer-metro-subitem {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
}
.drawer-metro-subitem-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.drawer-metro-title-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.drawer-metro-title-btn:hover {
  background: rgba(14, 116, 144, 0.45);
  border-color: #38bdf8;
  color: #38bdf8;
}
.drawer-subplace-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 7px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.drawer-subplace-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.drawer-subplace-btn.active {
  background: rgba(14, 116, 144, 0.4);
  border-color: #38bdf8;
  color: #38bdf8;
}
.drawer-subplace-btn .subplace-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}
.drawer-subplace-btn .subplace-tag {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}
.drawer-subplace-btn:hover .subplace-tag {
  color: #7dd3fc;
}

/* 3) Tools list */
.drawer-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-tool-item {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.drawer-tool-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.drawer-tool-item .tool-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.drawer-tool-item .tool-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.drawer-tool-item .tool-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.drawer-tool-item .tool-desc {
  font-size: 11px;
  color: #94a3b8;
}

.drawer-tool-item.install-item {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: rgba(16, 185, 129, 0.35);
}

.drawer-tool-item.install-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border-color: rgba(16, 185, 129, 0.55);
}

.drawer-tool-item.install-item .tool-title {
  color: #34d399;
}

/* ── DRAWER 3D CINEMATIC TOUR ACCORDION ────────────────── */
.drawer-cinematic-accordion {
  width: 100%;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-cinematic-accordion.open {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.95);
}

.drawer-cinematic-header-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.drawer-cinematic-header-btn .cinematic-acc-arrow {
  font-size: 13px;
  color: #38bdf8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: auto;
}
.drawer-cinematic-accordion.open .cinematic-acc-arrow {
  transform: rotate(180deg);
}

.drawer-cinematic-panel {
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cinematicFadeIn 0.22s ease-out;
}
@keyframes cinematicFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── DRAWER COUNTRY & REGION SECTION ACCORDION (전체 국가 접이식 카드) ── */
.drawer-country-accordion-wrap {
  width: 100%;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-country-accordion-wrap:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
}
.drawer-country-accordion-wrap.open {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.95);
}

.drawer-country-header-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.drawer-country-header-btn .country-acc-arrow {
  font-size: 13px;
  color: #38bdf8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: auto;
}
.drawer-country-accordion-wrap.open .country-acc-arrow {
  transform: rotate(180deg);
}

.drawer-country-panel {
  padding: 10px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: countryFadeIn 0.22s ease-out;
}
@keyframes countryFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 현재 도시 3D 비행 퀵 배너 */
.cinematic-current-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cinematic-current-card:hover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(15, 23, 42, 0.85));
}
.cinematic-current-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cinematic-current-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.cinematic-current-name {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cinematic-current-fly-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
  transition: all 0.18s ease;
}
.cinematic-current-fly-btn:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

/* 권역 탭 바 (PC 마우스 드래그 조작 지원) */
.cinematic-tab-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.cinematic-tab-bar::-webkit-scrollbar {
  display: none;
}
.cinematic-tab-bar.dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}
.cinematic-tab-chip {
  flex-shrink: 0;
  padding: 4px 9px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.cinematic-tab-chip:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.4);
}
.cinematic-tab-chip.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* 랜드마크 카드 목록 */
.cinematic-cards-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}
.cinematic-cards-container::-webkit-scrollbar {
  width: 4px;
}
.cinematic-cards-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 999px;
}

.cinematic-tour-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: all 0.16s ease;
}
.cinematic-tour-card:hover, .cinematic-tour-card:active {
  background: rgba(2, 132, 199, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateX(2px);
}
.cinematic-tour-card.is-current {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
}

.cinematic-tour-card .tour-card-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.cinematic-tour-card .tour-card-info {
  flex: 1;
  min-width: 0;
}
.cinematic-tour-card .tour-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cinematic-tour-card.is-current .tour-card-title {
  color: #38bdf8;
}
.cinematic-tour-card .tour-card-desc {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cinematic-tour-card .tour-card-badge {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.cinematic-tour-card:hover .tour-card-badge {
  background: #38bdf8;
  color: #0f172a;
}

/* 4) Sophisticated Suggest Card */
.drawer-suggest-card {
  margin-top: 4px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggest-card-badge {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.suggest-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.suggest-card-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0 0 6px 0;
}

.suggest-card-btn {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.suggest-card-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

/* World Hub Accordion Styling */
.world-country-group.accordion-item .country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.country-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-count-badge {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.city-count-badge:hover,
.city-count-badge:active {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.2);
}

.world-country-group.accordion-item .city-cards-grid {
  display: none;
}

.world-country-group.accordion-item.open .city-cards-grid {
  display: flex;
}

/* 5) Drawer Contact Footer */
.drawer-contact-footer {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
}

.drawer-email-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.drawer-email-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Suggest Modal Anti-Bot & Admin Contact */
.spam-check-group {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
}

.spam-math-highlight {
  display: inline-block;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin: 0 4px;
}

.suggest-admin-contact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.admin-email-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-email-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ── TOP HEADER PWA PILL BUTTON ────────────────────── */
.header-pwa-btn {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(16, 185, 129, 0.15);
  pointer-events: auto;
}

.header-pwa-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10b981;
  color: #a7f3d0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 185, 129, 0.3);
}

.header-pwa-btn:active {
  transform: translateY(0);
}

html.is-pwa-standalone #header-btn-pwa-info,
html.is-pwa-standalone .header-pwa-btn {
  display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui), (display-mode: window-controls-overlay) {
  #header-btn-pwa-info,
  .header-pwa-btn {
    display: none !important;
  }
}

/* ── 💡 PWA INFO MODAL STYLING (TODOLIST STANDARD) ──── */
.pwa-info-modal-container {
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.pwa-info-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-reassurance-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-main, #f1f5f9);
  line-height: 1.55;
}

.pwa-reassurance-highlight {
  color: #10b981;
  font-size: 13px;
}

.pwa-info-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-info-section.pwa-pros-section {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.03);
}

.pwa-info-section.pwa-cons-section {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.03);
}

.pwa-info-section-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 2px;
}

.pwa-info-section-title.pros-title {
  color: #38bdf8;
}

.pwa-info-section-title.cons-title {
  color: #fbbf24;
}

.pwa-diff-item {
  font-size: 12px;
  color: var(--text-muted, #cbd5e1);
  line-height: 1.55;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.pwa-diff-item:last-child {
  border-bottom: none;
}
.pwa-diff-item strong {
  color: #f8fafc;
}
.pwa-diff-item b {
  color: #34d399;
}

.pwa-section-desc {
  font-size: 12px;
  color: var(--text-muted, #cbd5e1);
  line-height: 1.65;
}
.pwa-section-desc b {
  color: #f8fafc;
}

.pwa-device-guide-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.55;
  transition: all 0.3s ease;
}

.pwa-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pwa-installed-banner {
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 12.5px;
  font-weight: 700;
}

.pwa-modal-primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.pwa-modal-primary-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

.pwa-modal-sub-btn {
  width: 100%;
  padding: 9px;
  font-size: 12.5px;
}

/* ── APP INSTALL GUIDE MODAL ───────────────────────── */
.install-guide-container {
  max-width: 440px;
}

.install-app-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.install-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.install-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-app-name {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.install-app-tagline {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0 0 4px 0;
}

.install-perks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.install-perks span {
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 6px;
}

.install-os-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.install-os-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-os-tab.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.install-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.install-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.step-num {
  width: 24px;
  height: 24px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.step-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.step-desc strong {
  color: #38bdf8;
}

.share-icon {
  display: inline-block;
  font-size: 13px;
  vertical-align: middle;
}

.android-direct-wrap {
  margin-bottom: 10px;
}

.direct-install-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
}

.install-guide-footer {
  display: flex;
  justify-content: flex-end;
}

/* ===========================================
   SOS TEXT BUTTON (inline inside accordion-header)
   =========================================== */
.sos-text-btn {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: auto;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.sos-text-btn:hover,
.sos-text-btn:active {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
}

/* ===========================================
   SOS MODAL
   =========================================== */
.sos-container {
  max-width: 420px;
  max-height: 85vh;
}
#sosModal {
  z-index: 2020;
}
.sos-modal-header {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
  border-bottom: 2px solid rgba(239, 68, 68, 0.5);
}
.sos-modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: 65vh;
  -webkit-overflow-scrolling: touch;
}

/* SOS Section */
.sos-section {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sos-section:last-child {
  border-bottom: none;
}
.sos-section-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.sos-section-content {
  flex: 1;
  min-width: 0;
}
.sos-section-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.sos-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* SOS Call buttons */
.sos-call-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  text-decoration: none;
  color: #f8fafc;
  margin-bottom: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.sos-call-btn:hover,
.sos-call-btn:active {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}
.sos-call-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.sos-call-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sos-call-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
}
.sos-call-text small {
  font-size: 10px;
  color: #94a3b8;
}

/* Consul call special (green tint) */
.consul-call {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.consul-call:hover,
.consul-call:active {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}
.consul-call .sos-call-text strong {
  color: #6ee7b7;
}

.consul-call-local {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}
.consul-call-local:hover,
.consul-call-local:active {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
}
.consul-call-local .sos-call-text strong {
  color: #7dd3fc;
}

/* SOS Embassy call buttons */
.sos-embassy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  text-decoration: none;
  color: #f8fafc;
  margin-bottom: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.sos-embassy-btn:hover,
.sos-embassy-btn:active {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.4);
}
.sos-embassy-btn .sos-call-text strong {
  color: #fde68a;
}

/* Local emergency number grid */
.sos-local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.sos-local-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  text-decoration: none;
  color: #f8fafc;
  transition: var(--transition);
  cursor: pointer;
}
.sos-local-card:hover,
.sos-local-card:active {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(1.04);
}
.sos-local-emoji {
  font-size: 20px;
}
.sos-local-num {
  font-size: 15px;
  font-weight: 800;
  color: #fca5a5;
}
.sos-local-label {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
}

/* Tips list */
.sos-tip-list {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #cbd5e1;
}
.sos-tip-list li {
  margin-bottom: 6px;
}
.sos-tip-list strong {
  color: #fbbf24;
}
.sos-tip-list a {
  color: #38bdf8;
  text-decoration: underline;
}
.sos-tip-list code {
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: #7dd3fc;
}

/* ===========================================
   SUBWAY LEARNING MODE
   =========================================== */
.subway-q-label {
  background: none !important;
  border: none !important;
}
.subway-q-label span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 2px 12px rgba(99, 102, 241, 0.5);
  animation: subwayPulse 1.5s ease-in-out infinite;
}
@keyframes subwayPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 2px 12px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.15), 0 2px 20px rgba(99, 102, 241, 0.4); }
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

/* Subway Mode Tabs & Direction Control */
.subway-mode-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.subway-mode-group {
  display: flex;
  gap: 4px;
  flex: 1;
}
.subway-tab {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}
.subway-tab.active {
  background: rgba(99, 102, 241, 0.22);
  color: #a78bfa;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}
.subway-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}
.subway-reverse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.subway-reverse-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.subway-reverse-btn:active {
  transform: translateY(0);
}
.subway-reverse-btn.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}
.subway-reverse-btn .reverse-icon {
  font-size: 13px;
  font-weight: 800;
  display: inline-block;
  transition: transform 0.3s ease;
}
.subway-reverse-btn.active .reverse-icon {
  transform: rotate(180deg);
}

/* Subway Horizontal Sub-Nav (Course/Line Selector Chips) */
.subway-sub-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subway-sub-nav::-webkit-scrollbar {
  display: none;
}
.subway-nav-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.subway-nav-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.subway-nav-chip.active {
  background: var(--chip-color, #0284c7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── REGIONAL ZONE & LANDMARK DECORATION OVERLAYS ──────────── */
.map-right-controls {
  position: absolute;
  right: 14px;
  bottom: calc(min(55vh, 400px) + 16px);
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.25s ease;
  pointer-events: auto;
}

body:has(.bottom-sheet.collapsed) .map-right-controls,
.bottom-sheet.collapsed ~ .map-right-controls,
.map-right-controls.sheet-collapsed {
  bottom: 76px;
}

.map-fab-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

.map-fab-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.map-fab-btn:active {
  transform: scale(0.95);
}

.map-fab-btn .fab-icon {
  font-size: 16px;
  line-height: 1;
}

.map-fab-btn.active {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.map-fab-btn.locating .fab-icon {
  animation: pulseLocate 1.2s infinite ease-in-out;
}

@keyframes pulseLocate {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.drawer-theme-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #7dd3fc !important;
}

.map-left-controls {
  position: absolute;
  top: 58px;
  left: 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: auto;
}

.map-left-controls .custom-zoom-dock {
  width: 88px;
}

.map-left-controls .my-location-btn {
  width: 88px;
  justify-content: center;
  padding: 4.5px 6px;
  font-size: 10.5px;
  border-radius: 7px;
  box-sizing: border-box;
}

.drawer-top-install-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.16));
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 6px;
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.drawer-top-install-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.28));
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.drawer-top-install-btn .d-install-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.drawer-top-install-btn .d-install-icon {
  font-size: 19px;
  flex-shrink: 0;
}

.drawer-top-install-btn .d-install-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drawer-top-install-btn .d-install-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-top-install-btn .d-install-desc {
  font-size: 10.5px;
  color: #a7f3d0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-top-install-btn .d-install-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  background: #10b981;
  color: #022c22;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.drawer-quick-loc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.drawer-quick-loc-btn:hover {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.45), rgba(56, 189, 248, 0.3));
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.drawer-quick-loc-btn .d-loc-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drawer-quick-loc-btn .d-loc-icon {
  font-size: 16px;
}

.drawer-quick-loc-btn .d-loc-arrow {
  color: #38bdf8;
  font-size: 13px;
}

.drawer-gpx-btn {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(249, 115, 22, 0.12));
  border-color: rgba(249, 115, 22, 0.45);
}

.drawer-gpx-btn:hover {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.4), rgba(249, 115, 22, 0.25));
  border-color: #f97316;
}

.drawer-gpx-btn .d-gpx-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: -0.2px;
}

.zone-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.zone-toggle-btn .zone-icon {
  font-size: 11px;
}
.zone-toggle-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
  transform: translateY(-1px);
}
.zone-toggle-btn.active {
  background: rgba(14, 116, 144, 0.48);
  border-color: rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.25);
}
.zone-toggle-btn.minimal {
  background: rgba(16, 185, 129, 0.32);
  border-color: rgba(52, 211, 153, 0.65);
  color: #d1fae5;
}

.zone-toggle-btn.fpv-open-btn {
  border-color: rgba(34, 197, 94, 0.55);
  color: #4ade80;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 14px rgba(34, 197, 94, 0.22);
}
.zone-toggle-btn.fpv-open-btn:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 197, 94, 0.4);
}

.zone-toggle-btn.share-view-btn {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 158, 11, 0.22);
}
.zone-toggle-btn.share-view-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.22);
  color: #fef08a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 158, 11, 0.4);
}

.map-theme-btn {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.map-theme-btn:hover {
  background: rgba(14, 116, 144, 0.35);
  border-color: #38bdf8;
  color: #fff;
}
.lang-toggle-btn {
  border-color: rgba(167, 139, 250, 0.55);
  color: #ede9fe;
}
.lang-toggle-btn.en-active {
  background: rgba(124, 58, 237, 0.45);
  border-color: rgba(196, 181, 253, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(139, 92, 246, 0.35);
}
.my-location-btn {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.my-location-btn:hover {
  background: rgba(14, 116, 144, 0.35);
  border-color: #38bdf8;
  color: #fff;
}
.my-location-btn.locating {
  border-color: #38bdf8;
  color: #38bdf8;
  pointer-events: none;
}
.my-location-btn.locating .zone-icon {
  display: inline-block;
  animation: myLocationSpin 1s linear infinite;
}
.my-location-btn.active {
  background: rgba(14, 116, 144, 0.55);
  border-color: rgba(56, 189, 248, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.35);
}
@keyframes myLocationSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── 내 위치 GPS 펄싱 마커 & 팝업 ──────────────────── */
.user-location-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-location-pulsing-dot {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-location-core-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0284c7;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.9);
  position: relative;
  z-index: 2;
}
.user-location-pulse-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.45);
  animation: userLocationPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}
@keyframes userLocationPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.user-loc-card {
  min-width: 220px;
  max-width: 270px;
  padding: 4px 2px 2px;
  font-family: var(--font-family);
  color: #f8fafc;
}

.user-loc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.user-loc-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-loc-time {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 2px;
}

.user-loc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.02em;
}

.user-loc-live-badge.shared {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.user-loc-live-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px #10b981;
  animation: gpsPulse 1.2s infinite ease-in-out;
}

.user-loc-live-badge.shared .badge-dot {
  background: #f97316;
  box-shadow: 0 0 5px #f97316;
}

@keyframes gpsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.user-loc-acc {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.user-loc-coords {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-loc-copy-coord-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.user-loc-copy-coord-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.user-loc-share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35);
  transition: all 0.15s ease;
  margin-bottom: 7px;
}

.user-loc-share-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.user-loc-share-btn:active {
  transform: scale(0.98);
}

.user-loc-external-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.user-loc-external-links .ext-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.user-loc-external-links .ext-link {
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 2.5px 6px;
  border-radius: 5px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.user-loc-external-links .ext-link:hover {
  opacity: 0.9;
  transform: translateY(-0.5px);
}

.user-loc-external-links .ext-link.kakao {
  background: #fee500;
  color: #191919;
}

.user-loc-external-links .ext-link.naver {
  background: #03c75a;
  color: #ffffff;
}

.user-loc-external-links .ext-link.google {
  background: #4285f4;
  color: #ffffff;
}

/* ========================================================
   MapLibre GL & Leaflet Custom Popup Styling (Dark Glass Theme)
   ======================================================== */
.maplibregl-popup {
  z-index: 3000;
  max-width: 320px !important;
  font-family: var(--font-family);
}

.maplibregl-popup-content {
  background: rgba(11, 15, 25, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 18px rgba(56, 189, 248, 0.22) !important;
  padding: 10px 14px !important;
  color: #f8fafc !important;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.maplibregl-popup-content b,
.maplibregl-popup-content strong {
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
  margin-bottom: 2px;
}

.maplibregl-popup-content br + span,
.maplibregl-popup-content p {
  color: #cbd5e1 !important;
  font-size: 12.5px;
}

/* MapLibre Popup Tip (Arrow) Styling - Match Dark Glass Background */
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(11, 15, 25, 0.95) !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(11, 15, 25, 0.95) !important;
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(11, 15, 25, 0.95) !important;
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(11, 15, 25, 0.95) !important;
}

/* MapLibre Close Button */
.maplibregl-popup-close-button {
  color: #94a3b8 !important;
  font-size: 18px !important;
  padding: 4px 8px !important;
  border-radius: 6px;
  top: 4px;
  right: 6px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.maplibregl-popup-close-button:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Leaflet Custom Popup Container Styling Fallback (모든 Leaflet 팝업 일괄 적용) */
.leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(11, 15, 25, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 18px rgba(56, 189, 248, 0.22) !important;
  padding: 4px 6px !important;
  color: #f8fafc !important;
}
.leaflet-popup .leaflet-popup-content {
  margin: 8px 10px !important;
  line-height: 1.5 !important;
  color: #f8fafc !important;
  font-family: var(--font-family) !important;
}
.leaflet-popup .leaflet-popup-content b,
.leaflet-popup .leaflet-popup-content strong {
  color: #38bdf8 !important;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2px;
}
.leaflet-popup .leaflet-popup-content p,
.leaflet-popup .leaflet-popup-content span {
  color: #cbd5e1 !important;
}
.leaflet-popup .leaflet-popup-tip {
  background: rgba(11, 15, 25, 0.95) !important;
}

/* ── 공유된 위치 마커 & 펄스 ── */
.shared-location-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shared-location-pin {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shared-pin-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.6) 0%, transparent 75%);
  border: 1.5px solid #f97316;
  opacity: 0.85;
  animation: sharedLocationPulse 1.8s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
  pointer-events: none;
}

@keyframes sharedLocationPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.shared-pin-body {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(249, 115, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.geo-toast-notice.success {
  border-color: rgba(16, 185, 129, 0.9);
  color: #ecfdf5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(16, 185, 129, 0.3);
}

/* ── 서울 선택 장소 강조 핀 & 마커 ──────────────── */
.seoul-pin-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seoul-selected-place-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seoul-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #22d3ee;
  border-radius: 999px;
  padding: 5px 12px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(6, 182, 212, 0.45);
  white-space: nowrap;
  animation: seoulPinBounce 0.45s ease-out;
  z-index: 2;
}
.seoul-pin-badge .pin-icon {
  font-size: 14px;
}
.seoul-pin-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.45);
  animation: userLocationPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}
@keyframes seoulPinBounce {
  0% { transform: translateY(-12px) scale(0.85); opacity: 0; }
  60% { transform: translateY(2px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

.seoul-loc-popup strong {
  color: #38bdf8 !important;
  font-size: 13px !important;
  display: block;
  margin-bottom: 2px;
}
.seoul-loc-popup span {
  color: #cbd5e1 !important;
  font-size: 11.5px !important;
  display: block;
}

/* ── 권역 퀴즈 타겟 조준점 (지명/도로명을 가리지 않는 반투명 펄스 링) ────── */
.region-pulse-pin-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}
.region-target-focal-pin {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.region-focal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0284c7;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.95), 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 2;
  transform: translateZ(0);
}
.region-focal-ring {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.85);
  background: rgba(14, 165, 233, 0.15);
  animation: regionTargetPulse 1.9s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}
@keyframes regionTargetPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.95;
  }
  60% {
    transform: scale(1.6);
    opacity: 0.35;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ── 3D 시네마틱 뷰 명소 핀 (중앙 텍스트 없이 시야를 100% 보존하는 지면 네온 타겟 펄스 핀) ── */
.cinematic-pin-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}
.cinematic-landmark-pin {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  pointer-events: none !important;
}
.cinematic-pin-focal {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinematic-pin-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px #38bdf8, 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.cinematic-pin-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  animation: userLocationPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}

/* ── 3D 랜드마크 지도 발견 뱃지 (지도 확대 시 나타나는 인터랙티브 3D 포인트) ── */
.custom-3d-discovery-container {
  overflow: visible !important;
  pointer-events: auto !important;
}
.custom-3d-discovery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.65);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 3px 9px 3px 6px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  z-index: 800;
}
.custom-3d-discovery-badge:hover,
.custom-3d-discovery-badge:active {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.5);
  background: rgba(15, 23, 42, 0.96);
}
.custom-3d-pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  flex-shrink: 0;
}
.custom-3d-pulse-dot::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.35);
  animation: userLocationPulse 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.custom-3d-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 1.5px 4.5px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1;
}
.custom-3d-icon {
  font-size: 11.5px;
  line-height: 1;
}
.custom-3d-title {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
  line-height: 1;
}

/* ── 공통 지오 토스트 알림 (플로팅 캡슐) ───────────── */
.geo-toast-notice {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 999px;
  padding: 8px 18px;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.geo-toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.geo-toast-notice.warn {
  border-color: rgba(245, 158, 11, 0.85);
  color: #fef3c7;
}
.geo-toast-notice.error {
  border-color: rgba(239, 68, 68, 0.85);
  color: #fee2e2;
}

/* ── 첫 비행 하단 알약 캡슐 알림 (지형 로딩 안내) ── */
.geo-first-flight-notice {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.7);
  border-radius: 999px;
  padding: 8px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  z-index: 99999 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.geo-first-flight-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── 3D 시네마틱 뷰 하단 플로팅 HUD 바 ─────────────── */
.cinematic-bottom-hud {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1250;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 32px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cinematic-bottom-hud.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
.cinematic-hud-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cinematic-hud-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.cinematic-hud-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cinematic-hud-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.cinematic-hud-desc {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.cinematic-hud-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 2px;
  transition: all 0.2s ease;
}
.cinematic-hud-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cinematic-hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cinematic-hud-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fef08a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.cinematic-hud-share-btn:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

/* ── 공유 링크 3D 비행 도착 핀 (반짝이는 황금빛 펄스 핀) ── */
.cinematic-arrival-container {
  overflow: visible !important;
  pointer-events: none !important;
}
.cinematic-arrival-pin {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinematic-arrival-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.35);
  border: 1.5px solid rgba(245, 158, 11, 0.85);
  animation: userLocationPulse 1.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.cinematic-arrival-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 14px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.8);
  border: 2px solid #ffffff;
  z-index: 2;
}

/* ── MAP ATTRIBUTION COLLAPSIBLE MINI PILL (글로벌 표준 우측 하단) ────────── */
.map-attribution-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 15;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 4px;
}
.attr-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(203, 213, 225, 0.82);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.attr-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.45);
}
.attr-icon {
  font-size: 11px;
  color: #38bdf8;
}
.attr-detail-box {
  max-width: 320px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #cbd5e1;
  font-size: 10.5px;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  text-align: right;
}
.attr-detail-box a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}
.attr-detail-box a:hover {
  text-decoration: underline;
}

/* Hide redundant bottom-right map attributions (always handled by top-right #mapAttributionPill) */
.leaflet-control-attribution,
.maplibregl-ctrl-attrib,
.mapboxgl-ctrl-attrib,
#mapLiveAttrTag {
  display: none !important;
}

/* ── DRAWER ATTRIBUTION FOOTER ─────────────────────────────── */
.drawer-contact-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.drawer-attribution-box {
  margin-top: 2px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}
.drawer-attr-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
}
.drawer-attr-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
}
.drawer-attr-links a {
  color: #94a3b8;
  text-decoration: none;
}
.drawer-attr-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Map Regional Zone Badge (DivIcon) */
.geo-zone-marker {
  pointer-events: none !important;
}
.geo-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--zone-color, #38bdf8);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  letter-spacing: -0.2px;
  pointer-events: none;
}
.geo-zone-badge .zone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zone-color, #38bdf8);
  box-shadow: 0 0 6px var(--zone-color, #38bdf8);
  flex-shrink: 0;
}
.geo-zone-badge.quiz-mystery {
  background: rgba(30, 41, 59, 0.9);
  border-style: dashed;
  color: #fde047;
  animation: zoneMysteryPulse 1.8s infinite ease-in-out;
}
@keyframes zoneMysteryPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}
.geo-zone-badge.soft-island {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  padding: 2.5px 8px;
}
.geo-zone-badge.soft-island .zone-dot {
  width: 5px;
  height: 5px;
  background: #38bdf8;
  box-shadow: none;
}

/* Map Natural Landmark / River / Mountain / Sea Badge */
.geo-nature-marker {
  pointer-events: none !important;
}
.geo-nature-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  letter-spacing: -0.1px;
}
.geo-nature-badge.mountain {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.3);
}
.geo-nature-badge.water {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.32);
}

@media (max-width: 480px) {
  .map-left-controls {
    top: 50px;
    left: 10px;
    gap: 3.5px;
  }
  .map-attribution-pill {
    bottom: 10px;
    right: 10px;
    top: auto;
  }
  .zone-toggle-btn {
    padding: 3.5px 7px;
    font-size: 10px;
  }
  .geo-zone-badge {
    font-size: 10px;
    padding: 2px 7px;
  }
  .geo-nature-badge {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
}

.geo-subway-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.16em;
  display: inline-block;
  flex-shrink: 0;
}

/* ── ANIMATED HIGH-DPI SUBWAY TRAIN & SMART HEADING SIMULATION ── */
.subway-train-marker {
  background: transparent !important;
  border: none !important;
  pointer-events: none;
}

.subway-train-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --train-color: #10b981;
  contain: layout style;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.subway-train-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--train-color) 0%, transparent 75%);
  border: 1.5px solid var(--train-color);
  opacity: 0.8;
  animation: subwayRadarPulse 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes subwayRadarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.subway-train-bubble {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border: 1.5px solid var(--train-color);
  border-radius: 999px;
  padding: 1px 6.5px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 6px rgba(56, 189, 248, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  letter-spacing: -0.02em;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subway-train-bubble .bubble-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--train-color);
  box-shadow: 0 0 5px var(--train-color);
}

.subway-train-bubble.correct {
  border-color: #10b981;
  background: rgba(6, 78, 59, 0.96);
  color: #ecfdf5;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5), 0 0 10px rgba(16, 185, 129, 0.6);
  transform: translateX(-50%) scale(1.06);
}

.subway-train-bubble.wrong {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.96);
  color: #fef2f2;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5), 0 0 10px rgba(239, 68, 68, 0.6);
  transform: translateX(-50%) scale(1.06);
}

/* 360-degree heading rotator */
.subway-train-rotator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 16px;
  margin-top: -8px;
  margin-left: -14px;
  z-index: 5;
  transform-origin: 14px 8px;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subway-train-svg {
  width: 28px;
  height: 16px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.15s ease;
}

.subway-train-wrap.is-moving .subway-train-svg {
  animation: subwayTrainGlide 0.25s ease-in-out infinite alternate;
}

@keyframes subwayTrainGlide {
  0% { transform: translateY(-0.25px); }
  100% { transform: translateY(0.25px); }
}

.subway-headlight-cone {
  display: none !important;
}

/* ── [3-A] TABLET & DESKTOP RESPONSIVE LAYOUT (>= 768px) ── */
@media (min-width: 768px) {
  /* 바텀시트가 PC 화면 및 폭이 넓은 태블릿 화면에서는 하단 좌측 플로팅 패널로 이동 */
  .bottom-sheet {
    position: absolute !important;
    top: auto !important;
    bottom: 24px !important;
    left: 20px !important;
    right: auto !important;
    transform: none !important;
    width: 440px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: min(74vh, calc(100vh - 210px)) !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(34, 211, 238, 0.25) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(6, 182, 212, 0.15) !important;
    z-index: 22 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .bottom-sheet.collapsed {
    max-height: 58px !important;
    padding-bottom: 12px !important;
  }

  .seoul-place-panel,
  .route-info-panel {
    position: absolute !important;
    top: auto !important;
    bottom: 24px !important;
    left: 20px !important;
    right: auto !important;
    transform: none !important;
    width: 440px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: min(74vh, calc(100vh - 210px)) !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(34, 211, 238, 0.25) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(6, 182, 212, 0.15) !important;
    z-index: 26 !important;
  }

  .map-right-controls {
    display: none !important;
  }
}

/* ── MOBILE S24 / COMPACT SCREENS (<= 480px) ── */
@media (max-width: 480px) {
  .map-right-controls {
    right: 10px;
    bottom: calc(min(55vh, 400px) + 12px);
    gap: 6px;
  }
  body:has(.bottom-sheet.collapsed) .map-right-controls,
  .bottom-sheet.collapsed ~ .map-right-controls,
  .map-right-controls.sheet-collapsed {
    bottom: 74px;
  }
  .map-fab-btn {
    width: 36px;
    height: 36px;
  }
  .map-fab-btn .fab-icon {
    font-size: 15px;
  }
  .custom-zoom-dock {
    padding: 3px;
    border-radius: 8px;
  }
  .zoom-dock-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .zoom-percent-label {
    min-width: 28px;
    font-size: 9.5px;
  }
  .zoom-reset-btn {
    padding: 3px 0;
    font-size: 10px;
  }

  /* Mobile compact styles for korea-home-grid and route-options-grid */
  .options-grid.korea-home-grid {
    gap: 5px !important;
  }
  .options-grid.korea-home-grid .option-btn {
    padding: 8px 3px !important;
    font-size: 11px !important;
    letter-spacing: -0.4px !important;
  }
  .options-grid.route-options-grid {
    gap: 6px !important;
  }
  .options-grid.route-options-grid .option-btn {
    padding: 9px 11px !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }
  .options-grid.route-options-grid .option-btn .arrow {
    font-size: 12px !important;
  }
}

/* ── KAKAOTALK IN-APP BROWSER BAR & BUTTONS ───────── */
.kakao-inapp-banner {
  display: none !important;
  position: absolute;
  top: 60px;
  left: 12px;
  right: 12px;
  z-index: 28;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(254, 229, 0, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(254, 229, 0, 0.12);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  animation: kakaoBannerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kakao-inapp-banner.show {
  display: flex !important;
}

@keyframes kakaoBannerSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kakao-banner-content {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.kakao-badge {
  background: #fee500;
  color: #191919;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.kakao-text {
  font-size: 11.5px;
  color: #f1f5f9;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kakao-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.kakao-ext-btn {
  background: #fee500;
  color: #191919;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.kakao-ext-btn:active {
  transform: scale(0.96);
  background: #ffd900;
}

.kakao-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
}

.kakao-close-btn:hover {
  color: #f8fafc;
}

.drawer-tool-item.kakao-tool-item {
  display: none !important;
  border-left: 3px solid #fee500;
  background: rgba(254, 229, 0, 0.08);
}

.drawer-tool-item.kakao-tool-item.show {
  display: flex !important;
}

.drawer-tool-item.kakao-tool-item:hover {
  background: rgba(254, 229, 0, 0.16);
}

.kakao-install-guide-notice {
  display: none !important;
  background: rgba(254, 229, 0, 0.1);
  border: 1px solid rgba(254, 229, 0, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  flex-direction: column;
  gap: 6px;
}

.kakao-install-guide-notice.show {
  display: flex !important;
}

.kakao-install-guide-notice-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kakao-install-guide-notice-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.kakao-install-action-btn {
  background: #fee500;
  color: #191919;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.drawer-tool-item.already-installed {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.drawer-tool-item.already-installed .tool-title {
  color: #38bdf8;
}

/* 🚀 Real-time Update Floating Banner & Drawer Indicators */
.app-update-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  z-index: 100000;
  width: calc(100% - 32px);
  max-width: 620px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.2);
  color: #f8fafc;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}
.app-update-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.update-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.update-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  flex-shrink: 0;
  animation: updatePulse 1.8s infinite;
}
@keyframes updatePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.update-banner-text {
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 500;
  color: #e2e8f0;
  white-space: normal;
  word-break: keep-all;
}
.update-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-update-apply {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
.btn-update-apply:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-update-dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-update-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Header & Floating Menu Buttons Pulse Dot */
.menu-btn, .subway-menu-btn, .btn-header-menu {
  position: relative;
}
.menu-btn.has-update::after,
.subway-menu-btn.has-update::after,
.btn-header-menu.has-update::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: updatePulse 1.8s infinite;
}

/* Drawer Top Update Card */
.drawer-update-card {
  display: none;
  margin: 10px 14px 14px 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(37, 99, 235, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drawer-update-card.show {
  display: flex;
}
.drawer-update-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-update-card-text {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}
.drawer-update-card-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Drawer Bottom Version Card */
.drawer-version-card {
  margin: 12px 0 6px 0;
  padding: 10px 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}
.btn-check-update {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-check-update:hover {
  background: rgba(255, 255, 255, 0.15);
}
.spin-icon {
  display: inline-block;
  transition: transform 0.2s linear;
}
.spin-icon.spinning {
  animation: iconSpin 0.8s linear infinite;
}
@keyframes iconSpin {
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .app-update-banner {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px 12px;
    gap: 8px;
  }
  .update-banner-text {
    font-size: 12.5px;
  }
  .btn-update-apply {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ========================================================
   Theme Adaptations (Smart Vector, Standard OSM, Satellite)
   - 밝은 지도와 어두운 지도 모두에서 가독성 100% 무결성 보장
   ======================================================== */
/* 위성 사진 테마: 어두운 배경 위에서 팝업/라벨/마커의 네온 발광 대비 극대화 */
body[data-map-theme="satellite"] .geo-label,
body[data-map-theme="satellite"] .maplibre-marker-tooltip {
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 14px rgba(56, 189, 248, 0.55) !important;
}

body[data-map-theme="satellite"] .maplibregl-popup-content,
body[data-map-theme="satellite"] .leaflet-popup-content-wrapper {
  border-color: #38bdf8 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.35) !important;
}

/* 순정 OSM 및 스마트 무료 지도 테마: 밝은 지도 위에서 팝업/라벨 외곽 음영 대비 강화 */
body[data-map-theme="osm_standard"] .geo-label,
body[data-map-theme="osm_standard"] .maplibre-marker-tooltip,
body[data-map-theme="smart_free"] .geo-label,
body[data-map-theme="smart_free"] .maplibre-marker-tooltip {
  background: rgba(11, 15, 25, 0.96) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 8px rgba(56, 189, 248, 0.3) !important;
}

body[data-map-theme="osm_standard"] .maplibregl-popup-content,
body[data-map-theme="osm_standard"] .leaflet-popup-content-wrapper,
body[data-map-theme="smart_free"] .maplibregl-popup-content,
body[data-map-theme="smart_free"] .leaflet-popup-content-wrapper {
  background: rgba(11, 15, 25, 0.96) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.25) !important;
}




/* Brand Icon Wrap & BETA Overlay Tag */
.brand-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-beta-tag {
    position: absolute;
    top: -9px;
    right: -8px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #38bdf8 100%);
    color: #ffffff !important;
    font-size: 7.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 1.5px 4.5px 2px;
    border-radius: 999px;
    border: 1px solid rgba(186, 230, 253, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.5);
    pointer-events: none;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
    transform: rotate(2deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 800px) {
    .brand-beta-tag { top: -8px; right: -7px; font-size: 6.5px; padding: 1px 3.5px 1.5px; letter-spacing: 0.4px; }
}

/* ── DRAWER LIVE SEARCH & RESULTS ────────────────────────── */
.drawer-search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.drawer-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.drawer-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.drawer-search-input {
  width: 100%;
  padding: 11px 36px 11px 34px;
  font-size: 13.5px;
  border-radius: 12px;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.drawer-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.35);
  background: rgba(15, 23, 42, 0.98);
}

.drawer-search-input::-webkit-search-decoration,
.drawer-search-input::-webkit-search-cancel-button,
.drawer-search-input::-webkit-search-results-button,
.drawer-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.drawer-search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: color 0.15s;
}

.drawer-search-clear-btn:hover {
  color: #f8fafc;
}

.drawer-search-results {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.drawer-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.drawer-search-item:hover, .drawer-search-item:active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateX(2px);
}

.drawer-search-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.drawer-search-item-flag {
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
}

.drawer-search-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.drawer-search-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-search-item-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-search-item-arrow {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 6px;
}

.drawer-search-no-results {
  text-align: center;
  padding: 20px 10px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── WORLD MAP COUNTRY CLUSTER PIN (ZOOM-OUT LEVEL) ──────── */
.world-cluster-div-icon {
  background: transparent !important;
  border: none !important;
}

.world-cluster-pin {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.world-cluster-pin:hover, .world-cluster-pin:active {
  transform: scale(1.08);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.6);
  background: rgba(30, 41, 59, 0.95);
}

.world-cluster-pin .cluster-count-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 1px;
}

.world-cluster-pin.is-korea {
  z-index: 9999 !important;
  border: 1.5px solid #38bdf8;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.5);
}

.world-cluster-pin.is-korea .cluster-count-badge {
  background: #0284c7;
  color: #fff;
  border: none;
}

.world-pin-wrap.is-korea-pin {
  z-index: 4500 !important;
}

.world-pin-wrap.is-seoul-pin {
  z-index: 9990 !important;
  border-color: #38bdf8 !important;
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.9) !important;
  font-weight: 800;
}

.world-pin-wrap.is-seoul-pin .world-pin-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.world-pin-wrap.is-seoul-pin .world-pin-text {
  color: #ffffff;
  font-weight: 800;
}

.world-pin-wrap.is-seoul-pin:hover {
  transform: translate(-50%, -50%) scale(1.22);
  border-color: #ffffff !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 32px rgba(56, 189, 248, 1) !important;
}

.maplibre-marker-wrap.seoul-map-pin {
  z-index: 9990 !important;
}

.world-pin-wrap.is-subway-pin {
  border-color: rgba(168, 85, 247, 0.75);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(168, 85, 247, 0.45);
  z-index: 1500 !important;
}

.world-pin-wrap.is-subway-pin .world-pin-dot {
  background: #c084fc;
}

.world-pin-wrap.is-subway-pin .world-pin-dot::after {
  border-color: rgba(192, 132, 252, 0.4);
}

.world-pin-wrap.is-subway-pin .pin-fly-hint {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.world-pin-wrap.is-subway-pin:hover {
  border-color: #f3e8ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 28px rgba(168, 85, 247, 0.9);
}

.world-pin-wrap.france {
  border-color: #60a5fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(96, 165, 250, 0.6);
}
.world-pin-wrap.france .world-pin-dot { background: #60a5fa; }

.world-pin-wrap.uk {
  border-color: #f43f5e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(244, 63, 94, 0.6);
}
.world-pin-wrap.uk .world-pin-dot { background: #f43f5e; }

.world-pin-wrap.italy {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(34, 197, 94, 0.6);
}
.world-pin-wrap.italy .world-pin-dot { background: #22c55e; }

.world-pin-wrap.usa {
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.6);
}
.world-pin-wrap.usa .world-pin-dot { background: #38bdf8; }

.world-pin-wrap.canada {
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(239, 68, 68, 0.6);
}
.world-pin-wrap.canada .world-pin-dot { background: #ef4444; }

.world-pin-wrap.china {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.6);
}
.world-pin-wrap.china .world-pin-dot { background: #f59e0b; }

/* ── SAME-COUNTRY SISTER CITIES QUICK JUMP BAR ──────── */
.country-quick-jump-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  max-width: 94vw;
  background: rgba(13, 19, 33, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: all 0.2s ease;
}
@media (max-width: 860px) {
  .country-quick-jump-bar {
    top: 52px;
  }
}
@media (max-width: 640px) {
  .country-quick-jump-bar {
    top: 48px;
    padding: 4px 10px;
    gap: 6px;
  }
}
.jump-bar-flag {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.jump-chips-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jump-chips-scroll::-webkit-scrollbar {
  display: none;
}
.jump-chip {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}
.jump-chip:hover, .jump-chip:active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}
.jump-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.jump-bar-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.jump-bar-close-btn:hover, .jump-bar-close-btn:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* ── SMART ZOOM-OUT WORLD RETURN PILL ──────── */
.smart-world-return-pill {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: auto;
  animation: fadeInDown 0.22s ease-out;
}
@media (max-width: 640px) {
  .smart-world-return-pill {
    top: 54px;
  }
}
.smart-world-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(14, 165, 233, 0.95));
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.smart-world-return-btn:active {
  transform: scale(0.96);
}

/* ══════════════════════════════════════════════════════════════════
   🏃 DYNAMIC GPX WORKOUT VIEWER & FLY-THROUGH REPLAYER STYLES
   ══════════════════════════════════════════════════════════════════ */
.gpx-hud-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1350;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Bar */
.gpx-top-bar {
  pointer-events: auto;
  margin: 10px 12px;
  padding: 10px 12px;
  background: rgba(11, 15, 23, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 126, 66, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gpx-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.gpx-top-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpx-live-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.gpx-privacy-pill {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.gpx-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.gpx-top-actions .gpx-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  padding: 7px 4px;
  font-size: 11px;
}

@media (min-width: 641px) {
  .gpx-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 12px 14px;
    padding: 10px 14px;
  }
  .gpx-top-title {
    width: auto;
    max-width: 55%;
  }
  .gpx-top-actions {
    width: auto;
    justify-content: flex-end;
  }
  .gpx-top-actions .gpx-btn {
    flex: initial;
    padding: 6px 12px;
    font-size: 11.5px;
  }
}

.gpx-btn {
  pointer-events: auto;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.gpx-btn:active {
  transform: scale(0.96);
}
.gpx-btn.highlight {
  background: rgba(255, 126, 66, 0.2);
  border-color: rgba(255, 126, 66, 0.5);
  color: #ffaa80;
  font-weight: 700;
}
.gpx-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Bottom Sheet */
.gpx-bottom-sheet {
  pointer-events: auto;
  margin: 0 12px 14px 12px;
  padding: 14px 16px;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Progress Track */
.gpx-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.gpx-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff7e42, #00e676);
  transition: width 0.1s linear;
}

/* Stats Grid */
.gpx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.gpx-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gpx-stat-col .label {
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.gpx-stat-col .val {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  font-family: "JetBrains Mono", monospace;
}
.gpx-stat-col .val.highlight {
  color: #ffaa80;
}
.gpx-stat-col .val small {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}

/* Elevation Canvas */
.gpx-chart-wrap {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}
.gpx-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.gpx-elevation-canvas {
  width: 100%;
  height: 48px;
  display: block;
  cursor: crosshair;
}

/* Replay Bar */
.gpx-replay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gpx-replay-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gpx-replay-btn.primary {
  background: #ff7e42;
  border-color: #ff7e42;
  color: #10151e;
}
.gpx-replay-cam {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.gpx-replay-cam input {
  accent-color: #ff7e42;
}

/* Custom Markers */
.gpx-pin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(255,255,255,0.4);
  white-space: nowrap;
}
.gpx-pin-inner.start {
  background: #10b981;
}
.gpx-pin-inner.finish {
  background: #ef4444;
}
.gpx-pin-inner.peak {
  background: #f59e0b;
}

.gpx-runner-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpx-runner-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 126, 66, 0.35);
  animation: pulseDot 1s infinite;
}
.gpx-runner-emoji {
  font-size: 22px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

@media (max-width: 480px) {
  .gpx-top-bar {
    margin: 8px;
    padding: 8px 10px;
  }
  .gpx-bottom-sheet {
    margin: 0 8px 8px 8px;
    padding: 10px 12px;
  }
  .gpx-stat-col .val {
    font-size: 12.5px;
  }
}

/* ─────────────────────────────────────────────────────────────
   🚀 15초 FPV 시네마틱 멘탈 리허설 (FPV OSD HUD & MODAL)
   ───────────────────────────────────────────────────────────── */
.fpv-hud-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  color: #22c55e;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  user-select: none;
  -webkit-user-select: none;
}

/* FPV Corner Viewfinder Brackets */
.fpv-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(34, 197, 94, 0.45);
  border-style: solid;
}
.fpv-corner.top-left { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.fpv-corner.top-right { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.fpv-corner.bottom-left { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.fpv-corner.bottom-right { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

/* TOP BAR */
.fpv-top-bar {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  gap: 10px;
}

.fpv-rec-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.5px;
}
.fpv-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: fpvRecBlink 0.9s infinite;
}
@keyframes fpvRecBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.85); }
}
.fpv-log-tag {
  color: #38bdf8;
  font-size: 11px;
  margin-left: 4px;
}

.fpv-heading-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fpv-hud-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}
.fpv-hud-value {
  font-size: 13.5px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
}

.fpv-telemetry-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fpv-batt, .fpv-rssi {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
}
.fpv-icon-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.15s;
}
.fpv-icon-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}
.fpv-exit-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1.5px solid #fca5a5;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(239, 68, 68, 0.55);
  transition: all 0.15s ease;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fpv-exit-btn:hover {
  background: #f87171;
  color: #ffffff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(239, 68, 68, 0.85);
}

/* CENTER CROSSHAIR */
.fpv-center-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}
.crosshair-center {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: #38bdf8;
}
.fpv-horizon-bar {
  width: 90px;
  height: 1px;
  background: rgba(56, 189, 248, 0.45);
  margin-top: 4px;
}
.fpv-ladder {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 9px;
  color: rgba(56, 189, 248, 0.35);
  letter-spacing: 2px;
}

/* SIDEBARS */
.fpv-sidebar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 10px 8px;
  min-width: 64px;
}
.fpv-sidebar.left { left: 20px; }
.fpv-sidebar.right { right: 20px; }

.fpv-gauge-title {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 1px;
}
.fpv-gauge-val {
  font-size: 13px;
  font-weight: 900;
  color: #22c55e;
  margin: 4px 0 8px 0;
}
.fpv-sub-gauge {
  font-size: 9.5px;
  color: #38bdf8;
  margin-top: 6px;
  font-weight: 700;
}
.fpv-tape-wrap {
  width: 6px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fpv-tape-fill {
  width: 100%;
  background: #38bdf8;
  border-radius: 4px;
  transition: height 0.08s ease-out;
}

/* BOTTOM PANEL */
.fpv-bottom-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}
.fpv-progress-container {
  width: 100%;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.fpv-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 5px;
}
.fpv-course-title {
  color: #ffffff;
  font-weight: 800;
}
.fpv-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.fpv-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.fpv-sub-card {
  width: 100%;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.15);
}
.fpv-sub-icon {
  font-size: 20px;
}
.fpv-sub-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

/* FPV COMPLETE MODAL */
.fpv-complete-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid rgba(34, 197, 94, 0.6);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.35), 0 20px 40px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  animation: fpvCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fpvCardPop {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.fpv-complete-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 900;
  color: #22c55e;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.fpv-complete-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}
.fpv-complete-card p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}
.fpv-complete-actions {
  display: flex;
  gap: 10px;
}
.btn-fpv-replay, .btn-fpv-explore {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
}
.btn-fpv-replay {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.btn-fpv-replay:hover {
  background: #38bdf8;
  color: #070b14;
}
.btn-fpv-explore {
  background: #22c55e;
  color: #052e16;
}
.btn-fpv-explore:hover {
  background: #4ade80;
}

/* COURSE SELECTION MODAL */
.fpv-dialog {
  max-width: 620px;
}
.fpv-modal-intro {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}
.fpv-courses-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fpv-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.fpv-course-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.fpv-course-card.featured {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.12);
}
.fpv-course-card.featured:hover {
  border-color: rgba(234, 179, 8, 0.9);
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.25);
}
.fpv-course-card:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.fpv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.fpv-card-tag {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
}
.fpv-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}
.fpv-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.fpv-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}
.fpv-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
}
.btn-launch-fpv {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-launch-fpv:hover {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #070b14;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
}

@media (max-width: 640px) {
  .fpv-top-bar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .fpv-rec-badge {
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .fpv-log-tag { display: none; }
  .fpv-heading-box {
    padding: 4px 10px;
  }
  .fpv-hud-value { font-size: 12px; }
  .fpv-batt, .fpv-rssi { display: none; }
  .fpv-sidebar {
    padding: 6px 4px;
    min-width: 50px;
  }
  .fpv-sidebar.left { left: 8px; }
  .fpv-sidebar.right { right: 8px; }
  .fpv-tape-wrap { height: 50px; }
  .fpv-bottom-panel {
    bottom: 12px;
    left: 10px;
    right: 10px;
  }
  .fpv-sub-text {
    font-size: 12px;
  }
}







/* ── APP UPDATE PILL (모던 프리미엄 글래스모피즘 알약 배너) ── */
.app-update-pill {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100001 !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  animation: appUpdatePillPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes appUpdatePillPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.app-update-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-update-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
}

.app-update-pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
  line-height: 1.2;
}

.app-update-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.app-update-pill-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.app-update-pill-btn:active {
  transform: translateY(0);
}

.app-update-pill-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: all 0.16s ease;
}

.app-update-pill-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
