.page-card {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    margin: 20px 20px 0 20px;
}


.page-card>.list-controls {
    padding: 10px;
    margin: 0px 0 10px 0;
    background: var(--ColorThemes1);
    color: var(--ColorThemes3);
    border: 1px solid var(--ColorThemes2);
    box-shadow: var(--shadow-l1);
    border-radius: var(--border-radius);
    overflow: auto;
    display: flex;
    justify-content: space-between;
}

#page-card-sort {
    display: flex;
}

#page-card-sort button {
    display: none;
    font-size: 18px;
    background: 0;
    cursor: pointer;
    min-width: 30px;
    height: 30px;
    padding: 0;
    margin-right: 10px;
    align-items: center;
    align-content: center;
    justify-content: center;
    color: var(--ColorThemes3);
    border-radius: calc(var(--border-radius) - 5px - 2px);
    border: 1px solid var(--ColorThemes0);
}

#page-card-sort button[data-state="active"] {
    background: var(--PrimaryColor);
}

#page-card-sort button:hover {
    background: var(--ColorThemes3);
}

#page-card-sort button>svg {
    width: 22px;
    fill: var(--PrimaryColorText);
}

#page-card-sort button:hover svg {
    fill: var(--ColorThemes1);
}

#page-card-sort button:hover {
    display: none;
    opacity: 1;
}

#page-card-sort button[data-state="active"] {
    display: flex;
}

#page-card-status {
    display: flex;
}

#page-card-status>div {
    display: none;
}

#page-card-status>div[data-state="active"] {
    display: flex;
    align-items: center;
    margin-right: 2px;
}

#page-card-status>div>svg {
    width: 25px;
    height: 25px;
    fill: var(--ColorThemes3);
    margin-top: -2px;
}


#page-card-info {
    padding: 10px;
    margin: 0px 0 10px 0;
    background: var(--ColorThemes1);
    color: var(--ColorThemes3);
    border: 1px solid var(--ColorThemes2);
    box-shadow: var(--shadow-l1);
    border-radius: var(--border-radius);
    /* overflow: auto; */
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
}

#page-card-info>a {
    font-size: var(--FontSize5);
    font-weight: 500;
}

#page-card-info>h2 {
    font-size: var(--FontSize4);
}

#page-card-info>div {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#page-card-info>div>h3 {
    font-size: var(--FontSize3);
    font-weight: 500;
    opacity: 0.9;
}

#page-card-info>div>h4 {
    font-size: var(--FontSize2);
    font-weight: 400;
    opacity: 0.8;
}

#card-new-date {
    display: flex;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: fixed;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgb(31 31 33 / 41%);
    transition: all .2s ease 0s;
}

#card-new-date>.mess {
    display: flex;
    width: 300px;
    height: 100px;
    border: 1px solid var(--ColorThemes2);
    background: var(--ColorThemes0);
    box-shadow: 0px 2px 3px rgb(0 0 0 / 5%), 0px 5px 15px rgb(0 0 0 / 5%), 0px 4px 8px rgb(0 0 0 / 5%), 0px 0px 1px rgb(0 0 0 / 5%);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -160px;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    padding: 10px;
    border-radius: 15px;
    justify-content: space-between;

}

#card-new-date>.mess>button {
    width: 100%;
    min-width: 140px;
    padding: 0 5px;
    border-radius: 6px;
    height: 30px;
    background-color: var(--PrimaryColor);
    color: var(--PrimaryColorText);
    cursor: pointer;
    font-size: var(--FontSize4);
    font-weight: 400;
}

#card-new-date>.mess>input {
    width: calc(100% - 10px);
    min-width: 140px;
    padding: 0 5px;
    border-radius: 6px;
    height: 30px;
    background-color: var(--ColorThemes2);
    color: var(--ColorThemes3);
    cursor: pointer;
    font-size: var(--FontSize4);
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.page-card *[disabled] {
    opacity: 0.5;
}

.page-card #list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.page-card details {
    color: var(--ColorThemes3);
    width: 100%;
    min-width: 320px;
    background: var(--ColorThemes1);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--ColorThemes2);
    box-shadow: var(--shadow-l1);
}

@media (min-width: 900px) {
    .page-card #list {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-card details {
        width: calc(50% - 10px);
    }
}

.page-card details[disabled] .page-card details summary,
.page-card details.disabled .page-card details summary {
    pointer-events: none;
    user-select: none;
}

.page-card details .page-card details summary::-webkit-.page-card details-marker,
.page-card details .page-card details summary::marker {
    display: none;
    content: "";
}

.page-card details summary {
    cursor: pointer;
    height: 45px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-card details summary p {
    padding: 0 10px;
    font-size: var(--FontSize3);
    font-weight: 500;
}

.page-card details summary svg {
    width: 25px;
    height: 25px;
    padding: 0 10px;
    fill: currentColor;
}

.page-card .apartments_list {
    padding: 10px;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.page-card .apartments_list>p {
    font-size: var(--FontSize5);
    text-align: center;
    color: var(--ColorThemes3);
    padding: 10px;
}

.page-card .card_info {
    display: flex;
    font-size: var(--FontSize3);
    border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--ColorThemes3);
    background-color: var(--ColorThemes2);
    gap: 6px;
    padding: 6px;
}

.card_info_homestead {
    border-radius: 6px !important;
    width: calc(100% - 15px);
    margin: 0;
}

.page-card .card_info>span {
    font-size: var(--FontSize3);
    font-weight: 500;
    position: relative;
}

.page-card .card_info>hr {
    height: 1px;
    background-color: currentColor;
    opacity: 0.1;
    margin-bottom: 4px;
}

.page-card .card_info>.info {
    display: flex;
    font-size: var(--FontSize3);
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    gap: 5px;
}

.page-card .card_info>.info>select {
    color: #3d3d3d;
    border-radius: 6px;
    border: 1px solid #eaebef;
    background-color: var(--ColorThemes3);
    min-width: 110px;
    width: 50%;
    padding: 4px;
    height: 30px;
}

.page-card .card_info>.info>input,
.page-card .card_info>.info>button {
    font-size: var(--FontSize2);
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 6px;
    background-color: var(--ColorThemes0);
    border: 1px solid var(--ColorThemes1);
    color: var(--ColorThemes3);
    width: 50%;
    min-width: 70px;
    padding: 0 4px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.page-card .card_info>.info>button>svg {
    width: 15px;
    height: 15px;
    fill: var(--ColorThemes3);
}

.page-card .card_info>textarea {
    border-radius: 6px;
    font-size: var(--FontSize3);
    background-color: var(--ColorThemes0);
    border: 0;
    color: var(--ColorThemes3);
    width: calc(100% - 10px);
    min-width: 70px;
    padding: 5px;
    min-height: 40px;
    appearance: none;
    resize: vertical;
    -webkit-appearance: none;
}

.page-card .card_info>textarea::placeholder {
    color: var(--ColorThemes3);
    opacity: 0.5;
}

.page-card .card_info>textarea::-webkit-input-placeholder {
    color: var(--ColorThemes3);
    opacity: 0.5;
}

.page-card #map_card {
    display: none;
    width: 100%;
    height: calc(100vh - 100px);
    background: var(--ColorThemes1);
    color: var(--ColorThemes3);
    border: 1px solid var(--ColorThemes2);
    box-shadow: var(--shadow-l1);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}


smart-select {
    --smart-select-option-color: var(--ColorThemes3);
    --smart-select-border-color: var(--ColorThemes2);
    --smart-select-background: var(--ColorThemes0);
    --smart-select-color: var(--PrimaryColor);
    --smart-select-chip-fill: var(--PrimaryColorText);
    --smart-select-chip-background: var(--PrimaryColor);
    --smart-select-chip-color: var(--ColorThemes3);
    --smart-select-search-color: var(--ColorThemes3);
    --smart-select-hover-background: var(--ColorThemes2);
    --smart-select-hover-color: var(--ColorThemes3);
    --smart-select-selected-background: var(--PrimaryColor);
    --smart-select-selected-color: var(--PrimaryColorText);
    --smart-select-font-size-1: var(--FontSize1);
    --smart-select-font-size-2: var(--FontSize3);
    --smart-select-border-radius-1: 8px;
    --smart-select-border-radius-2: 4px;
}