/*RESPONSIVE STYLESHEET*/

@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;
    }

}


@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;
    }

    .search_name {
        grid-column: 1 / span 10;
        grid-row: 1;
    }
    
    .select_cat {
        grid-column: 1 / span 4;
        grid-row: 2;
    }
    
    .search_local {
        grid-column: 5 / span 4;
        grid-row: 2;
    }
    
    .search_submit {
        grid-column: 9 / span 2;
        grid-row: 2;
    }

    .one {
        grid-column: 1 / span 15;
        grid-row: 1;
    }
    
    .two {
        grid-column: 16 / span 15;
        grid-row: 1;
    }
    
    .three {
        grid-column: 1 / span 10;
        grid-row: 2;
    }
    
    .four {
        grid-column: 11 / span 10;
        grid-row: 2;
    }

    .five {
        grid-column: 21 / span 10;
        grid-row: 2;
    }

    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) {

    .splash form {
        width: 90%;
    }

    main {
        padding-left: 0;
        padding-right: 0;
    }

    .featured {
        gap: 0;
    }

    .card {
        border-radius: 0;
    }

    .one {
        grid-column: 1 / span 30;
        grid-row: 1;
    }
    
    .two {
        grid-column: 1 / span 15;
        grid-row: 2;
    }
    
    .three {
        grid-column: 16 / span 15;
        grid-row: 2;
    }
    
    .four {
        grid-column: 1 / span 15;
        grid-row: 3;
    }

    .five {
        grid-column: 16 / span 15;
        grid-row: 3;
    }

    /* for search result */
    .listings_wraper {
        padding-bottom: 4.5rem;
    }

    /* for listing display page */ 
    .details_container{
        --cols: 2;
    }

    .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: 700px) {

    nav {
        justify-content: center;
    }
    
    nav .links {
        display: none;
    }

    .logo a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .logo a h2 {
        margin-top: -1.3rem;
        padding: 0;
        font-size: 0.7rem;
    }

    .logo a img {
        margin: 0;
        padding: 0;
    }

    .filler {
        height: 60svh;
    }

    .filler h1 {
        font-size: 1.5rem;
    }

    .search_name {
        grid-column: 1 / span 10;
        grid-row: 1;
    }
    
    .select_cat {
        grid-column: 1 / span 10;
        grid-row: 2;
    }
    
    .search_local {
        grid-column: 1 / span 10;
        grid-row: 3;
    }
    
    .search_submit {
        grid-column: 1 / span 10;
        grid-row: 4;
    }

    .one {
        grid-column: 1 / span 30;
        grid-row: 1;
    }
    
    .two {
        grid-column: 1 / span 30;
        grid-row: 2;
    }
    
    .three {
        grid-column: 1 / span 30;
        grid-row: 3;
    }
    
    .four {
        grid-column: 1 / span 30;
        grid-row: 4;
    }

    .five {
        grid-column: 1 / span 30;
        grid-row: 5;
    }

    .main-h3 {
        padding-inline: 1rem;
        flex-direction: column;
    }

    /* for search results*/

    .cats_location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .sub_cat::before {
        border: none;
    }

    /* for listing display page */ 
    .details_container{
        --cols: 1;
    } 
    
    .image_container {
        --img_cols: 4;
    }

    /* for contact page */

    
    .int_wrapper {
        width: 100%;
        padding: 1rem;
    }

}

@media only screen and (max-height: 700px) and (orientation: landscape) {
    .filler {
        height: 75svh;
        gap: 0.5rem;
    }

    .brand_container {
        height: 10rem;
    }
}

@media only screen and (max-height: 400px) and (orientation: landscape) {
    .filler {
        height: 100svh;
    }

    .filler h1 {
        font-size: 1.5rem;
    }

}



@media only screen and (max-width: 550px) {

    main {
        padding-bottom: 8rem;
    }
    
    #listing {
        padding-bottom: 10rem;
    }

    .withus {
        padding-bottom: 6rem;
    }

    html {
        font-size: 18px;
    }

    /* for search results */

    .results_bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        align-self: flex-end;
    }

    .listings_wraper {
        padding-bottom: 7rem;
    }

    /* for listing display page */

    .display_listing {
        padding-bottom: 8rem;;
    }

    .image_container {
        --img_cols: 3;
    }

    /* for terms, privacy and contact page */

    .article_container {
        padding-bottom: 9rem;
    }

    .article_container h3 {
        font-size: 1.2rem;
    }

}

@media only screen and (max-width: 400px) and (max-height: 850px) {
    

    .splash h1 {
        font-size: 1.75rem;
    }

    .filler {
        height: 75svh;
    }
} 