/* 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;
  touch-action: pan-x pan-y pinch-zoom;
  contain: layout style;
}

#map {
  width: 100%;
  min-height: 52vh;
  height: 58vh;
  z-index: 1;
}

#mapPoiLeaflet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  pointer-events: none;
  background: transparent;
}

#mapPoiLeaflet .leaflet-container {
  background: transparent !important;
  width: 100%;
  height: 100%;
}

#mapPoiLeaflet .leaflet-pane path,
#mapPoiLeaflet .leaflet-interactive {
  pointer-events: auto;
  cursor: pointer;
}

#mapPoiLeaflet .leaflet-tooltip,
#mapPoiLeaflet .leaflet-popup {
  pointer-events: auto;
}

.mapPoiOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  pointer-events: none;
  padding: 10px 10px 0;
}

.mapPoiOverlayInner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 8px 10px;
  max-width: 100%;
}

.mapPoiCats--onMap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.mapPoiCatBtn--map {
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mapPoiCatBtn--map.active,
.mapPoiCatBtn--legend.active {
  border-color: var(--poi-color, #0f766e);
  background: var(--poi-color, #0f766e);
  color: #fff;
}

.mapPoiCatBtn--legend {
  cursor: pointer;
  opacity: 1;
}

.mapPoiAllNote {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: #0f766e;
}

.mapPoiTooltip {
  font-size: 10px;
  max-width: 280px;
  white-space: normal;
  line-height: 1.35;
}

.mapPoiDivIcon {
  background: transparent !important;
  border: none !important;
}

.mapPoiPin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  pointer-events: auto;
}

.mapPoiPinDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pin-color, #0f766e);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.mapPoiPinLabel {
  display: block;
  max-width: 140px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--pin-color, #94a3b8);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapPoiTools--onMap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mapPoiRadiusSelect {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.mapPoiStatusOnMap {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
}

.mapHint--copy {
  bottom: 8px;
  font-size: 10px;
  opacity: 0.85;
}

#mapLegend {
  bottom: 32px;
  max-width: min(420px, 92vw);
  font-weight: 600;
}

.mapTaxiLive {
  position: absolute;
  left: 10px;
  bottom: 72px;
  z-index: 850;
  pointer-events: none;
  max-width: min(280px, 88vw);
}

.mapTaxiLiveInner {
  pointer-events: auto;
  background: rgba(255, 247, 237, 0.96);
  border: 2px solid #ea580c;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25);
}

.mapTaxiLiveTitle {
  font-size: 12px;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 4px;
}

.mapTaxiLiveStatus {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  line-height: 1.4;
}

.mapTaxiLiveMeta {
  margin: 4px 0 8px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
}

.mapTaxiLiveActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mapTaxiHudGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 8px 0 6px;
  font-size: 10px;
}

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

.mapTaxiHudCell .k {
  color: #9a3412;
  font-weight: 700;
}

.mapTaxiHudCell .v {
  color: #0f172a;
  font-weight: 800;
  font-size: 11px;
}

.mapTaxiProgress {
  height: 6px;
  background: #fed7aa;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mapTaxiProgressBar {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #ea580c);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.taxi-map-marker-leaflet,
.taxi-pickup-marker-leaflet {
  background: transparent !important;
  border: none !important;
}

.taxi-map-marker {
  transform: rotate(var(--taxi-h, 0deg));
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  width: 48px;
  height: 48px;
}

.taxi-map-marker--run {
  animation: taxi-drive-pulse 1.2s ease-in-out infinite;
}

@keyframes taxi-drive-pulse {
  0%,
  100% {
    transform: rotate(var(--taxi-h, 0deg)) scale(1);
  }
  50% {
    transform: rotate(var(--taxi-h, 0deg)) scale(1.06);
  }
}

.taxiMapCarSvg {
  width: 48px;
  height: 48px;
  display: block;
}

.taxi-pickup-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.taxi-pickup-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

.taxi-pickup-marker__lbl {
  font-size: 10px;
  font-weight: 800;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #93c5fd;
}

.taxiBtn--sm {
  font-size: 10px;
  padding: 5px 10px;
}

.mapTaxiSlot--primary {
  border: 2px solid #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.character-wrap {
  min-height: 280px;
  position: relative;
}

.map3d-loading {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: none;
}

.taxiProgramLinks {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#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;
}

.mapLoadErrLine {
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.35;
}

#mapLoadErr {
  display: none;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  max-height: 120px;
  overflow-y: auto;
}

#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;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
  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,
.taxi--pickup .taxiActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.taxiRosterCalls,
.taxiPartnerList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.taxiAppSplitNote {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 1px solid #bae6fd;
}

.taxiRoleTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.taxiRoleTab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.taxiRoleTab--active {
  border-color: #0ea5e9;
  background: #e0f2fe;
  color: #0c4a6e;
}

.taxiAppBroadcast {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid #6ee7b7;
}

.taxiAppBroadcastLead {
  margin: 0 0 6px;
  font-size: 14px;
}

.taxiLegacyPartners {
  margin-top: 8px;
  font-size: 13px;
}

.taxiLegacyPartners summary {
  cursor: pointer;
  font-weight: 700;
}

.taxiPickupCard {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.taxiPlaceName {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.taxiPlaceCategory {
  margin: 0 0 8px;
  font-size: 11px;
}

.taxiLine {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 6px;
}

.taxiLine:last-child {
  margin-bottom: 0;
}

.taxiK {
  flex: 0 0 52px;
  font-weight: 800;
  color: #64748b;
}

.taxiV {
  flex: 1;
  color: #0f172a;
  word-break: break-word;
}

.taxiAppPane {
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.taxiAppPane--customer {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  border-color: #fdba74;
}

.taxiAppPane--driver {
  background: linear-gradient(180deg, #ecfeff 0%, #fff 100%);
  border-color: #67e8f9;
}

.taxiAppPaneHead {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.taxiAppPaneIcon {
  font-size: 22px;
  line-height: 1;
}

.taxiAppPaneTitle {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.taxiAppPaneSub {
  margin: 2px 0 0;
  font-size: 11px;
}

.taxiPartnersLead {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}

.taxiPartnerCard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.taxiPartnerCard--primary {
  border-color: #fb923c;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15);
}

.taxiPartnerCardHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.taxiPartnerBadge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
}

.taxiPartnerCard--primary .taxiPartnerBadge {
  background: #ea580c;
  color: #fff;
}

.taxiPartnerName {
  font-size: 14px;
  color: #0f172a;
}

.taxiPartnerSub {
  margin: 0 0 8px;
  font-size: 11px;
}

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

.taxiPartnerRole {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
}

.taxiPartnerActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.taxiPartnerActions .taxiBtn {
  width: 100%;
  margin: 0;
  font-size: 11px;
  padding: 10px 8px;
}

.taxiCustomerTools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.taxiDriverNote {
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.taxiBtn--block {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.taxiLegal {
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
}

.taxiLegal summary {
  cursor: pointer;
  font-weight: 700;
  color: #475569;
}

.taxi--pickup .taxiHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.taxi--pickup .taxiTitle {
  font-weight: 800;
  font-size: 14px;
}

.taxi--pickup .taxiBtn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}

.taxi--pickup .taxiBtn.primary {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border-color: #ea580c;
  color: #fff;
}

.taxi--pickup .taxiBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.taxiBtn--legacy {
  display: none !important;
}

.driverMap {
  width: 100%;
  height: 46vh;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.driverPickupPlace {
  margin: 10px 0 4px;
  font-size: 15px;
}

.driverStatus {
  margin: 4px 0 12px;
}

.driverActions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.taxiLbs {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.taxiLbsConsent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  cursor: pointer;
}

.taxiLbsNote,
.taxiLbsStatus,
.taxiProtectNote,
.taxiBillingNote {
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  margin: 6px 0 0;
}

.taxiBillingNote {
  color: #64748b;
  font-size: 10px;
}

.taxiLbsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.taxiDynamics,
.taxiRegionBriefs {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.taxiDynamicsTitle {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
}

.taxiDynamicsStatus {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.45;
}

.taxiDynamicsMeta {
  margin: 4px 0 0;
  font-size: 10px;
}

.taxiBriefList {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.taxiBriefItem {
  padding: 8px 0;
  border-bottom: 1px solid #fde68a;
  font-size: 11px;
  line-height: 1.45;
}

.taxiBriefItem strong {
  display: block;
  color: #78350f;
}

.taxiBriefItem p {
  margin: 4px 0 0;
  color: #44403c;
}

.leaflet-pane path.leaflet-interactive {
  cursor: pointer;
}

.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;
}

.taxiDispatchBadge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}
.taxiDispatchBadge--wait {
  background: #fef3c7;
  color: #92400e;
}
.taxiDispatchBadge--ok {
  background: #d1fae5;
  color: #065f46;
}
.taxiDispatchBadge--bad {
  background: #fee2e2;
  color: #991b1b;
}
