/* Resetting padding and margin for all elements */
* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}



.top_header_div {
    background-color: aqua;
    height: 50px;
    margin-left: 8%;
    margin-right: 8%;
}

.left_menu_div {
    margin-left: 8%;
    width: 250px;
    background-color: aquamarine;
    padding: 7px;
}

.header_div {

    height: 50px;
    margin-left: 8%;
    margin-right: 8%;
    align-items: center;
    justify-content: center;
    font-family: Arial;
    font-weight: 600;
    font-size: 2rem;
    display: flex;
   
}



.left_centre_right_middle_container_div {
    display: flex;
    justify-content: space-between;
    margin-left: 8%;
    margin-right: 8%;

}





.right_side_div {
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border-radius: 4px;
    margin: 5px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

/*.right_div_category_labels {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}*/

.right_side_div a {
    display: block;
    color: #4CAF50;
    text-decoration: none;
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.85rem;
}

.right_side_div a:hover {
    background-color: #4CAF50;
    color: white;
}

.left_side_div {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    /*background-color: aquamarine;*/
    padding: 8px;
   
    border-left: 1px;
    border-right: 1px;
    border-bottom: 1px;
    border-top: 0px;

    border-style: solid;
    /*border-color: #0095ff;*/
    border-color: #ccc;
    padding-top: 0px;
    height: fit-content;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /*background-color: #f9f9f9;*/
    background-color: #fff;
    border-radius: 2px;
}



.left_price_div {
    display: flex;
    width: 100%;
    padding-top: 5px;
    justify-content: space-between;

}




#minprice,
#maxprice,
#bedrooms,
#name,
#surname {
    width: 100%;
    height: 25px;
    width: 40%;
    border: 1px;
    border-style: solid;
    border-color: #ccc;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 2px;
}


.left_div_category_labels {
    margin-top: 20px;
    font-family: Arial;
    font-weight: lighter;
    font-size: 0.85rem;
    font-weight: bold;
}



.popup_dialog_labels {
    margin-top: 20px;
    font-family: Arial;
    font-size: 0.93rem;

    color: #666262;
}

.popup_dialog_labels_header {
    margin-top: 20px;
    font-family: Arial;
    font-size: 0.93rem;
    font-weight: 600;
    color: black;
}

.right_div_category_labels {
    margin-top: 0px;
    margin-bottom: 7px;
    font-family: Arial;
    font-weight: 500;
    font-size: 0.9rem;


}

.button_div {
    width: 100%;
    display: grid;

}

.button {
    background-color: #0095ff;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px .8em;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
    margin-top: 20px;
}

.button:hover,
.button:focus {
    background-color: #07c;
}

.button:focus {
    box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.button:active {
    background-color: #0064bd;
    box-shadow: none;
}



#post-link-div,
#mobile_filter_search,
#custom-select-div,
#mobile_filter_reset {
    width: fit-content;
}

.filter-search-link {
    width: 100%;
    background-color: #0095ff;
    border: 1px solid transparent;
    border-radius: 0px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px 3px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;

}



.post-link {
    width: 100%;
    background-color: #ff004c;
    border: 1px solid transparent;
    border-radius: 0px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px 3px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;

}


/*.custom-select {    
    padding: 8px 3px;    
    font-size: 13px;    
    border: 1px solid #ccc;   
    border-radius: 0px;   
    background-color: #fff;    
    width: 100%;
    margin: 0;
    outline: none;
}*/


.custom-select {
 width: 100%;
 background-color: #fff;
 border: 1px solid #ccc;
 border-radius: 0px;
 box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
 box-sizing: border-box;
 
 cursor: pointer;
 display: inline-block;
 font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
 font-size: 13px;
 font-weight: 400;
 line-height: 1.15385;
 margin: 0;
 outline: none;
 padding: 8px 3px;
 position: relative;
 text-align: center;
 text-decoration: none;
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 vertical-align: baseline;
 white-space: nowrap;
}

.custom-select::before {
    float: right;
    color: gray;
    content: "\25BC";
}


.custom-select::after {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    content: "\25BC";
}

.advert-footer-button {
    background-color: #07ad5f;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px .8em;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}

.advert-footer-close {
    background-color: grey;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px .8em;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;

}

.button:hover,
.button:focus {
    background-color: #07c;
}

.button:focus {
    box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.button:active {
    background-color: #0064bd;
    box-shadow: none;
}





.search-div {
    display: flex;
}

.search-button {
    float: left;
    width: 20%;
    background: #2196F3;
    color: white;
    border: 1px solid grey;
    border-left: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 30px;

}


#search_textbox {
    font-size: 0.85rem;
    border: 1px solid #ccc;
    float: left;
    width: 80%;
    background: #f1f1f1;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
}




.search-button:hover {
    background: #0b7dda;
}

#search_textbox:focus {

    border-radius: 0px;
    outline: none;
}



.image-container {
    width: 7%;
    /* Ensure container takes full width if needed */
    display: flex;
    /* Use flexbox to center the image if needed */
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.advert-img {
    width: 50px;
    height: auto;
    cursor: pointer;
   
}

.centre_div {

    height: fit-content;

    /* flex grow allocates remaining space after youve set the left and right divs */
    flex-grow: 1;
    /*margin-left: 7px;
    margin-right: 7px;*/
    margin: 5px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border-radius: 2px;
}

/*.advert {
    height: auto;
    margin-top: 7px;
    margin-bottom: 20px;
    display: block;
}

.advert-pic-div {

    width: 100%;
    max-width: 100%;
    height: 65%;
    border: 0px;
    border-style: solid;
    border-color: #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.advert-description-div {
    width: 100%;
    max-width: 100%;
    height: 35%;
    border: 0px;
    border-style: solid;
    border-color: #ccc;
    border-left: none;

    position: relative;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);

    background-color: #f9f9f9;
}*/

.advert {
    height: 300px;
    margin-top: 7px;
    margin-bottom: 20px;
    display: flex;
}

.advert-pic-div {
    width: 55%;
    max-width: 55%;
    height: 100%;
    border: 0px;
    border-style: solid;
    border-color: #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.advert-description-div {
    width: 45%;
    max-width: 45%;
    border: 0px solid #ccc;
    border-left: none;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;  /* Stack children vertically */
    height: auto;  /* Allow height to adjust based on content */
}

.advert-description-text {
    width: 100%;
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 2px;
    box-sizing: border-box;
    height: fit-content;  /* Adjust height based on content */
    font-family: Arial, sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #333;
    line-height: 1.5;
}

.advert-footer-div {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-top: auto;  /* Pushes footer to the bottom */
}


.advert-header-text {
    width: 100%;
    padding-top: 5px;
    padding-left: 10px;
    box-sizing: border-box;
    height: fit-content;
    font-family: Arial, sans-serif;
    font-weight: 600;
    /* Use a light font weight */
    font-size: 0.9rem;
    color: chocolate;
    line-height: 1.5;

    /* Include padding and border in the element's total width and height */
}



footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.header {
    background-color: #2A9D8F;
    color: white;
    padding: 0px 0;
    width: 100%;     
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logos {
    display: flex;
    width: 150px;
    height: auto;
}

.site_title {

    font-size: 22px;
    font-weight: normal;
    font-family: 'Georgia', serif;
    margin: 0;

}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    transition: background-color 0.3s;
}



.nav ul li a:hover {
    background-color: #fff;
    color: grey;
    /* Highlight color for active and hovered links */
    border-bottom: 2px solid #007bff;
    /* Underline effect */
    padding-bottom: 5px;
    border-radius: 4px;    
}

.nav ul li a.active {
    background-color: #fff;
    color: #007bff;
    /* Highlight color for active and hovered links */
    border-bottom: 2px solid #007bff;
    /* Underline effect */
    padding-bottom: 5px;
    border-radius: 4px;
}



#popupBtn {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1;
    /* Sit on top */

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}

.popuplogin {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1;
    /* Sit on top */

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */

    padding-top: 5px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;

    border: 1px solid #888;
    width: 100%;
    /* Could be more or less, depending on screen size */
    max-width: 500px;
    /* Max width for larger screens */
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    border: none;
    border-width: 1px;
    border-radius: 4px;

}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.access_popup_dialog_labels {
    font-size: 14px;
    font-weight: normal;
    font-family: 'Arial';
    margin-bottom: 0px;
    margin-top: 40px;
    color: #333;
}

.popup-link-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.3);
}

.popup-link-button:hover {
    background-color: #0056b3;
    box-shadow: 0px 6px 15px rgba(0, 86, 179, 0.4);
}

.page-link {

    padding-top: 3px;
    padding-bottom: 4px;
    padding-left: 13px;
    padding-right: 13px;
    margin-right: 4px;
    cursor: pointer;
    border: 1px solid;
    border-color: #ccc;
}

.page-link:active {
    background-color: #f00;

}



.page-div {
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

#pager-title {
    padding-left: 5px;

}

p input[type="text"] {
    margin-bottom: 9px;
}

label input[type="radio"] {
    margin-top: 15px;
}

#mobile_filter_search,
#mobile_filter_reset {
    display: none;
}

@media screen and (max-width: 768px) {

    .nav {
        text-align: center;
    }

    .nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;


    }

    .nav ul li {
        padding: 2px;

    }

    .nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: background-color 0.3s;
        display: block;
        /* if you remove this it doesnt cover whole width */
    }

    .nav ul li a:hover {
        background-color: #45a049;
        border-radius: 4px;

    }

    .nav ul li a.active {
        background-color: #fff;
        border-radius: 4px;
        color: #2A9D8F;
    }

    .container {
        display: block;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .left_side_div {
        display: none;
        width: 100%;
        /*min-width: 100%;*/
        max-width: 100%;
        padding: 8px;
        border: 1px;
        border-style: solid;
        /*border-color: #0095ff;*/
        border-color: #ccc;
        padding-top: 0px;
        height: fit-content;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: #f9f9f9;
        border-radius: 2px;
    }

    .right_side_div {
        display: none;
    }

    .left_centre_right_middle_container_div {
        display: flex;
        justify-content: space-between;
        margin-left: 0%;
        margin-right: 0%;

    }

    .popup {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Stay in place */
        z-index: 100;
        /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        /* Enable scroll if needed */
        background-color: rgba(0, 0, 0, 0.5);
        /* Black with opacity */
    }

    .popup-content {
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px;
        max-width: 400px;
        width: 80%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        margin-top: -10px;
    }

    .close:hover,
    .close:focus {
        color: #000;
    }

    .access_popup_dialog_labels {
        font-size: 16px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .button {
        background-color: #2196F3;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: background-color 0.3s ease;
        width: 100%;
        max-width: 200px;
        margin-bottom: 15px;
    }

    .primary-button {
        background-color: #4CAF50;
    }

    .secondary-button {
        background-color: #FF9800;
    }

    .button:hover {
        opacity: 0.9;
    }

    .popup-footer {
        display: flex;
        justify-content: flex-end;
        background-color: #f1f1f1;
        padding: 10px;
        border-radius: 0 0 8px 8px;
        width: 100%;
    }

    .advert-footer-close {
        background-color: #f44336;
        color: white;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .advert-footer-close:hover {
        background-color: #d32f2f;
    }

    #mobile_filter_search {
        display: block;
    }

    .advert {       
        height: auto;
        margin-top: 7px;
        margin-bottom: 20px;
        display: block;
    }

    .advert-pic-div {
       
        width: 100%;
        max-width: 100%;
        height: 65%;
        border: 0px;
        border-style: solid;
        border-color: #ccc;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: #f9f9f9;
    }

    .advert-description-div {
        width: 100%;
        max-width: 100%;
        height: 35%;
        border: 0px;
        border-style: solid;
        border-color: #ccc;
        border-left: none;
       
        position: relative;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
     
        background-color: #f9f9f9;
    }

    #post-link-div,
    #mobile_filter_search,
    #custom-select-div,
    #mobile_filter_reset {
        width: 30%;
    }

   .image-container {
            width: 20%;
            /* Ensure container takes full width if needed */
            display: flex;
            /* Use flexbox to center the image if needed */
            justify-content: center;
            align-items: center;
            margin: 0;
            padding: 0;
    }



        .centre_div {
            display: flex;
            /* Makes it a flex container */
            flex-direction: column;
            /* Aligns child elements vertically */
            height: fit-content;
            /* Ensures it grows based on its content */
            flex-grow: 1;
            /* Allocates remaining space (if necessary) */
            margin: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            background-color: #f9f9f9;
            border-radius: 2px;
        }
    
        /*.advert {
            height: auto;
           
            margin-top: 7px;
            margin-bottom: 20px;
            display: flex;
           
            flex-direction: column;
            
        }
    
        .advert-pic-div {
            width: 55%;
            max-width: 55%;
            height: 100%;
            border: 0px;
            border-style: solid;
            border-color: #ccc;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            background-color: #f9f9f9;
        }
    
        .advert-description-div {
            width: 45%;
            max-width: 45%;
            height: auto;
            
            border: 0px solid #ccc;
            border-left: none;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            background-color: #FF9800;
            padding-bottom: 10px;
           
            display: flex;
            
            flex-direction: column;
            
            justify-content: space-between;
            
        }*/
    
        .advert-description-text {
            width: 100%;
            padding-top: 5px;
            padding-left: 10px;
            padding-right: 2px;
            box-sizing: border-box;
            height: auto;
            /* Adjusts height based on content */
            font-family: Arial, sans-serif;
            font-weight: 300;
            /* Light font weight */
            font-size: 0.75rem;
            color: #333;
            line-height: 1.5;
            flex-grow: 1;
            /* Allow the description text to grow and take available space */
        }
    
        .advert-footer-div {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            font-family: Arial, sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            box-sizing: border-box;
            height: fit-content;
        }
    
        .advert-header-text {
            width: 100%;
            padding-top: 5px;
            padding-left: 10px;
            box-sizing: border-box;
            height: fit-content;
            font-family: Arial, sans-serif;
            font-weight: 600;
            /* Use a light font weight */
            font-size: 0.9rem;
            color: chocolate;
            line-height: 1.5;
    
            /* Include padding and border in the element's total width and height */
        }

}