/* map.naver.com shell: 62px icon rail, 390px panel, map fills the rest. */

.page-map {
  min-width: 1100px;
  height: 100vh;
  overflow: hidden;
}

.map-root {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* The map is the background: it fills the whole viewport, and the rail and panel
   float over its left edge — the way the real map overlays its panels. */
.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── left rail ────────────────────────────────────────────────── */
.map-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 14px;
  border-right: 1px solid var(--line);
  background: #fff;
  z-index: 30;
}

.rail-logo {
  margin-bottom: 16px;
}

.map-rail ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.map-rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 8px 0;
  color: #555;
}

.rail-label {
  font-size: 11px;
  letter-spacing: -0.4px;
}

.rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #999;
  font-size: 18px;
}

/* ── panel ────────────────────────────────────────────────────── */
.map-panel {
  position: absolute;
  left: 62px;
  top: 0;
  bottom: 0;
  width: 392px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

/* Collapse handle at the panel's right edge, like the real map. */
.panel-collapse {
  position: absolute;
  left: 454px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.12);
  z-index: 19;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 14px 14px 12px;
  padding: 0 14px;
  border: 2px solid var(--naver-green);
  border-radius: 8px;
}

.map-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
}

#entryIframe {
  flex: 1;
  width: 100%;
  border: 0;
}

/* ── map canvas ───────────────────────────────────────────────── */
.map-canvas-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f2f1ee;
}

.nmap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nmap-types {
  position: absolute;
  top: 12px;
  right: 60px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.nmt {
  width: 62px;
  height: 46px;
  border-radius: 6px;
  background: #eceae6;
  font-size: 11px;
  color: #555;
}

.nmt.on {
  outline: 2px solid var(--naver-blue);
  color: var(--naver-blue);
  font-weight: 700;
}

.nmap-tools {
  position: absolute;
  top: 12px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

.nmtool {
  width: 40px;
  padding: 6px 0;
  font-size: 10px;
  color: #555;
  line-height: 1.2;
}

.nmtool:hover {
  background: #f4f4f4;
  border-radius: 5px;
}

.nmap-zoom {
  position: absolute;
  right: 14px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.nmap-zoom button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  color: #444;
}

.nmap-zoom button + button {
  border-top: 1px solid var(--line);
}

/* ── search-results list panel (floats over the map, left of the detail) ── */
.map-list-panel {
  position: absolute;
  left: 62px;
  top: 0;
  bottom: 0;
  width: 372px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.10);
  z-index: 18;
  overflow: hidden;
}

.map-list-panel .map-search {
  margin: 14px 14px 10px;
}

.ml-filters {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  flex-wrap: wrap;
}

.mlf {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: #444;
  background: #fff;
}

.mlf.on { border-color: var(--naver-green); color: #067a3a; font-weight: 600; }
.mlf.region { color: #333; }

.ml-chips {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.ml-chips::-webkit-scrollbar { display: none; }

.ml-chip {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #555;
  background: #fff;
}
.ml-chip.more { color: #999; }

.ml-list {
  flex: 1;
  overflow-y: auto;
}

.ml-item { border-bottom: 1px solid var(--line); }
.ml-item.on { background: #f6fbff; }
.ml-link { display: block; padding: 15px 16px; }

.ml-head { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ml-name { font-size: 16px; font-weight: 700; color: #1f6feb; }
.ml-item.on .ml-name { color: #0b4fb8; }

.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}
.ml-badge.book { border: 1px solid #b7e8cb; color: #067a3a; }
.ml-badge.coupon { border: 1px solid #ffd9a8; color: #c0692a; }
.ml-ad { font-size: 10px; color: #b0b0b0; margin-left: auto; }

.ml-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.ml-meta .rating { color: #333; font-weight: 600; }
.ml-meta .rating svg { vertical-align: -1px; }
.ml-meta b { color: #333; }

.ml-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.ml-thumbs li { position: relative; }
.ml-thumbs img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--fill);
}
.ml-thumbs em {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.ml-desc {
  margin-top: 10px;
  font-size: 12.5px;
  color: #767676;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #666;
}
.ml-page button { color: #666; padding: 2px 4px; }
.ml-page button.on { color: #067a3a; font-weight: 700; }

/* When the list panel is present the detail panel sits to its right. */
.map-root.has-list .map-panel { box-shadow: 4px 0 16px rgba(0, 0, 0, 0.14); }

.filler-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--fill-soft);
  color: #666;
  font-size: 12.5px;
  line-height: 1.6;
}
.filler-note b { color: #333; }

/* ── directions panel ─────────────────────────────────────────── */
.dir-head { display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 17px; border-bottom: 1px solid var(--line); }
.dir-body { padding: 16px; }
.dir-input { width: 100%; height: 44px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; }
.dir-note { margin: 10px 2px; font-size: 13px; color: #666; line-height: 1.6; }
.dir-modes { display: flex; gap: 6px; margin: 14px 0; }
.dir-modes button { flex: 1; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; color: #444; }
.dir-modes button.on { border-color: var(--naver-green); color: #067a3a; font-weight: 700; }
.dir-result { font-size: 14px; color: #333; }
.dir-result b { color: #067a3a; }

.ml-filters a.mlf { text-decoration: none; }
.ml-chips a.ml-chip { text-decoration: none; }
.ml-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
