/* =========================================================================
   TREC RENTALS · Public fleet / vehicle / booking styles
   Uses the design tokens already defined in styles.css (:root). Additive only.
   ========================================================================= */
.pf-state { max-width: 640px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.pf-state h2 { font-family: var(--f-display); color: var(--ink); font-size: 1.6rem; margin-bottom: 8px; }
.pf-state p { color: var(--muted); }
.pf-state__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pf-spin { width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%; border: 2.5px solid var(--paper-3); border-top-color: var(--brand); animation: pfspin .8s linear infinite; }
@keyframes pfspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-spin { animation: none; } }

.pf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.pf-back:hover { color: var(--brand); }
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow--light::before { background: rgba(255,255,255,.7); }

.pf-h2 { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.pf-h3 { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: 1.2rem; margin-bottom: 14px; }

/* ---------- Collection hero ---------- */
.pf-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: #fff; }
.pf-hero--plain { background-image: var(--brand-grad); }
.pf-hero__inner { padding: 40px var(--gutter) 44px; width: 100%; }
.pf-hero .pf-back { color: rgba(255,255,255,.85); }
.pf-hero .pf-back:hover { color: #fff; }
.pf-hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 8px; }
.pf-hero__sub { color: rgba(255,255,255,.9); max-width: 56ch; margin-top: 10px; font-size: 1.02rem; }

.pf-collhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pf-count { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Vehicle grid + cards ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pf-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf-card__img { position: relative; aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; }
.pf-card__img img { width: 100%; height: 100%; }
.pf-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-strong); background: var(--paper-2); }
.pf-ph svg { width: 54px; height: 54px; }
.pf-badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 100px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.pf-badge--soon { background: rgba(16,18,48,.82); color: #fff; }
.pf-card__body { padding: 15px 17px 17px; }
.pf-card__make { color: var(--muted); font-size: .8rem; font-weight: 600; }
.pf-card__model { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: 1.18rem; margin-top: 2px; }
.pf-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-card__price strong { color: var(--ink); font-size: 1.1rem; } .pf-card__price span { color: var(--muted); font-size: .82rem; margin-left: 3px; }
.pf-card__soon { color: var(--brand); font-weight: 700; }
.pf-card__mi { color: var(--muted); font-size: .82rem; }

.pf-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.pf-empty svg { width: 56px; height: 56px; color: var(--line-strong); margin: 0 auto 14px; }
.pf-empty__hint { font-size: .9rem; margin: 4px 0 18px; }

/* ---------- Vehicle detail ---------- */
.pf-vhead { margin-bottom: 22px; }
.pf-vtitle { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 6px; }
.pf-vlayout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 34px; align-items: start; }
.pf-vmain { min-width: 0; }

.pf-gal__main { position: relative; aspect-ratio: 16/10; background: var(--paper-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); touch-action: pan-y; }
/* Horizontal-track slider — same movement mechanism as the landing-page Collection
   carousel (.slide): absolutely-positioned slides transformed relative to the active
   index, transitioned on transform. Clipped by the frame so only the active shows. */
.pf-gal__track { position: absolute; inset: 0; z-index: 1; }
.pf-gal__slide { position: absolute; inset: 0; transform: translateX(0); backface-visibility: hidden; }
.pf-gal--ready .pf-gal__slide { transition: transform 0.75s var(--ease); }
.pf-gal__slide img { width: 100%; height: 100%; }
.pf-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); cursor: pointer; }
.pf-gal__nav--prev { left: 12px; } .pf-gal__nav--next { right: 12px; }
.pf-gal__nav:hover { background: #fff; }
/* Thumbnail strip — aligned to the main image width; exactly 5 shown on desktop
   (calc so 5 tracks + 4 gaps = 100% of the strip = the main image width). Extra
   photos overflow and the strip scrolls (scrollbar hidden; driven by the code's
   auto-centring). Each thumb matches the main frame's 16:10 so it previews the
   same composition, and inactive thumbs sit back slightly for a premium feel. */
.pf-gal__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow: hidden; scrollbar-width: none; -ms-overflow-style: none; }
/* Scrolling/carousel movement only when it's actually needed (6+ images on desktop).
   With 5 or fewer, the five tracks + gaps fill the width exactly and never scroll. */
.pf-gal__thumbs--scroll { overflow-x: auto; }
.pf-gal__thumbs::-webkit-scrollbar { display: none; }
.pf-thumb { flex: 0 0 calc((100% - 40px) / 5); aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper-2); padding: 0; cursor: pointer; opacity: .6; transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease); }
.pf-thumb:hover { opacity: .85; }
.pf-thumb.is-active { border-color: var(--brand); opacity: 1; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Premium spec panels: a soft card per section, an eyebrow + serif title, then
   an airy label/value stat grid (values set in the display serif). */
.pf-block { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 24px 14px; box-shadow: var(--shadow-sm); }
.pf-block__head { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.pf-block .pf-h3 { margin: 0; font-size: 1.06rem; letter-spacing: -.01em; }
.pf-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); column-gap: 20px; row-gap: 12px; }
.pf-info__item { min-width: 0; }
.pf-info__item dt { color: var(--muted); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }
.pf-info__item dd { font-family: var(--f-display); color: var(--ink); font-weight: 400; font-size: 1.18rem; line-height: 1.14; letter-spacing: -.01em; margin-top: 4px; word-break: break-word; }

/* Category chip in the vehicle header — refined, on-brand, not loud. */
.pf-vtags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 13px; border-radius: 100px; background: var(--brand-soft); border: 1px solid transparent; color: var(--brand-deep); font-family: var(--f-ui); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.pf-chip svg { width: 12px; height: 12px; color: var(--brand); flex: none; }

/* Booking-benefits / promo module — a deep navy "concierge" card that stands
   apart from the white spec panels; discounts are the hero, minimum rental supports. */
.pf-promo { margin-top: 16px; border-radius: 18px; padding: 10px 24px 9px; color: #fff; background: linear-gradient(140deg, var(--brand-deep), var(--ink)); box-shadow: var(--shadow-md); }
.pf-promo__head { margin-bottom: 6px; }
.pf-promo__eyebrow { display: block; font-family: var(--f-ui); font-size: .62rem; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.pf-promo__title { font-family: var(--f-display); font-weight: 400; font-size: 1.06rem; line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.pf-promo__offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pf-offer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 7px 14px 8px; }
.pf-offer__val { display: flex; align-items: baseline; gap: 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: #fff; letter-spacing: -.02em; }
.pf-offer__unit { font-family: var(--f-ui); font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.pf-offer__lbl { display: block; margin-top: 2px; font-weight: 600; font-size: .82rem; line-height: 1.15; color: #fff; }
.pf-offer__sub { display: block; margin-top: 0; font-size: .72rem; line-height: 1.15; color: rgba(255,255,255,.58); }
.pf-promo__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); font-size: .83rem; line-height: 1.2; color: rgba(255,255,255,.82); }
.pf-promo__foot svg { width: 16px; height: 16px; color: rgba(255,255,255,.65); flex: none; }
.pf-promo__foot strong { color: #fff; font-weight: 600; }

.pf-desc { margin-top: 30px; }
.pf-desc__text { color: var(--ink-2); line-height: 1.7; white-space: pre-line; }
.pf-desc__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pf-more { margin-top: 10px; background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; }

/* ---------- Reservation panel (vehicle page) ---------- */
.pf-resv { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-md); }
.pf-resv__price { margin-bottom: 16px; }
.pf-resv__price strong { font-family: var(--f-display); font-size: 1.9rem; color: var(--ink); } .pf-resv__price span { color: var(--muted); margin-left: 5px; }
.pf-when { display: grid; gap: 14px; }
.pf-dt__lbl { display: block; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pf-dt__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.pf-dt input, .pf-field input, .pf-field textarea { width: 100%; min-width: 0; font: inherit; font-size: .92rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.pf-dt input:focus, .pf-field input:focus, .pf-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pf-estimate { margin: 16px 0; padding: 14px; background: var(--paper-2); border-radius: 12px; font-size: .9rem; }
.pf-estimate.is-warn { color: var(--brand-deep); background: var(--brand-soft); }
.pf-est__row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--ink-2); }
.pf-est__row--disc { color: var(--brand); }
.pf-est__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--ink); }
.pf-est__note { color: var(--muted); font-size: .76rem; margin-top: 8px; }
/* Availability feedback — intentional, premium, on-brand (never a red/technical error). */
.pf-avail { margin: 0 0 12px; font-size: .84rem; font-weight: 500; line-height: 1.45; color: var(--muted); }
.pf-avail.is-busy { color: var(--brand-deep); background: var(--brand-soft); border-radius: 12px; padding: 11px 13px; font-weight: 600; }
.pf-resv__cta { width: 100%; justify-content: center; margin-top: 6px; }
.pf-resv__note { color: var(--muted); font-size: .78rem; text-align: center; margin-top: 10px; }
.pf-resv__soon { color: var(--ink-2); font-size: .92rem; margin: 4px 0 16px; }

.pf-related { background: var(--paper-2); margin-top: 20px; }

/* ---------- Booking page ---------- */
.pf-vtitle--book { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.pf-blead { color: var(--ink-2); margin-top: 8px; max-width: 58ch; line-height: 1.55; }
.pf-blayout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 34px; align-items: start; margin-top: 22px; }
.pf-bform { min-width: 0; }
/* Form sections reuse the vehicle page's panel language (.pf-block) with a touch
   more padding suited to inputs. */
.pf-bsec { padding: 18px 22px 20px; }
.pf-bsec .pf-block__head { margin-bottom: 16px; padding-bottom: 12px; }
.pf-field { margin-bottom: 14px; }
.pf-field:last-child { margin-bottom: 0; }
.pf-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.pf-field .req { color: var(--brand); margin-left: 2px; }
.pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-when2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-seg { display: inline-flex; background: var(--paper-2); border-radius: 100px; padding: 4px; margin-bottom: 10px; }
.pf-seg__btn { border: 0; background: transparent; padding: 8px 22px; border-radius: 100px; font: inherit; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.pf-seg__btn.is-on { background: var(--paper); color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.pf-seg__hint { color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.pf-loginhint { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* ---------- Booking summary ---------- */
.pf-summary { position: sticky; top: 96px; }
.pf-sum { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-md); }
.pf-sum__veh { display: flex; gap: 13px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pf-sum__img { position: relative; width: 96px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--paper-2); flex: none; }
.pf-sum__img img { width: 100%; height: 100%; } .pf-sum__img .pf-ph svg { width: 26px; height: 26px; }
.pf-sum__vtext { min-width: 0; }
.pf-sum__make { color: var(--muted); font-size: .76rem; font-weight: 600; }
.pf-sum__model { font-family: var(--f-display); color: var(--ink); font-size: 1.05rem; line-height: 1.15; }
.pf-sum__cat { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 3px 10px; border-radius: 100px; background: var(--brand-soft); color: var(--brand-deep); font-family: var(--f-ui); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pf-sum__cat svg { width: 9px; height: 9px; color: var(--brand); flex: none; }
.pf-sum__list, .pf-sum__price { margin: 14px 0; }
.pf-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .88rem; }
.pf-sum__row dt { color: var(--muted); } .pf-sum__row dd { color: var(--ink); font-weight: 600; text-align: right; }
.pf-sum__price { border-top: 1px solid var(--line); padding-top: 12px; }
.pf-sum__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.pf-sum__note { color: var(--muted); font-size: .78rem; margin: 10px 0 0; }
.pf-sum__cta { width: 100%; justify-content: center; margin-top: 16px; }
.pf-sum__msg { margin-top: 10px; font-size: .84rem; font-weight: 600; }
.pf-sum__msg.is-err { color: #b23b2e; }
.pf-sum__pay { color: var(--muted); font-size: .76rem; text-align: center; margin-top: 9px; }

/* ---------- Confirmation ---------- */
.pf-done { padding: 40px 0 60px; }
.pf-done__card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 44px 34px; box-shadow: var(--shadow-md); }
.pf-done__check { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.pf-done__check svg { width: 30px; height: 30px; }
.pf-done__title { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: 1.9rem; }
.pf-done__sub { color: var(--ink-2); margin: 10px auto 24px; max-width: 52ch; line-height: 1.6; }
.pf-done__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
.pf-done__item { background: var(--paper); padding: 14px 16px; }
.pf-done__item dt { color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.pf-done__item dd { color: var(--ink); font-weight: 600; margin-top: 3px; }
.pf-done__fine { color: var(--muted); font-size: .82rem; margin: 20px 0; }
.pf-done__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pf-vlayout, .pf-blayout { grid-template-columns: 1fr; }
  .pf-resv, .pf-summary { position: static; }
  .pf-summary { order: 2; }
}
@media (max-width: 560px) {
  .pf-row2, .pf-when2, .pf-done__grid { grid-template-columns: 1fr; }
  .pf-hero { min-height: 260px; }
  .pf-bsec { padding: 15px 16px 16px; }
  .pf-bsec .pf-block__head { margin-bottom: 13px; padding-bottom: 10px; }
  .pf-block { padding: 13px 16px 15px; border-radius: 14px; }
  .pf-info { column-gap: 16px; row-gap: 12px; }
  .pf-info__item dd { font-size: 1.12rem; }
  .pf-promo { padding: 12px 16px 11px; border-radius: 14px; }
  .pf-offer { padding: 9px 13px; }
  .pf-offer__val { font-size: 1.55rem; }
  /* Don't force 5 across on narrow phones — show ~3 (with a peek) so thumbs stay
     a comfortable, premium size and the strip clearly scrolls. Scrolling stays
     enabled here regardless of count, since only ~3 fit at a time. */
  .pf-gal__thumbs { gap: 8px; overflow-x: auto; }
  .pf-thumb { flex-basis: calc((100% - 16px) / 3.25); }
}
