/* Bihotz Recorridos */
.bzr { margin: 0; font-family: Barlow, Helvetica, sans-serif; }
.bzr-mapa { height: var(--bzr-alto, 480px); }

/* Motor de mapa */
.bzm { position: relative; overflow: hidden; background: #E9E6DF; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 10px; }
.bzm.is-arrastrando { cursor: grabbing; }
.bzm-teselas { position: absolute; inset: 0; }
.bzm-teselas img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .25s; pointer-events: none; }
.bzm-teselas img.is-ok { opacity: 1; }
.bzm--claro .bzm-teselas { filter: grayscale(.9) contrast(.92) brightness(1.06); }
.bzm--oscuro .bzm-teselas { filter: invert(1) hue-rotate(180deg) grayscale(.7) brightness(.85) contrast(.9); }
.bzm--oscuro { background: #1d2025; }
.bzm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.bzm-svg [data-bzm-asa] { pointer-events: all; cursor: move; }
.bzm-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.18); border-radius: 8px; overflow: hidden; z-index: 2; }
.bzm .bzm-zoom button { width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #14181D; font: 700 22px/1 Barlow, sans-serif; cursor: pointer; }
.bzm .bzm-zoom button + button { border-top: 1px solid #e3e0d9; }
.bzm .bzm-zoom button:hover, .bzm .bzm-zoom button:focus { background: #F5B301; color: #14181D; }
.bzm-atrib { position: absolute; right: 0; bottom: 0; padding: 2px 7px; background: rgba(255,255,255,.8); font-size: 11px; color: #3E4148; z-index: 2; border-top-left-radius: 6px; }

/* Recorrido animado */
.bzr .bzr-borde { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.bzr .bzr-brillo { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.bzr .bzr-linea { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.bzr .bzr-flujo { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 14; animation: bzr-flujo 1.1s linear infinite; transition: opacity .6s; }
@keyframes bzr-flujo { to { stroke-dashoffset: -16; } }
.bzr .bzr-km { transition: opacity .4s; }
.bzr .bzr-km text { font: 700 11px 'Barlow Condensed', Barlow, sans-serif; fill: #14181D; }
.bzr .bzr-halo { opacity: .35; transform-box: fill-box; transform-origin: center; animation: bzr-halo 1.3s ease-out infinite; }
@keyframes bzr-halo { from { transform: scale(.6); opacity: .55; } to { transform: scale(1.7); opacity: 0; } }
.bzr .bzr-bandera line { stroke: #14181D; stroke-width: 2.5; }
.bzr .bzr-bandera rect { fill: #14181D; }
.bzr .bzr-bandera--salida rect { fill: #1D7A3B; }
.bzr .bzr-bandera--meta rect { fill: #14181D; }
.bzr .bzr-bandera text { font: 700 12px 'Barlow Condensed', Barlow, sans-serif; letter-spacing: .06em; fill: #fff; }
.bzr .bzr-bandera circle { fill: #fff; stroke: #14181D; stroke-width: 3; }
.bzr .bzr-bandera--salida circle { stroke: #1D7A3B; }
.bzr .bzr-repetir { position: absolute; left: 12px; top: 12px; z-index: 2; margin: 0; padding: 8px 12px; border: 0; border-radius: 8px; background: rgba(20,24,29,.86); color: #fff; cursor: pointer; font: 700 13px 'Barlow Condensed', Barlow, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.bzr .bzr-repetir:hover, .bzr .bzr-repetir:focus { background: #F5B301; color: #14181D; }

.bzr .bzr-leyenda { font-style: normal; text-align: left; }
.bzr-leyenda { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 15px; color: #3E4148; }
.bzr-leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.bzr-leyenda i { display: inline-block; width: 26px; height: 6px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
.bzr-leyenda b { font-family: 'Barlow Condensed', Barlow, sans-serif; font-size: 17px; color: #14181D; }

@media (prefers-reduced-motion: reduce) {
	.bzr .bzr-flujo, .bzr .bzr-halo { animation: none; }
}

/* Editor (admin) */
.bzr-ed__barra, .bzr-ed__props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 10px; }
.bzr-ed__trazados { display: flex; flex-wrap: wrap; gap: 6px; }
.bzr-ed__sep { flex: 1; }
.bzr-ed__dist { margin-left: 8px; font-weight: 600; }
.bzr-ed__props label { display: inline-flex; align-items: center; gap: 6px; }
.bzr-ed__mapa { height: 560px; border-radius: 6px; }
.bzr-ed .bzm-svg .bzr-ed__asa { fill: #fff; stroke-width: 3.5; }
.bzr-ed .bzm-svg .bzr-ed__asa.is-salida { fill: #1D7A3B; stroke: #fff; }
.bzr-ed .bzm-svg .bzr-ed__asa.is-meta { fill: #14181D; stroke: #fff; }
.bzr-ed .bzm-svg .bzr-ed__medio { fill: rgba(255,255,255,.75); stroke: #14181D; stroke-width: 1.5; cursor: copy; }
