/* Shared listing card — templates/includes/listing_card.html */
.listing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.listing-card:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.listing-card .lc-media {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    background: #f5f6f8;
}
.listing-card .lc-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.listing-card:hover .lc-media > img { transform: scale(1.04); }
.listing-card .lc-media > img.lc-placeholder {
    object-fit: contain;
    background: #fff;
    padding: 16px;
}

/* EİDS badge — top left (logo is a round seal with wide side padding → crop to the seal) */
.listing-card .lc-eids {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 3px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.listing-card .lc-eids img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}
.listing-card .lc-eids-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0e6e8c;
    white-space: nowrap;
    line-height: 1;
}

/* Listing type (left) / estate type (right) — bottom corners */
.listing-card .lc-tag {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    max-width: calc(50% - 16px);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.listing-card .lc-tag--type {
    left: 10px;
    background: var(--color-primary, #cc9f5a);
}
.listing-card .lc-tag--estate {
    right: 10px;
    background: rgba(17, 24, 39, 0.78);
}

.listing-card .lc-body {
    padding: 16px 18px 18px;
    flex: 1 1 auto;
}
.listing-card .lc-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card .lc-price {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary, #cc9f5a);
}
.listing-card .lc-address {
    margin: 0;
    font-size: 0.82rem;
    color: #8a8f99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card .lc-address i {
    margin-right: 4px;
    color: var(--color-primary, #cc9f5a);
}

@media (max-width: 576px) {
    .listing-card .lc-tag { font-size: 0.7rem; padding: 3px 8px; }
    .listing-card .lc-eids img { width: 28px; height: 28px; }
    .listing-card .lc-eids-text { font-size: 0.7rem; }
}
