/* ═══════════════════════════════════════════════════════════════════
   Fleet picker — shared by the Calgary pages in the header's Calgary
   dropdown (hub, service areas, the five area pages, the YYC pages).

   A party-size picker over three vehicle cards. One card is the
   default "Best fit" (set in the HTML with .is-pick and a pressed
   button), every card stays fully active, and the buttons only move
   the highlight. Everything works without JavaScript; the behaviour is
   in /js/rml-fleet-picker.js.

   Markup contract:
     <div class="fp" data-fp>
       <div class="fp-picker" role="group" aria-labelledby="…">
         <p class="fp-picker-label" id="…">…</p>
         <div class="fp-picker-options">
           <button type="button" aria-pressed="true|false" data-pick="KEY">…</button>
         </div>
         <p class="fp-picker-result" aria-live="polite">default note</p>
       </div>
       <ul class="fp-fleet">
         <li class="fp-car [is-pick] [is-icon]" data-key="KEY">
           <a class="fp-car-media" …><img …/ or <i …>><span class="fp-car-tag">…</span></a>
           <div class="fp-car-body">
             <p class="fp-car-name">…</p> <p class="fp-car-models">…</p>
             <ul class="fp-car-specs"><li>…</li></ul>
             <div class="fp-car-actions"><a class="fp-car-quote">…</a><a class="fp-car-more">…</a></div>
           </div>
           <template class="fp-car-note">note shown when picked</template>
         </li>

   Keep the <template> LAST in each card: the audit reads "Business SUV"
   followed by a bag count within 90 characters, so a van note placed
   right after the SUV card would be misread as an SUV luggage claim.
       </ul>
       <p class="fp-note">…</p>
     </div>

   Capacities in the cards must be the verified figures in
   public/data/fleet.json — the audit's fleet-capacity rule checks them.
   Colours come from the :root tokens in rml-blog.css.
   ═══════════════════════════════════════════════════════════════════ */

.fp{margin:22px 0 18px;}
.fp .fp-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ── Party-size picker ── */
.fp .fp-picker{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 18px;padding:18px 20px;
  border-radius:18px;background:linear-gradient(145deg,#111827,#1f2937);color:#fff;
}
.fp .fp-picker-label{margin:0!important;font-size:14.5px!important;line-height:1.4!important;font-weight:800;color:#fff!important;display:flex;align-items:center;gap:9px;}
.fp .fp-picker-label i{color:#ff8a98;}
.fp .fp-picker-options{display:flex;flex-wrap:wrap;gap:8px;}
.fp .fp-picker-options button{
  min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.07);color:#fff;font-size:14px;font-weight:700;cursor:pointer;
  font-family:inherit;transition:background .2s ease,border-color .2s ease;
}
.fp .fp-picker-options button:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.45);}
.fp .fp-picker-options button[aria-pressed="true"]{background:var(--rml-red);border-color:var(--rml-red);}
.fp .fp-picker-options button:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.fp .fp-picker-result{flex:1 1 100%;margin:0!important;font-size:13.5px!important;line-height:1.55!important;color:rgba(255,255,255,.75)!important;}
.fp .fp-picker-result strong{color:#fff;}

/* ── Cards ── */
.fp .fp-fleet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 14px;padding:0;list-style:none;}
.fp .fp-car{
  position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;margin:0;
  border:1px solid var(--rml-border);border-radius:18px;background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.fp .fp-car:hover{transform:translateY(-3px);border-color:rgba(228,29,55,.35);box-shadow:0 18px 38px rgba(15,23,42,.12);}
.fp .fp-car-media{
  position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;overflow:hidden;
  background:radial-gradient(circle at 50% 40%,#3a3f48,#111318 75%);text-decoration:none!important;
}
.fp .fp-car-media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;margin:0;border-radius:0;transition:transform .45s ease;}
.fp .fp-car:hover .fp-car-media img{transform:scale(1.05);}
/* Icon card (no approved photo, e.g. buses and motor coaches). */
.fp .fp-car-media > i{
  width:64px;height:64px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(228,29,55,.22);color:#ff8a98;font-size:28px;
}
.fp .fp-car-tag{
  position:absolute;left:12px;top:12px;padding:5px 12px;border-radius:999px;
  background:rgba(15,23,42,.82);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.02em;line-height:1.3;
  backdrop-filter:blur(4px);
}
.fp .fp-car-body{display:flex;flex-direction:column;flex:1;padding:18px 20px 20px;}
.fp .fp-car-name{margin:0 0 4px!important;font-size:19px!important;line-height:1.3!important;font-weight:800;color:var(--rml-black)!important;}
.fp .fp-car-models{margin:0 0 8px!important;font-size:13.5px!important;line-height:1.45!important;color:var(--rml-muted)!important;}
.fp .fp-car-specs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px;padding:0;list-style:none;}
.fp .fp-car-specs li{display:inline-flex;align-items:center;gap:7px;margin:0;padding:6px 11px;border-radius:999px;background:var(--rml-soft);border:1px solid var(--rml-border);font-size:13px;line-height:1.3;font-weight:700;color:#1f2937;}
.fp .fp-car-specs li:before{content:none;}
.fp .fp-car-specs i{width:14px;text-align:center;color:var(--rml-red);font-size:12px;}
.fp .fp-car-actions{display:flex;gap:8px;margin-top:auto;}
.fp .fp-car-actions a{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border-radius:10px;
  font-size:14px;font-weight:800;line-height:1.2;text-decoration:none!important;white-space:nowrap;
}
.fp .fp-car-quote{flex:1 1 auto;background:var(--rml-red);color:#fff!important;}
.fp .fp-car-quote:hover{filter:brightness(.92);}
.fp .fp-car-more{flex:0 0 auto;border:1px solid var(--rml-border);color:var(--rml-black)!important;background:#fff;}
.fp .fp-car-more:hover{border-color:rgba(228,29,55,.35);}
.fp .fp-car-actions a:focus-visible{outline:3px solid var(--rml-red);outline-offset:2px;}

/* The picked card: outlined and badged. Every card stays active. */
.fp .fp-car.is-pick{border-color:var(--rml-red);box-shadow:0 0 0 2px var(--rml-red),0 18px 38px rgba(228,29,55,.16);}
.fp .fp-car.is-pick:after{
  content:"Best fit";position:absolute;right:12px;top:12px;padding:4px 10px;border-radius:999px;
  background:var(--rml-red);color:#fff;font-size:11.5px;font-weight:800;line-height:1.3;
}

/* ── Note under the cards ── */
.fp .fp-note{display:flex;gap:9px;align-items:flex-start;max-width:none;margin:0!important;font-size:13.5px!important;line-height:1.6!important;color:var(--rml-muted)!important;}
.fp .fp-note i{margin-top:4px;}
.fp .fp-note a{color:#c8102e;font-weight:700;text-decoration:underline;text-underline-offset:2px;}

/* ── Tablet and large phone (600–991px) ──
   Three columns get too narrow, so each card takes the full row with
   the photo beside the details. */
@media (max-width:991px){
  .fp .fp-fleet{grid-template-columns:1fr;gap:14px;}
  .fp .fp-car{flex-direction:row;}
  .fp .fp-car-media{flex:0 0 42%;aspect-ratio:auto;min-height:210px;}
  .fp .fp-car-body{padding:18px 20px;justify-content:center;}
  .fp .fp-car-actions{margin-top:0;}
  .fp .fp-car-quote{flex:0 1 220px;}
}
@media (max-width:767px){
  .fp .fp-picker{padding:16px;}
  .fp .fp-picker-options{width:100%;}
  .fp .fp-picker-options button{flex:1 1 auto;padding:8px 12px;}
  .fp .fp-car-body{padding:16px 16px 18px;}
}
/* ── Small phone (under 600px): photo on top, full-width card. ── */
@media (max-width:599px){
  .fp .fp-car{flex-direction:column;}
  .fp .fp-car-media{flex:none;aspect-ratio:16/10;min-height:0;}
  .fp .fp-car-specs{margin-bottom:14px;}
  .fp .fp-car-quote{flex:1 1 auto;}
  .fp .fp-car-actions{margin-top:auto;}
}
/* ── Very narrow phones (360px and under) ── */
@media (max-width:360px){
  .fp .fp-picker{padding:14px;}
  .fp .fp-picker-options button{padding:8px 10px;font-size:13.5px;}
  .fp .fp-car-body{padding:14px;}
  .fp .fp-car-specs li{font-size:12.5px;padding:5px 9px;}
}
@media (prefers-reduced-motion:reduce){
  .fp .fp-car,.fp .fp-car-media img,.fp .fp-picker-options button{transition:none!important;}
  .fp .fp-car:hover,.fp .fp-car:hover .fp-car-media img{transform:none!important;}
}
