.filtro {
    color: var(--color-tertiary);
    background: linear-gradient(to bottom, #f5f5f5, white);
    border-radius: 8px;
    padding: 24px;
}

.filtroCont {
    margin-bottom: 32px;
}

.filtro .fiesta-o-visita {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    /*padding: 16px;*/
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.filtro .fiesta-o-visita::after {
    content: "";
    position: absolute;
    display: block;
    left: 18px;
    bottom: -18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 18px 0 18px;
    border-color: white transparent;
    display: none;
}

.filtro .fiesta-o-visita label {
    display: flex;
    align-items: center;
}

.filtro .fiesta-o-visita label:not(:last-child) {
    margin-bottom: 8px;
}

.filtro .fiesta-o-visita label input {
    display: none;
}

.filtro .fiesta-o-visita label input ~ span {
    display: flex;
    align-items: center;
    background: #E7E7E7;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.filtro .fiesta-o-visita label input ~ span:before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: 2px solid;
    margin-right: 8px;
    font-size: 12px;
    line-height: 1;
}


.filtro .fiesta-o-visita label input:checked ~ span {
    background: #EF6C00;
    color: #fff;
}

.filtro .fiesta-o-visita label input:checked ~ span:before {
    content: "\f00c";
    font-weight: 200;
    font-family: 'Font Awesome 6 Pro';
    background: #fff;
    color: #EF6C00;
    border-color: #fff;
}

.filtro .filtroCont > .filters > .cont > div {
    margin-bottom: 12px;
    font-size: var(--font-size-secondary);
}

.filtro .filtroCont > .filters > .cont.bloq2 > div:last-child {
    margin-bottom: 0;
}

.filtro .filtroCont span input[type="text"] { /* border: 2px solid #f2d3c0; */
    padding-left: 40px;
    outline: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 0;
}

.filtro .filtroCont span input[type="text"]::placeholder {
    font-style: italic;
    opacity: .8;
}

.sectionBuscador .filtro .filtroCont span input[type="text"] {
    border: solid 2px #e7e7e7;
    box-shadow: none;
    height: 48px;
}

.filtro .filtroCont > .filters .filter-categories {
    overflow: hidden;
    position: relative;
}
.filtro .filtroCont > .filters .filter-categories:first-child{
    margin-top:32px;
}

.filtro .filtroCont > .filters .filter-categories:not(.open) {
}

.filtro .filtroCont > .filters .filter-categories:not(.open):before {
    content: "";
    display: block;
    width: 100%;
    height: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    /* @alternate */
    background: -moz-linear-gradient(top, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 1) 100%);
    /* @alternate */
    background: -webkit-linear-gradient(top, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 1) 100%);
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 1) 100%);
}

.filtro .title {
    font-weight: 600;
    text-transform: uppercase;
    color: #666666;
    font-family: var(--font-family-tertiary);
    margin-bottom: 8px;
    font-size: 18px;
}

.filtro .filtroCont .filter-keyword label > span,
.filtro .filtroCont .filter-range label > span,
.filtro .filtroCont .filter-location > label > span {
    display: block;
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    margin-bottom: 8px;
    position: relative;
}

.filtro .filtroCont .filter-location {
    position: relative;
}

.filtro .filtroCont #ayto_results {
    background: white;
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.filtro .filtroCont #ayto_results > div {
    cursor: pointer;
    margin: 2px;
    order: 1;
}

.filtro .filtroCont #ayto_results > div:hover {
    text-decoration: underline;
}

.filtro .filtroCont #ayto_results > div[data-isult="true"]:before {
    content: '\f1da';
    font-family: var(--fa);
    font-weight: 900;
    opacity: 0.4;
    margin-right: 6px;
    color: var(--color-orange1);
}

.filtro .filtroCont #ayto_results > div[data-isult="true"], .filtro .filtroCont #ayto_results > div[data-istop="true"] {
    order: 2;
}

.filtro .filtroCont #ayto_results > div[data-istop="true"]:before {
    content: '\f005';
    font-family: var(--fa);
    font-weight: 900;
    opacity: 0.4;
    margin-right: 6px;
    color: var(--color-orange1);
}

.filter-location .location-results {
    background: white;
    padding: 8px;
    display: none;
}
.filter-location .location-results:has(div) {
    display: block;
}

.filter-location .location-results > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: solid 1px #f0f0f0;
    padding: 4px 0;
}

.filter-location .location-results > div .name {
    font-weight: bold;
    display: block;
    color: #666;
    padding-left: 4px;
}

.filter-location .location-results > div:last-child {
    border: none;
}

.filter-location .location-results > div .y-cercanas {
    width: 100%;
    font-size: 90%;
}

.filter-location .location-results > div .y-cercanas label {
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-left: 24px;
}

.filter-location .location-results .delete {
    cursor: pointer;
    padding: 0 12px;
    font-size: 12px;
}

.filter-location .location-selector {
    margin-top: 18px;
    background: white;
    border-radius: 8px;
    padding: 18px;
}

.filter-location .location-selector label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    line-height: 120%;
}

.filter-location .location-selector label.top span:after {
    content: "";
    background-image: url(../img/increasealt.svg);
    margin-left: 4px;
    color: var(--color-orange1);
    font-weight: 900;
    opacity: 0.8;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: bottom;
}

.filter-location .location-selector label.top span {
    /* width: 100%; */
    display: inline-flex;
}

.filter-location .location-selector label:last-child {
    margin-bottom: 0;
}

.filter-location .location-selector label.y-cercanas {
    margin-left: 12px;
}

.filter-location .location-selector .location:not(:last-child) {
    margin-bottom: 12px;
}

.filter-location .location-selector .location > p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 3px;
    border-bottom: solid 1px #e7e7e7;
    cursor: pointer;
}

.filter-location .location-selector .location > p::after {
    font-family: var(--fa);
    content: "\f078";
}

.filter-location .location-selector .location.opened p::after {
    content: "\f077";
}

.filter-location .location-selector .location .list {
    display: none;
    background: #f5f5f5;
    padding: 12px;
    max-height: 140px;
    overflow: auto;
}

.filter-location .location-selector .location.opened .list {
    display: block;
}

.filter-bottom {
    margin: 32px 0;
    padding: 0 0 24px;
    border-bottom: solid 1px #cfcfcf;
}

.filter-top {
    margin-top: 32px;
    padding: 24px 0;
    border-top: solid 1px #cfcfcf;
    border-bottom: solid 1px #cfcfcf;
}

.filter-top label {
    display: flex;
    align-items: center;
}

.filter-top > label span {
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    color: var(--color-orange1);
}

.filter-top .top-list {
    margin: 12px 0 0 20px;
}

.filter-top .top-list label:not(:last-child) {
    margin-bottom: 8px;
}

.filter-categories > p:not(.todas):not(.ninguna) {
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    color: var(--color-orange1);
}

.filter-categories > p span.clean {
    cursor: pointer;
    padding: 0 8px;
    color: #999;
}

.filter-categories label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.filter-categories label.top:after {
    content: "";
    background-image: url(../img/increasealt.svg);
    margin-left: 4px;
    color: var(--color-orange1);
    font-weight: 900;
    opacity: 0.8;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.filter-categories .todas,
.filter-categories .ninguna {
    margin-top: 8px;
    text-decoration: underline;
    cursor: pointer;
    /* position: absolute; */
    bottom: 0;
    right: 0;
    position: relative;
    text-align: left !important;
}

.filter-categories .ninguna {
    display: none;
}

.filter-categories .all-categories {
    display: none;
}

.filter-categories .all-categories.visible {
    display: block;
}

.filtro button {
    width: 100%;
    min-height: 44px;
    background: #ef6c00;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 12px;
    line-height:120%;
    margin: 8px 0 0 0;
}

.filtro button[disabled] {
    background: #ffd8be;
}

.filtro button#emptyFilter {
    color: var(--color-orange1);
    background: #fff;
}

.filtro button.fixed {
    position: fixed;
    bottom: 8px;
    box-shadow: 0 0 10px 8px #f0f0f0;
    max-width: 278px;
}

.filtro.relative {
    position: relative;
}

.filtro.fixed {
    position: fixed;
    max-width: 320px;
    bottom: 0;
    top: unset !important;
}

@media screen and (max-width: 1023px) {
    .filtro button.fixed {
        position: static;
        box-shadow: 0;
        max-width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .filtro .fiesta-o-visita label {
        width: 100%;
    }

    .sectionBuscador .filtro .fiesta-o-visita label:not(:last-child) {
        margin-right: 0!important;
    }

    .filtro .fiesta-o-visita label input ~ span {
        width: 100%;
        justify-content: center;
    }
}
