.fleet-page {
  --fleet-navy: #102336;
  --fleet-ice: #9dd2ed;
  --fleet-ink-soft: #4e5a61;
  background: var(--off-white);
}

.fleet-page main { padding-top: var(--nav-h); }

.fleet-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: var(--fleet-navy);
}

.fleet-hero-media { position: absolute; inset: 0 0 0 auto; width: min(67%, 860px); overflow: hidden; z-index: -1; }
.fleet-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 77%; }
.fleet-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fleet-navy), rgba(16, 35, 54, 0.81) 20%, rgba(16, 35, 54, 0.12) 64%);
}

.fleet-hero-content { padding-block: clamp(38px, 4.25vw, 64px); }

@media (prefers-reduced-motion: no-preference) {
  .fleet-hero-content { animation: fleet-hero-in 480ms ease-out both; }
  .fleet-hero-media img.is-loading { opacity: 0; }
  .fleet-hero-media img.is-loaded { animation: fleet-hero-photo-in 550ms ease-out both; }
}
@keyframes fleet-hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fleet-hero-photo-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fleet-hero h1 {
  max-width: 640px;
  margin-bottom: 12px;
  font: 700 clamp(2.4rem, 5.2vw, 4.25rem)/1.05 var(--font-display);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.fleet-hero h1 em { color: var(--fleet-ice); }
.fleet-hero-intro { max-width: 440px; color: #e1e9ee; font-size: clamp(1rem, 1.7vw, 1.14rem); }
.fleet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.fleet-hero .fleet-actions { margin-top: 18px; }
.fleet-actions .btn { justify-content: center; min-height: 46px; white-space: normal; text-align: center; }

.fleet-catalog h2,
.fleet-enquiry h2 {
  font: 700 clamp(1.6rem, 3vw, 2.65rem)/1.14 var(--font-display);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.fleet-catalog-heading div > p { margin-top: 12px; color: var(--fleet-ink-soft); }

.fleet-catalog { padding-block: clamp(34px, 6vw, 72px); }
.fleet-catalog-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.fleet-overview { color: var(--fleet-ink-soft); font-size: 0.88rem; }
.fleet-overview strong { color: var(--accent-dark); }
.fleet-overview span { margin-inline: 5px; }
.fleet-toolbar {
  background: var(--off-white);
  border-block: 1px solid var(--border);
}
.fleet-toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding-block: 12px; }
.fleet-filters { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.fleet-filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-soft);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.fleet-filter span { display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; border-radius: 6px; background: var(--off-white); font-size: 0.73rem; }
.fleet-filter:hover { color: var(--accent-dark); border-color: var(--accent); }
.fleet-filter[aria-current] { color: white; border-color: var(--accent-dark); background: var(--accent-dark); }
.fleet-filter[aria-current] span { background: rgba(255, 255, 255, 0.17); }
.fleet-filter:active { transform: translateY(1px); }
.fleet-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fleet-sort label { color: var(--text-soft); font-size: 0.82rem; font-weight: 700; }
.fleet-sort select {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: 600 0.9rem var(--font-body);
}
.fleet-results { margin-block: 18px 14px; color: var(--fleet-ink-soft); font-size: 0.87rem; }
.fleet-results strong { margin-inline-start: 4px; color: var(--accent-dark); }

.fleet-page .fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fleet-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 3px 12px rgba(40, 50, 56, 0.045);
}
.fleet-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--stone); }
.fleet-photos { display: flex; width: 100%; height: 100%; overflow: auto hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fleet-photos::-webkit-scrollbar { display: none; }
.fleet-photos:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.fleet-photo { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; }
.fleet-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fleet-kind { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; background: #e6f1f8; color: #1c4765; font-size: 0.75rem; font-weight: 700; pointer-events: none; }
.fleet-kind--minibus { background: #e2f0e9; color: #285643; }
.fleet-kind--coach { background: #f8e9d9; color: #6a411b; }
.fleet-kind--boat { background: #dff2f2; color: #20525a; }
.fleet-photo-controls { position: absolute; inset: 0; pointer-events: none; }
.fleet-photo-button {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
  background: rgba(14, 30, 43, 0.46); backdrop-filter: blur(6px); color: white;
  font: 700 1.1rem var(--font-body); cursor: pointer; pointer-events: auto;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.fleet-photo-button[data-photo-step="-1"] { left: 10px; }
.fleet-photo-button[data-photo-step="1"] { right: 10px; }
.fleet-photo-button:hover, .fleet-photo-button:active { background: rgba(14, 30, 43, 0.72); border-color: white; }
.fleet-photo-button:focus-visible { outline-color: white; outline-offset: -2px; }
.fleet-photo-count {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 99px;
  background: rgba(14, 30, 43, 0.62); color: white; font-size: 0.75rem;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.fleet-card-body { display: grid; align-content: start; gap: 13px; padding: clamp(15px, 2.1vw, 22px); }
.fleet-card h3 { font: 700 clamp(1.18rem, 2vw, 1.5rem)/1.2 var(--font-display); overflow-wrap: anywhere; }
.fleet-card-fit { margin-top: 4px; color: var(--fleet-ink-soft); font-size: 0.83rem; }
.fleet-card-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fleet-card-specs div { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 9px 10px; border-radius: 8px; background: var(--off-white); overflow-wrap: anywhere; }
.fleet-card-specs dt { color: var(--fleet-ink-soft); font-size: 0.78rem; font-weight: 600; }
.fleet-card-specs dd { color: var(--accent-dark); font: 700 1.35rem/1.15 var(--font-display); }
.fleet-card-description { color: var(--text-soft); font-size: 0.91rem; }
.fleet-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.fleet-features li { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--fleet-ink-soft); font-size: 0.73rem; }

.fleet-enquiry { padding-block: clamp(28px, 6vw, 60px); background: var(--fleet-navy); color: white; }
.fleet-enquiry-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.fleet-enquiry-inner > div:first-child { flex: 1 1 420px; min-width: 0; }
.fleet-enquiry p { max-width: 620px; margin-top: 10px; color: #d4e0e9; }
.fleet-enquiry .fleet-actions { margin-top: 0; }
.fleet-enquiry .btn-primary, .fleet-hero .btn-primary { color: var(--fleet-navy); background: var(--fleet-ice); border-color: var(--fleet-ice); }
.fleet-enquiry .btn-primary:hover, .fleet-hero .btn-primary:hover { background: #c6e7f7; border-color: #c6e7f7; }

@media (min-width: 1050px) and (min-height: 650px) {
  .fleet-toolbar { position: sticky; top: var(--nav-h); z-index: 3; }
  .fleet-card { scroll-margin-top: 70px; }
}
@media (max-width: 940px) { .fleet-page .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 721px) {
  .fleet-page .fleet-grid[data-fleet-visible="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-page .fleet-grid[data-fleet-visible="1"] { grid-template-columns: minmax(0, 960px); }
  .fleet-grid[data-fleet-visible="1"] .fleet-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-grid[data-fleet-visible="1"] .fleet-card-media { aspect-ratio: auto; min-height: 265px; }
  .fleet-grid[data-fleet-visible="1"] .fleet-photos { position: absolute; inset: 0; }
}
@media (max-width: 720px) {
  .fleet-toolbar-inner { justify-content: flex-start; }
  .fleet-sort select { font-size: 1rem; }
}
@media (max-width: 520px) {
  .fleet-hero-media { inset: 0; width: 100%; }
  .fleet-hero-media img {
    position: absolute;
    bottom: -19vw;
    height: auto;
  }
  .fleet-hero-media::after {
    background: linear-gradient(180deg, var(--fleet-navy) 19%, rgba(16, 35, 54, 0.84) 45%, rgba(16, 35, 54, 0.64) 68%, rgba(16, 35, 54, 0.10) 100%);
  }
  .fleet-hero-content { padding-block: 28px clamp(140px, 43vw, 224px); }
  .fleet-hero .fleet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-hero .fleet-actions .btn { padding-inline: 8px; font-size: 0.84rem; }
}
@media (min-width: 571px) and (max-width: 720px) {
  .fleet-page .fleet-grid[data-fleet-visible="1"] { grid-template-columns: minmax(0, 450px); }
}
@media (max-width: 570px) { .fleet-page .fleet-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .fleet-page main .container { padding-inline: 16px; }
  .fleet-actions .btn { flex: 1 1 100%; }
}
