/*
 * Archivo: 18015.css
 * Guardado: 02 Jul 2025 | 11:54:09
 */

/* 
 * Mapa turístico (1) post-mapa-ubicacion.php
 * Mapa turístico (2) - Estilos
 * Mapa turístico (3) - 
 */ 

/* --- Mapa turístico Leaflet + Modal Expandible + Columna Info --- */
.expand-map-btn {
  position: absolute;
  top: 13px; right: 13px;
  z-index: 10001;
  background: #fff;
  border-radius: 50%;
  border: none;
  width: 40px; height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  transition: box-shadow .13s;
  outline: none;
  padding-top: 5px;
}
/* Oculta el botón expandir si modal abierto */
#mapa-turistico .expand-map-btn.hide, 
#mapa-turistico.modal-abierto .expand-map-btn {
  display: none !important;
}
.expand-map-btn:hover { 
    background: #f4f4f4;
}

.modal-bg {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
}
.modal-bg.active { display: flex; }
.modal-map {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 90vw; height: 90vh;
  max-width: 1300px; max-height: 98vh;
  position: relative;
  display: flex;
  box-shadow: 0 12px 38px rgba(0,0,0,0.20);
}
.close-modal-btn {
  position: absolute; top: 10px; right: 10px;
  z-index: 10200;
  background: #fff; border: none; border-radius: 50%;
  width: 38px; height: 38px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-map-content {
    display: flex;
    width: 100%; 
    height: 100%;
}
#mapa-turistico-modal {
  flex: 2 1 0%;
  height: 100%;
  min-height: 300px;
  min-width: 0;
  background: #eee;
}
.modal-map-info {
  max-width: 370px;
  min-width: 260px;
  overflow-y: auto; 
  background: #faf9f7;
  border-left: 1px solid #eee;
  padding: 25px 20px ;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%; 
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .modal-map-content { flex-direction: column; }
  .modal-map-info { border-left: none; border-top: 1px solid #eee; max-width: none; min-width: 0; }
}
.modal-map-info-titulo {
    font-size: 1.22em;
    font-weight: 600;
    line-height: 1.3;
    max-width: 255px;
}
.modal-foto {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ver-gmaps {
    display: inline-block;
    padding: 10px;
    font-weight: 500;
}
.popup-datos {
    display: inline-flex;
    gap: 5px;
    font-size: .95em;
    margin-bottom: 5px;
    justify-content: center;
    flex-wrap: wrap;
}
.popup-estrella {
    color: var(--amarillo);
    font-size: 21px;
}
.popup-datos span {
    margin-right: 2px;
}
.modal-map-info .popup-datos {
    justify-content: flex-start;
}
.modal-map-info img {
  border-radius: 10px;
  max-width: 170px;
  max-height: 150px;
}
/* Responsive móvil */
@media (max-width: 900px) {
  .modal-map-content { flex-direction: column; }
  .modal-map-info { border-left: none; border-top: 1px solid #eee; max-width: none; padding-top: 20px; }
  #mapa-turistico-modal { min-height: 240px; }
}
@media (max-width: 700px) {
  .modal-map { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .close-modal-btn { top: 8px; right: 8px; }
}
/* Leaflet Popups */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    width: 240px;
}
.leaflet-popup-content {
    margin: 11px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.popup-content-img {
    border-radius: 10px;
    max-width: 180px;
    max-height: 150px;
}
#mapa-turistico-modal {
  flex: 2 1 0%;
  height: 100%;
  min-height: 300px;
  min-width: 0;
  background: #eee;
}
/* --- --- --- Filtros --- --- --- */
.modal-map-filtros {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filtro-categoria-btn {
  background: #f4f4f4;
  border: none;
  padding: 7px 14px;
  border-radius: 15px;
  font-size: 0.98em;
  cursor: pointer;
  transition: background .12s, color .12s;
  color: #333;
  outline: none;
  font-weight: 500;
}
.filtro-categoria-btn.active,
.filtro-categoria-btn:hover {
  background: #1a73e8;
  color: #fff;
}