@font-face {
    font-family: 'Merriweather';
    src: url(../../assets/fonts/Merriweather-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../../assets/fonts/OpenSans-VariableFont_wdth\,wght.ttf);
    font-weight: auto;
    font-style: normal;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: 'Open Sans';
    margin: 0;
    padding: 0;
    color: #141B2D;
}
/* Scrollbar for webkit-based browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 16px;  /* Width of the scrollbar */
    height: 16px; /* Height for horizontal scrollbar */
}

/* Track (background of the scrollbar) */
::-webkit-scrollbar-track {
    background-color: #FFFFFF;
}

/* Thumb (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
    background-color: #1C3988;
    /* border-radius: 10px; */
}

/* Scrollbar buttons (arrows) */
::-webkit-scrollbar-button {
    background-color: #1C3988;
    width: 16px;  /* Optional: Width for arrow buttons */
    height: 16px; /* Optional: Height for arrow buttons */
}
html,
body {
    scrollbar-width: thin; /* Sets the thickness of the scrollbar */
    scrollbar-color: #1C3988 #FFFFFF; /* Thumb color and track color */
    position: relative;
    overflow-x: hidden;
}
section {
    display: block;
    width: 100%;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

input,
select:focus {
    outline: none;
}

input,
select {
    background-color: #FFFFFF;
}

.seperator {
    margin-block-start: 30px;
    width: 1135px;
    border: 0px;
    height: 1px;
    background-color: #DADAEE;
}

.seperator-filter {
    z-index: 1;
    background-color: #F3F3FA;
    height: 30px;
    position: absolute;
    top: 442px;

}

.filter {
    color: #141B2D;
    opacity: 0.5;
    padding-inline: 60px;
    font-size: 16.5px;
}

.search-for-an-offer-container {
    display: flex;
    flex-direction: column;
    margin-block-start: 10em;
    margin-block-end: 60px;
    align-items: center;
    position: relative;
}

.search-for-an-offer-title-h1 {
    font-size: 55px;
    font-family: 'Merriweather';
}

.search-for-an-offer-txt-paragraph {
    font-size: 22px;
    margin-block-start: 5px;
}

.search-key-word-select-options-range-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F3F3FA;
    height: 347px;
}

.searchbar-and-button-container {
    display: flex;
    gap: 20px;
    margin-block-start: 50px;
}

.enter-keyword-bar input {
    padding-inline-start: 20px;
    height: 50px;
    width: 370px;
    font-size: 17px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.1);
    color: #141B2D;
    transition: border 0.3s;
}
.enter-keyword-bar input:focus{
    border: 2px solid #1C3988;
    transition: border 0.05s;
}
.search-button {
    flex-direction: row-reverse;
}

.search-button input {
    width: 142px;
    height: 50px;
    font-size: 17px;
    background-color: #1C3988;
    position: relative;
    padding-inline-start: 10px;
    color: #FFFFFF;
    border: 1px solid #F3F3FA;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button img {
    position: absolute;
    z-index: 2;
    top: 400px;
    pointer-events: none;
    margin-left: 22px;
    display: flex;
    transform: translateY(-50%);

}

#searchbuton:hover {
    background-color: #6E8AE9;
}

#search-offer-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-options-only {
    display: flex;
    gap: 30px;
    margin-block-start: 50px;
}

.select-options-only select {
    position: relative;
    width: 262px;
    border-radius: 4px;
    background-color: #FFFFFF;
    border: 1px solid #141B2D;
    height: 48px;
    font-size: 17px;
    padding-inline-start: 20px;
}

.select-options-only img {
    position: absolute;
    display: flex;
    top: 530px;
    pointer-events: none;
    margin-left: 226px;
    transform: translateY(-50%);
    width: 12px;
    height: 7px;
}

/* Price range slider */
.main {
    margin-block-start: 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.price-input-container {
    width: 100%;
    border-radius: 15px;
    width: 506px;
}

.price-input .price-field {
    display: flex;
    margin-bottom: 22px;
    margin-top: 10px;
    justify-content: space-between;
}

.price-field input {
    border: none;
    max-width: 100px;
    min-width: 100px;
    font-size: 17px;
    background-color: transparent;
    font-weight: 450;
}

.max-input {
    text-align: right;
}

.price-field input:focus {
    border: none;
    outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-container {
    width: 100%;
}

.slider-container {
    height: 4px;
    position: relative;
    background-color: #FFFFFF;
    border-radius: 5px;
}

.slider-container .price-slider {
    height: 100%;
    position: absolute;
    left: 10px;
    right: 10px;
    border-radius: 5px;
    background: #A3B1E1;
}

.range-input {
    position: relative;
}

.range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    cursor: pointer;
    z-index: 1;
    -webkit-appearance: none;
}

/* Styles for the range thumb in WebKit browsers */
input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 70%;
    background: #1C3988;
    pointer-events: auto;
    -webkit-appearance: none;
}

/* Price slider end */
.offers-show-next-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block-end: 150px;
}

.offers-show-next-button input {
    border: 2px solid #1C3988;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #1C3988;
    cursor: pointer;
    transition: border 0.3s, color 0.3s;
}

.offers-show-next-button input:hover {
    border: 2px solid #6E8AE9;
    color: #6E8AE9;
}
#end-of-results{
    color: #141B2D;
    font-weight: 500;
    font-size: 1.05rem;
}
.image-grid-section2 {
    display: grid;
    margin-block: 0px;
    flex-direction: row;
    margin-block-start: 100px;
    margin-block-end: 50px;
    row-gap: 50px;
    justify-content: center;
    grid-template-columns: auto auto auto;
}

@media screen and (max-width: 1446px) and (min-width: 1167px) {
    .seperator {
        width: 1030px;
    }

    .seperator-filter {
        top: 419px;

    }

    .filter {
        font-size: 15.5px;
    }

    .search-for-an-offer-title-h1 {
        font-size: 3.1em;
        font-family: 'Merriweather';
    }

    .search-for-an-offer-txt-paragraph {
        font-size: 1.3em;
    }

    .search-key-word-select-options-range-price-container {
        height: 320px;
    }

    .searchbar-and-button-container {
        margin-block-start: 40px;
    }

    .enter-keyword-bar input {
        width: 350px;
        font-size: 16px;
        height: 43px;

    }

    .search-button input {
        width: 120px;
        height: 43px;
        font-size: 16px;
    }

    .search-button img {
        top: 377.5px;
        margin-left: 15px;
        width: 16px;

    }

    .select-options-only {
        gap: 20px;
        margin-block-start: 40px;
    }

    .select-options-only select {
        position: relative;
        width: 237px;
        height: 43px;
        font-size: 16px;
    }

    .select-options-only img {
        top: 492px;
        margin-left: 210px;
        width: 11.5px;
        height: 6.5px;
    }

    .image-grid-section2 {
        row-gap: 40px;
    }
}

@media screen and (max-width: 1166px) and (min-width: 900px) {
    .seperator {
        width: 840px;
    }

    .seperator-filter {
        top: 419px;

    }

    .filter {
        font-size: 15.5px;
    }

    .search-for-an-offer-title-h1 {
        font-size: 3.1em;
        font-family: 'Merriweather';
    }

    .search-for-an-offer-txt-paragraph {
        font-size: 1.3em;
    }

    .search-key-word-select-options-range-price-container {
        height: 500px;
    }

    .searchbar-and-button-container {
        margin-block-start: 40px;
    }

    .enter-keyword-bar input {
        width: 350px;
        font-size: 16px;
        height: 43px;

    }

    .search-button input {
        width: 120px;
        height: 43px;
        font-size: 16px;
    }

    .search-button img {
        top: 377.5px;
        margin-left: 15px;
        width: 16px;

    }

    .select-options-only {
        gap: 20px;
        margin-block-start: 40px;
    }

    .select-options-only select {
        position: relative;
        width: 185px;
        height: 43px;
        font-size: 16px;
    }

    .select-options-only img {
        top: 492px;
        margin-left: 160px;
        width: 11.5px;
        height: 6.5px;
    }
}

@media screen and (max-width: 899px) and (min-width: 550px) {
    .seperator {
        width: 400px;
    }

    .seperator-filter {
        top: 419px;

    }

    .filter {
        font-size: 15.5px;
    }

    .search-for-an-offer-title-h1 {
        font-size: 3.1em;
        font-family: 'Merriweather';
    }

    .search-for-an-offer-txt-paragraph {
        font-size: 1.3em;
    }

    .search-key-word-select-options-range-price-container {
        height: 550px;
    }

    .searchbar-and-button-container {
        margin-block-start: 40px;
    }

    .enter-keyword-bar input {
        width: 400px;
        font-size: 16px;
        height: 45px;

    }

    .search-button {
        position: absolute;
        margin-left: 280px;
    }

    .search-button input {
        border: none;
        width: 120px;
        height: 45px;
        font-size: 15px;
        padding-block-end: 1px;
    }

    .search-button img {
        top: unset;
        margin-top: 23px;
        margin-left: 15px;
        width: 16px;

    }

    .select-options-only {
        flex-direction: column;
    }

    .select-options-only select {
        width: 400px;
        height: 45px;
        font-size: 16px;
    }

    .select-options-only img {
        top: unset;
        margin-left: 350px;
        transform: translateY(-26px);
    }

    .price-input-container {
        width: 100%;
        border-radius: 15px;
        min-width: 500px;
    }

    /* GRID IMAGES SECTION START */
    .image-grid-section2 {
        row-gap: 25px;
        grid-template-columns: auto auto auto;
        width: 100%;
    }
}

@media screen and (max-width: 820px) and (min-width: 550px) {
    .image-grid-section2 {
        grid-template-columns: auto auto;
    }
}

@media screen and (max-width: 549px) {
    .section {
        padding-inline-start: 5px;
        padding-inline-end: 5px;
    }

    .seperator {
        width: 90%;
    }

    .seperator-filter {
        top: unset;
        margin-top: 103px;

    }

    .filter {
        font-size: 15.5px;
        padding-inline: 20px;

    }

    .search-for-an-offer-title-h1 {
        font-size: 3.1em;
        font-family: 'Merriweather';
        text-align: center;
    }

    .search-for-an-offer-txt-paragraph {
        font-size: 1.3em;
        text-align: center;

    }

    .search-key-word-select-options-range-price-container {
        height: 550px;
    }

    .searchbar-and-button-container {
        margin-block-start: 40px;
    }

    .enter-keyword-bar input {
        width: 290px;
        font-size: 16px;
        height: 45px;

    }

    .search-button {
        position: absolute
    }

    .search-button input {
        border: none;
        width: 50px;
        height: 45px;
        font-size: 0;
        left: 239px;
    }

    .search-button img {
        top: 23px;
        margin-left: 18px;
        width: 16px;
        left: 239px
    }

    .select-options-only {
        flex-direction: column;
    }

    .select-options-only select {
        width: 290px;
        height: 45px;
        font-size: 15px;
    }

    .select-options-only img {
        top: unset;
        margin-left: 250px;
        transform: translateY(-25.5px);
    }

    .price-input-container {
        width: 100%;
        border-radius: 15px;
        min-width: 290px;
    }

    .image-grid-section2 {
        grid-template-columns: auto auto;
    }
}

@media screen and (max-width: 450px) {
    .image-grid-section2 {
        row-gap: 20px;
        grid-template-columns: auto;

    }
}
