/**
 * BUSY.mn — sitewide UI consistency (loaded last in root layout).
 * Fixes unstyled marketing CTAs and aligns Bootstrap chrome with design tokens.
 */

:root {
  --busy-ui-radius: 10px;
  --busy-ui-radius-sm: 8px;
}

/* Marketing CTAs — often used without `.btn` */
a.btn-brand,
button.btn-brand,
.btn.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--busy-ui-radius);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  border: none;
  background: linear-gradient(135deg, var(--brand-secondary, #001f5b), #0a3d8f);
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

a.btn-brand:hover,
button.btn-brand:hover,
.btn.btn-brand:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

a.btn-brand-outline,
button.btn-brand-outline,
.btn.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--busy-ui-radius);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  color: var(--brand-primary, #001f5b) !important;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

a.btn-brand-outline:hover,
button.btn-brand-outline:hover,
.btn.btn-brand-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--brand-primary, #001f5b) !important;
}

/* Bootstrap — default radius without clobbering pills / circles */
.btn:not(.rounded-0):not(.rounded-circle):not(.rounded-pill) {
  border-radius: var(--busy-ui-radius) !important;
}

.btn-sm:not(.rounded-circle):not(.rounded-pill) {
  border-radius: var(--busy-ui-radius-sm) !important;
}

.btn-lg:not(.rounded-circle):not(.rounded-pill) {
  border-radius: 12px !important;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: var(--busy-ui-radius-sm) !important;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

textarea.form-control {
  min-height: 120px;
}

/* ── Public detail pages (events + trips): breadcrumb, help, registration QR ── */
:root {
  --busy-detail-primary: #1d4ed8;
  --busy-detail-border: #e5e7eb;
  --busy-detail-muted: #6b7280;
  --busy-detail-radius: 12px;
  --busy-detail-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.busy-detail-breadcrumb {
  padding: 1rem 0;
}
.busy-detail-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--busy-detail-muted);
}
.busy-detail-breadcrumb__row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.busy-detail-breadcrumb__sep {
  opacity: 0.5;
}
.busy-detail-breadcrumb__link {
  color: var(--busy-detail-muted);
  text-decoration: none;
}
.busy-detail-breadcrumb__link:hover {
  color: var(--busy-detail-primary);
}
.busy-detail-breadcrumb__item.is-active {
  color: var(--busy-detail-text, #111827);
  font-weight: 600;
}

.busy-detail-help {
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--busy-detail-border);
  border-radius: var(--busy-detail-radius);
  background: #f8fafc;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.busy-detail-help__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--busy-detail-muted);
  margin-bottom: 10px;
}
.busy-detail-help__lead {
  font-size: 0.78rem;
  color: var(--busy-detail-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}
.busy-detail-help__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 380px) {
  .busy-detail-help__grid {
    grid-template-columns: 1fr;
  }
}
.busy-detail-help__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--busy-detail-border);
  text-decoration: none;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  word-break: break-word;
}
a.busy-detail-help__tile:hover {
  border-color: var(--busy-detail-primary);
  background: #eff6ff;
  color: var(--busy-detail-primary);
}
.busy-detail-help__tile.is-disabled {
  opacity: 0.5;
}
.busy-detail-help__tile i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--busy-detail-primary);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  border: 1px solid var(--busy-detail-border);
}
.busy-detail-help__tile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
}
.busy-detail-help__tile--wide i {
  flex-shrink: 0;
}

.busy-detail-reg-qr__img {
  display: inline-block;
  border-radius: 12px;
  border: 1px solid var(--busy-detail-border);
  background: #fff;
  box-shadow: var(--busy-detail-shadow);
}

.trd-hero > .content-like-btn--overlay.trip-bookmark,
.event-hero-image > .content-like-btn--overlay.trip-bookmark {
  z-index: 5;
}
