/* ─── CAR360 Vehicle Archive ──────────────────────────────────────────────── */

/* ── Filter bar ─────────────────────────────────────────────────────────── */

.c360-varchive__filterbar {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c360-varchive__filterform {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.c360-varchive__filtergroup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 150px;
}

.c360-varchive__filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #767676);
}

.c360-varchive__filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border-light, #E8E2E0);
  border-radius: 8px;
  padding: 9px 32px 9px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-title, #1A1A1A);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23767676' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 150ms;
}

.c360-varchive__filter-select:focus {
  outline: none;
  border-color: var(--brand-500, #EC3D23);
}

.c360-varchive__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--brand-500, #EC3D23);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms;
  white-space: nowrap;
  flex-shrink: 0;
}

.c360-varchive__filter-btn:hover {
  background: var(--brand-600, #C92F1A);
}

.c360-varchive__filter-reset {
  font-size: 13px;
  color: var(--text-muted, #767676);
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: flex-end;
  padding-bottom: 10px;
  transition: color 150ms;
}

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

.c360-varchive__active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c360-varchive__active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50, #FEEEEA);
  color: var(--brand-700, #A12414);
  border: 1.5px solid var(--brand-200, #FAB3A3);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

.c360-varchive__active-tag a {
  color: var(--brand-500, #EC3D23);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

.c360-varchive__active-tag a:hover {
  color: var(--brand-700, #A12414);
}

/* ── Hero / Page Title ──────────────────────────────────────────────────── */

.c360-varchive-hero {
  background-color: var(--bg-dark, #181412);
  padding: 56px 24px 48px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay when a bg image is set */
.c360-varchive-hero.has-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 10, 8, .88) 0%,
    rgba(15, 10, 8, .60) 60%,
    rgba(15, 10, 8, .40) 100%
  );
  pointer-events: none;
}

.c360-varchive-hero__inner {
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.c360-varchive-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-400, #F16548);
  margin-bottom: 14px;
}

.c360-varchive-hero__eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--brand-500, #EC3D23);
  border-radius: 2px;
  flex-shrink: 0;
}

.c360-varchive-hero__title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.12;
}

.c360-varchive-hero__desc {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 20px;
  max-width: 560px;
  line-height: 1.65;
}

/* Breadcrumb */
.c360-varchive-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .80rem;
  color: rgba(255,255,255,.45);
}

.c360-varchive-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .16s;
}

.c360-varchive-hero__breadcrumb a:hover {
  color: var(--brand-400, #F16548);
}

.c360-varchive-hero__breadcrumb span[aria-current="page"] {
  color: #fff;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

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

.c360-varchive__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .c360-varchive__inner {
    grid-template-columns: 1fr;
    padding: 40px 16px 60px;
  }
}

/* ── Main content ───────────────────────────────────────────────────────── */

.c360-varchive__main {
  min-width: 0;
}

.c360-varchive__main .c360-fleet__grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 40px;
}

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

/* ── Pagination ─────────────────────────────────────────────────────────── */

.c360-varchive__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.c360-varchive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 6px;
  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: .85rem;
  font-weight: 600;
  color: var(--text-body, #4A4A4A);
  text-decoration: none;
  transition: border-color .16s, background .16s, color .16s;
}

.c360-varchive__pagination .page-numbers:hover,
.c360-varchive__pagination .page-numbers.current {
  border-color: var(--brand-500, #EC3D23);
  background: var(--brand-500, #EC3D23);
  color: #fff;
}

.c360-varchive__pagination .page-numbers svg {
  display: block;
}

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

.c360-varchive__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 40px;
  font-family: var(--font-body, 'Manrope', sans-serif);
}

.c360-varchive__empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-light-alt, #FAF7F6);
  border: 1.5px solid var(--border-light, #E8E2E0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #767676);
  margin-bottom: 20px;
}

.c360-varchive__empty-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-title, #1A1A1A);
  margin: 0 0 8px;
}

.c360-varchive__empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #767676);
  margin: 0 0 20px;
  max-width: 320px;
}

.c360-varchive__empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--border-light, #E8E2E0);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body, #4A4A4A);
  text-decoration: none;
  transition: border-color 150ms, color 150ms;
}

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

.c360-varchive__suggestions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1.5px solid var(--border-light, #E8E2E0);
}

.c360-varchive__suggestions-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-title, #1A1A1A);
  margin: 0 0 20px;
}

.c360-fleet__grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.c360-varchive__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

@media (max-width: 960px) {
  .c360-varchive__sidebar {
    position: static;
  }
}

/* ── Widget block ───────────────────────────────────────────────────────── */

.c360-vsidebar-widget {
  background: var(--bg-light, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Widget header */
.c360-vsidebar-widget__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-title, #1A1A1A);
  margin: 0;
  padding: 18px 20px 16px;
}

.c360-vsidebar-widget__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--brand-500, #EC3D23);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Item list */
.c360-vsidebar-widget__list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c360-vsidebar-widget__list li {
  margin: 0;
}

.c360-vsidebar-widget__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body, #4A4A4A);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.c360-vsidebar-widget__link:hover {
  color: var(--brand-600, #C92F1A);
  background: var(--bg-light-alt, #FAF7F6);
}

.c360-vsidebar-widget__link.is-active {
  color: var(--brand-600, #C92F1A);
  font-weight: 700;
  background: var(--brand-50, #FEEEEA);
}

/* Brand logo */
.c360-vsidebar-widget__brand-logo {
  width: 32px;
  height: 22px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--bg-light-alt, #FAF7F6);
  padding: 2px;
}

.c360-vsidebar-widget__brand-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Count badge */
.c360-vsidebar-widget__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 20px;
  background: var(--bg-light-alt, #FAF7F6);
  border: 1px solid var(--border-light, #E8E2E0);
  font-size: .70rem;
  font-weight: 700;
  color: var(--text-muted, #767676);
  flex-shrink: 0;
  line-height: 1;
}

.c360-vsidebar-widget__link.is-active .c360-vsidebar-widget__count {
  background: var(--brand-200, #FAB3A3);
  border-color: var(--brand-200, #FAB3A3);
  color: var(--brand-700, #A12414);
}

/* ── CTA widget ─────────────────────────────────────────────────────────── */

.c360-sidebar-cta {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark, #181412);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* decorative brand accent strip at top */
.c360-sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500, #EC3D23), var(--brand-400, #F16548));
}

.c360-sidebar-cta__title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.c360-sidebar-cta__text {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 20px;
  line-height: 1.65;
}

.c360-sidebar-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--brand-500, #EC3D23);
  color: #fff;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
  line-height: 1;
  margin-bottom: 16px;
}

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

/* Divider before phone */
.c360-sidebar-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}

.c360-sidebar-cta__phone:hover {
  color: var(--brand-400, #F16548);
}

/* ── WP Widget area ─────────────────────────────────────────────────────── */

.c360-sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c360-sidebar-widgets .widget {
  background: var(--bg-light, #fff);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: .875rem;
  color: var(--text-body, #4A4A4A);
}

.c360-sidebar-widgets .widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-title, #1A1A1A);
  margin: 0 0 16px;
}

.c360-sidebar-widgets .widget-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--brand-500, #EC3D23);
  border-radius: 2px;
  flex-shrink: 0;
}
