/* Tarjeta de vehículo (inc/cvn-vehicle-cards.php): la de los listados de flota, la portada, las landings
   y la ficha. Viene de assets/css/fleet.css de campervaniceland.com (rama main, noviembre de 2026). */

.fleet-section,
.fleet-cards,
.fl {
    --fleet-ink: #14272c;
    --fleet-muted: #6a7174;
    --fleet-line: #c7d3d8;
    --fleet-soft: #f3f6f7;
    --fleet-accent: #f37720;
    --fleet-blue: #4e9db5;
}
.fleet-card {
    display: flex;
    flex-direction: column;
    padding: 30px 16px 16px;
    border: 2px solid var(--fleet-line);
    border-radius: 30px;
    background: #fff;
    text-align: center;
}
/* RULE of the site: a hover that draws an outline is this ring, as in the mega menu. It is drawn in from the edge the
   pointer crossed and wiped out through the exit edge (assets/js/fleet.js sets data-from and .is-lit). */
.fleet-ring { --ring-w: 2px; position: relative; }
.fleet-ring::after {
    content: "";
    position: absolute;
    inset: calc(var(--ring-w) * -1);
    border: var(--ring-w) solid var(--fleet-accent);
    border-radius: 30px;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s cubic-bezier(.22, 1, .36, 1);
}
.fleet-ring[data-from="top"]::after { clip-path: inset(0 0 100% 0); }
.fleet-ring[data-from="bottom"]::after { clip-path: inset(100% 0 0 0); }
.fleet-ring[data-from="left"]::after { clip-path: inset(0 100% 0 0); }
.fleet-ring[data-from="right"]::after { clip-path: inset(0 0 0 100%); }
.fleet-ring.is-lit::after, .fleet-ring:focus-visible::after { clip-path: inset(0 0 0 0); }
.fleet-ring.is-ring-reset::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .fleet-ring::after { transition: none; } }
.fleet-card.is-hidden {
    display: none;
}
.fleet-card-title {
    margin: 0 0 2px;
    font-family: "Bubblegum Sans", cursive;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--fleet-ink);
}
.fleet-card-title a {
    color: inherit;
    font-weight: 400; /* global links are bold; Bubblegum only has 400 and would be faux-bolded */
    text-decoration: none;
}
/* CAR-5: the title is the card's only link and its ::before covers the whole card; the booking button sits above it */
.fleet-card-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
@media (hover: hover) {
    .fleet-card:hover .fleet-card-title a { color: var(--fleet-accent); }
    .fleet-card:hover .fleet-spec-info { --_c: var(--fleet-accent); }
}
.fleet-card-link:focus-visible { outline: none; }
.fleet-card:has(.fleet-card-link:focus-visible) { outline: 2px solid var(--fleet-accent); outline-offset: 3px; }
.fleet-card-subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--fleet-ink);
}
.fleet-card-sep-text {
    color: var(--fleet-muted);
}
.fleet-card-media {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    margin: 10px 0 0;
}
.fleet-card-media img {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
}
.fleet-card-media .fleet-card-placeholder {
    width: 64px;
    height: 64px;
    opacity: .4;
}
/* the admin's badge («New Model 2024!»): at the bottom left, because the photo carries its own stickers
   on top (No F-roads on the left, WINTER DEAL on the right) */
.fleet-card-badge {
    position: absolute;
    bottom: 4px;
    left: 0;
    z-index: 1;
    max-width: 60%;
    pointer-events: none; /* a click on the badge goes to the card link below */
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--fleet-ink);
    color: #fff;
    font: 700 11px/1.2 "Cabin", sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* feature row: text or number + icon, thin rules between items */
.fleet-card-specs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* equal cells, each item centred, rules on the cell edges */
    align-items: center;
    margin: 18px 0 10px;
    padding: 0;
    list-style: none;
}
.fleet-card-specs li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 24px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--fleet-ink);
}
.fleet-card-specs li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 20px;
    transform: translateY(-50%);
    background: #ccc;
}
.fleet-spec-num {
    font-size: 24px;
    font-weight: 500;
}
.fleet-spec-icon {
    display: block;
    width: auto;
}
.fleet-spec-icon--seats { width: 14px; }
.fleet-spec-icon--beds { width: 21px; }
.fleet-spec-icon--heating,
.fleet-spec-icon--info { width: 20px; }
.fleet-spec-info {
    --_c: var(--fleet-line);
    display: block;
    line-height: 0;
}
/* the icon is a mask, so its colour follows the link: grey, orange on hover / keyboard focus */
.fleet-spec-info .fleet-spec-icon--info {
    display: block;
    height: 20px;
    background: var(--_c);
    -webkit-mask: url(/assets/images/icon-info.svg) center / contain no-repeat;
    mask: url(/assets/images/icon-info.svg) center / contain no-repeat;
    transition: background-color .15s ease;
}
.fleet-card-rule {
    height: 1px;
    margin: 0 -16px;
    background: var(--fleet-line);
}
.fleet-card-rule--extras {
    display: flex;
    align-items: center;
    height: auto;
    background: none;
}
.fleet-card-rule--extras::before,
.fleet-card-rule--extras::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: var(--fleet-line);
}
.fleet-card-extras {
    flex: 0 0 auto;
    margin: 0 10px;
    padding: 4px 9px;
    border-radius: 4px;
    background: #75a843;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.fleet-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}
.fleet-card-price-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--fleet-muted);
}
.fleet-card-price strong {
    font-family: "Cabin", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--fleet-accent);
}
.fleet-card-price strong small {
    font-size: 24px;
    font-weight: 700;
}
.fleet-card-price-alt {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.07;
    color: #1a2b29;
}
.fleet-card-price-alt b {
    font-size: 14px;
    font-weight: 700;
}
.fleet-card-actions {
    position: relative;
    z-index: 2; /* above the card link */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.fleet-card-cta.btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 50px;
    font-family: "Cabin", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
}

