/* AQAR City - UI polish overrides (breadcrumbs + H1 page title)
   Loaded after style.min.css + rtl.min.css to safely override defaults. */

/* -----------------------------
   Breadcrumbs
----------------------------- */

.breadcrumbs {
  margin: 0 0 10px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs__link,
.breadcrumbs__current {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.25;
}

/* Keep current page visually distinct but subtle */
.breadcrumbs__current {
  color: #6b7280;
  font-weight: 500;
}

/* Compact list hidden on desktop */
.breadcrumbs__list--compact {
  display: none;
}

/* Mobile: show compact, keep it one line and avoid wrapping */
@media (max-width: 575.98px) {
  .breadcrumbs__list--full {
    display: none;
  }

  .breadcrumbs__list--compact {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .breadcrumbs__link,
  .breadcrumbs__current {
    font-size: 12px;
  }

  /* Let the last item take the remaining width */
  .breadcrumbs__list--compact .breadcrumbs__item:last-child .breadcrumbs__current,
  .breadcrumbs__list--compact .breadcrumbs__item:last-child .breadcrumbs__link {
    max-width: clamp(140px, 62vw, 420px);
  }
}

/* -----------------------------
   Page title (H1)
----------------------------- */

.page-title {
  margin: 8px 0 14px;
  font-weight: 800;
  color: #111827 !important;
  font-size: clamp(18px, 2.3vw, 30px);
  line-height: 1.35;
  letter-spacing: 0;
}

.page-title i {
  margin-inline-end: 8px;
  color: inherit;
  opacity: 0.85;
}

/* Page title helpers (optional markup) */
.page-title__text {
  display: inline;
  color: #111827 !important;
}

/* Mobile: prefer single-line title that fits the screen */
@media (max-width: 575.98px) {
  /* If page uses .page-title__text, fit that; otherwise fit the H1 itself */
  .page-title__text,
  .page-title {
    font-size: clamp(16px, 5vw, 22px);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* fallback only if the script can't fit */
  }
}


