.container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-top: 70px;
    padding: 20px;
    min-height: 70vh;
}

.filters {
    width: 250px;
    max-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.close-filters{
    display: none;
}
.filters h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
#sort{
    width: auto;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
}


input[type="range"]::-moz-range-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

input[type="range"]::-moz-range-progress {
    background-color: var(--JD-Green);
    height: 10px;
    border-radius: 5px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--JD-Green);
    cursor: pointer;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 10px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background-color: var(--JD-Green);
    border-radius: 5px;
}

input[type="range"]::-ms-fill-upper {
    background-color: #ddd;
    border-radius: 5px;
}

input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--JD-Green);
    cursor: pointer;
}

/* WebKit (Chrome, Safari) */
input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--JD-Green) var(--range-progress, 100%), #ddd var(--range-progress, 100%));
    border-radius: 5px;
    border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--JD-Green) var(--range-progress, 100%), #ddd var(--range-progress, 100%));
    border-radius: 5px;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--JD-Green);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: none;
    position: relative;
    z-index: 1;
}


.range-slider span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.listings {
    flex-grow: 1;
    margin-left: 20px;
}

.sort {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.sort label {
    margin-right: 10px;
}

.equipo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.equipo-item {
    text-decoration: none;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.equipo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.equipo-item h3{
    color: var(--JD-Green);
}
.equipo-details {
    padding: 15px;
}

.equipo-details h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.equipo-details p {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
}

.equipo-details .estado {
    font-weight: bold;
    color: var(--JD-Green);
}

.location {
    font-style: italic;
}
.filter-toggle{
    display: none;
}
#reset-filter{
    background-color: var(--JD-Green);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        overflow-y: auto;
    }

    .filters.active {
        display: block;
        z-index: 1002;
        border-radius: 0px;
    }

    .listings {
        margin-left: 0;
        margin-top: 20px;
    }

    .equipo-list {
        grid-template-columns: 1fr;
    }

    .filter-toggle {
        display: block;
        position: fixed;
        bottom: 15px;
        left: 20px;
        background-color: var(--JD-Green);
        color: white;
        padding: 10px 20px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1001;
    }

    /* Botón para cerrar filtros dentro del modal */
    .close-filters {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--JD-Green);
    }
}