/**
 * ListingForge — Frontend Styles
 * Mirrors AuctionForge's grid/wide layout patterns.
 */

/* =====================================================
   CARD (GRID) LAYOUT
   Mirrors: .bp-lot / .bp-lot__wrp-image / .bp-lot__content
   ===================================================== */
.lf-row {
    padding: 0 15px;
}

.lf-d-flex { display: flex; }
.lf-f-center { justify-content: center; align-items: center; }
.lf-f-wrap { flex-wrap: wrap; }
.lf-no-margin { margin: 0; }

.lf-main-title {
    font-size: 28px;
    font-weight: 400;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.lf-listings {
    gap: 20px;
}

.lf-listing {
    width: 280px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lf-listing:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.lf-listing__wrp-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.lf-listing__image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.lf-listing:hover .lf-listing__image {
    transform: scale(1.05);
}

.lf-listing__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.lf-listing__badge.lf-status-under_contract { background: #fff3e0; color: #b36b00; }
.lf-listing__badge.lf-status-sold { background: #fde8e8; color: #a00; }

.lf-listing__content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lf-listing__title {
    margin-bottom: 6px;
}

.lf-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.lf-title:hover {
    color: #c8553d;
}

.lf-listing__address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lf-listing__address .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    vertical-align: -1px;
    color: #c8553d;
}

.lf-listing__price {
    font-size: 18px;
    font-weight: 700;
    color: #c8553d;
    margin-bottom: 12px;
    margin-top: auto;
}

.lf-listing__tool {
    margin-top: auto;
}

.lf-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.lf-btn-default {
    background: #333;
    color: #fff !important;
    border: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lf-btn-default:hover {
    background: #555;
    border-color: #555;
}


/* =====================================================
   WIDE LAYOUT
   Mirrors: .bpw-upcoming-wrap / .bpw-auction-card
   ===================================================== */
.lfw-listings-wrap {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.lfw-listings-title {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 5px;
    font-family: Georgia, "Times New Roman", serif;
}

.lfw-listings-title-line {
    width: 80px;
    height: 3px;
    background: #c8553d;
    margin: 0 auto 30px;
}

.lfw-listing-card {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    align-items: stretch;
}

.lfw-listing-card:first-of-type {
    border-top: 1px solid #ddd;
}

.lfw-listing-img {
    flex: 0 0 420px;
    max-width: 420px;
    display: flex;
    align-items: center;
    position: relative;
}

.lfw-listing-img a {
    display: block;
    position: relative;
}

.lfw-listing-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.lfw-listing-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lfw-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.3;
    font-family: Georgia, "Times New Roman", serif;
}

.lfw-title a {
    color: inherit;
    text-decoration: none;
}

.lfw-title a:hover {
    text-decoration: underline;
}

.lfw-address {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

.lfw-address a {
    color: #555;
    text-decoration: none;
}

.lfw-address a:hover {
    color: #c8553d;
    text-decoration: underline;
}

.lfw-address .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    color: #c8553d;
}

.lfw-price {
    font-size: 24px;
    font-weight: 700;
    color: #c8553d;
    margin-bottom: 12px;
}

.lfw-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.lfw-contact-item {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.lfw-contact-item:hover {
    color: #c8553d;
}

.lfw-contact-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    color: #c8553d;
    margin-right: 3px;
}

.lfw-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lfw-btn-primary {
    display: block;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
    box-sizing: border-box;
    background: #333;
    color: #fff !important;
    border: 1px solid #333;
}

.lfw-btn-primary:hover {
    background: #555;
    border-color: #555;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .lfw-listings-wrap {
        max-width: 95%;
    }

    .lfw-listing-card {
        flex-direction: column;
        gap: 15px;
    }

    .lfw-listing-img {
        flex: none;
        max-width: 100%;
    }

    .lfw-buttons a {
        min-width: 140px;
        padding: 10px 20px;
    }

    .lf-listing {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .lf-listing {
        width: 100%;
    }
}
