/* START: Select filters */
.iaz-finder-filter {
    padding: 3px 0;
    background-color: var(--wp--preset--color--tertiary);
}

.iaz-finder-filter > div > label {
    display: block;
}

.iaz-finder-filter-first-line {
    display: grid;
    padding: 10px;
    grid-gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background-color: var(--wp--preset--color--tertiary);
}

.iaz-finder-filter-first-line label {
    font-size: 1.1rem;
}

.iaz-finder-filter-first-line select {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .iaz-finder-filter-first-line {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* Increase the font size of the labels on mobile. */
    .iaz-finder-filter-first-line label {
        font-size: 1.2rem;
    }

    .iaz-finder-filter-first-line select {
        font-size: 1.2rem;
    }
}

.iaz-finder-filter select {
    width: 100%;
}

/* END: Select filters */

/* START: Must-have checkboxes */
.iaz-finder-must-have-wrapper {
    margin: 15px 10px;
}

.iaz-finder-must-have-spacer {
    margin: 10px 0;
}

.iaz-finder-must-have-label {
    margin-bottom: 10px;
}

.iaz-finder-must-have-wrapper label {
    font-size: 1.1rem;
}

.iaz-finder-must-have-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    position: relative;
    vertical-align: middle;
    bottom: 1px;
}

@media screen and (max-width: 768px) {
    /* Give each checkbox its own line on mobile. */
    .iaz-finder-must-have-wrapper label {
        display: block;
    }

    /* Add some space between checkboxes on mobile. */
    .iaz-finder-must-have-wrapper label + label {
        margin-top: 12px;
    }

    /* Increase the font size of the labels on mobile. */
    .iaz-finder-must-have-wrapper label {
        font-size: 1.2rem;
    }
}

/* END: Must-have checkboxes */

/* START: Results/projects grid */
.iaz-finder-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    grid-gap: 20px;
}

.iaz-finder-projects.iaz-finder-no-projects {
    grid-template-columns: 1fr;
}

.iaz-finder-project {
    margin: 10px auto;
    display: grid;
    grid-template-rows: max-content;
    background-color: #fff;
    -webkit-box-shadow: 0 4px 9px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

.iaz-finder-project-content {
    padding: 10px 30px 30px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

h3.iaz-finder-project-headline {
    clear: none;
    word-break: break-word;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.iaz-finder-project-image {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    text-align: center;
}

.iaz-finder-project-image img {
    max-width: 100%;
    /* transition: transform 0.5s, filter 0.5s; */
    transition: transform 0.5s;
    transition-delay: 0.1s;
}

.iaz-finder-project img:hover {
    transform: rotate(5deg) scale(1.25);
    /* filter: blur(2px); */
}

/* END: Results/projects grid */

.iaz-finder-pagination {
    grid-column: 1/3;
}

a.iaz-finder-pagination-page:not(.current) {
    cursor: pointer;
}

a.iaz-finder-pagination-page.current {
    pointer-events: none;
    text-decoration: none;
}

.iaz-finder-must-have-label, .iaz-finder-countries-wrapper label, .iaz-finder-types-of-travel-wrapper label {
    font-weight: bold;
}

.iaz-finder-project-button {
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: inline-block;
    padding: 10px 20px;
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
    margin-top: 10px;
    background-color: #000;
}

.iaz-finder-project-button:hover {
    background-color: #444;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

/*START spinner*/
.iaz-finder-wrapper {
    position: relative;
}

.iaz-finder-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgb(195 195 195 / 12%);
}

.iaz-finder-spinner {
    display: inline-block;
    width: 80px;
    height: 80px;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.iaz-finder-spinner div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--wp--preset--color--primary);
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
}

.iaz-finder-spinner div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
}

.iaz-finder-spinner div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
}

.iaz-finder-spinner div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
}

.iaz-finder-spinner div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
}

.iaz-finder-spinner div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
}

.iaz-finder-spinner div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
}

.iaz-finder-spinner div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
}

.iaz-finder-spinner div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
}

.iaz-finder-spinner div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
}

.iaz-finder-spinner div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
}

.iaz-finder-spinner div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
}

.iaz-finder-spinner div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
}

@keyframes lds-default {
    0%, 20%, 80%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

/*END spinner*/

/*START finder-left.php*/
@media screen and (min-width: 400px) {
    .iaz-finder-filter-left .iaz-finder {
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-column-gap: 10px;
    }

    .iaz-finder-filter-left .iaz-finder-filter > div {
        padding: 10px 0;
    }
}

.iaz-finder-filter-left .iaz-finder-filter > * {
    display: block;
}

.iaz-finder-filter-left .iaz-finder-projects {
    grid-template-columns: 1fr
}

.iaz-finder-filter-left .iaz-finder-project {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0 10px;
}

.iaz-finder-filter-left .iaz-finder-project-headline, .iaz-finder-filter-left .iaz-finder-project-description, .iaz-finder-filter-left .iaz-finder-project-button {
    grid-column: 2;
    margin: 0;
}

.iaz-finder-filter-left .iaz-finder-project-image {
    grid-row: 1/4;
}

.iaz-finder-filter-left .iaz-finder-project img {
    max-width: 100%;
}

.iaz-finder-filter-left .iaz-finder-filter {
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .iaz-finder-filter-left .iaz-finder-project img {
        float: unset;
        max-width: 100%;
        margin-right: 0;
    }

    .iaz-finder-filter-left .iaz-finder-project {
        display: block;
    }
}

.iaz-finder-must-haves-notice {
    display: block;
}

.iaz-finder-filter-left .iaz-finder-filter-first-line > div:nth-child(1) {
    padding-bottom: 20px;
}

/*END finder-left.php*/

.iaz-finder-filter-top .iaz-finder-must-have-wrapper {
    display: block;
}

.iaz-finder-filter-top .iaz-finder-filter-first-line {
    padding-bottom: 10px;
}

.iaz-finder-filter-top .iaz-finder-must-have-wrapper label {
    padding-right: 10px;
}

.iaz-finder-must-have-wrapper > label {
    white-space: nowrap;
}

.iaz-finder-must-have-wrapper > label small {
    white-space: normal;
}
