/* ============================================================
   Reusable Breadcrumbs component
   Used by: single car reservation page, and any other page
   that includes views/includes/_breadcrumbs.php
   ============================================================ */

.cr-breadcrumbs {
  width: 100%;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-light, #787878);
}

.cr-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cr-breadcrumbs__link {
  color: var(--color-text-light, #787878);
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.cr-breadcrumbs__current {
  color: var(--color-text, #2b2b2b);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60ch;
}

.cr-breadcrumbs__separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light, #b6b6b6);
  flex-shrink: 0;
}

.cr-breadcrumbs__separator svg {
  display: block;
}

/* Variant: on light backgrounds (default) – already covered above. */
.cr-breadcrumbs--on-light .cr-breadcrumbs__link { color: var(--color-text-light, #787878); }

/* Variant: on dark backgrounds */
.cr-breadcrumbs--on-dark {
  color: rgba(255, 255, 255, 0.75);
}
.cr-breadcrumbs--on-dark .cr-breadcrumbs__link { color: rgba(255, 255, 255, 0.75); }
.cr-breadcrumbs--on-dark .cr-breadcrumbs__link:hover { color: #fff; }
.cr-breadcrumbs--on-dark .cr-breadcrumbs__current { color: #fff; }
.cr-breadcrumbs--on-dark .cr-breadcrumbs__separator { color: rgba(255, 255, 255, 0.5); }

/* Mobile: keep on a single line, allow horizontal scroll if too long. */
@media (max-width: 768px) {
  .cr-breadcrumbs {
    font-size: 12px;
  }
  .cr-breadcrumbs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .cr-breadcrumbs__list::-webkit-scrollbar { display: none; }

  .cr-breadcrumbs__current {
    max-width: 22ch;
  }

  .cr-page__breadcrumbs {
    padding: 10px 0 8px;
  }
}
