body {
    width: 100%;
    padding-bottom: 130px;
    margin: 0;
}

.header-title-container {
    padding: 16px 16px 24px 16px;
    background: #050505;
    border-bottom: 1px solid rgba(81, 81, 81, 0.8);
}

.overlay-container {
    position: absolute;
    margin-left: 16px;
    margin-top: 10px;
}

.title-text-container {
    display: flex;
    margin: 0;
}

.title-text-inner-subcontainer {
    display: flex;
}

.title-text-subcontainer {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 32px;
    color: var(--primary-accent);
    margin: 0;
    font-family: 'Gilroy';
    font-weight: 200;
    line-height: 1;
}

.main-title-secondary {
    font-size: 32px;
    color: var(--primary-accent);
    margin: 0;
    font-family: 'Gilroy';
    font-weight: 600;
    line-height: 1;
}

.main-subtitle {
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    margin-left: 3px;
    font-family: 'Gilroy';
    font-weight: 600;
}

.content-container {
    padding: 16px;
}

.content-body {
    flex: 1;
}

.search-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 8px;
    margin-left: auto;
    padding: 12px;
    cursor: pointer;
}

.search-button-container i {
    width: 18px;
    height: 18px;
}

.filters-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.regions-filter-menu, .category-filter-menu {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    min-width: 0;
}

.regions-filter-menu span, .category-filter-menu span {
    font-family: 'Gilroy';
    color: var(--primary-color);
    font-weight: 400;
    font-size: 14px;
    opacity: 70%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.regions-icon-container, .category-icon-container {
    display: flex;    
}

.regions-icon-container i, .category-icon-container i {
    width: 12px;
    height: 12px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.modal, .modal-all-filters {
    position: fixed;
    inset: 0;
    display: flex;
    top: 0;
    align-items: flex-end;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none; /* чтобы не мешал кликам пока не открыт */
    transition: background 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
}

#modal-locations, #modal-categories, #modal-sort {
    z-index: 1000;
}

.modal.show {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 1;
    pointer-events: auto;
}

.modal.show .modal-overlay {
    transform: translateY(0); /* плавно поднимается */
}

.modal-overlay {
    position: relative;
    width: 100%;
    background: #1A1A1A;
    border: 1px solid #3B3B3B;
    border-radius: 24px 24px 0px 0px;
    padding: 24px;
    max-height: 60%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0px;
}

.modal-title-text {
    font-family: 'Gilroy';
    color: var(--primary-color);
    font-weight: 600;
    font-size: 22px;
}

.close-modal-icon {
    cursor: pointer;
}

.close-modal-icon i {
    width: 18px;
    height: 18px;
}

.modal-row-text {
    font-family: 'Gilroy';
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.modal-row-container {
    background: #282626;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    margin-top: 4px;
    gap: 4px;
}

.modal-accept-filters-button {
    position: fixed;
    bottom: 20px;
    left: 50%; /* центрируем по горизонтали */
    transform: translateX(-50%); /* корректируем центрирование */
    
    width: calc(100% - 40px);
    color: var(--primary-color);
    background-color: #2563EB;
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
}

.property-card {
    border-bottom: 1px solid rgba(81, 81, 81, 0.8);
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    text-decoration: none;
}

.property-details-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 12px;
    gap: 8px;
}

.property-image-container {
    position: relative;
}

.property-image-container img {
    flex-shrink: 0;
    object-fit: cover;
    width: 100px;
    height: 140px;
    border-radius: 6px;
}

.property-upper-container, .property-bottom-container {
    display: flex;
    width: 100%;
    padding: 8px 0;
}

.property-block-title {
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 9px;
    color: var(--primary-color);
    opacity: 60%;
}

.property-block-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.property-inner-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.property-inner-block p {
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
}

.property-inner-block i {
    color: var(--primary-accent);
    width: 14px;
    height: 14px;
}

.property-location-container {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1000px;
    padding: 7px 10px;
    font-size: 10px;
    column-gap: 6px;
}

.property-location-container .icon-pin {
    display: block;
    width: 12px;
    height: 12px;
    display: block;
    align-items: center;
    line-height: 1;
}

.property-location {
    display: inline-flex;
    font-family: 'Gilroy';
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    vertical-align: middle;
}

.property-blocks-container {
    display: grid;
    align-items: end; 
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.property-header-container {
    display: flex;
    justify-content: space-between;
}

.property-header-container i {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.property-header-container .icon-heart-filled {
    background-color: red;
}

.modal-body-content {
    width: 100%;
    overflow-y: auto;
    flex-grow: 1;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 48px;
}

.property-image-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    justify-content: center;
    background-color: var(--primary-accent);
    color: var(--primary-color);
    padding: 2px 7px;
    border-radius: 1000px;
    overflow: hidden;
    white-space: nowrap;
}

.property-image-text {
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 8px;
    color: var(--primary-color);
}

.property-inner-block p {
    margin: 5px;
}

.modal-all-filters .modal-overlay {
    border-radius: 0;
    padding: 0;
    max-height: 100%;
    height: 100%;
    background-color: #050505;
    border: none;
    padding-bottom: 150px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.modal-all-filters-header-container {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 24px 16px;
    border-bottom: 1px solid rgba(81, 81, 81, 0.8);
    z-index: 1000;
    background-color: #050505;
}

.modal-all-filters-header-container i {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-header-text {
    font-family: 'Gilroy';
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    color: var(--primary-color)
}

.filters-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: 20px; /* = высота footer (139px) + запас */
    box-sizing: border-box;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-search-container {
    display: flex;
    gap: 8px;
}

.filters-by-date {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

.filters-by-date i {
    width: 16px;
    height: 16px;
}

.search-filter-container {
    position: relative;
    width: 100%;
    height: calc(2.25rem + 2px);
    display: flex;
    flex-direction: row;
}

.search-input {
    background: #1A1A1A;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 36px;
    box-sizing: border-box;
    inset: 0;
    height: 100%;
    width: 100%;
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 14px;
    color: var(--primary-color);
}

.search-input:not(:placeholder-shown) {
    border-color: #2563EB;
}

.search-filter-container .icon-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-block;
    opacity: 50%;
    pointer-events: none;
}

.hidden-search-label {
    display: none;
}

.main-filters {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.main-filters .filter-menu {
    padding: 12px 14px;
    background-color: #1A1A1A;
}

.filter-menu i {
    color: var(--primary-accent);
    width: 13px;
    height: 13px;
}

.filters-block .filter-menu span {
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filters-title {
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.filter-title {
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--primary-color);
}

.filters-block {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
}

.filters-block .filter-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.filters-block .filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background-color: #1A1A1A;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 8px;
    color: var(--primary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-input::placeholder {
    font-family: 'Gilroy';
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-filters .filter-menu span {
    opacity: 50%;
    font-weight: 200;
}

.deadline-filter-menu {
    position: relative;
    display: inline-block;
}

.deadline-filter-menu i {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 12px;
    top: 56%;
    cursor: pointer;
    line-height: 1.2;
}

.fixed-modal-footer {
    position: fixed;
    bottom: 0;
    padding: 16px;
    height: 139px;
    width: 100%;
    border: 1px solid rgba(81, 81, 81, 0.8);
    border-radius: 0px;
    background: #1A1A1A;
    box-sizing: border-box;
}

.apply-filters-button {
    border-radius: 8px;
    padding: 14px 36px;
    background-color: #2563EB;
    border: none;
    color: var(--primary-color);
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.reset-filters-button {
    border-radius: 8px;
    padding: 14px 36px;
    border: 1px solid rgba(81, 81, 81, 0.8);
    background-color: transparent;
    color: var(--primary-color);
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.modal-footer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-modal-container {
    justify-content: flex-start;
    background: #1A1A1A;
    padding: 6px 14px;
    padding-left: 0;
}

.sort-modal-container input {
    margin: 0;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.11px solid #C5C5C5;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="radio"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;   /* размер внутреннего кружка */
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); /* спрятан */
    transition: transform 0.2s ease;
}

.filter-input.filled, .filter-menu.filled {
    border: 1px solid #2563EB;
    border-radius: 8px;
    background-color: transparent;
}

/* При выборе показываем */
input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}