.vehicle-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 650px;
    height: 220px;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vehicle-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.vehicle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 65%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: left 0.45s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.vehicle-card:hover::before {
    left: 150%;
}

.vehicle-card.unavailable::before {
    display: none;
}

.vehicle-card.unavailable:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.vehicle-card.unavailable::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(12, 18, 28, 0.72) 0%,
        rgba(12, 18, 28, 0.55) 45%,
        rgba(18, 24, 35, 0.62) 100%
    );
    z-index: 4;
    pointer-events: none;
}

.vehicle-card.unavailable .vehicle-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 3;
    pointer-events: none;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.vehicle-card.unavailable .vehicle-img,
.vehicle-card.unavailable .vehicle-card-image-placeholder {
    filter: brightness(0.58) saturate(0.75);
}

.unavailable-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    padding: 8px 14px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.55);
}

.vehicle-card.unavailable .vehicle-card-btn {
    background: #9eacc2;
    cursor: not-allowed;
}

.vehicle-card.unavailable .vehicle-card-btn:hover {
    background: #9eacc2;
}

.vehicle-card.unavailable .vehicle-card-info {
    position: relative;
    z-index: 5;
}

.vehicle-card.unavailable .heart-btn {
    z-index: 7;
}

.vehicle-card.unavailable .vehicle-card-title,
.vehicle-card.unavailable .vehicle-card-price,
.vehicle-card.unavailable .vehicle-card-params {
    color: #e8edf4;
}

.vehicle-card.unavailable .owner-name {
    color: #cfd8e6;
}

.vehicle-card-image {
    width: 320px;
    height: 220px;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: #eee;
    overflow: hidden;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    display: block;
}

.vehicle-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #dce3ec 0%, #b8c5d6 50%, #94a3b8 100%);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.vehicle-card-image .vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    display: block;
}

.unavailable-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.heart-btn {
    position: relative;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.heart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.heart-btn.active {
    background: rgba(255, 107, 107, 0.1);
}

.heart-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.vehicle-card-info {
    flex: 1 1 50%;
    padding: 28px 28px 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.vehicle-card-header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
    z-index: 5;
}

.vehicle-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    min-width: 0;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25;
    max-height: calc(1.25em * 2);
}

.card-heart-btn {
    flex-shrink: 0;
}

.vehicle-card-params {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    color: #A0A0A0;
    font-size: 15px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    flex: 0 1 auto;
    min-height: 0;
}

.vehicle-card-params li {
    margin-bottom: 0;
    display: inline;
}

.premium-icon {
    color: #222;
    font-size: 18px;
    margin-right: 4px;
}

.vehicle-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-right: 16px;
}

.owner-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 0 0;
}

.owner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.owner-name {
    font-size: 15px;
    color: #222;
    font-weight: 600;
}

.vehicle-card-bottom {
    display: flex;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 8px;
}

.vehicle-card-btn {
    background: #2983FF;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 4;
}

.vehicle-card-btn:hover {
    background: #1a5bb8;
}

.vehicle-card-btn:hover {
    background: #1a5bb8;
}

.topped-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2979FF;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.stock-indicator-icon {
    font-size: 12px;
}

.stock-indicator-count {
    letter-spacing: 0.01em;
}

.topped-flame {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.topped-text {
    color: #ff0000;
    font-weight: 600;
    font-size: 16px;
}

.vehicle-card.hidden-vehicle {
    display: none !important;
}

@media (max-width: 725px) {
    .vehicle-card {
        display: grid;
        grid-template-columns: 1fr;
        height: 450px;
        width: 320px;
    }

    .vehicle-card-image {
        width: 100%;
        height: 220px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-bottom-left-radius: 0;
    }

    .vehicle-img,
    .vehicle-card-image-placeholder,
    .vehicle-card-image .vehicle-image {
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-bottom-left-radius: 0;
    }

    .vehicle-card-header-right {
        gap: 6px;
    }
}