/* Estilos del mapa interactivo*/

* { font-family: 'Work Sans', sans-serif !important; }

body { margin:0; overflow: hidden; }
#map { height:100vh; width: 100vw; }
.leaflet-container, .leaflet-popup-content, .leaflet-control-layers {
    font-family: 'Work Sans', sans-serif !important;
}

#sidebar{
  position:fixed;
  top:0;
  right:0;
  width:340px;
  height:100vh;
  background:white;
  padding:15px;
  box-shadow:-2px 0 8px rgba(0,0,0,0.15);
  overflow:auto;
  z-index:1100;
  transition: transform 0.3s ease-in-out;
}

#sidebar.hidden {
  transform: translateX(100%);
}

#btn-open-sidebar {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1050;
  background: white;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-weight: bold;
}

.btn-close-sidebar {
  float: right;
  background: #eee;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 18px;
}
.btn-close-sidebar:hover { background: #ddd; }

/* --- ESTILOS BUSCADOR --- */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.search-wrapper input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}
.search-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#filtro-municipio-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  gap: 6px;
  z-index: 900;
  overflow-x: auto;
  max-width: 60%;
}

.leaflet-control-layers-selector[type="radio"] {
    accent-color: #A4DE02; 
}

.leaflet-control-layers-selector[type="checkbox"] {
    accent-color: #A4DE02; 
}

.filtro-group{ margin-bottom:15px; border-bottom:1px solid #ddd; padding-bottom:10px; }
.filtro-header{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:bold; padding:8px 0; }
.filtro-header span{ transition:transform 0.3s ease; }
.filtro-content{ max-height:500px; overflow:hidden; transition:max-height 0.3s ease; }
.filtro-group.collapsed .filtro-content{ max-height:0; }
.filtro-group.collapsed .filtro-header span{ transform:rotate(-90deg); }

.chip-carousel{ 
    display:flex; 
    gap:8px; 
    overflow-x:auto; 
    padding:8px 0; 
    scrollbar-width:none; 
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.chip-carousel:active { cursor: grabbing; }
.chip-carousel::-webkit-scrollbar{ display:none; }
.chip{ padding:6px 14px; border-radius:8px; background:#eee; cursor:pointer; white-space:nowrap; font-size:13px; transition:0.2s; }
.chip:hover{ background:#E6F4CC; }
.chip.active{ background:#A4DE02; color:black; }

#sidecard{ margin-top:10px; font-size:14px; }
#sidecard ul{ padding-left:0; list-style:none; }
#sidecard li{ margin-bottom:4px; }
.card { border:1px solid #ddd; border-radius:8px; padding:10px; margin-bottom:10px; background:#f9f9f9; cursor:pointer; transition:0.2s; }
.card:hover { background:#eee; }

/* Estilo para que el enlace del punto de inter�s destaque */
.card a.poi-link, .detalle-poi-link { text-decoration: none; color: inherit; font-weight: bold; }
.card a.poi-link:hover, .detalle-poi-link:hover { color: #A4DE02; }

.detalle-img-container {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.chip-label {
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #555;
}


a
{
    text-decoration:underline;  
    color: black;
}


a:hover
{
    
    color: #A4DE02;;
}