/* ─── CAR360 Fleet Widget ────────────────────────────────────────────────── */

.c360-fleet {
  background-color: var(--bg-light-alt, #FAF7F6);
}

.c360-fleet__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 80px 24px;
}

/* ── Header row ─────────────────────────────────────────────────────────── */

.c360-fleet__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.c360-fleet__heading {
  flex: 1 1 280px;
}

/* Eyebrow label */
.c360-fleet__eyebrow {
  display: block;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-muted, #767676);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.c360-fleet__title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text-title, #1A1A1A);
  margin: 0 0 10px;
  line-height: 1.15;
}

.c360-fleet__subtitle {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .92rem;
  color: var(--text-muted, #767676);
  margin: 0;
  max-width: 440px;
  line-height: 1.6;
}

/* ── Filter pills ───────────────────────────────────────────────────────── */

.c360-fleet__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 4px; /* align to title baseline */
}

.c360-fleet__pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light, #E8E2E0);
  background: var(--bg-light, #fff);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-body, #4A4A4A);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.c360-fleet__pill:hover {
  border-color: var(--brand-400, #F16548);
  color: var(--brand-500, #EC3D23);
}

.c360-fleet__pill--active {
  background: var(--brand-500, #EC3D23);
  border-color: var(--brand-500, #EC3D23);
  color: #fff;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */

.c360-fleet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .c360-fleet__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .c360-fleet__grid { grid-template-columns: 1fr; }
}

/* initial hidden state for cards > 6 set via JS */

/* ── Card ───────────────────────────────────────────────────────────────── */

.c360-fleet__card {
  background: var(--bg-light, #fff);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light, #E8E2E0);
  transition: border-color 0.22s;
  display: flex;
  flex-direction: column;
}

.c360-fleet__card:hover {
  border-color: var(--brand-500, #EC3D23);
}

/* ── Image area ─────────────────────────────────────────────────────────── */

.c360-fleet__card-link {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-light-alt, #FAF7F6);
  text-decoration: none;
}

.c360-fleet__card-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.38s ease;
  display: block;
}

.c360-fleet__card:hover .c360-fleet__card-img {
  transform: scale(1.05);
}

.c360-fleet__card-img--placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-light-alt, #FAF7F6);
}

/* Category badge — overlaid on image, top-left */
.c360-fleet__cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 12px;
  border-radius: 8px;
  background: rgba(15, 12, 10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Card body ──────────────────────────────────────────────────────────── */

.c360-fleet__card-body {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Title row: name 75% + brand logo 25% */
.c360-fleet__card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c360-fleet__card-title-row .c360-fleet__card-title {
  flex: 0 0 75%;
  min-width: 0;
}

.c360-fleet__card-brand-logo {
  flex: 0 0 25%;
  width: 25%;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  object-position: right center;
}

.c360-fleet__card-brand-name {
  flex: 0 0 25%;
  text-align: right;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #767676);
}

/* Title */
.c360-fleet__card-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title, #1A1A1A);
  margin: 0;
  line-height: 1.25;
}

.c360-fleet__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s;
}

.c360-fleet__card-title a:hover {
  color: var(--brand-500, #EC3D23);
}

/* Short description */
.c360-fleet__card-desc {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .83rem;
  color: var(--text-muted, #767676);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* ── Specs row ──────────────────────────────────────────────────────────── */

.c360-fleet__specs {
  list-style: none;
  padding:  0;
  display: flex;
  align-items: center;
  gap: 0;
}

.c360-fleet__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-body, #4A4A4A);
  white-space: nowrap;
}

.c360-fleet__spec + .c360-fleet__spec::before {
  content: '';
  display: block;
  width: 1.5px;
  height: 36px;
  background: var(--border-light, #E8E2E0);
  flex-shrink: 0;
  margin-inline: 14px;
}

/* Icon pill */
.c360-fleet__spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
}

.c360-fleet__spec--trans .c360-fleet__spec-icon {
  background: var(--brand-50, #FEEEEA);
  color: var(--brand-600, #C92F1A);
}

.c360-fleet__spec--fuel .c360-fleet__spec-icon {
  background: var(--brand-50, #FEEEEA);
  color: var(--brand-600, #C92F1A);
}

/* ── Card footer ────────────────────────────────────────────────────────── */

.c360-fleet__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light, #E8E2E0);
}

.c360-fleet__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.c360-fleet__price-amount {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-500, #EC3D23);
  line-height: 1;
}

.c360-fleet__price-unit {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .80rem;
  color: var(--text-muted, #767676);
  font-weight: 500;
}

.c360-fleet__price-unit small {
  font-size: .72rem;
}

.c360-fleet__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--brand-500, #EC3D23);
  color: #fff;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.c360-fleet__card-cta:hover {
  background: var(--brand-600, #C92F1A);
  color: #fff;
}

/* ── Show-all button ────────────────────────────────────────────────────── */

.c360-fleet__cta-wrap {
  display: flex;
  justify-content: center;
}

.c360-fleet__show-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border-radius: 8px;
  border: 2px solid var(--brand-500, #EC3D23);
  background: transparent;
  color: var(--brand-500, #EC3D23);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}

.c360-fleet__show-all:hover {
  background: var(--brand-500, #EC3D23);
  color: #fff;
}

.c360-fleet__show-all-icon {
  transition: transform 0.22s;
}

.c360-fleet__show-all[data-expanded="true"] .c360-fleet__show-all-icon {
  transform: rotate(180deg);
}

/* ── Empty state ────────────────────────────────────────────────────────── */

.c360-fleet__empty {
  text-align: center;
  color: var(--text-muted, #767676);
  padding: 48px 0;
}

/* ── Responsive header ──────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .c360-fleet__inner {
    padding: 48px 16px;
  }

  .c360-fleet__header {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .c360-fleet__filters {
    width: 100%;
  }
}
