/* ======================================================================
   Vista Lista / Mapa de /destinosMaps, /eventosMaps y /rutas
   (ver public/js/tur-vista-mapa.js). Claro y oscuro con html[data-theme="dark"].
   ====================================================================== */

/* Switch Lista | Mapa (misma píldora del home) */
.tur-vista-switch-wrap { display: flex; justify-content: center; margin: 26px 0 22px; }
.tur-vista-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f2f2f5; }
.tur-vista-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #6b7280; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.tur-vista-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.tur-vista-btn.activo { background: #f91942; color: #fff; box-shadow: 0 3px 10px rgba(249, 25, 66, .35); }
.tur-vista-btn:focus-visible { outline: 2px solid #f91942; outline-offset: 2px; }
html[data-theme="dark"] .tur-vista-switch { background: var(--tur-surface-2); }
html[data-theme="dark"] .tur-vista-btn { color: var(--tur-text-muted); }
html[data-theme="dark"] .tur-vista-btn.activo { color: #fff; }

/* Vista Mapa: casi toda la pantalla, igual que el mapa del inicio. La barra (buscador + switch) se
   fija justo bajo el header, el mapa ocupa el resto y no se ve el footer ni hay scroll de página. */
#vista-mapa { display: none; }
.tur-mapa-caja { position: relative; height: 100%; overflow: hidden; background: #e5e3df; }
html[data-theme="dark"] .tur-mapa-caja { background: var(--tur-surface); }
.tur-mapa-caja #map { position: absolute; inset: 0; width: 100%; height: 100%; }
#vista-mapa.activo { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; background: #fff; }
html[data-theme="dark"] #vista-mapa.activo { background: var(--tur-bg); }
body.mapa-vista-activa { overflow: hidden; }
body.mapa-vista-activa #footer,
body.mapa-vista-activa #backtotop { display: none !important; }

.tur-vista-barra.fijo { position: fixed; left: 0; right: 0; z-index: 501; display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
html[data-theme="dark"] .tur-vista-barra.fijo { background: var(--tur-bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.tur-vista-barra.fijo .container { width: auto; max-width: none; margin: 0; padding: 0; }
.tur-vista-barra.fijo .row { margin: 0; }
.tur-vista-barra.fijo [class*="col-"] { padding: 0; }
.tur-vista-barra.fijo .tur-barra-buscador { flex: 1 1 auto; min-width: 0; }
.tur-vista-barra.fijo .tur-barra-switch { flex: none; }
.tur-vista-barra.fijo .main-search-input { margin: 0 !important; }
.tur-vista-barra.fijo .tur-vista-switch-wrap { margin: 0; }
.ui-autocomplete { z-index: 1000 !important; }

/* Botón de filtros: solo en móvil, con el mapa abierto */
.tur-filtros-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 8px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f5; color: #6b7280; font-size: 17px; cursor: pointer; }
html[data-theme="dark"] .tur-filtros-btn { background: var(--tur-surface-2); color: var(--tur-text-muted); }
.tur-filtros-btn[aria-expanded="true"] { background: #f91942; color: #fff; }
.tur-filtros-btn:focus-visible { outline: 2px solid #f91942; outline-offset: 2px; }
@media (max-width: 767px) {
	.tur-vista-barra.fijo { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 12px; }
	.tur-vista-barra.fijo .tur-barra-switch { order: -1; }
	.tur-vista-barra.fijo .tur-vista-switch-wrap { justify-content: flex-start; padding-right: 64px; }
	.tur-vista-barra.fijo .tur-filtros-btn { display: inline-flex; }
	.tur-vista-barra.fijo:not(.filtros-abiertos) .tur-barra-buscador { display: none; }
}

.tur-mapa-loc { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1b1f27; font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.tur-mapa-loc:disabled { opacity: .6; }
.tur-mapa-loc:focus-visible { outline: 2px solid #f91942; outline-offset: 2px; }
html[data-theme="dark"] .tur-mapa-loc { background: var(--tur-surface-2); color: var(--tur-text); }
.tur-mapa-vacio { position: absolute; left: 50%; bottom: 24px; z-index: 5; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: #fff; color: #1b1f27; font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.tur-mapa-vacio[hidden] { display: none; }
html[data-theme="dark"] .tur-mapa-vacio { background: var(--tur-surface-2); color: var(--tur-text); }

/* Categoría de ruta dentro del InfoWindow (mismos colores que .tur-catruta-N) */
.tur-iw-cat { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: 1px solid; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; line-height: 1.5; text-transform: uppercase; }
