/**
 * Otomotto — ilan kartı grid hizalaması
 * (Vite olmadan da yüklenir)
 */
.listing-card-col {
    display: flex;
    margin-bottom: 1.5rem;
}

.listing-card-grid.car-listing {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    position: relative;
}

.listing-card-grid__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
    cursor: pointer;
}

.listing-card-grid__fav {
    position: absolute;
    top: 158px;
    right: 20px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.listing-card-grid:hover .listing-card-grid__fav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.listing-card-grid__fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #0c1227;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.listing-card-grid__fav-btn span {
    font-size: 10px;
}

.listing-card-grid .thumb::before {
    pointer-events: none;
}

.listing-card-grid .thumb .tag {
    left: auto;
    right: 20px;
    z-index: 3;
    pointer-events: none;
}

/* Görsel — sabit yükseklik */
.listing-card-grid .thumb {
    position: relative;
    flex: 0 0 200px;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
}

.listing-card-grid .listing-urgent-ribbon {
    position: absolute;
    top: 16px;
    left: -36px;
    z-index: 4;
    width: 130px;
    padding: 5px 0;
    background: #e31e24;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.listing-card-grid:hover .thumb .tag {
    transform: translateY(20px);
}

.listing-card-grid .thumb img {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.listing-card-grid:hover .thumb img {
    transform: none;
}

/* İçerik — fiyat ve başlık sabit blok */
.listing-card-grid .details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 15px 9px;
}

.listing-card-grid .details .wrapper {
    flex: 0 0 auto;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    padding-bottom: 12px;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.listing-card-grid .details .price {
    margin: 0 0 6px;
    padding: 0;
    height: 22px;
    line-height: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.listing-card-grid .details .title {
    margin: 0;
    padding: 0;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
}

.listing-card-grid .details .title,
.listing-card-grid .details .title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 16px;
    max-height: 32px;
    color: inherit;
    text-decoration: none;
}

/* Alt bilgi — km, yakıt, vites aynı hizada */
.listing-card-grid .details .listing_footer {
    flex: 0 0 auto;
    margin-top: auto;
    min-height: 56px;
    padding-top: 16px;
    box-sizing: border-box;
}

.listing-card-grid .details .listing_footer ul {
    min-height: 20px;
    margin-bottom: 0;
}

/* İlan listesi — filtre paneli arka planı */
.listing-filter-sidebar,
.listing-filter-sidebar .sidebar_widgets,
.listing-filter-sidebar .sidebar_widgets_wrapper,
.listing-filter-sidebar .sidebar_advanced_search_widget {
    background-color: #F9F9F9;
}
