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

/* Basic styling for the body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.newly-added {
    overflow: hidden; /* Hide any overflow to keep content within the container */
    width: 100%; /* Ensure the container takes the full width of its parent */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.company-logo {
    min-width: 45px;  /* Adjust width/height to match your avatar */
    min-height: 45px;
    max-width: 45px;  /* Adjust width/height to match your avatar */
    max-height: 45px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #c0c0c0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adjust values based on your preference */
}

.company-logo:hover {
    border-color: #73bcf3;
    box-shadow: 0 4px 8px #b3deff; /* Same color as border on hover */
}

.company-logo-list-wrapper {
    position: relative;
}

.company-logo-list {
    display: flex;
    margin-left: 10px;
    margin-right: 15px; 
    padding: 5px;
    padding-right: 7px;
    gap: 10px; 
    overflow-x: auto;
    /* background-color: #f3f3f3;
    border: 1px solid #ddd; */
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
    border-radius: 20px;
    scroll-behavior: smooth;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

/* Newly added housing gallery cards */
.information-section {
    box-sizing: border-box;
}

.housing-gallery-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 12px 18px 12px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.housing-gallery-track::-webkit-scrollbar {
    height: 8px;
}

.housing-gallery-track::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 999px;
}

.housing-gallery-scroll-container {
    display: flex;
    align-items: center;
    position: relative;
}

.housing-gallery-scroll-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 4px);
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.housing-gallery-scroll-arrow:hover {
    background: rgb(155, 155, 155);
    color: white;
}

.housing-gallery-scroll-arrow--left {
    left: 8px;
}

.housing-gallery-scroll-arrow--right {
    right: 8px;
}

.housing-gallery-card {
    flex: 0 0 250px;
    position: relative;
    width: 250px;
    max-width: 250px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: #ffffff;
    border: 1.5px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow-wrap: break-word;
    white-space: normal;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.housing-gallery-card:hover {
    cursor: pointer;
    border-color: #b3deff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.housing-gallery-card__watchlist-form {
    margin: 0;
}

.watchlist-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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;
    color: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 6px 4px;
}

.watchlist-button:hover {
    background-color: #d2d2d2;
}

.watchlist-button.is-in-watchlist {
    border-color: #d95c5c;
    background-color: #fff1f1;
    color: #b42318;
}

.watchlist-button.is-in-watchlist:hover {
    background-color: #ffdede;
}

#dupeToast {
    position: fixed;
    top: 350px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3d3d3d;
    color: #fff;
    padding: 15px 38px 15px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    font-size: 14px;
}

#dupeToast a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.dupe-toast__message {
    display: block;
}

.dupe-toast__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.media-slider {
    position: relative;
    width: 250px;
    height: 200px;
    overflow: hidden;
    display: flex;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.media {
    display: flex;
}

.slider-media {
    position: relative;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    height: 200px;
    flex: 0 0 250px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    margin: 0;
}

.slider-media--contain {
    object-fit: contain;
    background: #ffffff;
}

.external-media-frame {
    position: relative;
    overflow: hidden;
    background: #111;
}

.external-media-frame__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.external-media-attribution {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    pointer-events: none;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 10.5px;
    line-height: 1.1;
}

.media-top-left-label {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    pointer-events: none;
    background: #333;
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    max-width: calc(100% - 50px);
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-pagination {
    --media-pagination-dot-size: 4px;
    --media-pagination-dot-gap: 4px;
    position: absolute;
    left: 50%;
    bottom: 5px;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 11px;
    line-height: 0;
    padding: 0 1px;
    overflow: hidden;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.9;
}

.media-pagination[hidden] {
    display: none;
}

.media-slider.media-slider--swipe-ready {
    touch-action: pan-y;
}

.media-pagination-track {
    display: flex;
    align-items: center;
    gap: var(--media-pagination-dot-gap);
    height: 100%;
    transition: transform 0.2s ease;
    will-change: transform;
}

.media-pagination-dot {
    width: var(--media-pagination-dot-size);
    height: var(--media-pagination-dot-size);
    flex: 0 0 var(--media-pagination-dot-size);
    padding: 0;
    border: 0;
    appearance: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.media-pagination-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .media-pagination,
    .media-pagination-dot {
        pointer-events: auto;
    }

    .media-pagination-dot {
        cursor: pointer;
    }
}

.media-pagination-dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

.media-pagination-dot.is-window-edge:not(.is-active) {
    opacity: 0.85;
    transform: scale(0.8);
}

.slide-arrow {
    --slide-arrow-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23000'%20d='M8.47%204.47a1.25%201.25%200%200%201%201.77%200l6.47%206.47c.59.59.59%201.54%200%202.12l-6.47%206.47a1.25%201.25%200%201%201-1.77-1.77L14.23%2012%208.47%206.24a1.25%201.25%200%200%201%200-1.77z'/%3E%3C/svg%3E");
    --slide-arrow-size: 28px;
    --slide-arrow-icon-size: 14px;
    --slide-arrow-offset: 6px;
    width: var(--slide-arrow-size);
    height: var(--slide-arrow-size);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    appearance: none;
    font-size: 0;
    line-height: 0;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transform-origin: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0s linear 0.2s,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.18s ease;
}

.slide-arrow::before {
    content: "";
    width: var(--slide-arrow-icon-size);
    height: var(--slide-arrow-icon-size);
    background-color: currentColor;
    -webkit-mask-image: var(--slide-arrow-icon);
    mask-image: var(--slide-arrow-icon);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.slide-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.07);
    background-color: #ffffff;
    color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .media-slider.slider-ready.has-multiple-media:hover .slide-arrow {
        opacity: 0.85;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .media-slider.slider-ready.has-multiple-media:hover .slide-arrow:hover {
        opacity: 1;
    }
}

.left-arrow {
    left: var(--slide-arrow-offset);
}

.left-arrow::before {
    transform: rotate(180deg);
}

.right-arrow {
    right: var(--slide-arrow-offset);
}

.housing-gallery-scroll-arrow.slide-arrow {
    --slide-arrow-size: 38px;
    --slide-arrow-icon-size: 16px;
    width: var(--slide-arrow-size);
    height: var(--slide-arrow-size);
    top: calc(50% - 4px);
    z-index: 10;
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
}

.housing-gallery-scroll-arrow.slide-arrow:hover {
    opacity: 1;
}

.housing-gallery-scroll-arrow--left.slide-arrow {
    left: 8px;
}

.housing-gallery-scroll-arrow--right.slide-arrow {
    right: 8px;
}

.listing-details {
    flex: 1;
    width: 100%;
    min-height: 85px;
    overflow: hidden;
    overflow-wrap: break-word;
}

.gal-details {
    width: 100%;
}

.gal-heading {
    font-size: 15px;
    line-height: 1.14;
    margin: 4px 0 2px 2px;
    -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.job_p {
    margin-left: 2px;
    color: #4d4d4d;
    font-size: 12.5px;
}

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

.gal-created-at {
    position: absolute;
    font-size: 11.5px;
    color: #777777;
    display: flex;
    gap: 4px;
    bottom: 5px;
    left: 7px;
}

.gal-created-dist-wrapper {
    display: flex;
    gap: 4px;
}

.small-distance-marker {
    width: 10px;
    height: 10px;
    margin: 1px -4px 0 -2px;
}

.buy-now-price {
    display: flex;
    flex-direction: column;
    color: #111;
    font-size: 18px;
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: 6px;
    margin-bottom: 5px;
    text-align: right;
    -webkit-text-stroke: 0.35px currentColor;
}

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

.per-person-short,
.total-lease-short {
    display: none;
}

.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: 2000;
}

.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;
}

.button-container {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

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

.filter-container {
    max-width: 1150px;  
    width: min(1150px, calc(100% - 24px));
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 160px;
    align-items: center;
    position: relative; /* Set position to relative for z-index to work */
}

.view-all-housing, .view-list {
    position: absolute;
    top: 115px;
    right: 5px; /* Align with the right side of the container */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    color: #255a9b;
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    padding: 5px 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.view-list {
    top: 5px;
}

.view-all-housing:hover,
.view-list:hover {
    background: #edf3f8;
    color: #1d4b82;
}

.view-all-housing:focus-visible,
.view-list:focus-visible {
    outline: 3px solid rgba(37, 90, 155, 0.32);
    outline-offset: 3px;
}

.filter-box {
    display: flex; 
    white-space: nowrap;
    justify-content: space-between; 
    width: 100%;
    text-align: center;
}

.filter-option {
    flex: 1; 
    cursor: pointer;
    padding: 10px;
    padding-inline: 57px;
    border: 1.1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.filter-option:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Adjust values based on your preference */
    border-color: #007bff; /* Change border color on hover */
}

.selected-option {
    background-color: #003660;
    color: #ffffff;
    border-color: #007bff;
}

.filter-categories {
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow-y: auto; /* Add vertical scroll if content exceeds the height */
}

.button button,
.search-button {
    padding: 5px;
    background-color: white;
    color: black;
    border-radius: 8px;
    border: 1px solid black;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.search-button {
    color: white; /* White text */
    background-color: #005698; /* Button background color */
    border: none;
}

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

.back-button {
    border: 1px solid black;
}

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

.filter-categories label {
    display: block; /* Change display property to block for a top-down layout */
    margin-bottom: 10px; /* Add margin between labels for spacing */
}

select {
    width: 70px; /* Set a fixed width for all selects, adjust as needed */
}

.filter-categories h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    margin-top: -10px;
}

.space-group label {
    margin-bottom: 15px;
}

.space-group {
    margin-top: 5px;
}

.back-button {
    display: inline-block;
    padding: 5px;
    background-color: white;
    color: black;
    border-radius: 8px;
    border: 1px solid black;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    position: absolute;
    bottom: 25px;
    right: 120px;
}

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

.dropdown {
    display: inline-block;
    margin-left: 5px;
    position: absolute;
    margin-top: -3px;
    z-index: 1; /* Increase the z-index to make it appear above other elements */
}

.dropbtn {
    padding: 5px;
    background-color: #fff;
    border: 1.2px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.dropdown-content {
    z-index: 5; /* Match the z-index of the dropdown */
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 5px;
    min-width: 180px;
    max-height: 150px; /* Set a max height for the dropdown content */
    overflow-y: auto;
}

@media (min-width: 1201px) {
    #lease-timeframe-content,
    #sublease-timeframe-content,
    #housemate-wanted-timeframe-content,
    #housing-wanted-timeframe-content {
        width: max-content;
    }
}

.dropdown-content label {
    display: block;
    margin-bottom: 5px;
}

.dropdown-scroll-zone {
    position: sticky;
    left: 0;
    z-index: 3;
    height: 0;
    display: none;
    pointer-events: none;
}

.dropdown-content.has-overflow-y .dropdown-scroll-zone {
    display: block;
}

.dropdown-scroll-zone--up {
    top: 0;
}

.dropdown-scroll-zone--down {
    bottom: 0;
}

.dropdown-scroll-arrow {
    position: absolute;
    left: 50%;
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.62;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.dropdown-scroll-arrow--up {
    top: 4px;
    transform: translateX(-50%);
}

.dropdown-scroll-arrow--down {
    bottom: 4px;
    transform: translateX(-50%);
}

.dropdown-scroll-arrow:hover,
.dropdown-scroll-arrow:focus-visible {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    opacity: 1;
    outline: none;
    transform: translateX(-50%) scale(1.07);
}

.dropdown-scroll-arrow.is-disabled {
    display: none !important;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.inline-checkbox-container {
    display: flex;
}

.inline-gender-checkbox {
    display: inline-block;
    margin-right: 3px;
}

.inline-gender-checkbox input[type="checkbox"] {
    margin-right: -1px; /* Adjust the space between the checkbox and the label */
}

/* Adjust layout for smaller screens */
@media (max-width: 1160px) {
    .filter-container {
        height: fit-content;
        width: min(700px, calc(100% - 24px));
        flex-direction: column; /* Stack filter options vertically on very small screens */
    }
    .filter-box {
        flex-wrap: wrap;
    }
    .filter-option {
        padding: 5px; /* Reduce padding even more */
        flex-basis: 100%; /* Make filter options take full width */
    }
}

@media (max-width: 700px) {
    .filter-categories {
        margin-left: 0;
        padding: 20px;
        margin-top: -10px;
    }
    .filter-container {
        width: min(500px, calc(100% - 20px));
    }
    .filter-box {
        margin-bottom: 9px;
    }
}

.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;
}

.info-symbol:hover::after {
    position: relative;
    z-index: 5;
    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;
}

.new-responsive-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 15px;
    margin-left: -200px;
}

/* Lease search bar */
/* Shared search-row component */
#lease-categories,
#sublease-categories,
#housemates-wanted-categories,
#housing-wanted-categories {
    --category-row-height: 40px;
    --category-row-border: 1.5px solid #d4d4d4;
    --category-row-divider: 2px solid #d8d8d8;
    padding: 20px 0 0;
    overflow: visible;
}

.category-search-title {
    margin: -10px 10px 20px;
}

.category-search-form {
    margin: 0;
}

.category-search-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: var(--category-row-height);
    min-height: var(--category-row-height);
    margin-top: -5px;
    border: var(--category-row-border);
    border-radius: 0 0 16px 16px;
    background-color: #ffffff;
    overflow: visible;
    box-shadow: none;
}

.category-search-row > :first-child {
    border-bottom-left-radius: 16px;
}

.category-search-row > :last-child {
    border-bottom-right-radius: 16px;
}

.category-search-segment,
.category-search-location {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;
    height: 100%;
    min-height: 100%;
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: inset -2px 0 0 #d8d8d8;
}

.category-search-segment {
    flex: 0.82 1 0;
    margin: 0;
}

.filter-categories label.category-search-segment {
    margin-bottom: 0;
}

.category-search-location {
    flex: 1.64 1 0;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

#housing-wanted-categories .housing-wanted-search-segment {
    flex: 1.15 1 0;
}

#housing-wanted-categories .housing-wanted-search-location {
    flex: 1.45 1 0;
}

.category-search-dropdown {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
}

.category-search-trigger {
    width: 100%;
    height: var(--category-row-height);
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    line-height: 1.15;
    font-size: 15px;
}

.filter-categories .dropbtn::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 0 3px 10px;
    flex: 0 0 auto;
    border-right: 1.4px solid #333;
    border-bottom: 1.4px solid #333;
    transform: rotate(45deg);
    transition: transform 0.18s ease, margin 0.18s ease;
}

.filter-categories .dropbtn.is-open::after {
    margin-bottom: -3px;
    transform: rotate(225deg);
}

.selection-count-suffix {
    margin-inline-start: 0.25em;
}

.category-search-trigger .selection-count-suffix {
    margin-inline-end: 0.25em;
}

.category-search-trigger .button-label {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}

.category-search-row .dropdown-content {
    top: calc(100% + 1px);
    left: 0;
    bottom: auto;
}

.category-search-row .dropdown-content.show {
    display: block;
}

.category-search-row .dropdown:hover .dropdown-content:not(.show) {
    display: none;
}

.category-search-location .icon {
    color: #111111;
    font-size: 18px;
    flex-shrink: 0;
}

.category-search-location input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #444444;
    font-size: 15px;
    text-overflow: ellipsis;
}

.category-search-hidden-fields {
    display: none;
}

.category-search-submit {
    position: static;
    align-self: stretch;
    flex: 0 0 auto;
    height: 100%;
    min-width: 124px;
    min-height: 100%;
    margin: 0;
    padding: 0 22px;
    border-radius: 0 0 16px 0;
    box-shadow: none;
    background-color: #005698;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 24px;
}

.category-search-submit .fa-search {
    font-size: 18px;
}

.category-search-submit:hover {
    background-color: #003660;
}

/* Shared budget-dropdown pieces */
#lease-categories #lease-budget-button,
#sublease-categories #sublease-budget-button,
#housemates-wanted-categories #housemates-budget-button,
#housing-wanted-categories #housing-wanted-budget-button {
    gap: 8px;
}

#lease-categories .budget-dropdown-content,
#sublease-categories .budget-dropdown-content,
#housemates-wanted-categories .budget-dropdown-content,
#housing-wanted-categories .budget-dropdown-content {
    min-width: 250px;
    padding: 14px 16px;
}

#lease-categories .budget-inputs,
#sublease-categories .budget-inputs,
#housemates-wanted-categories .budget-inputs,
#housing-wanted-categories .budget-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

#lease-categories .budget-inputs input,
#sublease-categories .budget-inputs input,
#housemates-wanted-categories .budget-inputs input,
#housing-wanted-categories .budget-inputs input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#lease-categories .budget-inputs input:focus,
#sublease-categories .budget-inputs input:focus,
#housemates-wanted-categories .budget-inputs input:focus,
#housing-wanted-categories .budget-inputs input:focus {
    border-color: #4fb59d;
    box-shadow: 0 0 0 1.5px rgba(79, 181, 157, 0.15);
}

#lease-categories .budget-separator,
#sublease-categories .budget-separator,
#housemates-wanted-categories .budget-separator {
    color: #8a8a8a;
    font-weight: 600;
}

#sublease-gender-dropdown,
#housemates-gender-dropdown {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .new-responsive-flex {
        gap: 30px;
        flex-direction: column;
        margin-bottom: 20px;
        margin-left: 0px;
    }

    .category-search-title {
        margin-bottom: 32px;
    }

    .category-search-row {
        height: auto;
        min-height: 0;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
        overflow: hidden;
    }

    .category-search-segment,
    .category-search-location {
        flex: 1 1 100%;
        height: auto;
        min-height: 52px;
        width: 100%;
        min-width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
        align-items: center;
        box-shadow: none;
        border-bottom: 1.5px solid #e5e5e5;
    }

    .category-search-trigger,
    .category-search-location {
        justify-content: flex-start;
        text-align: left;
    }

    .category-search-trigger {
        height: 52px;
        min-height: 52px;
        align-items: center;
    }

    .category-search-location input {
        text-align: left;
        line-height: 1.2;
    }

    .category-search-location .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .category-search-row .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: -2px;
        box-sizing: border-box;
        border: 1px solid #ddd;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    #lease-categories .budget-dropdown-content,
    #sublease-categories .budget-dropdown-content,
    #housemates-wanted-categories .budget-dropdown-content,
    #housing-wanted-categories .budget-dropdown-content {
        min-width: 0;
    }

    .category-search-row > :first-child,
    .category-search-row > :last-child {
        border-radius: 0;
    }

    .category-search-submit {
        min-height: 52px;
        height: auto;
        width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 700px) {
    #sublease-gender-dropdown,
    #housemates-gender-dropdown {
        margin-top: 0px;
    }
}

@media (max-width: 480px) {
    .view-all-housing {
        top: 109px;
        right: 3px;
        font-size: 15px;
    }
    .view-list {
        top: 3px;
        right: 3px;
        font-size: 15px;
    }
    .filter-container {
        width: min(335px, calc(100% - 10px));
        font-size: 12px;
        height: fit-content;
    }
    .filter-categories {
        height: fit-content;
        padding: 20px;
        padding-bottom: 60px; /* Add padding to extend the height */
    }
    .search-button {
        bottom: 5px;
        right: 5px;
    }
    .back-button {
        display: none;
    }
    .modal-content{
        width: 300px;
    }
    .dropdown-content {
        min-width: 170px;
    }

    .total-lease-full {
        display: none;
    }

    .total-lease-short {
        display: block;
    }
}
