/* Estilo para el encabezado del popup con posición absoluta */
.gm-style-iw-chr {
    position: absolute;
    font-size: 18px;
    top: 10px;
    right: 10px;
    font-weight: bold;
    color: #333;
    background-color: #f4f4f4;
    border-radius: 5px;
    margin: 0;
    text-align: center;
    z-index: 1000;
    border-radius: 500px;
}

/* Estilo general del popup */
.gm-style-iw {
    position: relative; /* Asegura que el popup tenga un contexto relativo para el encabezado absoluto */
    padding: 10px; /* Espacio dentro del popup */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

/* Estilo para el botón de cierre */
.gm-ui-hover-effect {
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gm-ui-hover-effect:hover {
    background-color: #FF5722;
    color: white;
}

.gm-ui-hover-effect:focus {
    outline: none;
}

/* Estilo para el filtro de categorías */
#category-filter-form {
    background-color: #ffffff;
    padding: 8px 20px;
    border-radius: 12px 12px 0px 0px;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    transition: all 0.3s ease;
    width: 100%;
}

#category-filter-form:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Estilo para el contenedor de los checkboxes */
#category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* Estilo para los labels de los checkboxes */
#category-filters label {
    font-size: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Estilo para los checkboxes personalizados */
#category-filters input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#category-filters input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

#category-filters input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Estilo para los labels al pasar el mouse por encima */
#category-filters label:hover {
    color: #000000;;
}

/* Estilo para el botón de enviar */
#category-filter-form button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#category-filter-form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

#category-filters label {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 5px;
}

#category-filters input[type="checkbox"] {
    margin-right: 8px;
}

#ubicaciones-listado {
    max-height: 250px;
    overflow-x: auto; /* Desplazamiento horizontal */
    display: flex;
    flex-direction: row; /* Alinear los items en una fila */
    
}

#ubicaciones-items {
    display: flex;
    scroll-behavior: smooth; /* Suaviza el desplazamiento */
    scroll-snap-type: x mandatory; 
    white-space: nowrap;
 
}

#ubicaciones-items li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #fff;
    flex-shrink: 0; /* Para que no se encojan */
    scroll-snap-align: start; 
}

#ubicaciones-items li img {
    width: 250px;
    height: 150px;
    margin-bottom: 10px;
    object-fit: cover;
}

#ubicaciones-items li strong {
    font-size: 14px;
    margin-bottom: 5px;
}

#ubicaciones-items li p {
    font-size: 12px;
    color: #555;
}
