/* IKCTA tour/map.html — B2C 관광 지도 전용 */
.mapPage {
  --map-side-w: min(340px, 100%);
}

.mapPage .pageInner {
  max-width: 1400px;
}

.mapLayout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: calc(100dvh - 120px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

@media (min-width: 900px) {
  .mapLayout {
    grid-template-columns: 1fr var(--map-side-w);
    min-height: calc(100dvh - 140px);
  }
}

.mapMain {
  position: relative;
  min-height: 52vh;
  background: #e2e8f0;
}

#map {
  width: 100%;
  min-height: 52vh;
  height: 58vh;
  z-index: 1;
}

#map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

@media (min-width: 900px) {
  #map {
    height: calc(100dvh - 140px);
    min-height: 420px;
  }
}

.mapHint {
  position: absolute;
  left: 12px;
  bottom: 36px;
  z-index: 500;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 11px;
  padding: 8px 11px;
  border-radius: 10px;
  max-width: min(360px, 88vw);
  pointer-events: none;
  line-height: 1.45;
}

#mapLoadErr {
  display: none;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
}

#mapLoadErr[aria-hidden="false"] {
  display: block;
}

.mapSide {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  max-height: 72vh;
}

@media (min-width: 900px) {
  .mapSide {
    border-top: none;
    border-left: 1px solid #e2e8f0;
    max-height: none;
    align-self: stretch;
  }
}

.mapSideSection {
  width: min(320px, 100%);
}

.mapSideSection h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.mapSideSection .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.character-wrap {
  width: 100%;
  height: min(300px, 42vh);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #ecfeff 0%, #e0f2fe 48%, #f5f3ff 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.character-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.regionChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.regionChips button {
  border: 1px solid #94a3b8;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.regionChips button:hover {
  border-color: #0ea5e9;
  color: #0369a1;
}

.map-ai-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.map-ai-panel h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}

#mapStatusBar {
  font-size: 11px;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.4;
}

#mapInlineChat .rcPanel {
  box-shadow: none;
  border: none;
  max-height: 320px;
}

#mapInlineChat .rcPanelBody {
  padding: 0;
}

.mapTaxiSlot {
  min-height: 48px;
}

.mapArPanel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.mapArPanel .taxiHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ecfeff, #f5f3ff);
  border-bottom: 1px solid #e2e8f0;
}

.mapArPanel .taxiTitle {
  font-weight: 800;
  font-size: 13px;
}

.mapArPanel .taxiBody {
  padding: 10px 12px;
}

.mapArPanel .taxiActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mapArPanel .taxiBtn {
  border: 1px solid #94a3b8;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.mapArPanel .taxiBtn.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.mapArPanel .taxiHint {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  text-align: center;
}
