/* Reset some default styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.notifications {
    margin-top: 2px; 
    margin-right: 15px; 
    margin-left: -7px;
}

.createlisting {
    margin-left: -5px;
}

.profilename {
    margin-left: -5px;
}

/* Header styles */
.logo-image {
    scale: 1.5;
    border-radius: 5px; /* Adjust the value to change the border radius */
    margin-top: 9px;
    margin-bottom: 7px;
}

header {
    background-color: #eeeeee;
    color: #fff;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.header-left img {
    width: 60px; /* Adjust the width to your logo's size */
    margin-right: 10px;
    margin-left: 20px;
}

.header-left input {
    padding: 5px;
    border: none;
    border-radius: 3px;
}

.header-right li {
    margin-right: 20px;
}

.header-right a {
    text-decoration: none;
    color: #616161;
}

.header-right ul li a:hover {
    text-decoration: underline;
}

footer {
    background-color: #dddddd;
    color: #616161;
    padding: 10px 0;
    margin-top: auto; /* Push the footer to the bottom */
    text-align: center; /* Center content horizontally */
}

.footer-content {
    display: flex;
    justify-content: center; /* Center content */
    align-items: center; /* Vertically align content */
    gap: 20px; /* Space between the text and the link */
}

.footer-content a {
    text-decoration: none;
    color: #616161;
}

.footer-content a:hover {
    text-decoration: underline;
}

.info-symbol {
    display: inline-block;
    font-size: 14px; /* Adjust the font size as needed */
    color: #000000; /* Adjust the color as needed */
    cursor: pointer;
    margin-right: 3px;
    z-index: 500; /* Set a z-index value to position the tooltip above other elements */
}

.fas.fa-bell {
    color: #003660; /* Replace with your desired color code */
}

.notification-count {
    position: absolute;
    padding: 0; /* Remove padding if not needed */
    /* Center the content */
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0px;
    right: 0px;
    color: white;
    font-size: 0.6em;
}

.fa-stack .fa-bell {
    /* Adjust the font size to make the bell icon larger */
    font-size: 1.15em; /* Or any other size that suits your design */
}

.fa-stack {
    margin-bottom: -8px;
    margin-top: -10px;
    margin-right: -10px;
    margin-left: -10px;
}

.info-symbol:hover::after {
    content: attr(title);
    display: block;
    position: absolute;
    background-color: #000000; /* Adjust the background color as needed */
    color: #fff; /* Adjust the text color as needed */
    padding: 5px;
    border-radius: 5px;
    font-size: 12px; /* Adjust the font size as needed */
    white-space: normal;
    max-width: 200px;
    z-index: 10; /* Set a higher z-index value than other elements to ensure it appears on top */
}

.main-content {
    display: flex;
    align-items: flex-start; /* Align items to the start (top) */
    max-width: 1200px; /* Set a maximum width for the content */
    margin: 10px auto; /* Add margin for spacing */
}

.toggle-filters-btn {
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 7px;
    font-weight: bold;
    background-color: #004d88;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-top: -5px;
}

.toggle-filters-btn:hover{
    background-color: #003660;
}

.sorting-options, .safety-click {
    width: 200px;
    margin-right: 5px;
    /* border: 2px solid #ddd; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
    padding: 10px;
    height: auto;
    border-radius: 5px;
    border: 2px solid #f0e68c;
    box-shadow: 0 2px 4px rgba(159, 0, 0, 0.11); 
}

.list-company-logo {
    min-width: 35px;  /* Adjust width/height to match your avatar */
    min-height: 35px;
    max-width: 35px;  /* Adjust width/height to match your avatar */
    max-height: 35px;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    bottom: 7px;
    left: 154px;
    position: absolute;
    z-index: 5;
    background-color: #fff;
}

.list-bottom-bar {
    position: absolute;
    bottom: 5px;
    width: 189px; /* Spans the full width of the listing */
    height: 25px; /* Adjust height as needed */
    background-color: #f0f0f0;
    z-index: 3; /* Below the logo */
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 0.5px solid #c8c8c8;
}

.list-bottom-text {
    font-size: 13px; /* Set the font size */
    color: #333; /* Text color */
    overflow: hidden; /* Hide overflowing content */
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    text-overflow: ellipsis; /* Add the ellipsis for truncated text */
    max-width: 145px;
    margin-left: 3px;
}

.safety-click {
    border: 1.5px solid rgba(0, 128, 128, 0.3); 
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(123, 251, 255, 0.3);
}

.safety-click:hover {
    background-color: rgba(240, 255, 255, 1); 
    cursor: pointer;
}

.backup-options {
    width: 200px;
    margin-right: 5px;
    border: 2px solid #ddd;
    padding: 10px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.historyheaders {
    font-size: 18px;
    margin: 4px 0 5px 8px;
    color:#3b3b3b;
}

.back-button, .apply-button, .filter-reset-button {
    padding: 5px;
    background-color: white;
    color: black;
    border-radius: 8px;
    border: 1px solid black;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically in the center */
}

.right-buttons {
    display: flex;
    gap: 5px; /* Adjust the gap between the "Reset" and "Apply" buttons as needed */
}

.apply-button-active {
    background-color: white; /* New color for the active state */
    border: 1px solid #ffa200; /* Optional: border color similar to background for consistency */
    box-shadow: 0 0 10px #ffa200; /* Horizontal offset, Vertical offset, Blur radius, Color */
    transition: box-shadow 0.3s, background-color 0.3s, color 0.3s; /* Smooth transition for the glow effect */
}

.apply-button:hover {
    background-color: #ffa200;
}

.back-button:hover {
    background-color: rgba(119, 119, 119, 0.278);
}

.filter-reset-button:hover {
    background-color: rgba(119, 119, 119, 0.278);
}

.filter-reset-button:hover::before {
    content: 'Reset';
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    position: absolute;
    margin-top: 10px;
    margin-left: -35px;
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.listings-content {
    flex: 1; /* Take up remaining space */
}

.priceRangeSeparator {
    margin-left: 2px;
    margin-right: 2px;
}

.listings-container {
    position: relative;
    border-radius: 5px;
    border: 2px solid #ddd;
    width: 1250px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 25;
}

.hidden {
    display: none;
}

.spinner {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.safety-icon {
    width: 16px; 
    height: 16px; 
    margin-bottom: -2.5px;
}

.filter-row {
    margin-bottom: 15px;
}

.listing {
    border-radius: 5px;
    border: 2px solid #ddd;
    margin-left: 8px;
    width: 670px;
    height: 130px;
    padding: 5px;
    display: flex;
    margin-bottom: 10px;
    transition: outline 0.3s ease; /* Add a smooth transition effect for the outline */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Adjust values based on your preference */
    /* align-items: center; */
    position: relative; /* Add relative positioning for absolute positioning within */
}

.list-view {
    width: 1222px;
    height: 170px;
}

.list-view .media-slider, .list-view .slider-media  {
    width: 190px;
    height: 170px;
}

.media-slider {
    position: relative;
    width: 150px;
    height: 130px;
    overflow: hidden;
    display: flex;
}

.slider-media {
    position: relative;
    width: 150px;
    height: 130px;
    object-fit: cover;
    border-radius: 3px;
}

.media {
    display: flex;
    /* Make sure that each child is 100% the width of the .media-slider container */
}

.slide-arrow {
    font-size: 40px;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* Set background to transparent by default */
    color: #0f00af;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
    text-shadow: 
    0 0 1px #00ffff, 
    0 0 2px #00ffff, 
    0 0 5px #00ffff, 
    0 0 10px #00ffff; /* Enhanced glow */
}

.slide-arrow:hover {
    background-color: #53b4ff; /* Background color appears on hover */
    border-radius: 999px;
}

.left-arrow {
    left: 0;
    z-index: 1;
}

.right-arrow {
    right: 0;
    z-index: 1;
}

.notification-content .notifimg {
    width: 40px; 
    height: 40px;
    object-fit: cover;
    border-radius: 50%; 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 1;
}

.read {
    height: fit-content; 
    text-decoration: none; 
    color: inherit;
}

.unread {
    height: fit-content; 
    background-color: rgb(182, 221, 255);
    cursor: pointer; 
    text-decoration: none; 
    color: inherit;
}

.unread-indicator {
    position: absolute; 
    bottom: 0; 
    right: 2px; 
    margin: 4px;
    font-size: 14px;
}

.notification-content {
    display: flex;
    align-items: center; /* Vertically center the content */
}

.listing:hover {
    cursor: pointer;
    border-color:#b3deff; /* Adjust color and thickness based on your preference */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Adjust values based on your preference */
}

.checkbox-row {
    display: flex;
    align-items: center;
}

.checkbox-row input {
    margin-right: 5px; /* Adjust the spacing between checkbox and text */
}

.listing img {
    width: 150px;
    height: 130px;
    margin-right: 10px;
    object-fit: cover; /* Add this line */
}

.listing-details {
    flex: 1;
    width: 50%; /* Adjust based on your layout */
    overflow-wrap: break-word; /* Allows long words to break and wrap to the next line */
    overflow: hidden; /* Hide overflow */
}

.button-container {
    display: flex;
    justify-content: flex-end; /* Push buttons to the end of the container */
    flex-grow: 1; /* Allow the buttons to take up the remaining space */
}

.listing-details .created-time, .comments {
    position: absolute;
    color: #626262;
    font-size: 15px;
    /* Add any other styles here */
}

.comments {
    top: 19px; 
    right: 50px;
}

.type {
    font-weight: bold;
    margin-top: 15px;
}

.created-time {
    top: 3px; /* Adjust as needed */
    right: 50px; /* Adjust as needed */
}

.listing-details .title {
    top: 5px; 
    margin-left: 5px;
    overflow: hidden;              
    text-overflow: ellipsis; 
    white-space: nowrap;
    max-width: 390px;
}

.list-view-title {
    font-size: 22px;
    top: 5px; 
    margin-left: 5px;
    overflow: hidden;              
    text-overflow: ellipsis; 
    white-space: nowrap;
    max-width: 900px;
}

.unread-notification {
    background-color: aliceblue;
}

.pricing-button {
    margin-left: 5px;
    color: #000000;
    border-radius: 5px;
    background-color: #d2d2d2; 
    cursor: pointer;
    padding: 3px 6px; 
    border-width: 1.1px; /* Reduced border thickness */
    border-style: solid; /* Ensure border style is solid */
    border-color: #000000; /* Set border color */
}

.pricing-button:hover {
    background-color: rgb(32, 162, 32);
    color: #ffffff;
}

.listing-details .marker {
    width: 18px; 
    height: 18px; 
}

.listing-details .markertext {
    color:#000000; 
    font-size: 14px; 
    margin-left: -12px; 
    margin-top: 1px; 
}

.bottom-right-container {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center; /* Align items vertically in the center */
}

.listing-details .description {
    margin-left: 5px;
    color:#4d4d4d; 
    font-size: 14px;
    display: -webkit-box; /* Create a block container */
    -webkit-line-clamp: 2; /* Number of lines to show */
    -webkit-box-orient: vertical; /* Set the direction of children */
    overflow: hidden; /* Hide the overflow */
    text-overflow: ellipsis; /* Add ellipsis */
}

.listing-details .categ {
    margin-top: 3px;
    margin-left: 4px;
}

.listing-details .description2 {
    margin-left: 4px;
    color:#4d4d4d; 
    font-size: 14px;
    display: -webkit-box; /* Create a block container */
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical; /* Set the direction of children */
    overflow: hidden; /* Hide the overflow */
    text-overflow: ellipsis; /* Add ellipsis */
}

.listing-details .condition {
    margin-left: 4px;
    margin-top: 2px;
}

.listing-details .job_p, .listing-details .job_p_list {
    margin-left: 4px;
    color:#4d4d4d; 
    font-size: 14px;
}

.listing-details .job_p_list {
    font-size: 17px;
}

.list_truncate {
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.listing-details .delivoffered {
    margin-left: 4px;
}

.listing-details .joblistingcontainer{
    margin: -3px 0 -1px 5px; 
    color:#4d4d4d; 
    font-size: 14px;
}

.watchlist-button {
    border-radius: 999px;
    border: 1.5px solid rgb(213, 213, 213);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: #ffffff; /* Background color */
    font-size: 24px;
    cursor: pointer;
    padding: 5px 7px 3px;
}

/* Add hover effect */
.watchlist-button:hover {
    background-color:#d2d2d2; /* Adjust hover background color */
}

/* Tooltip */
.watchlist-button:hover::before {
    content: 'Add to Watchlist';
    position: absolute;
    bottom: 35px; /* Adjust tooltip position */
    transform: translateX(-50%);
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.category-type {
    position: absolute;
    background: #E6F0FF;
    color: #1B4F9C;
    border-radius: 3px;
    padding: 2px;
    font-size: 12px;
    top: 12px; 
    right: 52px;
    font-weight: bold;
}

.negotiable-price {
    color: #333;
    font-size: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 165px;
    margin-bottom: 5px; /* Adjust as needed */
}

.buy-now-price {
    display: flex;
    flex-direction: column;
    /* color: #333; */
    color: #006c07;
    font-size: 22px;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 5px;
    margin-bottom: 3px; /* Adjust as needed */
    text-align: right;
    -webkit-text-stroke: 0.8px currentColor;
}

.bed {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 165px;
    margin-bottom: 5px; /* Adjust as needed */
}

.bath {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 200px;
    margin-bottom: 5px; /* Adjust as needed */
}

.bed:hover::before {
    content: 'Bedrooms';
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    position: absolute;
    bottom: 18px;
    right: 1px;
    padding: 2px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 10;
}

.bath:hover::before {
    content: 'Bathrooms';
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    position: absolute;
    bottom: 18px;
    padding: 2px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 10;
}

.estimate-price {
    font-size: 15px;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 5px;
    margin-bottom: 5px; /* Adjust as needed */
}

.abbreviated-text {
    display: none; /* Hide the abbreviated text by default */
}

.pagination {
    margin: 0 0 4px 6px;
}

.button-container {
    position: absolute;
    top: 8px; /* Adjust as needed */
    right: 8px; /* Adjust as needed */
}

.list-watch {
    top: 4px;
    right: 6px;
}

.removewatchlist-button, .edit-button {
    border-radius: 5px;
    border: 0px;
    background-color: rgb(32, 162, 32); /* Background color */
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px; /* Adjust padding as needed */
}

.edit-button {
    margin-top: 2px;
}
/* Add hover effect */
.removewatchlist-button:hover, .edit-button:hover, .delete-button:hover {
    background-color: rgb(185, 37, 37); /* Adjust hover background color */
}

/* Tooltip */
.removewatchlist-button:hover::before {
    content: 'Remove from Watchlist';
    position: absolute;
    bottom: 33px; /* Adjust tooltip position */
    left: -5px;
    transform: translateX(-50%);
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.customDropDownButton {
    display: inline-block;
    padding: 5px 10px;
    margin-top: -10px;
    cursor: pointer;
    background-color: #efefef;
    border: 2px solid #ccc;
    border-radius: 12px;
    margin-bottom: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination a {
    text-decoration: none; /* Removes the underline */
    color: #333; /* Sets the font color */
    padding: 2px 4px; /* Adds some padding around the links */
    border-radius: 5px; /* Optional: Adds rounded corners */
    background-color: #ffffff; /* Optional: Adds a background color */
    transition: background-color 0.3s; /* Optional: Smooth transition for hover effect */
}

.pagination a:hover {
    background-color: #e0e0e0; /* Optional: Changes background on hover */
}

.pagination span {
    padding: 2px 4px;
    font-weight: bold;
    color: #fff; /* Makes the current page number text white */
    background-color: #333; /* Highlights the current page number with a different color */
    border-radius: 5px; /* Optional: Adds rounded corners to the current page number */
}

.pagination strong {
    pointer-events: none; /* Disables click events on the current page number */
    cursor: default; /* Sets the cursor to default instead of pointer */
}

.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 13px;
    z-index: 1;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

.history-content {
    flex-direction: column;
}

.completed-button, .delete-button {
    margin-top: 2px;
    margin-right: 2px;
    border-radius: 5px;
    border: 0px;
    background-color: #d2d2d2; /* Background color */
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px; /* Adjust padding as needed */
}

/* Add hover effect */
.completed-button:hover {
    background-color: rgb(32, 162, 32);; /* Adjust hover background color */
}

/* Tooltip */
.completed-button:hover::before {
    content: 'Mark as Completed';
    position: absolute;
    top: -12px;
    left: -10px;
    transform: translateX(-50%);
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 1;
}

.edit-button:hover::before {
    content: 'Edit Listing';
    position: absolute;
    transform: translateX(-50%);
    top: 65px;
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.delete-button:hover::before {
    content: 'Delete Listing';
    position: absolute;
    transform: translateX(-50%);
    top: 105px;
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 3;
}

.direct-button, .get-help {
    padding: 5px;
    background-color: white;
    margin-right: -4.5px;
    color: black;
    border-radius: 3px;
    border: 1px solid rgb(168, 168, 168);
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.get-help {
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid rgb(83, 83, 83);
}

.direct-button:hover, .get-help:hover {
    background-color: rgba(104, 104, 104, 0.278);
}

.direct-button.active {
    color: white;
    background-color: #003660;
}

.relist-button {
    margin-top: 2px;
    margin-right: 2px;
    border-radius: 5px;
    border: 0px;
    background-color: #d2d2d2; /* Background color */
    font-size: 27px;
    cursor: pointer;
    padding: 1px 10px; /* Adjust padding as needed */
}

/* Add hover effect */
.relist-button:hover {
    background-color: rgb(32, 162, 32); /* Adjust hover background color */
}

/* Tooltip */
.relist-button:hover::before {
    content: 'Relist'; /* Adjust tooltip text */
    position: absolute;
    top: -18px; /* Adjust tooltip position */
    left: 12px;
    transform: translateX(-50%);
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.relist-button:hover::before {
    opacity: 1; /* Make tooltip visible on hover */
}

.unread-notifications {
    color: rgb(255, 0, 0); /* Change to your preferred color */
}

.header-right ul li:first-child {
    margin-right: 15px;  
}

.avail_date {
    display: none;
}

.right-avail {
    color:#4d4d4d; 
    font-size: 18px;
    -webkit-text-stroke: 0.8px currentColor;
}

.location-dropdown {
    position: relative;
    color: black;
    list-style: none;
    padding-left: 0;
}

.location-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    margin: 0 0 0 13px; /* top, right, bottom, left */
    background-color: #dfdfdf;
    border-radius: 20px;
    padding: 5px 10px;
    border: 1px solid #dbdbdb;
    transition: background-color 0.3s ease;
}

.location-selector:hover {
    background-color: #cdcdcd;
}

.location-selector .arrow {
    margin-left: 5px;
}

.location-icon {
    width: 18px;
    height: 18px;
    margin: 0 2px 0 -5px; /* top, right, bottom, left */
}

#location-text {
    margin-bottom: -1px;
}

.dropdown-content {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: -6px 0 0 10px; /* top, right, bottom, left */
    position: absolute;
    top: 37px;
    left: 5px;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    z-index: 200;
    width: 300px; /* Adjust width as needed */
}

.input-wrapper {
    display: flex;
    align-items: center;
    margin-top: 7px;
}

.input-wrapper img {
    width: 18px;
    height: 18px;
}

#location-input {
    flex: 1;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    width: 100%;
}

.dropdown-content label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

#locate-me-btn {
    background-color: #0076d0; /* Blue background color */
    color: #ffffff; /* White text color */
    border: none;
    font-size: 15px;
    margin-left: 20px;
    font-weight: bold;
    border-radius: 5px; /* Rounded corners */
    padding: 5px; /* Padding for the button */
    cursor: pointer; /* Change cursor to pointer */
    margin-top: 7px; /* Space above the button */
    width: 93%; /* Make the button full width */
    text-align: center; /* Center the text */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for background color and transform */
}

/* Hover effect for the Locate Me button */
#locate-me-btn:hover {
    background-color: #003660; /* Darker blue on hover */
}

.refine-link {
    display: block;
    text-align: center;
    margin: 5px 0;
    font-size: 16px;
    background-color: #005698;
    color: white;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    border: 2px solid #ddd; /* Border to give it a button-like appearance */
    border-radius: 10px;
}

.refine-link:hover {
    text-decoration: underline;
    background-color: #003660; /* Change color on hover */
    transform: scale(1.025);
}

.refine-link .count-text {
    font-size: 13px;    /* smaller font */
}

.listing-details .distance-marker {
    width: 15px; 
    height: 15px; 
    margin: 0 -4px -2px 0;
}

.timeframe {
    max-width: 280px;  /* Adjust as needed for normal screens */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* Show ellipsis (...) when text is too long */
}

.menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #cdcdcd;
    border-radius: 5px 5px 0 0;
    color: #333;
    background-color: #f7f7f7; /* Lighter background */
}

.close-menu-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-menu-btn:hover {
    color: #ff0000; /* Optional: Red on hover to indicate close */
}
        /* Basic Styling for Header Menu Panel */
.header-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.menu-trigger-wrapper {
    position: relative;
}

.header-menu-panel {
    display: none;
    position: absolute;
    top: 150%; /* Align the panel below the menu icon */
    right: 0;
    background-color: #ececec;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: fit-content; /* Adjust width dynamically to content */
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 5px;
    z-index: 200;
    text-align: left;
    border: 1px solid #cdcdcd;
}

.header-menu-panel a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #cdcdcd;
    border-radius: 3px;
}

.header-menu-panel a:last-child {
    border-bottom: none;
}

.header-menu-panel a:hover {
    background-color: #cdcdcd;
}

/* Open Menu Panel */
.header-menu-panel.active {
    display: block;
}

.menu-icon-wrapper {
    position: relative;
    display: inline-block;
}

.notification-bubble {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #ff3b3b;
    color: white;
    font-size: 9px;
    font-weight: bold;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    padding: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.status-open, .status-rented {
    font-size: 14px; 
    font-weight: normal;
    position: relative;
    top: -2px;
}

.status-open {
    color: darkgreen;
}

.status-rented {
    color: darkred;
}

.item-desc {
    font-size: 10px;
    color: #333;
    display: block;
    margin-top: -2px;
    margin-bottom: 3px;
}

.small-date {
    width: 85px !important;
}

.per-person-short {
    display: none;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

/* unified bar */
.controls-bar {
    position: sticky;
    top: 0;
    width: 1250px;
    background: white;
    border: 1.5px solid #d6d6d6;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 30;
    margin-bottom: 12px;
}

.search-field {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 5px;
    border: 1.5px solid #cecece;   /* reserve space */
    border-radius: 7px;
    flex-basis: 0;
    flex-shrink: 1;
    box-sizing: border-box;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
    margin-right: -10px;
}

.search-field:first-child {
    flex-grow: 1.7;
}

.search-field.location {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14.5px;
    padding: 10px 20px;
    background: transparent;
}

.search-field:focus-within {
    border-radius: 7px;
    border: 1.5px solid #007bff;
}

.icon {
    opacity: 0.7;
    font-size: 14px;
    margin: 0 -15px 0 10px;
}

.search-button, .reset-button {
    padding: 0 13px;
    border-radius: 7px;
    align-self: stretch;
    flex: 0 0 auto;
    border: none;
    color: white;
    background-color: #007bff;
    text-decoration: none; /* Remove underline from icons/text */
    font-size: 15px; /* Larger font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.reset-button {
    background-color: #17924a; /* Change background color on hover */
    margin-left: 4px; /* Space between reset and search buttons */
}

.search-button:hover {
    color: #ffffff;
    background-color: #003660; /* Change background color on hover */
}

.reset-button:hover {
    color: #ffffff;
    background-color: #08612d; /* Darker red on hover for reset button */
}

.controls-row, .search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.search-row {
    gap: 2px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1.3px solid #ddd;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: 13px;
}

.checkbox-chip {
    cursor: pointer;
}

/* DEFAULT */
.filter-trigger {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid #cccccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

/* OPEN but untouched */
.filter-dropdown.open .filter-trigger {
    border: 1.5px solid #cccccc;
    background: #fff;
}

/* EDITING (modified but not applied) */
.filter-dropdown.modified .filter-trigger {
    border: 1.5px solid #ffa200;
    background: #fffaf2;
}

/* APPLIED */
.filter-dropdown.applied .filter-trigger {
    border: 1.5px solid #007bff;
    background: #f5f9ff;
}

.filter-arrow {
    margin: 0 -5px 0 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.18s ease;
}

.filter-panel {
    position: absolute;
    top: calc(100%);
    left: 0;
    width: max-content;
    white-space: nowrap;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
    border: 1px solid #c9c9c9;
    padding: 12px;
    display: none;
    z-index: 1000;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
    max-width: fit-content;
}

.filter-panel input[type="text"] {
    border-radius: 8px;
    border: 1.5px solid #aeaeae;
    padding: 8px 10px;
    background: #fff;
    margin-bottom: 3px;
}

/* show normal dropdowns */
.filter-dropdown.open .filter-panel {
    display: block;
}

/* show inline dropdowns (price/dates) */
.filter-dropdown.open {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
}

/* rotate arrow */
.filter-dropdown.open .filter-arrow {
    transform: rotate(180deg);
}

.more-filters-btn {
    display: none;
}

.more-badge {
    position: relative;
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 9px;
    margin-right: -5px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1.5px solid #007bff;
    background: #f5f9ff;
    font-size: 12px;
    font-weight: 500;
}

/* show only when active */
.more-badge.active {
    display: inline-flex;
}

.more-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 2px);
    right: -5px;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3;
    white-space: pre-line;   /* keeps \n */
    width: 110px;            /* fixed clean width */
    text-align: center;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
}

.more-badge:hover::after,
.more-badge:focus-within::after {
    opacity: 1;
    transform: translateY(0);
}

/* count text */
.more-count {
    line-height: 1;
}

/* reset X */
.reset-all {
    cursor: pointer;
    font-size: 13px;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.reset-all:hover {
    opacity: 1;
}

.filter-label-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.filter-label-small {
    font-size: 8px;
    opacity: 0.6;
}

.empty-state {
    text-align: center;
    padding: 120px 20px;
}

.empty-state h3 {
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b6b6b;
    font-size: 14px;
}

@media (max-width: 1350px) {
    .listings-container, .controls-bar {
        width: 1000px;
    }
    .list-view {
        width: 970px;
    }
    .list-view-title {
        max-width: 650px;
    }
    .list_truncate {
        max-width: 500px;
    }
}

@media (min-width: 1151px) {
    #toggle-filters-btn {
        display: none;
    }
}
/* Adjust layout for smaller screens */
@media (max-width: 1150px) {
    .main-content {
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }
    .listings-container, .controls-bar {
        width: 800px;
    }
    .list-view {
        width: 770px;
    }
    .list-view-title {
        max-width: 450px;
    }
    .list_truncate {
        max-width: 380px;
    }
    .sorting-options {
        min-width: 680px;
        max-width: 680px;
        margin-bottom: 7px;
        margin-top: -13px;
        display: none;
    } 
    .safety-click {
        min-width: 680px;
        max-width: 680px;
        margin-bottom: 7px;
        margin-top: 0px;
    }
    .backup-options {
        min-width: 680px;
        max-width: 680px;
        margin-bottom: 7px;
    }
    .toggle-filters-btn {
        display: block;
        min-width: 705px;
        max-width: 705px;
    }
    .header-text {  
        display: none;
    }
    .header-right ul li {
        font-size: 13px;
        margin-right: 30px;    
    }
    .header-right ul li:first-child {
        margin-right: 30px;  
    }
    .notifications {
        margin-left: 0px;  
    }
    .createlisting {
    margin-left: 0px;
    }
    .profilename {
        margin-left: 0px;
    }
}

@media (max-width: 850px) {
    .listings-container, .controls-bar {
        width: 680px;
    }
    .per-person-full {
        display: none;
    }
    .per-person-short {
        display: block;
    }
    .list-view .media-slider, .list-view .slider-media  {
        width: 150px;
        height: 130px;
    }
    .list-view {
        width: 652px;
        height: 130px;
    }
    .listing-details .job_p_list {
        font-size: 14px;
    }
    .list-view-title {
        max-width: 380px;
        font-size: 18px;
    }
    .list_truncate {
        max-width: 280px;
    }
    .right-avail {
        font-size: 15px;
    }
    .list-company-logo {
        bottom: 7px;
        left: 116px;
    }
    .list-bottom-bar {
        width: 149px; /* Spans the full width of the listing */
    }
    .list-bottom-text {
        max-width: 107px;
    }
}

@media (max-width: 710px) {
    .listing-details .title, .list-view-title {
        max-width: 320px;
    }
    .main-content {
        flex-direction: column; 
    }
    .listing {
        max-width: 590px; 
    }
    .listings-container, .controls-bar {
        max-width: 620px; 
    }
    .search-field.location {
        display: none;
    }
    .sorting-options, .backup-options {
        min-width: 600px;
        max-width: 600px;
    }
    .safety-click { 
        min-width: 600px;
        max-width: 600px;
    }
    .toggle-filters-btn {
        min-width: 625px;
        max-width: 625px;
    }
    .estimate-price {
        font-size: 13px;
    }
    #location-text {
        display: inline-block;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 640px) {
    .listing-details .title, .list-view-title {
        max-width: 255px;
    }
    .main-content {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        min-width: fit-content;
        max-width: fit-content;
    }
    .listing {
        max-width: 520px;
    }
    .listings-container, .controls-bar {
        max-width: 545px; 
    }
    .sorting-options, .backup-options {
        min-width: 525px;
        max-width: 525px; 
    }
    .safety-click { 
        min-width: 525px;
        max-width: 525px; 
    }
    .toggle-filters-btn {
        min-width: 550px;
        max-width: 550px;
    }
    .estimate-price {
        font-size: 13px;
    }
    .timeframe, .list_truncate {
        max-width: 225px;
    }
}

@media (max-width: 480px) {
    .header-right ul li:first-child {
        margin-right: 15px;  
    }
    .sorting-options, .toggle-filters-btn, .backup-options, .safety-click {
        margin-left: 10px;
    }
    .listing {
        max-width: 312px; 
        height: fit-content;
    }
    .history-item {
        min-height: 115px;
    }
    .history-housing {
        min-height: 125px;
    }
    .listings-container, .controls-bar {
        margin-left: 10px;
        max-width: 340px; 
    }
    .sorting-options, .backup-options, .safety-click {
        min-width: 320px; 
        max-width: 320px; 
    }
    .toggle-filters-btn {
        min-width: 345px; 
        max-width: 345px; 
    }
    .buy-now-price {
        font-size: 13px;
    }
    .listing-details .created-time, .comments {
        font-size: 10px;
        right: 3px;
    } 
    .comments {
        top: 36px; /* Adjust as needed */
    }
    .created-time {
        top: 26px; /* Adjust as needed */
    }
    .listing-details .distance-marker {
        width: 10px; 
        height: 10px; 
        margin: 0 -3px -0.5px 0;
    }
    .lease-label, .full-text, 
    .negotiable-price,
    .estimate-price {
        display: none;
    }
    .abbreviated-text {
        display: inline; 
    }
    .watchlist-button, .removewatchlist-button {
        font-size: 10px;
    }
    .completed-button, .edit-button, .delete-button {
        font-size: 7px;
    }
    .edit-button {
        margin-top: 27px;
    }
    .direct-button:first-of-type {
        margin-left: 10px;  /* Adds 10px margin to the left of the first button */
    }
    .listing-details .titl, .list-view-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;            
        -webkit-box-orient: vertical;    
        font-size: 14px;
        max-width: 170px;
        white-space: normal;            
    }
    .status-open, .status-rented {
        font-size: 11px; 
        top: -1px;
    }
    .listing-details .job_p, .listing-details .description2, .listing-details .job_p_list {
        font-size: 11px;
    }
    .listing-details .description {
        display: none;
    }
    .relist-button {
        font-size: 17px;
    }
    .modal-content{
        width: 300px;
    }
    .header-right ul li {
        margin-right: 15px;
    }
    .header-right ul li:last-child {  /* Targets the last li element in the header-right ul */
        margin-right: 15px;
    }
    .avail_date {
        display: block;  /* Show when screen width is 480px or less */
    } 
    .right-avail {
        font-size: 10px;
        -webkit-text-stroke: 0px;
    }
    #location-text {
        display: none;
    }
    .dropdown-content {
        max-width: 200px;
    }
    .media-slider {
        max-width: 75px;
        max-height: 65px;
    }
    .slider-media {
        max-width: 75px;
        max-height: 65px;
    }
    .slide-arrow {
        font-size: 18px;
    }
    .type {
        margin-top: 10px;
    }
    .bed {
        font-size: 10px;
        bottom: 20px;
        left: auto;
        margin-left: 0px;
        margin-bottom: 0px; /* Adjust as needed */
    }
    .bath {
        font-size: 10px;
        bottom: 20px;
        right: 4px;
        left: auto;
        margin-left: 0px; 
        margin-bottom: 0px; /* Adjust as needed */
    }
    .lease-bed, .lease-bath {
        margin-bottom: 12px;
    }
    .timeframe, .list_truncate {
        max-width: 160px;
    }
    .dash {
        display: none; /* Hide the dash on phone screens */
    }
    .location {
        display: block;        /* Force the location to appear on the next line */
        max-width: 170px;      /* Set the max width */
        overflow: hidden;      /* Hide overflowed content */
        text-overflow: ellipsis; /* Add ellipsis (...) for overflowed text */
        white-space: nowrap;   /* Prevent text from wrapping to a new line */
    }
    .header-menu-panel {
        right: -10px;
    }
    .special-header {
        margin-left: 3px;
        margin-bottom: 0;
    }
    .list-company-logo {
        min-width: 20px;  /* Adjust width/height to match your avatar */
        min-height: 20px;
        max-width: 20px;  /* Adjust width/height to match your avatar */
        max-height: 20px;
        left: 55px;
    }
    .list-bottom-bar {
        position: absolute;
        bottom: 5px;
        width: 75px; /* Spans the full width of the listing */
    }
    .list-bottom-text {
        font-size: 9px; /* Set the font size */
        max-width: 45px;
        margin-left: 3px;
    }
    .category-type {
        font-size: 10px;
        top: 110px; 
        right: 8px;
    }
}
    
.special-header {
    margin-right: 12px;
    margin-left: -5px; 
    margin-bottom: 1.5px;
}