/*RESPONSIVE STYLESHEET*/

@media only screen and (orientation: portrait) {

    :root {
        --h-pad: 2.5rem;
        --scroller-h: 120px;
    }

    .form-container-non-main {
        flex-direction: column;
    }

    .splash form {
        width: 100%;
    }

    .list_result_wraper {
        width: 100%;
    }

    .splash {
        grid-template-rows: repeat(42, 2rem); 
    }

    .splash form {
        padding: 0;
    }

    .splash .form-container {
        grid-column: 2 / span 10;
        grid-row: 20 / span 15;
        height: fit-content;
        width: 100%;
    }
    .splash-bg {
        grid-row: 1 / span 40;
    }

    .filler {
        grid-row: 1 / span 40;
    }

    .splash-text {
        grid-column: 2 / span 8;
        grid-row: 8 / auto;
    }

    .splash-search {
        width: 100%;
    }

    .form-container .main-search {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cat-cards-wrapper {
        width: 95%;
    }

}

@media only screen and (min-width: 1500px) and (orientation:portrait) {

    html {
        font-size: 30px;
    }

}

@media only screen and (max-width: 1800px) and (orientation:portrait) {

    .splash {
        grid-template-rows: repeat(33, 2rem); 
    }

    .splash .form-container {
        grid-column: 2 / span 10;
        grid-row: 15 / span 10;
    }
    .splash-bg {
        grid-row: 1 / span 30;
    }

    .filler {
        grid-row: 1 / span 30;
    }

    .splash-text {
        grid-column: 2 / span 8;
        grid-row: 8 / auto;
    }

}

@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) and (orientation:landscape) {

    :root {
        --h-pad: 2.5rem;
    }

    .brand_container h4 {
        font-size: 1rem;
    }

    .listings_wraper {
        width: 100%;
    }

    .splash .form-container {
        grid-column: 9 / span 3;
    }

    .form-spacing .form-container {
        width: 100%;
    }

}


@media only screen and (max-width: 1300px) and (orientation: portrait) {
    html {
        font-size: 22px;
    }

    /* for listing display page */ 
    .details_container{
        --cols: 1;
    } 
    
    .image_container {
        --img_cols: 4;
    }

    .display_listing .listcat {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media only screen and (max-width: 1300px) {

    /* for main */

    .splash h1 {
        font-size: 2rem;
    }

    .splash h2 {
        font-size: 1.25rem;
    }

    nav h2 {
        font-size: 1em;
    }

    nav ul li {
        font-size: 0.9em;
    }

    nav .logo a img {
        max-height: 2rem;
    }

    .splash-search {
        width: 100%;
    }

    .cat-cards-wrapper {
        width: 100%;
    }

    .cat-card p {
        font-size: 0.9rem;
    }

    main {
        padding: 0 var(--h-pad);
        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: 1150px) {

    :root {
        --h-pad: 1rem;
    }

}


@media only screen and (max-width: 940px) {

    .splash {
        grid-template-rows: repeat(27, 1.5rem); 
    }

    .splash .form-container {
        grid-column: 2 / span 10;
        grid-row: 12 / span 10;
    }

    .splash-bg {
        grid-row: 1 / span 25;
    }

    .filler {
        grid-row: 1 / span 25;
    }

    .splash-text {
        grid-column: 2 / span 8;
        grid-row: 6 / auto;
    }

    .cat-cards-wrapper {
        display: none;
    }

    .featured {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* 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) {

    .splash {
        grid-template-rows: repeat(10, 2rem); 
    }
    .splash-bg {
        grid-row: 1 / span 10;
    }

    .filler {
        grid-row: 1 / span 10;
    }

    .splash-text {
        grid-column: 2 / span 8;
        grid-row: 4 / auto;
    }

    .splash .form-container {
        grid-row: 6 / span 10;
    }

    .form-container form,
    .form-container .main-search {
        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: 940px) and (orientation: portrait) {

    .splash-search {
        display: flex;
        flex-direction: column;
    }
}


@media only screen and (max-width: 750px) {

    main {
        padding-bottom: 8rem !important;
    }

    .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;
    }

    .recomendations {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* for search results*/

    .cats_location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .sub_cat::before {
        border: none;
    }

    .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;
    }

}

@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 var(--h-pad);
    }

    footer {
        padding: 0.25rem 0.5rem;
    }

    footer p {
        font-size: 0.4rem;
    }
}



@media only screen and (max-width: 550px) {

    html {
        font-size: 18px;
    }
    
    .splash h1 {
        font-size: 1.75rem;
    }

    .splash {
        grid-template-rows: repeat(19, 1.5rem); 
    }

    .splash .form-container {
        grid-column: 2 / span 10;
        grid-row: 7 / span 6;
    }
    .splash-bg {
        grid-row: 1 / span 18;
    }

    .filler {
        grid-row: 1 / span 18;
    }

    .splash-text {
        grid-column: 2 / span 8;
        grid-row: 2 / auto;
    }


    
    /* 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 */

    .display_listing {
        padding-bottom: 9rem;;
    }

    .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;
    }

    .filler {
        padding-top: 2rem;
    }

}

@media only screen and (max-width: 400px) {
    main {
        padding-bottom: 8.5rem !important;
    }

    .withus-overlay {
        padding-bottom: 0rem;
    }
}
