/* Módulo mapa: mapa sin conexión, marcadores grandes y panel "Volver al hotel". */
.fdm-mapa-caja { position: relative; background: #ebe8e3; }
.fdm-mapa { width: 100%; height: 60vh; min-height: 320px; }
.fdm-mapa-aviso {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: #ebe8e3; color: var(--texto); font-weight: 700; overflow: auto;
}
.fdm-mapa-aviso[hidden] { display: none; }
.fdm-mapa-aviso p { max-width: 30em; margin: 0 0 10px; }
.fdm-mapa-aviso .boton { max-width: 26em; }
.fdm-atribucion { margin: 0; padding: 4px 16px 8px; font-size: .75rem; color: var(--texto-suave); text-align: right; }

.fdm-mapa-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fdm-mapa-botones .boton { flex: 1 1 150px; margin: 4px 0; }
.fdm-mapa-msg { background: #e8f0fe; border-left: 8px solid #0b57d0; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.fdm-mapa-msg.alerta { background: var(--alerta-fondo); border-left-color: var(--alerta-borde); }

/* Marcadores */
.fdm-marca {
  display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0;
  cursor: pointer; font-family: var(--sans);
}
.fdm-marca-ico, .fdm-lista-item .fdm-marca-ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  background: #1a56c4; color: #fff; font-weight: 900; font-size: 17px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.fdm-m-comer .fdm-marca-ico, .fdm-marca-ico.fdm-m-comer { background: #c2410c; }
.fdm-m-ver .fdm-marca-ico, .fdm-marca-ico.fdm-m-ver { background: #1a56c4; }
.fdm-m-aeropuerto .fdm-marca-ico, .fdm-marca-ico.fdm-m-aeropuerto { background: #3b3b3b; font-size: 19px; }
.fdm-m-muelle .fdm-marca-ico, .fdm-marca-ico.fdm-m-muelle { background: #0e6f74; font-size: 19px; }
.fdm-m-parada .fdm-marca-ico, .fdm-marca-ico.fdm-m-parada { background: #0a0a0a; color: var(--amarillo); }
.fdm-m-hotel .fdm-marca-ico, .fdm-marca-ico.fdm-m-hotel { background: var(--amarillo); border-color: #000; font-size: 22px; }
.fdm-marca.fdm-m-hotel .fdm-marca-ico { width: 54px; height: 54px; font-size: 28px; border-width: 4px; }
.fdm-marca.fdm-aprox .fdm-marca-ico { border-style: dashed; }
.fdm-marca-txt {
  margin-top: 2px; background: #000; color: #fff; font-weight: 900; font-size: 14px;
  padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.fdm-m-hotel .fdm-marca-txt { background: var(--amarillo); color: #000; border: 2px solid #000; }

.maplibregl-marker.fdm-m-hotel, .maplibregl-marker.fdm-m-muelle { z-index: 2; }

/* Vosotros: punto azul */
.maplibregl-marker.fdm-yo { z-index: 4; }
.fdm-yo { width: 26px; height: 26px; border-radius: 50%; background: rgba(11,87,208,.25); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fdm-yo span { width: 18px; height: 18px; border-radius: 50%; background: #0b57d0; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(11,87,208,.5); animation: fdm-latido 2s ease-out infinite; }
@keyframes fdm-latido { 0% { box-shadow: 0 0 0 0 rgba(11,87,208,.6); } 100% { box-shadow: 0 0 0 18px rgba(11,87,208,0); } }

/* Ventanitas de los marcadores */
.maplibregl-popup-content { border-radius: 14px; padding: 14px 16px 10px; font-size: 1rem; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.maplibregl-popup-close-button { font-size: 28px; width: 44px; height: 44px; }
.fdm-pop strong { display: block; font-size: 1.05rem; line-height: 1.25; margin: 2px 36px 6px 0; }
.fdm-pop p { margin: 4px 0; font-size: .92rem; }
.fdm-pop .boton { min-height: 50px; font-size: .95rem; padding: 8px 12px; margin: 6px 0; }
.fdm-pop-gm { display: block; font-size: .85rem; margin: 6px 0 4px; }
.maplibregl-ctrl-group button { width: 44px; height: 44px; }
.maplibregl-ctrl-attrib { font-size: 12px; }
.maplibregl-ctrl-scale { font-size: 12px; }

/* Lista de sitios */
.fdm-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.fdm-lista-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left;
  background: var(--blanco); border: 2px solid var(--borde); border-radius: 14px; padding: 8px 12px;
  font-size: 1rem; font-weight: 700; color: var(--texto); cursor: pointer; font-family: var(--sans);
}
.fdm-lista-txt { display: flex; flex-direction: column; min-width: 0; }
.fdm-lista-txt small { font-size: .75rem; color: var(--texto-suave); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Otros mapas */
.fdm-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fdm-selector a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 6px 16px; border-radius: 999px;
  border: 2px solid var(--negro); color: var(--negro); text-decoration: none; font-weight: 800; font-size: .95rem;
}
.fdm-selector a.activo { background: var(--negro); color: #fff; }

/* Volver al hotel */
.fdm-volver { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 3px solid #0b57d0; }
.fdm-volver[hidden] { display: none; }
.fdm-flecha { flex: none; width: 84px; height: 84px; transition: transform .4s ease; }
.fdm-volver-txt { flex: 1 1 160px; }
.fdm-volver-txt p { margin: 2px 0; }
.fdm-dist { font-size: 1.9rem; font-weight: 900; font-family: var(--serif); line-height: 1.1; }
.fdm-volver .boton { flex: 1 1 100%; }

/* Guardar mapas */
.fdm-guardar { margin-top: 8px; }
.fdm-ok { font-weight: 800; color: var(--ok); }
.fdm-barra { width: 100%; max-width: 26em; height: 18px; background: #d9d5cc; border-radius: 999px; overflow: hidden; margin: 8px auto; }
.fdm-barra-relleno { height: 100%; width: 0; background: var(--ok); transition: width .3s ease; }
.fdm-barra-texto { font-weight: 700; margin: 4px 0; }
.boton[disabled] { opacity: .55; }

.fdm-mapa-inicio { min-height: 52px; font-size: .95rem; }

/* Sin internet: direcciones en texto en lugar del mapa */
.fdm-dirs { width: 100%; max-width: 26em; text-align: left; }
.fdm-dir { background: var(--blanco); border: 2px solid var(--borde); border-radius: 14px; padding: 10px 14px; margin: 8px 0 4px; font-weight: 600; }
.fdm-dir strong, .fdm-dir span { display: block; }
.fdm-dir strong { font-size: 1.05rem; }
.fdm-mapa-caja.fdm-sin-mapa .fdm-mapa { display: none; }
.fdm-mapa-caja.fdm-sin-mapa .fdm-mapa-aviso { position: static; justify-content: flex-start; overflow: visible; }
