#E_MM { color:#111; background:#fff; max-width:1020px; margin:0 auto; font-family:'Roboto',sans-serif; }
#E_MM * { box-sizing:border-box; }
#E_MM, #E_MM * { letter-spacing:normal; word-spacing:normal; text-transform:none; }
#E_MM .em-titulo { font-family:'Merriweather',serif; font-size:1.95rem; font-weight:700; line-height:1.15; margin:0 0 8px; }
#E_MM .em-subtitulo { font-size:1.05rem; line-height:1.45; color:#5f5f5f; margin:0 0 10px; }
#E_MM .em-acento { width:94px; height:4px; background:#cc0000; margin:0 0 18px; }
#E_MM .em-controles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,236px),1fr)); gap:12px; align-items:end; margin-bottom:14px; }
#E_MM .em-campo { display:flex; flex-direction:column; gap:6px; min-width:0; }
#E_MM .em-campo.em-oculta { display:none; }
#E_MM .em-campo > .em-etiqueta { font-size:1rem; font-weight:700; }
#E_MM select, #E_MM .em-buscador input { width:100%; min-height:42px; padding:8px 12px; border:1px solid #cfcfcf; background:#fff; color:#111; font-family:'Roboto',sans-serif; font-size:1rem; border-radius:0; }
#E_MM select:focus, #E_MM .em-buscador input:focus { outline:none; border-color:#cc0000; box-shadow:inset 0 -2px 0 #cc0000; }
#E_MM .em-buscador { position:relative; width:100%; }
#E_MM .em-sugerencias { display:none; position:absolute; top:100%; left:0; right:0; z-index:12; background:#fff; border:1px solid #cfcfcf; border-top:none; max-height:260px; overflow-y:auto; }
#E_MM .em-sugerencias.em-visible { display:block; }
#E_MM .em-sugerencia { padding:8px 12px; cursor:pointer; font-size:1rem; }
#E_MM .em-sugerencia.em-activa, #E_MM .em-sugerencia:hover { background:#fff1ed; }
#E_MM .em-sugerencia-prov { color:#6f6f6f; }
#E_MM .em-mapas { display:grid; grid-template-columns:1fr; gap:14px; }
#E_MM .em-mapas.em-comparar { grid-template-columns:1fr 1fr; }
#E_MM .em-vista { display:flex; flex-direction:column; min-width:0; }
#E_MM .em-vista.em-oculta { display:none; }
#E_MM .em-vista-cabecera { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 10px; align-items:baseline; margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid #d7d7d7; }
#E_MM .em-vista-titulo { font-family:'Merriweather',serif; font-size:1.2rem; font-weight:700; line-height:1.3; }
#E_MM .em-comparar .em-vista-titulo { font-size:1rem; }
#E_MM .em-vista-meta { font-size:1rem; color:#565656; text-align:right; }
#E_MM .em-mapa-contenedor { position:relative; width:100%; aspect-ratio:5 / 4; max-height:500px; min-height:300px; border:1px solid #d8d8d8; background:#f6f6f6; }
#E_MM .em-comparar .em-mapa-contenedor { aspect-ratio:4 / 5; min-height:260px; }
#E_MM .em-mapa { position:absolute; inset:0; }
#E_MM .em-estado { position:absolute; left:12px; top:12px; z-index:4; display:none; max-width:min(300px, calc(100% - 24px)); background:rgba(255,255,255,.96); border:1px solid #dadada; padding:8px 10px; font-size:1rem; line-height:1.35; }
#E_MM .em-estado.em-visible { display:block; }
#E_MM .em-leyenda { margin-top:12px; padding-top:10px; border-top:1px solid #dcdcdc; }
#E_MM .em-leyenda:empty { display:none; }
#E_MM .em-leyenda-bloque { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:flex-start; }
#E_MM .em-leyenda-bloque + .em-leyenda-bloque { margin-top:12px; }
#E_MM .em-leyenda-titulo { width:100%; font-family:'Merriweather',serif; font-size:1rem; font-weight:700; }
#E_MM .em-leyenda-fila { display:flex; align-items:center; gap:8px; font-size:1rem; color:#333; }
/* Leyenda de partidos: los seis primeros; el resto, tras «Ver más» */
#E_MM .em-leyenda-mas { display:contents; }
#E_MM .em-leyenda-mas[hidden] { display:none; }
#E_MM .em-ver-mas { align-self:center; margin:0; padding:0; font:inherit; font-size:1rem; font-weight:400; line-height:1.375; color:#000; background:none; border:0; border-bottom:1px solid currentColor; border-radius:0; box-shadow:none; cursor:pointer; }
#E_MM .em-ver-mas:hover { color:#cc0000; }
#E_MM .em-ver-mas:focus-visible { outline:2px solid #cc0000; outline-offset:2px; }
#E_MM .em-muestra { width:22px; height:14px; border:1px solid rgba(0,0,0,.15); flex:0 0 auto; }
#E_MM .em-muestra-blanca { border-color:rgba(0,0,0,.35); }
#E_MM .em-pie { display:flex; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; margin-top:10px; font-size:1rem; line-height:1.35; color:#5f5f5f; }
/* MapLibre, lo imprescindible y dentro de #E_MM: así los controles y la atribución se ven bien aunque no cargue su hoja */
#E_MM .maplibregl-map { overflow:hidden; font:12px/20px 'Roboto',Arial,sans-serif; -webkit-tap-highlight-color:rgb(0 0 0/0); }   /* sin position: el contenedor del mapa ya va colocado (.em-mapa) */
#E_MM .maplibregl-canvas { position:absolute; left:0; top:0; }
#E_MM .maplibregl-canvas-container.maplibregl-interactive { cursor:grab; }
#E_MM .maplibregl-canvas-container.maplibregl-interactive:active { cursor:grabbing; }
#E_MM .maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer { cursor:pointer; }
#E_MM .maplibregl-canvas-container.maplibregl-touch-zoom-rotate, #E_MM .maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas { touch-action:pan-x pan-y; }
#E_MM .maplibregl-canvas-container.maplibregl-touch-drag-pan, #E_MM .maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action:pinch-zoom; }
#E_MM .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan, #E_MM .maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action:none; }
#E_MM .maplibregl-ctrl-top-left, #E_MM .maplibregl-ctrl-top-right, #E_MM .maplibregl-ctrl-bottom-left, #E_MM .maplibregl-ctrl-bottom-right { position:absolute; z-index:2; pointer-events:none; }
#E_MM .maplibregl-ctrl-top-left { left:0; top:0; }
#E_MM .maplibregl-ctrl-top-right { right:0; top:0; }
#E_MM .maplibregl-ctrl-bottom-left { left:0; bottom:0; }
#E_MM .maplibregl-ctrl-bottom-right { right:0; bottom:0; }
#E_MM .maplibregl-ctrl { clear:both; pointer-events:auto; transform:translate(0); }
#E_MM .maplibregl-ctrl-top-left .maplibregl-ctrl { float:left; margin:10px 0 0 10px; }
#E_MM .maplibregl-ctrl-top-right .maplibregl-ctrl { float:right; margin:10px 10px 0 0; }
#E_MM .maplibregl-ctrl-bottom-left .maplibregl-ctrl { float:left; margin:0 0 10px 10px; }
#E_MM .maplibregl-ctrl-bottom-right .maplibregl-ctrl { float:right; margin:0 10px 10px 0; }
#E_MM .maplibregl-ctrl-group { background:#fff; border:1px solid #cfcfcf; border-radius:0; box-shadow:none; }
#E_MM .maplibregl-ctrl-group button { display:block; width:29px; height:29px; min-width:0; min-height:0; margin:0; padding:0; box-sizing:border-box; background-color:transparent; border:0; border-radius:0; box-shadow:none; outline:none; cursor:pointer; }
#E_MM .maplibregl-ctrl-group button + button { border-top:1px solid #dcdcdc; }
#E_MM .maplibregl-ctrl-group button:focus-visible { outline:2px solid #cc0000; outline-offset:-2px; }
#E_MM .maplibregl-ctrl button:not(:disabled):hover { background-color:rgb(0 0 0/5%); }
#E_MM .maplibregl-ctrl button:disabled { cursor:not-allowed; }
#E_MM .maplibregl-ctrl button:disabled .maplibregl-ctrl-icon { opacity:.25; }
#E_MM .maplibregl-ctrl button .maplibregl-ctrl-icon { display:block; width:100%; height:100%; background-color:transparent; background-position:50%; background-repeat:no-repeat; }
#E_MM .maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon { background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E"); }
#E_MM .maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E"); }
#E_MM .maplibregl-ctrl.maplibregl-ctrl-attrib { margin:0; padding:0 5px; background-color:hsla(0,0%,100%,.5); }
#E_MM .maplibregl-ctrl-attrib.maplibregl-compact { position:relative; box-sizing:content-box; min-height:20px; margin:10px; padding:2px 24px 2px 0; color:#000; background-color:#fff; border-radius:0; }
#E_MM .maplibregl-ctrl-attrib.maplibregl-compact-show { padding:2px 28px 2px 8px; visibility:visible; }
#E_MM .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner { display:none; }
#E_MM .maplibregl-ctrl-attrib-button { display:none; position:absolute; top:0; right:0; width:24px; height:24px; box-sizing:border-box; margin:0; padding:0; border:0; border-radius:0; outline:none; cursor:pointer; background-color:hsla(0,0%,100%,.5); background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E"); }
#E_MM .maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button { -webkit-appearance:none; appearance:none; list-style:none; }
#E_MM .maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker { display:none; }
#E_MM .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button, #E_MM .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner { display:block; }
#E_MM .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button { background-color:rgb(0 0 0/5%); }
#E_MM .maplibregl-ctrl-attrib a { color:rgba(0,0,0,.75); text-decoration:none; }
#E_MM .maplibregl-ctrl-attrib a:hover { color:inherit; text-decoration:underline; }
/* Popup blindado: la web anfitriona puede traer estilos para [role=dialog], tablas, celdas, párrafos o botones que lo descolocan */
#E_MM .em-popup { inset:auto; right:auto; bottom:auto; margin:0; transform:none; translate:none; rotate:none; scale:none; float:none; box-sizing:border-box; text-align:left; text-transform:none; letter-spacing:normal; word-spacing:normal; white-space:normal; box-shadow:none; border-radius:0; }
#E_MM .em-popup * { box-sizing:border-box; text-transform:none; letter-spacing:normal; }
#E_MM .em-popup-titulo, #E_MM .em-popup-meta, #E_MM .em-popup-texto { padding:0; border:0; background:none; text-align:left; font-size:1rem; line-height:1.35; }
#E_MM .em-popup-tabla { margin:0; border:0; border-spacing:0; background:none; table-layout:auto; font-size:1rem; }
#E_MM .em-popup-tabla tr, #E_MM .em-popup-tabla td { border:0; background:none; text-align:left; font-size:1rem; line-height:1.35; height:auto; }
#E_MM .em-popup-tabla td.em-num { text-align:right; }
#E_MM .em-popup-cerrar { width:auto; height:auto; min-width:0; min-height:0; margin:0; -webkit-appearance:none; appearance:none; box-shadow:none; border-radius:0; text-transform:none; letter-spacing:normal; }
#E_MM .em-popup { position:fixed; left:0; top:0; z-index:2147483647; display:none; width:max-content; min-width:210px; max-width:min(330px, calc(100vw - 16px)); max-height:calc(100vh - 16px); overflow-y:auto; background:#fff; border:1px solid #bdbdbd; border-top:3px solid #cc0000; padding:10px 12px 12px; font-family:'Roboto',sans-serif; font-size:1rem; line-height:1.35; color:#111; }
#E_MM .em-popup.em-visible { display:block; }
#E_MM .em-popup-cerrar { position:absolute; top:3px; right:4px; border:0; background:none; color:#555; font-family:'Roboto',sans-serif; font-size:1.4rem; line-height:1; padding:3px 6px; cursor:pointer; }
#E_MM .em-popup-cerrar:hover { color:#cc0000; }
#E_MM .em-popup-cerrar:focus-visible { outline:2px solid #cc0000; outline-offset:1px; }
#E_MM .em-popup-titulo { font-family:'Merriweather',serif; font-weight:700; margin:0 28px 2px 0; }
#E_MM .em-popup-meta { color:#616161; margin:0 0 8px; }
#E_MM .em-popup-tabla { border-collapse:collapse; width:100%; }
#E_MM .em-popup-tabla td { padding:3px 0; vertical-align:baseline; color:#616161; }
#E_MM .em-popup-tabla td.em-num { text-align:right; padding-left:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
#E_MM .em-popup-tabla tr.em-activa td { color:#111; font-weight:700; }
#E_MM .em-popup-tabla tr.em-resto td { border-top:1px solid #e2e2e2; padding-top:6px; }
#E_MM .em-popup-muestra { display:inline-block; width:12px; height:12px; margin-right:7px; vertical-align:-1px; border:1px solid rgba(0,0,0,.15); }
#E_MM .em-popup-texto { margin:0; }
#E_MM .em-popup-texto + .em-popup-texto, #E_MM .em-popup-tabla + .em-popup-texto { margin-top:6px; }
#E_MM .em-popup-nota { color:#616161; }
@media (max-width:400px) {
  #E_MM .em-titulo { font-size:1.45rem; }
  #E_MM .em-mapas.em-comparar { gap:8px; }
  #E_MM .em-vista-cabecera { flex-direction:column; align-items:flex-start; }
  #E_MM .em-vista-meta { text-align:left; }
}
