/*RESPONSIVE STYLESHEET*/

@media only screen and (min-width: 1500px) and (orientation:portrait) {

    html {
        font-size: 35px;
    }

}

@media only screen and (min-width: 2500px) {

    html {
        font-size: 25px;
    }

}

@media only screen and (min-width: 3300px) {

    html {
        font-size: 35px;
    }

}

@media only screen and (max-width: 1600px) {

    .brand_container h4 {
        font-size: 1rem;
    }

    .listings_wraper {
        width: 100%;
    }

    .form-spacing .form-container {
        width: 100%;
    }

}

@media only screen and (orientation: portrait) {
    .form-container-non-main {
        flex-direction: column;
    }

    .form-container {
        width: 70%;
    }

    .splash-container {
        flex-direction: column;
    }

    .splash form {
        width: 100%;
    }

    .list_result_wraper {
        width: 100%;
    }

}


@media only screen and (max-width: 1300px) and (orientation: portrait) {
    html {
        font-size: 22px;
    }
}



@media only screen and (max-width: 1300px) {

    /* for main */

    .splash h1 {
        font-size: 2rem;
    }

    nav h2 {
        font-size: 1em;
    }

    nav ul li {
        font-size: 0.9em;
    }

    nav .logo a img {
        max-height: 2rem;
    }


    main {
        padding-bottom: 5rem;
    }

    /* for search result */

    .listings_wraper {
        width: 100%;
    }

    .list_result_wraper {
        width: 100%;
    }

    .list_result_wraper h4 {
        font-size: 1rem;
    }

    /* for listing display page */

    .display_listing {
        width: 100%;
    }
}


@media only screen and (max-width: 940px) {

    main {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 8rem;
    }

    .splash-container {
        gap: 0.5rem;
        justify-content: center;
    }

    .filler {
        gap: 0.5rem;
        justify-content: center;
    }

    /* for search result */
    .listings_wraper {
        padding-bottom: 4.5rem;
    }

    /* for listing display page */ 
    .details_container{
        --cols: 1;
    }

    .title_container h1 {
        font-size: 1.5rem;
        text-align: left;
    }

    /* for terms, privacy and contact page */

    .article_container {
        padding-bottom: 7rem;
    }

    article {
        width: 100%;
    }

    .article_container h3 {
        font-size: 1.5rem;
    }

    article h4 {
        margin-top: 1rem;
    }

    .int_wrapper {
        width: 75%;
    }

}

@media only screen and (max-width: 940px) and (orientation: landscape) {

    .form-container form {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0.5rem;
        padding: 0;
    }

    .search_name {
        grid-column: 1 / span 6;
        grid-row: 1 / span 1;
    }

    .select_cat {
        grid-column: 7 / span 6;
        grid-row: 1 / span 1;
    }

    .search_local {
        grid-column: 1 / span 8;
        grid-row: 2 / span 1;
    }

    .search_submit {
        grid-column: 9 / span 4;
        grid-row: 2 / span 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}


@media only screen and (max-width: 700px) {

    .filler h1 {
        font-size: 1.5rem;
    }

    nav .links {
        display: none;
    }

    nav {
        justify-content: flex-start;
    }

    .logo a {
        display: flex;
        gap: 0;
    }

    .logo a h2 {
        padding: 0;
        margin-left: -0.5rem;
    }

    .logo a img {
        margin: 0;
        padding: 0;
        height: 1rem;
    }

    .splash {
        padding-inline: 0;
        padding-top: 2rem;
        padding-bottom: 5rem;
    }

    .splash form {
        gap: 1rem;
    }

    .scroller h3 {
        font-size: 1.25rem;
    }

    .scroller_text p {
        font-size: 0.85rem;
    }

    .scroller-container, .scroller {
        height: 90px;
    }

    .scroller a .material-symbols-outlined {
        font-size: 1.5rem;
        bottom: 0;
    }

    .form-container {
        width: 100%;
        border-radius: 0;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .form-spacing .form-container {
        padding: 0;
    }


    /* for search results*/

    .cats_location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .sub_cat::before {
        border: none;
    }

    /* for listing display page */ 
    
    #listing {
        padding-bottom: 10rem;
    }
    
    .image_container {
        --img_cols: 4;
    }

    .display_listing .listcat {
        flex-direction: column;
        align-items: flex-start;
    }

    .listcat .material-symbols-outlined {
        display: none;
    }

    /* for contact page */
    
    .int_wrapper {
        width: 100%;
        padding: 1rem;
    }

}

@media only screen and (max-height: 900px) and (orientation: landscape) {

    .filler {
        justify-content: center;
    }

    .scroller h3 {
        font-size: 1.25rem;
    }

    .scroller_text p {
        font-size: 0.85rem;
    }

    .scroller a .material-symbols-outlined {
        font-size: 1.5rem;
        bottom: 0;
    }
    
}

@media only screen and (max-height: 700px) and (orientation: landscape) {

    .brand_container {
        height: 10rem;
    }

    .filler h1 {
        font-size: 1.5rem;
    }

    .splash-container {
        flex-direction: column;
    }

    .form-container form {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0.5rem;
        padding: 0;
    }

    .search_name {
        grid-column: 1 / span 6;
        grid-row: 1 / span 1;
    }

    .select_cat {
        grid-column: 7 / span 6;
        grid-row: 1 / span 1;
    }

    .search_local {
        grid-column: 1 / span 8;
        grid-row: 2 / span 1;
    }

    .search_submit {
        grid-column: 9 / span 4;
        grid-row: 2 / span 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}


@media only screen and (max-height: 550px) and (orientation: landscape) {

    .splash_text {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
    }

    .splash-container {
        gap: 0.5rem;
    }

    .filler {
        gap: 0.5rem;
    }

    nav {
        padding: 0.25rem 0.5rem;
    }

    footer {
        padding: 0.25rem 0.5rem;
    }

    footer p {
        font-size: 0.4rem;
    }
}



@media only screen and (max-width: 550px) {

    main {
        padding-bottom: 8rem;
    }

    html {
        font-size: 18px;
    }
    

    .splash h1 {
        font-size: 1.75rem;
    }

    
    /* for search results */

    .results_bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        align-self: flex-end;
    }

    .listings_wraper {
        padding-bottom: 9rem;
    }

    /* for listing display page */

    .image_container {
        --img_cols: 3;
    }

    /* for terms, privacy and contact page */

    .article_container {
        padding-bottom: 9rem;
    }

    .article_container h3 {
        font-size: 1.2rem;
    }

    .withus-overlay {
        padding-bottom: 9rem;
    }

}

@media only screen and (max-height: 400px) and (orientation: landscape) {
    .splash-container {
        gap: 0.25rem;
    }

    .scroller-container, .scroller {
        height: 60px;
    }

    .scroller h3 {
        font-size: 1rem;
    }

    .scroller_text p {
        font-size: 0.65rem;
    }

    .scroller a .material-symbols-outlined {
        font-size: 1.1rem;
        bottom: 0;
    }

}

@media only screen and (max-width: 400px) and (max-height: 800px) {


    .scroller h3 {
        font-size: 1rem;
    }

    .scroller_text p {
        font-size: 0.65rem;
    }

    .scroller-container, .scroller {
        height: 60px;
        top: -1rem;
    }

    .scroller a .material-symbols-outlined {
        font-size: 1.2rem;
        bottom: 0;
    }

} 