/* Public fleet cards: restrained lift, a brief sway and a closer photo. */
body:not(.admin-shell) .vehicle-card {
  transform-origin: 50% 85%;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
body:not(.admin-shell) .vehicle-card :is(.vehicle-photo, .booking-car-photo) { overflow: hidden; }
body:not(.admin-shell) .vehicle-card :is(.vehicle-photo, .booking-car-photo) img {
  transition: transform 550ms cubic-bezier(.2,.7,.2,1);
}
body:not(.admin-shell) .vehicle-card:focus-within {
  border-color: #94b8ed;
  box-shadow: 0 14px 34px -18px rgb(21 52 96 / 35%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.admin-shell) .vehicle-card:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-6px);
    border-color: #94b8ed;
    box-shadow: 0 22px 44px -20px rgb(21 52 96 / 38%);
    animation: auris-card-sway 650ms cubic-bezier(.2,.7,.2,1) both;
  }
  body:not(.admin-shell) .vehicle-card:hover :is(.vehicle-photo, .booking-car-photo) img { transform: scale(1.035); }
}
@keyframes auris-card-sway {
  0% { transform: translateY(0) rotate(0); }
  38% { transform: translateY(-6px) rotate(-.45deg); }
  68% { transform: translateY(-6px) rotate(.25deg); }
  100% { transform: translateY(-6px) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-shell) .vehicle-card,
  body:not(.admin-shell) .vehicle-card :is(.vehicle-photo, .booking-car-photo) img {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* Homepage and dated search: selected photo focus; the card stays still. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.admin-shell) :is(#home-fleet, .booking-results) .vehicle-card :is(.vehicle-photo, .booking-car-photo) img {
    filter: blur(.45px) saturate(.8);
    transition: transform 600ms cubic-bezier(.2,.7,.25,1), filter 500ms ease;
  }
  body:not(.admin-shell) :is(#home-fleet, .booking-results) .vehicle-card:is(:hover, :focus-within) {
    animation: none;
    transform: none;
    border-color: #9abce8;
    box-shadow: 0 12px 30px rgb(18 59 106 / 12%);
  }
  body:not(.admin-shell) :is(#home-fleet, .booking-results) .vehicle-card:is(:hover, :focus-within) :is(.vehicle-photo, .booking-car-photo) img {
    transform: scale(1.075);
    filter: blur(0) saturate(1.06) contrast(1.035);
  }
}
