/* Tamkara: los mapas de las páginas de destino, itinerario y combinado toman el color de su destino (data-tone en la sección del mapa)
   y se muestran más grandes. Esmeralda = Egipto, burdeos = Turquía y Marruecos, ciruela = Jordania, azul egeo = Grecia y Túnez. */
body main section.eh-map.eh-map.eh-map{
  --ap:#0e3b34;--ap-sea:#082a25;--ap-water:#4fc1a5;--ap-cn:rgba(111,214,188,.62);--ap-frame:rgba(79,193,165,.34);
  --mp-route:#fff8ec;--mp-dot:#efe4d0;--mp-dot-stroke:#e0a56b;--mp-lbl:#efe4d0;--mp-halo:var(--ap-sea);--mp-land-a:.14;--mp-hl-a:.4;
  background:radial-gradient(60% 45% at 8% 100%,rgba(224,165,107,.12),transparent 70%),var(--ap)!important;color:#efe4d0;border-color:var(--ap-frame)!important}
body main section.eh-map.eh-map.eh-map[data-tone="esmeralda"]{--ap:#0e3b34;--ap-sea:#082a25;--ap-water:#4fc1a5;--ap-cn:rgba(111,214,188,.62);--ap-frame:rgba(79,193,165,.34)}
body main section.eh-map.eh-map.eh-map[data-tone="burdeos"]{--ap:#5b1f2a;--ap-sea:#36111a;--ap-water:#f0b3ba;--ap-cn:rgba(240,179,186,.66);--ap-frame:rgba(240,179,186,.34)}
body main section.eh-map.eh-map.eh-map[data-tone="ciruela"]{--ap:#44283f;--ap-sea:#2b1828;--ap-water:#e0b8dc;--ap-cn:rgba(224,184,220,.66);--ap-frame:rgba(224,184,220,.34)}
body main section.eh-map.eh-map.eh-map[data-tone="egeo"]{--ap:#1f3a5f;--ap-sea:#132845;--ap-water:#8dbdf0;--ap-cn:rgba(150,190,235,.68);--ap-frame:rgba(141,189,240,.34)}
body main section.eh-map.eh-map.eh-map[data-tone="egeo-medio"]{--ap:#2c6aa0;--ap-sea:#1b4a78;--ap-water:#d3e8fb;--ap-cn:rgba(211,232,251,.8);--ap-frame:rgba(211,232,251,.42)}

body main section.eh-map.eh-map.eh-map .eh-map-frame{background:var(--ap-sea)!important;border:1px solid var(--ap-frame)!important;box-shadow:0 24px 60px -30px rgba(0,0,0,.6)}
body main section.eh-map.eh-map.eh-map .eh-sea-bg{fill:var(--ap-sea)!important}
body main section.eh-map.eh-map.eh-map .eh-land{fill:var(--ap-water)!important;fill-opacity:var(--mp-land-a);stroke:var(--ap-water)!important;stroke-opacity:.42}
body main section.eh-map.eh-map.eh-map .eh-land-hl{fill:var(--ap-water)!important;fill-opacity:var(--mp-hl-a);stroke:var(--ap-water)!important;stroke-opacity:1;stroke-width:1.7}
body main section.eh-map.eh-map.eh-map .eh-borders{stroke:var(--ap-water)!important;stroke-opacity:.32}
body main section.eh-map.eh-map.eh-map .eh-grid line{stroke:rgba(239,228,208,.07)!important}
body main section.eh-map.eh-map.eh-map .eh-tick{fill:var(--ap-cn)!important;fill-opacity:.7}
body main section.eh-map.eh-map.eh-map .eh-cname,
body main section.eh-map.eh-map.eh-map .eh-cname.eh-sea{fill:var(--ap-cn)!important}
body main section.eh-map.eh-map.eh-map .eh-river{stroke:var(--ap-water)!important;fill:none!important}
body main section.eh-map.eh-map.eh-map .eh-lake{fill:var(--ap-water)!important;fill-opacity:.25;stroke:var(--ap-water)!important}
body main section.eh-map.eh-map.eh-map .eh-seg{stroke:var(--mp-route)!important}
body main section.eh-map.eh-map.eh-map .eh-dot{fill:var(--mp-dot)!important;stroke:var(--mp-dot-stroke)!important;stroke-width:3}
body main section.eh-map.eh-map.eh-map .eh-pulse{fill:var(--ap-water)!important}
body main section.eh-map.eh-map.eh-map .eh-lbl{fill:var(--mp-lbl)!important;paint-order:stroke;stroke:var(--mp-halo)!important;stroke-width:5px;stroke-linejoin:round}
body main section.eh-map.eh-map.eh-map .eh-lg{border-top-color:var(--mp-route)!important}
body main section.eh-map.eh-map.eh-map .eh-legend{border-top-color:var(--ap-frame)!important}
body main section.eh-map.eh-map.eh-map .eh-label{color:var(--ap-water)!important}
body main section.eh-map.eh-map.eh-map .eh-h2 em{color:var(--ap-water)!important}
body main section.eh-map.eh-map.eh-map .eh-chip.is-active{background:#efe4d0;color:var(--ap-sea)}
body main section.eh-map.eh-map.eh-map .eh-panel-body{border-color:var(--ap-frame)!important;background:rgba(0,0,0,.14)!important}
body main section.eh-map.eh-map.eh-map .eh-panel-p b{color:var(--ap-water)!important}

/* mapas más grandes */
body main.hb section.eh-map .eh-map-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,.85fr)!important}
body.cmb-ficha .ei-map .eh-map-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr)!important}
.nv-itin .nv-map .eh-map-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr)!important}
.nv-itin .nv-map .eh-map-frame svg{max-height:calc(100vh - var(--pn-nav-h,79px) - 40px)!important}
@media(max-width:960px){
  body main.hb section.eh-map .eh-map-grid,body.cmb-ficha .ei-map .eh-map-grid,.nv-itin .nv-map .eh-map-grid{grid-template-columns:1fr!important}
}

/* itinerarios y combinados: el fondo de la sección también toma el color del destino */
.nv-itin section.nv-map.eh-map.eh-map.eh-map,
body.cmb-ficha main>section.ei-map.eh-map.eh-map.eh-map{background:radial-gradient(60% 45% at 8% 100%,rgba(224,165,107,.12),transparent 70%),var(--ap)!important}
.nv-itin .nv-map .eh-map-frame,body.cmb-ficha .ei-map .eh-map-frame{background:var(--ap-sea)!important;border-color:var(--ap-frame)!important}
.nv-itin .nv-map .eh-label,body.cmb-ficha .ei-map .eh-label{color:var(--ap-water)!important}
.nv-itin .nv-map .eh-h2 em,body.cmb-ficha .ei-map .eh-h2 em{color:var(--ap-water)!important}
.nv-itin main>section.nv-map.eh-map.eh-map.eh-map:not(#_){background-color:var(--ap)!important;background-image:radial-gradient(60% 45% at 8% 100%,rgba(224,165,107,.12),transparent 70%)!important}
body.cmb-ficha main>section.ei-map.eh-map.eh-map.eh-map:not(#_){background-color:var(--ap)!important;background-image:radial-gradient(60% 45% at 8% 100%,rgba(224,165,107,.12),transparent 70%)!important}

/* detalle de los mapas de los hubs: lugares de interés y regiones, siempre por debajo de las rutas */
body main section.eh-map .eh-pdot{fill:var(--ap-water)!important;fill-opacity:.85}
body main section.eh-map .eh-plbl{font-family:var(--pn-display,'Archivo'),Arial,sans-serif;font-weight:500;font-size:18px;fill:rgba(239,228,208,.82)!important;paint-order:stroke;stroke:var(--ap-sea);stroke-width:4px;stroke-linejoin:round}
body main section.eh-map .eh-region{font-family:var(--pn-serif,'Instrument Serif'),Georgia,serif;font-style:italic;font-size:23px;letter-spacing:.06em;fill:var(--ap-cn)!important;fill-opacity:.85;paint-order:stroke;stroke:var(--ap-sea);stroke-width:3px}
@media(max-width:720px){body main section.eh-map .eh-poi-layer{display:none}}

/* ruta más evidente: línea crema casi blanca, más gruesa, con halo oscuro y brillo; los tramos discontinuos avanzan despacio */
body main section.eh-map.eh-map.eh-map .eh-seg{filter:drop-shadow(0 0 2.5px rgba(0,0,0,.75)) drop-shadow(0 0 9px rgba(255,248,236,.4))}
body main section.eh-map.eh-map.eh-map .eh-seg-cruise{stroke-width:8!important}
body main section.eh-map.eh-map.eh-map .eh-seg-dash{stroke-width:5!important;stroke-dasharray:13 9!important;animation:eh-march 3s linear infinite}
body main section.eh-map.eh-map.eh-map .eh-seg-dot{stroke-width:5.5!important;stroke-dasharray:1 11!important;opacity:1!important}
@keyframes eh-march{to{stroke-dashoffset:-44}}
body main section.eh-map.eh-map.eh-map .eh-dot{stroke-width:3.6}
@media(prefers-reduced-motion:reduce){body main section.eh-map.eh-map.eh-map .eh-seg-dash{animation:none}}

/* una ruta seleccionable por itinerario: reglas de visibilidad para hasta 12 rutas (nuevo-hub.css solo cubre 3) */
.eh-map[data-active="4"] .eh-seg:not([data-r~="4"]){opacity:0}
.eh-map[data-active="4"] .eh-stop:not([data-r~="4"]){opacity:.22}
.eh-map[data-active="5"] .eh-seg:not([data-r~="5"]){opacity:0}
.eh-map[data-active="5"] .eh-stop:not([data-r~="5"]){opacity:.22}
.eh-map[data-active="6"] .eh-seg:not([data-r~="6"]){opacity:0}
.eh-map[data-active="6"] .eh-stop:not([data-r~="6"]){opacity:.22}
.eh-map[data-active="7"] .eh-seg:not([data-r~="7"]){opacity:0}
.eh-map[data-active="7"] .eh-stop:not([data-r~="7"]){opacity:.22}
.eh-map[data-active="8"] .eh-seg:not([data-r~="8"]){opacity:0}
.eh-map[data-active="8"] .eh-stop:not([data-r~="8"]){opacity:.22}
.eh-map[data-active="9"] .eh-seg:not([data-r~="9"]){opacity:0}
.eh-map[data-active="9"] .eh-stop:not([data-r~="9"]){opacity:.22}
.eh-map[data-active="10"] .eh-seg:not([data-r~="10"]){opacity:0}
.eh-map[data-active="10"] .eh-stop:not([data-r~="10"]){opacity:.22}
.eh-map[data-active="11"] .eh-seg:not([data-r~="11"]){opacity:0}
.eh-map[data-active="11"] .eh-stop:not([data-r~="11"]){opacity:.22}
.eh-map[data-active="12"] .eh-seg:not([data-r~="12"]){opacity:0}
.eh-map[data-active="12"] .eh-stop:not([data-r~="12"]){opacity:.22}
body main.hb section.eh-map .eh-chips{max-height:none}
body main.hb section.eh-map .eh-chip{min-height:44px;padding-inline:16px;font-size:.95rem;line-height:1.2}

/* selector de rutas en una fila horizontal sobre el mapa (antes era una columna de botones junto al panel) */
.eh-chips.eh-chips-row{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:8px 10px;margin:0 0 clamp(16px,2.2vw,26px)!important;max-width:none}
body main.hb section.eh-map .eh-chips-row .eh-chip{flex:0 0 auto;width:auto;min-height:42px;padding:0 16px 0 12px;font-size:.9rem;white-space:nowrap}
body main.hb section.eh-map .eh-chips-row .eh-chip em{font-size:.72rem;letter-spacing:.12em}
@media(max-width:700px){body main.hb section.eh-map .eh-chips-row .eh-chip{white-space:normal;text-align:left;line-height:1.15;min-height:44px}}
/* Abu Simbel: «opcional» solo en las rutas donde lo es (Egipto: 1 y 2) */
.eh-map[data-active="6"] .eh-opt{display:none}
@media(max-width:700px){
 .eh-chips.eh-chips-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body main.hb section.eh-map .eh-chips-row .eh-chip{min-width:0;padding:8px 12px 8px 10px;border-radius:18px;align-items:flex-start;gap:8px;overflow-wrap:anywhere}
}

/* variantes elegibles en la seccion del mapa (itinerarios de Egipto) */
.eh-vrow{display:flex;flex-wrap:wrap;gap:8px 10px;margin:0 0 22px}
.eh-vrow-k{flex:0 0 100%;font-family:var(--pn-mono,'JetBrains Mono',monospace);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:rgba(239,228,208,.78)}
.eh-vchip{flex:0 0 auto;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(239,228,208,.3);background:transparent;color:#efe4d0;font:600 .92rem/1.2 var(--pn-display,'Archivo',sans-serif);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.eh-vchip:hover{border-color:#e0a56b}
.eh-vchip.ra-active{background:#efe4d0;color:#0d0c0b;border-color:#efe4d0}
.eh-vchip:focus-visible{outline:3px solid #e0a56b;outline-offset:2px}

/* la eleccion de variante va arriba, sobre el mapa y la lista, ocupando todo el ancho */


/* cabecera de la seccion del mapa en los itinerarios con variantes: el texto sube junto al titular y queda mas compacta */
.nv-itin .nv-map>.ra-wrap:has(#eh-vrow) .eh-map-grid{margin-top:clamp(18px,2.4vw,30px)!important}

/* la eleccion de variante va bajo el texto de la ruta, a la derecha del titular: se aprovecha el espacio de la cabecera */
.nv-itin .nv-map .eh-lead-col{grid-area:lead;align-self:start;margin-top:clamp(6px,1vw,14px);max-width:56ch}
.nv-itin .nv-map .eh-lead-col .eh-lead{grid-area:auto!important;align-self:auto!important;margin:0 0 clamp(16px,1.8vw,22px)!important}
.nv-itin .nv-map .eh-lead-col #eh-vrow{margin:0}

/* noches por parada en el mapa del hub (Jordania): punto lleno = dormirás aquí; anillo = visita de día */
.eh-nts{font-family:var(--pn-mono,'JetBrains Mono',monospace);font-size:17px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;fill:var(--mp-lbl,#efe4d0);opacity:.78;paint-order:stroke;stroke:var(--mp-halo,#0a0908);stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.eh-stop.is-sleep .eh-nts{fill:#e0a56b;opacity:1}
body main section.eh-map.eh-map.eh-map .eh-stop.is-day .eh-dot{fill:transparent!important}
.eh-dot{transition:fill .35s ease}
@keyframes ehNtsIn{from{opacity:0;transform:translateY(-5px)}to{opacity:var(--nts-o,.78);transform:none}}
.eh-nts.eh-nts-in{animation:ehNtsIn .45s ease both;--nts-o:.78}
.eh-stop.is-sleep .eh-nts.eh-nts-in{--nts-o:1}
@media (prefers-reduced-motion:reduce){.eh-nts.eh-nts-in{animation:none}.eh-dot{transition:none}}
.eh-lg-pt{position:relative;display:inline-block;flex:0 0 30px;width:30px;height:14px}
.eh-lg-pt::before{content:"";position:absolute;left:50%;top:50%;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;border:2.5px solid #e0a56b;box-sizing:border-box}
.eh-lg-pt-sleep::before{background:var(--pn-hueso,#efe4d0)}
.eh-lg-pt-day::before{background:transparent}
@media (max-width:640px){.eh-nts{font-size:19px}}

.eh-stop.is-off .eh-nts{display:none}

/* leyenda siempre en vertical: un elemento por fila, con los iconos alineados */
body main section.eh-map .eh-legend{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:10px}
body main section.eh-map .eh-legend li{width:100%}
