/* Shed listing card (homepage Featured Sheds, New Listings, seller pages) — copied from the live shedhub.com card CSS */

.listing-card {
    min-width: 0; /* lets the card shrink inside grids and flex rows instead of pushing past the screen */
    margin: 12px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.6;
    color: #636b6f;
}
.listing-card a { text-decoration: none; }
.listing-card svg.fa {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Image */
.listing-card__media {
    position: relative;
    border-radius: 3px 3px 0 0;
    background: url(../img/background.png) no-repeat center / cover;
}
.listing-card__image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 3px 3px 0 0;
}
.listing-card__gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 17%);
}
.listing-card__header-icons {
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 92%;
    margin: 10px 10px 0;
}
.listing-card__monogram { opacity: 0.3; }
.listing-card__featured {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    display: flex;
    width: 106px;
    height: 30px;
    padding-top: 7px;
    border-radius: 0 5px 5px 0;
    background: #439df7;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 12px;
    color: #fff;
}
.listing-card__featured .fa { margin: 0 7px 0 10px; }
.listing-card__featured-border {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    width: 106px;
    border: 2.4px solid #005dba;
    border-radius: 0 0 5px 0;
    background: #005dba;
}
.listing-card__sold {
    position: absolute;
    right: 0;
    bottom: 1px;
    z-index: 2;
}

/* Details */
.listing-card__body { padding: 15px 20px 0; }
.listing-card__id,
.listing-card__title {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #444;
}
.listing-card__id { font-size: 12px; line-height: 12px; }
.listing-card__title {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 21px;
    line-height: 25px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* the full name, up to two lines */
}
.listing-card a.listing-card__title { color: #444; }
.listing-card__siding {
    margin-top: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #444;
}
.listing-card__siding--empty { margin-top: 37px; }

.listing-card__status {
    display: flex;
    margin-top: 15px;
    padding: 3px 8px;
    border-radius: 13px;
    background: #f5f5f5;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-size: 14px;
    line-height: 21px;
    color: #444;
}
.listing-card .listing-card__status-dot { margin: 5px 5px 0 0; font-size: 13px; }
.listing-card__status-dot--online { color: #0ecc93; }
.listing-card__status-dot--available { color: #6bcc0e; }
.listing-card__status-dot--pending { color: #c5e115; }
.listing-card__status-dot--custom-order { color: #718105; }
.listing-card__status-dot--sold { color: #ff1e00; }
.listing-card__status-heading { margin-right: 4px; font-weight: 700; }

.listing-card__availability { margin-top: 12px; }
.listing-card__availability-row {
    display: flex;
    align-items: center;
}
.listing-card__availability-row + .listing-card__availability-row { margin-top: 5px; }
.listing-card__availability-icon {
    width: 17px;
    text-align: center;
    color: #444;
}
.listing-card__availability-icon .fa-store { font-size: 12px; }
.listing-card__availability-icon .fa-marker { margin-top: 4px; font-size: 15px; }
.listing-card__availability-text {
    display: flex;
    overflow: hidden;
    padding-left: 6px;
    white-space: nowrap;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #444;
}
.listing-card__seller {
    margin-left: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.listing-card .listing-card__seller a { color: #444; text-decoration: underline; }

/* Price: cash price, then rent-to-own on its own line (design C, Oct 2026) */
.listing-card__price {
    margin: 16px 0 0;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.2;
    color: #439df7;
}
.listing-card__price small { font-size: 15px; }
.listing-card__rto {
    margin-top: 3px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: #439df7;
}
.listing-card__rto-note {
    margin-top: 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 11.5px;
    line-height: 1.35;
    color: #aaa;
}

/* Colors + builder: three columns, each name with a small swatch, long names wrap */
.listing-card__colors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    font-family: 'Barlow', sans-serif;
}
.listing-card__colors > div {
    min-width: 0;
    text-transform: capitalize;
}
.listing-card__color { display: flex; align-items: flex-start; gap: 5px; margin-top: 2px; font-size: 14px; color: #666; }
.listing-card__color span { min-width: 0; overflow-wrap: break-word; }
.listing-card__color i { flex: none; width: 12px; height: 12px; margin-top: 3px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 50%; background: #fff; }
.listing-card__label,
.listing-card__built-tag,
.listing-card__brand {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: #444;
}
.listing-card__built {
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.listing-card__brand { margin-left: 6px; }
.listing-card__brand-logo { box-sizing: border-box; max-width: 140px; max-height: 42px; margin-left: 10px; padding: 3px; border-radius: 6px; background: #f1f2f3; object-fit: contain; } /* a little bigger (Nov 25: was 30px high); light grey behind it so a see-through PNG logo, even a white one, still shows */
.listing-card__brand[hidden], .listing-card__brand-logo[hidden] { display: none; }

/* Used sheds (StructureHub inventory_type): Pre-Owned / Repossessed */
.listing-card__condition {
    position: absolute;
    right: 0;
    bottom: 20px;
    z-index: 2;
    padding: 6px 10px 5px;
    border-radius: 5px 0 0 5px;
    background: #ffa424;
    font: 700 13px/1 'Barlow', sans-serif;
    letter-spacing: .04em;
    color: #fff;
}
.listing-card__availability-icon .fa-truck { margin-top: 3px; font-size: 13px; }
.listing-card__delivery .listing-card__availability-text { color: #2f7d32; }

/* Buttons */
.listing-card__actions { display: flex; }
.listing-card__call,
.listing-card__view-more {
    display: block;
    width: 50%;
    margin-top: 20px;
    padding: 10px;
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.listing-card a.listing-card__call {
    border-radius: 0 0 0 3px;
    background: #fafafa;
    color: #ffa424;
}
.listing-card a.listing-card__view-more {
    border-radius: 0 0 3px 0;
    background: #ffa424;
    color: #fff;
}
/* Hover: light orange tint for Call Seller, deeper orange for View More */
.listing-card a.listing-card__call:hover,
.listing-card a.listing-card__call:focus-visible {
    background: #fff1dc;
    color: #e8900f;
    outline: none;
}
.listing-card a.listing-card__view-more:hover,
.listing-card a.listing-card__view-more:focus-visible {
    background: #e8900f;
    outline: none;
}

/* Favourites heart — signed out: a link to the login page (like live); signed in: a save button */
.listing-card__heart {
    display: block;
    transition: transform 0.15s;
}
.listing-card__heart:hover,
.listing-card__heart:focus-visible { transform: scale(1.12); outline: none; }
.listing-card__heart img { display: block; }
.listing-card__heart--toggle { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.listing-card__heart--toggle svg { fill: rgba(0, 0, 0, .25); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); transition: fill .15s; }
.listing-card__heart--toggle:hover svg { fill: rgba(255, 75, 92, .55); }
.listing-card__heart--toggle.is-on svg { fill: #ff4b5c; }
.listing-card__heart--toggle.is-popping { animation: heartPop .35s ease; }
@keyframes heartPop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .listing-card__heart--toggle.is-popping { animation: none; } }

@media (max-width: 600px) {
    .listing-card__availability-text { display: block; }
    .listing-card__seller { margin-left: 0; }
    .listing-card__seller,
    .listing-card__siding { white-space: pre-wrap; }
}
@media (min-width: 500px) and (max-width: 614px) { .listing-card__image { height: 355px; } }
@media (min-width: 615px) and (max-width: 767px) { .listing-card__image { height: 470px; } }
@media (min-width: 891px) and (max-width: 991px) { .listing-card__image { height: 300px; } }
@media (min-width: 1700px) and (max-width: 1999px) { .listing-card__image { height: 415px; } }
@media (min-width: 2000px) { .listing-card__image { height: 500px; } }

/* Sale (Nov 2026): the normal price crossed out and how much is off */
.sale-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #e53935; color: #fff; font: 700 12px/1.4 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.listing-card__sale { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 2px; font-size: 15px; }
.listing-card__sale s { color: #8a9196; }
.listing-card__sale b { color: #c62828; }
.new-listing__was { color: #8a9196; font-weight: 400; }
.listing-card__sale-ribbon { position: absolute; bottom: 56px; z-index: 2; height: 30px; padding: 8px 14px 0 12px; border-radius: 0 5px 5px 0; background: #e53935; color: #fff; font: 700 12px/12px 'Barlow', sans-serif; letter-spacing: .06em; }
