/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

/* Contenedor de las propiedades */
#properties-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Estilos para cada propiedad */
.property {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.property:hover {
    transform: scale(1.05);
}

.property img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.property h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0 5px;
}

.property .price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin: 5px 0;
}

.property p {
    color: #555;
    font-size: 14px;
    margin: 5px 0;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    font-size: 16px;
    margin: 5px 0;
}

.modal-content .price {
    font-size: 22px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: #e74c3c;
}

/* Estilos para el filtro */
#filter-bar {
    background-color: #fff;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en múltiples líneas si es necesario */
    gap: 10px; /* Espacio entre los elementos */
}

/* Estilo para los campos de filtro */
#filter-bar select,
#filter-bar input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1; /* Cada elemento ocupa el mismo espacio disponible */
    min-width: 150px; /* Ancho mínimo para los campos en pantallas grandes */
}

#filter-bar button {
    padding: 10px 15px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Estilos para el botón de menú en pantallas pequeñas */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

#filter-bar button:hover {
    background-color: #219653;
}


/* Para pantallas pequeñas */
@media (max-width: 1024px) {
    /* Ocultar los filtros por defecto en pantallas pequeñas */
    #filter-options {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 15px;
    }

    /* Mostrar el menú solo cuando está desplegado */
    #filter-options.show {
        display: flex; /* Mostrar opciones cuando el menú está activo */
    }
    .hamburger-menu {
        display: block;
        font-size: 28px; /* Aumenta el tamaño del icono "hamburguesa" */
        padding: 12px;
    }

    #filter-options.show {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 15px;
    }

    /* Aumentar el tamaño de los campos de filtro y los botones */
    #filter-bar select,
    #filter-bar input,
    #filter-bar button {
        height: 120px; /* Doble de altura */
        font-size: 18px; /* Tamaño de texto mayor para mejor visibilidad */
    }

    /* Ajustes específicos para el botón de filtro */
    #filter-bar button {
        font-size: 48px;
        padding: 15px;
        background-color: #27ae60;
    }

    /* Ajustes de propiedades en pantalla completa */
    #properties-container {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 50px;
    }

    .property {
        width: 100%;
        font-size: 20px; /* Tamaño de texto mayor para mejorar legibilidad */
        padding: 15px;
    }

    /* Ajuste del mapa a pantalla completa */
    #map, #map-container, #map-modal .modal-content {
        width: 100vw;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 5px;
        margin: 0;
    }

    /* Cambiar el tamaño del modal de propiedad al 95% en móviles */
    .modal-content {
        width: 95%;
        height: 95%;
        max-width: 95%;
        max-height: 95%;
    }


    /* Ajuste del tamaño de los botones dentro del modal */
    .modal-content button {
        font-size: 18px; /* Tamaño de texto mayor */
        padding: 12px 20px; /* Aumenta el padding para botones más grandes */
        margin: 10px 0; /* Espacio entre los botones */
    }

    /* Aumentar el tamaño de los títulos y textos */
    .modal-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .modal-content p {
        font-size: 18px;
        margin: 8px 0;
    }

    /* Ajustar el botón de cierre del modal */
    .modal .close {
        font-size: 28px; /* Tamaño mayor para facilidad de clic */
        top: 15px;
        right: 20px;
    }
    
}


.features-dropdown {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 50px; /* Ajusta según tu diseño */
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 2000;
}

.features-dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.features-dropdown li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    color: #333;
}


