/* Mapa control: mapa grande con controles encima */
.mc-caja { position: relative; height: calc(100vh - 190px); min-height: 540px; border-radius: 20px; overflow: hidden; background: #dcebf7; box-shadow: 0 16px 44px rgba(30, 136, 216, .22); }
.mc-caja:fullscreen { height: 100vh; border-radius: 0; }
.mc-mapa { position: absolute; inset: 0; }
:root[data-tema="noche"] .mc-mapa:not(.sat) .maplibregl-canvas { filter: invert(.92) hue-rotate(180deg) brightness(.92) contrast(.95); }
.mc-capas, .mc-acciones { position: absolute; z-index: 5; display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(11, 42, 68, .3); }
.mc-capas { top: 14px; right: 14px; }
.mc-capas button, .mc-acciones button { border: 0; background: #fff; color: #0b2a44; font: inherit; font-size: 12px; font-weight: 700; padding: 9px 13px; cursor: pointer; }
.mc-capas button.activa { background: #1e88d8; color: #fff; }
.mc-capas button:hover:not(.activa), .mc-acciones button:hover { background: #e8f3fc; }
.mc-acciones { top: 64px; right: 14px; flex-direction: column; }
.mc-acciones button { font-size: 17px; padding: 8px 12px; }
.mc-filtros { position: absolute; z-index: 5; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 340px); }
.mc-filtros select { border: 0; border-radius: 12px; padding: 10px 14px; background: #fff; color: #0b2a44; font: inherit; font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 22px rgba(11, 42, 68, .3); }
.mc-buscar { position: absolute; z-index: 5; left: 14px; bottom: 34px; display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(11, 42, 68, .3); max-width: calc(100% - 28px); }
.mc-buscar input { border: 0; padding: 11px 14px; width: 270px; max-width: 55vw; font: inherit; font-size: 12.5px; background: #fff; color: #0b2a44; }
.mc-buscar button { border: 0; background: #1e88d8; color: #fff; font: inherit; font-weight: 800; padding: 0 18px; cursor: pointer; }
.mc-resumen { position: absolute; z-index: 5; left: 14px; bottom: 84px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: #0b2a44; font-size: 11.5px; box-shadow: 0 6px 16px rgba(11, 42, 68, .25); max-width: calc(100% - 28px); }
.mc-mapa .maplibregl-ctrl-bottom-left { margin-left: 270px; }
@media (max-width: 760px) {
  .mc-caja { height: calc(100vh - 170px); min-height: 480px; }
  .mc-filtros { max-width: calc(100% - 28px); top: 62px; }
  .mc-capas { left: 14px; right: auto; max-width: calc(100% - 28px); overflow-x: auto; }
  .mc-acciones { top: 112px; }
  .mc-mapa .maplibregl-ctrl-bottom-left { margin-left: 0; }
}
/* Botón pequeño "Centrar" */
.mc-acciones .mc-centrar { font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 9px 10px; }

/* Trazar traslado: salida, recojo y destino */
.mc-traslado-boton { border: 0; border-radius: 12px; padding: 10px 14px; background: #1e88d8; color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 22px rgba(11, 42, 68, .3); cursor: pointer; }
.mc-traslado { position: absolute; z-index: 6; left: 14px; top: 118px; width: 310px; max-height: calc(100% - 210px); overflow: auto; background: #fff; color: #0b2a44; border-radius: 14px; padding: 12px 14px 14px; box-shadow: 0 14px 36px rgba(11, 42, 68, .38); display: grid; gap: 9px; }
.mc-traslado[hidden] { display: none; }
.mc-traslado header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.mc-traslado header button { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: #5b7a92; }
.mc-traslado label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #5b7a92; text-transform: uppercase; }
.mc-traslado select, .mc-traslado input { border: 1px solid #d3e0ec; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 12.5px; color: #0b2a44; background: #fff; text-transform: none; letter-spacing: 0; font-weight: 400; width: 100%; box-sizing: border-box; }
.mt-n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1e88d8; color: #fff; font-size: 10px; margin-right: 5px; }
.mt-aviso { margin: 0; font-size: 11.5px; padding: 7px 9px; border-radius: 8px; background: #f1f6fb; color: #35566f; }
.mt-aviso:empty { display: none; }
.mt-aviso.ok { background: #e0f6ec; color: #0f5c3f; } .mt-aviso.am { background: #fff2d6; color: #7a4d00; } .mt-aviso.rj { background: #ffe7e9; color: #8a1018; }
.mt-acciones { display: flex; gap: 8px; }
.mt-acciones button { flex: 1; border: 1px solid #d3e0ec; border-radius: 9px; padding: 9px 10px; background: #fff; color: #0b2a44; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mt-acciones .mt-trazar { background: #0b2a44; border-color: #0b2a44; color: #fff; }
.mt-tramo { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 3px 0; }
.mt-tramo i { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 99px; }
.mt-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e3ecf4; margin-top: 6px; padding-top: 8px; font-size: 12px; color: #5b7a92; }
.mt-total b { font-size: 16px; color: #0b2a44; }
#mt-resumen small { display: block; margin-top: 4px; font-size: 10.5px; color: #7b93a6; }
#mt-resumen small.mt-rojo { color: #b3282b; }
.mt-cargando { margin: 0; font-size: 12px; color: #5b7a92; }
.mt-google { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #1566a8; }
.mt-marca { display: flex; flex-direction: column; align-items: center; }
.mt-marca span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.mt-marca b { margin-top: 3px; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .96); color: #0b2a44; font-size: 10.5px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@media (max-width: 760px) { .mc-traslado { left: 10px; right: 10px; width: auto; top: 160px; } }
.mc-traslado.compacto label, .mc-traslado.compacto .mt-aviso, .mc-traslado.compacto .mt-acciones { display: none; }
.mt-editar { display: none; margin-top: 8px; border: 1px solid #d3e0ec; border-radius: 9px; padding: 8px 10px; background: #fff; color: #0b2a44; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; width: 100%; }
.mc-traslado.compacto .mt-editar { display: block; }
