/* =========================================================================
   Category / brand archive card — .car-listing (the "standard" view)

   Markup: woocommerce/content-product.php
   Wrapper: the parent theme's woocommerce/loop/loop-start.php adds .car-listing

   Font FAMILY is deliberately untouched everywhere in this file — it inherits
   'Open Sans' from body as before. Only size, weight, colour and layout change.

   Loaded by inc/plr-fleet-browser.php with a filemtime() version, after
   custom.css and after plr-price-spacing.css.
   ====================================================================== */

/* --- Card shell -------------------------------------------------------- */

.car-listing .thumbnail-car-card {
    margin-bottom: 30px;
    background-color: #fff;
    border: 1px solid #e6e8eb;
}

/* --- Caption: title on its own row, price and button sharing the next ---- */

.car-listing .thumbnail-car-card .caption {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 30px 30px;
}

.car-listing .thumbnail-car-card .caption-title {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    margin: 0 0 30px;
    padding: 28px 0 22px;
    border-bottom: 1px solid #ececec;
}

/* .caption-title a is 18px/18px site-wide; the cramped line-height also has to
   go up or a two-line name overlaps itself at this size. The red last word is
   the theme's own <span> rule and is left alone. */
.car-listing .thumbnail-car-card .caption-title a {
    font-size: 28px;
    line-height: 34px;
}

/* --- Price ------------------------------------------------------------- */

/* Overrides the 30px side padding and 14px size the archive rules in
   custom.css apply to this element. */
.car-listing .thumbnail-car-card .caption-title-sub {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 !important;
    line-height: 1.2;
}

/* "STARTING AT" becomes a small stacked label above the amount. */
.car-listing .thumbnail-car-card .caption-title-sub .start_at {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9298a2 !important;
}

/* .start_at is block here, so the shared 3px sibling gap from
   plr-price-spacing.css would indent the amount off the left edge. */
.car-listing .thumbnail-car-card .caption-title-sub .start_at + * {
    margin-left: 0;
}

.car-listing .thumbnail-car-card .caption-title-sub .rentit-current-price,
.car-listing .thumbnail-car-card .caption-title-sub .rentit-sale-price {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #2b2f36 !important;
    text-decoration: none;
}

.car-listing .thumbnail-car-card .caption-title-sub .rentit-regular-price {
    font-size: 18px;
    font-weight: 600;
    color: #adb2ba !important;
    text-decoration: line-through;
}

.car-listing .thumbnail-car-card .caption-title-sub .price-unit {
    margin-left: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #9298a2 !important;
}

/* --- Select button ----------------------------------------------------- */

/* The button is wrapped in its own <a class="media-link">, so the flex child is
   the anchor. Scoped with > to avoid catching the image link in .media. */
.car-listing .thumbnail-car-card .caption > .media-link {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: auto;
}

.car-listing .thumbnail-car-card .caption > .media-link .myBtn {
    float: none;
    padding: 16px 42px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Mobile ------------------------------------------------------------ */

@media (max-width: 767px) {
    .car-listing .thumbnail-car-card .caption {
        padding: 0 20px 25px;
    }

    .car-listing .thumbnail-car-card .caption-title {
        margin-bottom: 20px;
        padding: 20px 0 16px;
    }

    .car-listing .thumbnail-car-card .caption-title a {
        font-size: 22px;
        line-height: 28px;
    }

    .car-listing .thumbnail-car-card .caption-title-sub .rentit-current-price,
    .car-listing .thumbnail-car-card .caption-title-sub .rentit-sale-price {
        font-size: 32px;
    }

    .car-listing .thumbnail-car-card .caption > .media-link {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        margin-top: 18px;
        margin-left: 0;
    }

    .car-listing .thumbnail-car-card .caption > .media-link .myBtn {
        display: block;
        width: 100%;
    }
}
