/* Карточка объявления (Компонент плитки) */
.listing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Убрали transform и transition для всей карточки, оставили только легкую тень по желанию */
    transition: box-shadow 0.2s ease;
}

.listing-card:hover {
    /* Карточка больше не прыгает, только чуть глубже становится тень */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Изображение и адаптивность под контент из TG */
.listing-card__image {
    position: relative;
    height: 250px;
    background: #f7fafc;
    overflow: hidden; /* Критично важно, чтобы картинка не вылезала за пределы блока при увеличении */
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Добавляем плавность для эффекта наезда */
    transition: transform 0.3s ease; 
}

/* Эффект базового "наезда" Астры при ховере на карточку */
.listing-card:hover .listing-card__image img {
    transform: scale(1.05); /* Картинка плавно увеличивается на 5% */
}

/* Бейдж категории на фотографии */
.listing-card__category-badge {
    background-color: darkcyan; 
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-radius: 20px;
    width: max-content;
    height: fit-content;
    white-space: nowrap;
}

.listing-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0aec0;
    font-size: 14px;
}

/* Ценник */
.listing-card__price {
    color: #1a202c;
    font-weight: 600;
    white-space: nowrap;
}

/* Внутренний контент */
.listing-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.listing-card__content__row{
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.listing-card__city {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin: 10px 0;
}
.listing-card__city:before{
    background-image: url(../img/map-pointer.svg);
    background-size: contain;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 20px;
    margin-right: 5px;
    width: 20px;
    vertical-align: top;
    position: relative;
    left: -3px;
}

.listing-card__title {
    font-size: 18px;
    line-height: 1.4;
    margin: 5px 0;
}

.listing-card__title a {
    color: #1a202c;
    text-decoration: none;
    transition: all 0.2s ease;
}

.listing-card__title a:hover {
    color: darkcyan;
}

.listing-card__excerpt {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Подвал (Дата и Контакт) */
.listing-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 12px;
    font-size: 12px;
}

.listing-card__date {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0.75;
    display: block;
    margin: 15px 0 -4px 1px;
}

.listing-card__author {
    background: #3182ce;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.listing-card__author:hover {
    background: #2b6cb0;
}