/* ============================================================
   FLEET SHOWCASE — Showroom-grade vehicle catalog
   Mama Tava Travel · Transporte Privado
   ============================================================ */

/* ── Section ─────────────────────────────────────────────── */
.fleet-section {
  background: #f1f8f8;
  padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 9vw, 130px);
}

.fleet-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.fleet-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ── Filter bar ──────────────────────────────────────────── */
.fleet-selector-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 0;
  margin-bottom: clamp(20px, 3vw, 32px);
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.selector-field {
  padding: 0 clamp(16px, 2.5vw, 32px) 14px 0;
  margin-right: clamp(16px, 2.5vw, 32px);
  border-bottom: 1.5px solid rgba(53,67,99,0.22);
  border-right: none;
  flex: 1;
  min-width: 0;
}

.selector-label {
  display: block;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(53,67,99,0.42);
  margin-bottom: 7px;
}

.fleet-selector-bar select {
  width: 100%;
  background: transparent;
  border: none;
  color: #354363;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0;
  padding-right: 22px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23354363' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
  outline: none;
}

.fleet-selector-bar select option {
  background: #354363;
  color: #fff;
}

.selector-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px clamp(20px, 2.5vw, 32px);
  background: #354363;
  border: none;
  border-radius: 3px;
  color: #f1f8f8;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s;
  white-space: nowrap;
  align-self: flex-end;
}

.selector-btn:hover {
  background: #1a2440;
  transform: translateY(-1px);
}

/* ── Recommendation badge ────────────────────────────────── */
.fleet-recommendation {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: #354363;
  border-radius: 3px;
  font-size: 0.78rem;
  color: rgba(241,248,248,0.85);
  letter-spacing: 0.04em;
  margin-bottom: clamp(14px, 2vw, 22px);
  width: fit-content;
}

.fleet-recommendation.visible { display: flex; }

.fleet-recommendation strong {
  font-family: 'Bangond', Georgia, serif;
  font-size: 1rem;
  color: #83C1C6;
  line-height: 1;
}

.fleet-recommendation-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #83C1C6;
  flex-shrink: 0;
  animation: fleet-pulse 1.8s ease-in-out infinite;
}

@keyframes fleet-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── Showroom Card ───────────────────────────────────────── */
.fleet-card {
  background: #080f1a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(8,15,26,0.12),
    0 24px 80px rgba(8,15,26,0.24),
    0 60px 140px rgba(8,15,26,0.18);
}

/* ── Model tab navigation ────────────────────────────────── */
.fleet-thumbs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(131,193,198,0.08);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fleet-thumbs::-webkit-scrollbar { display: none; }

.fleet-thumb {
  flex: 1;
  min-width: 110px;
  padding: clamp(14px, 2vw, 22px) clamp(12px, 1.8vw, 22px);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(255,255,255,0.28);
  margin-bottom: -1px;
  position: relative;
}

.fleet-thumb + .fleet-thumb::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(131,193,198,0.07);
}

.fleet-thumb:hover {
  background: rgba(131,193,198,0.04);
  color: rgba(255,255,255,0.58);
}

.fleet-thumb.active {
  border-bottom-color: #83C1C6;
  color: #fff;
  background: rgba(131,193,198,0.04);
}

.fleet-thumb.filtered-out { opacity: 0.22; }

.fleet-thumb.recommended {
  border-bottom-color: #83C1C6;
  background: rgba(131,193,198,0.07);
  color: #fff;
}

.fleet-thumb.recommended .fleet-thumb-num { color: #83C1C6; }

.fleet-thumb-num {
  display: block;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.20em;
  color: rgba(131,193,198,0.45);
  transition: color 0.22s;
  line-height: 1;
}

.fleet-thumb.active .fleet-thumb-num { color: #83C1C6; }

.fleet-thumb-label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.80rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main showcase grid ──────────────────────────────────── */
.fleet-showcase {
  display: grid;
  grid-template-columns: 58fr 42fr;
  min-height: 440px;
}

/* ── Image stage (left) ──────────────────────────────────── */
.fleet-image-panel {
  position: relative;
  background: #050b14;
  overflow: hidden;
}

.fleet-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.80s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
}

.fleet-slide.active { opacity: 1; }

.fleet-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.35));
}

/* Subtle vignette at bottom of image */
.fleet-image-panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(8,15,26,0.45) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Info panel (right) ──────────────────────────────────── */
.fleet-info-panel {
  background: #0d1829;
  border-left: 1px solid rgba(131,193,198,0.07);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Ghost number watermark */
.fleet-info-panel::before {
  content: attr(data-num);
  position: absolute;
  bottom: -0.12em;
  right: -0.06em;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: clamp(100px, 18vw, 200px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(131,193,198,0.06);
  pointer-events: none;
  user-select: none;
}

/* ── Vehicle info content ────────────────────────────────── */
.fleet-vehicle-info {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fleetSlideUp 0.46s cubic-bezier(0.22, 0, 0.1, 1) forwards;
}

.fleet-vehicle-info.active { display: flex; }

.fleet-vehicle-info.dimmed .fvi-name,
.fleet-vehicle-info.dimmed .fvi-desc { opacity: 0.35; }

@keyframes fleetSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fvi-num {
  display: block;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.70rem;
  letter-spacing: 0.24em;
  color: #83C1C6;
  margin-bottom: clamp(12px, 1.6vw, 18px);
}

.fvi-name {
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.88;
  color: #ffffff;
  margin: 0 0 clamp(8px, 1.2vw, 12px);
  font-weight: 400;
}

.fvi-cap {
  display: block;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(131,193,198,0.62);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.fvi-divider {
  width: 28px;
  height: 1px;
  background: rgba(131,193,198,0.28);
  margin-bottom: clamp(14px, 1.8vw, 22px);
  flex-shrink: 0;
}

.fvi-desc {
  font-size: clamp(0.78rem, 1.05vw, 0.875rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.48);
  margin: 0 0 clamp(24px, 3vw, 38px);
  max-width: 30ch;
  flex-grow: 1;
}

.fvi-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #83C1C6;
  border-radius: 3px;
  color: #060d18;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, transform 0.20s;
  align-self: flex-start;
  flex-shrink: 0;
}

.fvi-cta svg { transition: transform 0.22s; }

.fvi-cta:hover {
  background: #a4d2d6;
  transform: translateY(-2px);
  color: #060d18;
  text-decoration: none;
}

.fvi-cta:hover svg { transform: translateX(4px); }

/* ── Prev / Next arrows ──────────────────────────────────── */
.fleet-nav-arrows {
  display: flex;
  gap: 10px;
  padding-top: clamp(20px, 2.5vw, 30px);
  margin-top: 4px;
  border-top: 1px solid rgba(131,193,198,0.07);
  flex-shrink: 0;
}

.fleet-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(131,193,198,0.07);
  border: 1px solid rgba(131,193,198,0.16);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s;
}

.fleet-nav-btn:hover {
  background: rgba(131,193,198,0.16);
  border-color: rgba(131,193,198,0.38);
  color: #fff;
  transform: scale(1.08);
}

/* ── Progress bar ────────────────────────────────────────── */
.fleet-progress {
  height: 2px;
  background: rgba(131,193,198,0.06);
  flex-shrink: 0;
}

.fleet-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #83C1C6, #4D7B7B);
  width: 0%;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .fleet-showcase {
    grid-template-columns: 1fr;
  }

  .fleet-image-panel {
    min-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .fleet-info-panel {
    border-left: none;
    border-top: 1px solid rgba(131,193,198,0.08);
  }

  .fleet-info-panel::before { display: none; }
}

@media (max-width: 640px) {
  .fleet-selector-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .selector-field {
    padding-right: 0;
    margin-right: 0;
  }

  .selector-btn { align-self: flex-start; }

  .fleet-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(131,193,198,0.08);
  }

  .fleet-thumb + .fleet-thumb::before { display: none; }

  .fleet-thumb {
    border-bottom: 2px solid transparent;
    border-right: 1px solid rgba(131,193,198,0.06);
    min-width: 0;
  }

  .fleet-info-panel {
    padding: 28px 22px;
  }
}

/* ============================================================
   FLEET SELECTOR — Feedback states (recommendation pulse)
   ============================================================ */

/* Pulse highlight when a recommendation switches the showcase */
.fleet-showcase.fleet-pulse {
  animation: fleetPulse 1.05s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fleetPulse {
  0%   { box-shadow: 0 0 0 0 rgba(131,193,198,0); }
  35%  { box-shadow: 0 0 0 14px rgba(131,193,198,0.18), 0 0 60px rgba(131,193,198,0.35) inset; }
  100% { box-shadow: 0 0 0 0 rgba(131,193,198,0); }
}

/* Make the recommendation badge unmistakable when it appears */
.fleet-recommendation {
  position: relative;
  padding: 12px 20px;
  margin: 22px auto 14px;
  border: 1px solid rgba(131,193,198,0.45);
  background: linear-gradient(135deg, rgba(131,193,198,0.10) 0%, rgba(131,193,198,0.04) 100%);
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #cfeaec;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  max-width: min(92%, 520px);
  text-align: center;
  word-break: break-word;
  display: none;
}
.fleet-recommendation.visible {
  animation: fleetRecIn 0.55s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes fleetRecIn {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(0)    scale(1.04); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
.fleet-recommendation-dot {
  animation: fleetDotPulse 1.6s ease-in-out infinite;
}
@keyframes fleetDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(131,193,198,0.65); }
  50%      { box-shadow: 0 0 0 8px rgba(131,193,198,0); }
}

/* Empty-state variant when no vehicle matches */
.fleet-recommendation.is-empty {
  border-color: rgba(255,140,66,0.55);
  background: linear-gradient(135deg, rgba(255,140,66,0.12) 0%, rgba(255,140,66,0.03) 100%);
  color: #ffd1ad;
}
.fleet-recommendation.is-empty .fleet-recommendation-dot {
  background: #FF8C42;
  animation-name: fleetDotPulseWarn;
}
.fleet-recommendation.is-empty strong { color: #ffb380; }
@keyframes fleetDotPulseWarn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,66,0.65); }
  50%      { box-shadow: 0 0 0 8px rgba(255,140,66,0); }
}

/* Recommended thumb gets a subtle aqua glow */
.fleet-thumb.recommended {
  box-shadow: inset 0 -3px 0 #83C1C6, 0 -8px 24px -10px rgba(131,193,198,0.4);
  animation: fleetThumbRec 0.6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fleetThumbRec {
  0%   { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Find-button: subtle "ready" state when filters are set */
.selector-btn.has-filters {
  background: linear-gradient(135deg, #FF8C42 0%, #ff7a28 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255,140,66,0.35);
}
.selector-btn.has-filters:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255,140,66,0.45);
}
