/* ============================================================
   UFC Fleet — Front-end Styles
   Scoped to .ufc-fleet, armored against theme button overrides
   ============================================================ */

:root {
  --ufc-navy: #1B3A5C;
  --ufc-navy-dark: #142E4A;
  --ufc-navy-tint: #F1F4F8;
  --ufc-orange: #D4922A;
  --ufc-orange-dark: #BC811F;
  --ufc-ink: #0d1c2e;
  --ufc-muted: #6B7280;
  --ufc-border: #E5E7EB;
  --ufc-bg-alt: #F7F8FA;
}

.ufc-fleet,
.ufc-fleet *,
.ufc-fleet *::before,
.ufc-fleet *::after { box-sizing: border-box; }

.ufc-fleet {
  font-family: inherit;
  color: var(--ufc-ink);
  background: #F7F8FA;
  padding: 96px 0;
  line-height: 1.5;
}
.ufc-fleet .ufc-fleet-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- HEADER ----- */
.ufc-fleet .ufc-fleet-header { max-width: 720px; margin-bottom: 48px; }
.ufc-fleet .ufc-eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ufc-orange-dark);
  display: inline-flex; align-items: center;
}
.ufc-fleet .ufc-eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--ufc-orange); margin-right: 8px; vertical-align: middle;
}
.ufc-fleet h2 {
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 16px 0 12px; color: var(--ufc-ink);
}

.ufc-fleet .ufc-fleet-subtext {
      font-size: 16px;
    color: #4a5e70;
    line-height: 1.7;
 margin: 0;
}

/* ----- SWIPER WRAP ----- */
.ufc-fleet .ufc-fleet-swiper-wrap { position: relative; }
.ufc-fleet .ufc-fleet-swiper { overflow: hidden; padding: 6px; margin: -6px; }

/* ----- CARD ----- */
.ufc-fleet .ufc-fleet-card {
  background: #fff;
  border: 1px solid var(--ufc-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(27, 58, 92, 0.06);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.ufc-fleet .ufc-fleet-card:hover {
  box-shadow: 0 16px 40px -12px rgba(27, 58, 92, 0.16);
  transform: translateY(-2px);
}
.ufc-fleet .ufc-fleet-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ufc-navy-tint);
}
.ufc-fleet .ufc-fleet-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms ease;
}
.ufc-fleet .ufc-fleet-card:hover .ufc-fleet-card-img { transform: scale(1.03); }
.ufc-fleet .ufc-fleet-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ufc-muted); font-size: 13px;
  background: repeating-linear-gradient(135deg, #EEF1F5 0 14px, #F7F8FA 14px 28px);
}
.ufc-fleet .ufc-fleet-video-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ufc-navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px;
}

.ufc-fleet .ufc-fleet-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ufc-fleet .ufc-fleet-card-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ufc-orange-dark);
}
.ufc-fleet .ufc-fleet-card-title {
  font-size: 22px; font-weight: 700; color: var(--ufc-ink);
  margin: 6px 0 14px; line-height: 1.2;
}

/* ----- PILLS ----- */
.ufc-fleet .ufc-fleet-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ufc-fleet .ufc-fleet-pill {
  background: var(--ufc-navy-tint); color: var(--ufc-navy);
  border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}

.ufc-fleet .ufc-fleet-count {
  font-size: 13px; color: var(--ufc-muted);
  margin-bottom: 16px;
}

/* ----- VIEW DETAILS (link-style button, theme-armored) ----- */
.ufc-fleet .ufc-fleet-details-btn,
.ufc-fleet button.ufc-fleet-details-btn {
  appearance: none !important; -webkit-appearance: none !important;
  background: transparent !important; background-image: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: auto 0 0 0 !important;
  color: var(--ufc-navy) !important;
  font-family: inherit !important; font-weight: 700 !important; font-size: 14.5px !important;
  text-transform: none !important; letter-spacing: normal !important;
  cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  width: auto !important; min-height: 0 !important; height: auto !important;
  transition: gap 180ms ease, color 180ms ease !important;
}
.ufc-fleet .ufc-fleet-details-btn:hover,
.ufc-fleet button.ufc-fleet-details-btn:hover {
  color: var(--ufc-orange-dark) !important;
  gap: 10px !important;
  background: transparent !important;
  transform: none !important;
}
.ufc-fleet .ufc-fleet-details-btn svg { flex: none; }

/* ----- NAV ARROWS (theme-armored) ----- */
.ufc-fleet .ufc-fleet-prev,
.ufc-fleet .ufc-fleet-next,
.ufc-fleet button.ufc-fleet-prev,
.ufc-fleet button.ufc-fleet-next {
  appearance: none !important; -webkit-appearance: none !important;
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px !important; height: 44px !important; min-height: 0 !important;
  border-radius: 999px !important;
  background: var(--ufc-navy) !important; background-image: none !important;
  color: #fff !important;
  border: 0 !important; box-shadow: 0 4px 14px -4px rgba(27,58,92,0.4) !important;
  cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 !important;
  transition: background-color 160ms ease !important;
}
.ufc-fleet .ufc-fleet-prev { left: -22px; }
.ufc-fleet .ufc-fleet-next { right: -22px; }
.ufc-fleet .ufc-fleet-prev:hover,
.ufc-fleet .ufc-fleet-next:hover {
  background: var(--ufc-navy-dark) !important;
  transform: translateY(-50%) !important;
}
.ufc-fleet .ufc-fleet-prev.swiper-button-disabled,
.ufc-fleet .ufc-fleet-next.swiper-button-disabled {
  opacity: 0.4 !important; cursor: default !important;
}

/* ----- PAGINATION ----- */
.ufc-fleet .ufc-fleet-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.ufc-fleet .ufc-fleet-pagination .swiper-pagination-bullet {
  width: 24px; height: 4px; border-radius: 2px;
  background: var(--ufc-border); opacity: 1; transition: background 160ms ease;
}
.ufc-fleet .ufc-fleet-pagination .swiper-pagination-bullet-active {
  background: var(--ufc-orange);
}

/* ============================================================
   MODAL
   ============================================================ */
.ufc-fleet-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
.ufc-fleet-modal.is-open { display: flex; }
.ufc-fleet-modal *, .ufc-fleet-modal *::before, .ufc-fleet-modal *::after { box-sizing: border-box; }
.ufc-fleet-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 36, 64, 0.85);
  backdrop-filter: blur(2px);
}
.ufc-fleet-modal-panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  max-width: 1100px; width: 100%;
  height: 90vh;                 /* fixed panel height anchors the media */
  max-height: 90vh; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.ufc-fleet-modal .ufc-fleet-modal-close,
.ufc-fleet-modal button.ufc-fleet-modal-close {
  appearance: none !important; -webkit-appearance: none !important;
  position: absolute !important; top: 14px !important; right: 14px !important; z-index: 20 !important;
  width: 38px !important; height: 38px !important; min-width: 0 !important; min-height: 0 !important;
  border-radius: 999px !important;
  background: rgba(15, 36, 64, 0.55) !important; background-image: none !important;
  background-color: rgba(15, 36, 64, 0.55) !important;
  color: #fff !important;
  border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important;
  font-size: 0 !important; line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  backdrop-filter: blur(4px);
  transition: background 160ms ease !important;
}
.ufc-fleet-modal .ufc-fleet-modal-close:hover,
.ufc-fleet-modal button.ufc-fleet-modal-close:hover {
  background: rgba(15, 36, 64, 0.85) !important;
  background-color: rgba(15, 36, 64, 0.85) !important;
}
.ufc-fleet-modal .ufc-fleet-modal-close svg { width: 22px !important; height: 22px !important; }

.ufc-fleet-modal-grid {
  display: grid; grid-template-columns: 60% 40%;
  height: 100%;                 /* fill the panel */
}

/* MEDIA COLUMN — fills full panel height, no navy bands */
.ufc-fleet-modal-media {
  position: relative;
  background: var(--ufc-navy-dark);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.ufc-fleet-modal-swiper {
  width: 100%; height: 100%;
}
.ufc-fleet-modal-swiper .swiper-wrapper { height: 100%; }
.ufc-fleet-modal-swiper .swiper-slide {
  display: flex; align-items: center; justify-content: center;
  background: var(--ufc-navy-dark);
  height: 100%;
  overflow: hidden;
}
/* Images FILL the slide (cover) — no empty navy space */
.ufc-fleet-modal-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* Video: contain (show whole frame) on black */
.ufc-fleet-modal-video {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.ufc-fleet-modal-video iframe,
.ufc-fleet-modal-video video {
  width: 100%; height: 100%;
  object-fit: contain;
  border: 0; background: #000;
  display: block;
}

/* ARROWS — neutral SVG, no circle, at the edges */
.ufc-fleet-modal .ufc-fleet-modal-prev,
.ufc-fleet-modal .ufc-fleet-modal-next {
  appearance: none !important; -webkit-appearance: none !important;
  position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; z-index: 6 !important;
  width: 40px !important; height: 40px !important; min-width: 0 !important; min-height: 0 !important;
  background: transparent !important; background-image: none !important; background-color: transparent !important;
  color: #fff !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important;
  cursor: pointer !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  transition: opacity 160ms ease !important;
  opacity: 0.85;
}
.ufc-fleet-modal .ufc-fleet-modal-prev { left: 4px !important; right: auto !important; }
.ufc-fleet-modal .ufc-fleet-modal-next { right: 4px !important; left: auto !important; }
.ufc-fleet-modal .ufc-fleet-modal-prev:hover,
.ufc-fleet-modal .ufc-fleet-modal-next:hover { opacity: 1; transform: translateY(-50%) !important; }
.ufc-fleet-modal .ufc-fleet-modal-prev svg,
.ufc-fleet-modal .ufc-fleet-modal-next svg { width: 26px !important; height: 26px !important; }

.ufc-fleet-modal-pagination {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; gap: 6px;
}
.ufc-fleet-modal-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; background: rgba(255,255,255,0.5); opacity: 1; border-radius: 999px;
}
.ufc-fleet-modal-pagination .swiper-pagination-bullet-active { background: var(--ufc-orange); }

.ufc-fleet-modal-info {
  padding: 40px 36px; overflow-y: auto; height: 100%;
}
.ufc-fleet-modal-info .ufc-fleet-card-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ufc-orange-dark);
}
.ufc-fleet-modal-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  margin: 10px 0 12px; color: var(--ufc-ink); line-height: 1.1;
}
.ufc-fleet-modal-highlight {
  font-size: 16px; font-weight: 600; color: var(--ufc-navy);
  margin: 0 0 16px; line-height: 1.5;
}
.ufc-fleet-modal-content {
  font-size: 15px; color: var(--ufc-muted); line-height: 1.7;
  margin-bottom: 24px;
}
.ufc-fleet-specs { list-style: none; padding: 0; margin: 0 0 24px; }
.ufc-fleet-specs li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--ufc-border);
}
.ufc-fleet-specs li:first-child { border-top: 0; }
.ufc-fleet-spec-label { color: var(--ufc-muted); font-size: 14px; }
.ufc-fleet-spec-val { color: var(--ufc-ink); font-weight: 700; font-size: 14px; }

.ufc-fleet-pills-modal { margin-top: 8px; }
.ufc-fleet-modal .ufc-fleet-pill {
  background: var(--ufc-navy-tint); color: var(--ufc-navy);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ufc-fleet .ufc-fleet-prev { left: 4px; }
  .ufc-fleet .ufc-fleet-next { right: 4px; }
}

@media (max-width: 860px) {
  .ufc-fleet-modal { padding: 12px; }
  .ufc-fleet-modal-panel {
    height: auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .ufc-fleet-modal-grid {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ufc-fleet-modal-media {
    height: 50vh;
    max-height: 50vh;
    min-height: 240px;
    flex: none;
  }
  .ufc-fleet-modal-info { height: auto; padding: 28px 24px; }
}

@media (max-width: 640px) {
  .ufc-fleet { padding: 56px 0; }
  .ufc-fleet .ufc-fleet-header { margin-bottom: 32px; }

  /* Arrows stay on the sides, same as desktop */
  .ufc-fleet .ufc-fleet-swiper-wrap { position: relative; }
  .ufc-fleet .ufc-fleet-prev,
  .ufc-fleet .ufc-fleet-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 6;
  }
  .ufc-fleet .ufc-fleet-prev { left: 6px !important; right: auto !important; }
  .ufc-fleet .ufc-fleet-next { right: 6px !important; left: auto !important; }
  .ufc-fleet .ufc-fleet-prev:hover,
  .ufc-fleet .ufc-fleet-next:hover { transform: translateY(-50%) !important; }

  .ufc-fleet .ufc-fleet-swiper { padding-left: 2px; padding-right: 2px; }
}