@font-face {
  font-family: "EncodeSans";
  src: url("EncodeSans.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
:root {
  --bs-link-hover-color-rgb: var(--theme-primary-hover-rgb);
  --bs-nav-link-hover-color: var(--theme-primary);
  --bs-nav-link-color: var(--theme-primary);
}

a {
  --bs-link-color-rgb: var(--theme-primary-rgb);
}

a:hover {
  --bs-link-color-rgb: var(--theme-primary-hover-rgb);
}

.text-size-toggle {
  position: fixed;
  left: 20px;
  bottom: 14px;
  z-index: 10000;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 0;
}

.text-size-toggle .bi {
  color: white !important;
  font-size: 36px;
  line-height: 1;
}

@media (min-width: 600px) {
  .text-size-toggle {
    position: unset;
    left: unset;
    bottom: unset;
    z-index: unset;
    margin: unset;
  }
}
/*.nav-link {
    color: var(--theme-primary);
}*/
.nav-link {
  color: var(--theme-primary);
}

.nav-link:hover {
  color: var(--theme-primary-hover);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--theme-primary);
}

.btn-primary {
  --bs-btn-bg: var(--theme-primary);
  --bs-btn-border-color:var(--theme-primary-hover);
  --bs-btn-hover-bg: var(--theme-primary-hover);
  --bs-btn-hover-border-color: var(--theme-primary);
  --bs-btn-active-bg: var(--theme-primary-active);
}

.btn-warning {
  --bs-btn-bg: var(--theme-accent);
  --bs-btn-color: white;
  --bs-btn-hover-color: white;
  --bs-btn-hover-bg: #ff4c4c;
}

.active > .page-link, .page-link.active, .form-check-input:checked {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary-hover);
  border-radius: 0px;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  border-color: transparent;
  border-radius: 0px;
}

.page-link {
  color: var(--theme-primary);
}

.page-link:hover {
  color: var(--theme-primary-hover);
}

.accordion-button:not(.collapsed) {
  color: white;
}

.accordion-item {
  border-radius: 0px;
  border-color: transparent;
}

.accordion-item:last-of-type > .accordion-header .accordion-button.collapsed {
  background-color: transparent;
}

.accordion-button::after {
  background-image: var(--bs-accordion-btn-active-icon);
}

.accordion {
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.accordion-alternate {
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

@keyframes cluster-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cluster-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.cluster-fade-in {
  animation: cluster-fade-in 300ms ease-out;
}

.cluster-fade-out {
  animation: cluster-fade-out 300ms ease-out forwards;
}

#guided-route-point-list {
  padding: 0.85rem;
  gap: 0.6rem;
}

.guided-route-actions {
  padding: 0.85rem 0.85rem 0;
}

.guided-route-point-item {
  margin: 0;
}

.guided-route-point-row {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  align-items: stretch;
  min-height: 3.35rem;
  border: 1px solid rgba(var(--theme-text-brand-rgb), 0.14);
  border-left: 4px solid var(--theme-primary);
  background: #fff;
}

.guided-route-point-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(var(--theme-text-brand-rgb), 0.14);
  color: var(--theme-primary) !important;
  font-weight: 700;
  line-height: 1;
}

.guided-route-point-title {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  color: var(--theme-text) !important;
  line-height: 1.25;
}

.guided-route-point-item.is-discovered .guided-route-point-row {
  border-left-color: #4A5568;
  background: #f7f7f7;
}

.guided-route-point-item.is-discovered .guided-route-point-order,
.guided-route-point-item.is-discovered .guided-route-point-title {
  color: #666 !important;
}

.guided-route-point-item.is-pending .guided-route-point-row {
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  border-left-color: var(--theme-primary);
  background: linear-gradient(90deg, rgba(var(--theme-primary-hover-rgb), 0.22), #fff 44%);
}

.guided-route-point-item.is-locked .guided-route-point-row {
  opacity: 0.55;
}

.guided-route-locked-point-message {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 90000;
  max-width: min(92vw, 560px);
  padding: 0.85rem 1.25rem;
  background: linear-gradient(var(--theme-primary-hover), var(--theme-primary));
  color: white !important;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -120%);
  transition: transform 220ms ease-out;
}

.guided-route-locked-point-message.is-visible {
  transform: translate(-50%, 88px);
}

@media (max-width: 599.98px) {
  .route-modal-window {
    align-items: stretch !important;
    box-sizing: border-box;
    height: 100svh !important;
    margin: 0 !important;
    min-height: 0 !important;
    width: 100vw;
  }
  .route-modal-window .modal-content {
    height: 100%;
    max-height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cluster-fade-in,
  .cluster-fade-out,
  .guided-route-locked-point-message {
    animation: none;
    transition: none;
  }
}
