.listing-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.listing-feed-bar,
.listing-feed-tools,
.listing-feed-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.listing-feed-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.listing-feed-count {
    color: gray;
    font-size: 13px;
}

.listing-feed-panel[hidden] {
    display: none;
}

.listing-feed fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.listing-feed legend {
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.listing-feed-create[hidden] {
    display: none;
}

.mf-card-product--rental {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    color: inherit;
    position: relative;
}

.mf-card-product--rental > .container-item-images {
    display: block;
    position: relative;
}

.mf-rental-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    pointer-events: none;
    background: var(--ds-btn-primary-bg, #7962e6);
    color: #fff;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.mf-card-product--rental .rental-price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    line-height: 1.2;
    min-height: 0;
}

.mf-card-product--rental .rental-price-link {
    color: inherit;
    text-decoration: none;
    text-align: right;
    min-width: 0;
}

.mf-card-product--rental .container-item-grid-content-title {
    color: inherit;
    text-decoration: none;
    text-align: left;
}

.mf-rental-deposit {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9aa0a6;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.mf-rental-deposit--on {
    color: var(--ds-btn-primary-bg, #7962e6);
}

.mf-rental-deposit__icon {
    width: 18px;
    height: 18px;
    display: block;
}

.mf-rental-deposit__tip {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 5;
    width: max-content;
    max-width: 180px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #1f2430;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.mf-rental-deposit:hover .mf-rental-deposit__tip,
.mf-rental-deposit:focus .mf-rental-deposit__tip,
.mf-rental-deposit:focus-visible .mf-rental-deposit__tip {
    display: block;
}

.mf-rental-home-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    color: inherit;
}

.mf-rental-home-card__media {
    display: block;
    position: relative;
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    min-width: 0;
    overflow: hidden;
    background: #F7F8FA;
}

.mf-rental-home-card__media::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: var(--ds-catalog-aspect, 4 / 3);
    max-height: min(var(--ds-catalog-thumb-max, 320px), 70vh);
}

.mf-rental-home-card__media .container-item-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
}

.mf-rental-home-card__media .image-autofocus {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
    object-fit: cover;
}

.mf-rental-home-card__body {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 12px 8px 0;
}

.mf-rental-home-card__title {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    min-height: calc(2 * 1.25em);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mf-rental-home-card__title:hover {
    color: inherit;
}

.mf-rental-home-card__offer {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mf-rental-home-card__price-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.mf-rental-home-card__price-link .card-item-price-now {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.mf-rental-home-card__per-day {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.mf-rental-home-card__offer-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.mf-rental-home-card__deposit {
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
}

.mf-rental-home-card__term {
    flex: 0 0 auto;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: gray;
}

.mf-rental-home-card__term strong {
    font-weight: 700;
}

.mf-rental-home-card__city {
    align-self: flex-start;
    max-width: 100%;
    min-width: 0;
    color: gray;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-rental-home-card__author {
    min-width: 0;
    margin-top: auto;
}
