/* Estabus lite board styles, scoped under .estabus-lite */
.estabus-lite {
  --app-navy: #1b3473;
  --app-navy-deep: #15285a;
  --primary-color: #1b3473;
  --primary-text: #12244f;
  --primary-bg: #fff;
  --secondary-color: #1b3473;
  --secondary-bg: #1b3473;
  --accent-color: #d6e2f5;
  --dark-accent: #15285a;
  --shadow-color: rgba(27, 52, 115, 0.28);
  --muted: #5b6b86;
  --line: #8b9bb3;
  --peach: #8fa4d4;
  --peach-soft: rgba(27, 52, 115, 0.1);
  --peach-hover: #e8eef8;
  --search-bg: #f4f6fb;
  --nav-font-family: "Montserrat", Arial, sans-serif;
  font-family: var(--nav-font-family);
  color: var(--primary-text);
  line-height: 1.45;
  box-sizing: border-box;
}

.estabus-lite *,
.estabus-lite *::before,
.estabus-lite *::after {
  box-sizing: border-box;
}

.estabus-lite img {
  max-width: 100%;
  height: auto;
  display: block;
}

.estabus-lite button,
.estabus-lite input {
  font-family: inherit;
}

.estabus-lite a {
  color: inherit;
}

.estabus-lite .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.estabus-lite .lang-inline {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}

.estabus-lite .lang-inline button {
  border: 1px solid var(--app-navy);
  background: #fff;
  color: var(--app-navy);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

.estabus-lite .lang-inline button[aria-current="true"] {
  background: var(--app-navy);
  color: #fff;
}

.estabus-lite .fold {
  margin: 0.85rem 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

.estabus-lite .fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--app-navy);
  cursor: pointer;
}

.estabus-lite .fold > summary::-webkit-details-marker {
  display: none;
}

.estabus-lite .fold > summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--app-navy);
  border-bottom: 2px solid var(--app-navy);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.estabus-lite .fold[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.estabus-lite .fold .chips {
  padding: 0 0.85rem 0.95rem;
  margin: 0;
}

.estabus-lite .page-section {
  padding: 0.75rem 0 2rem;
}

.estabus-lite .wrapper-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-inline: 0.5rem;
  gap: 0.5rem;
}

.estabus-lite .icon-container {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  border: 2px solid var(--app-navy);
  color: var(--app-navy);
  display: grid;
  place-items: center;
}

.estabus-lite .icon-container svg {
  width: 28px;
  height: 28px;
}

.estabus-lite .section-divider {
  width: 30%;
  max-width: 220px;
  background-color: var(--primary-color);
  height: 0.125rem;
}

.estabus-lite .wrapper-heading h2 {
  text-align: center;
  margin: 0.5rem 0;
  padding: 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 100%;
}

.estabus-lite .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.estabus-lite .search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--search-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem;
}

.estabus-lite .search-field:focus-within {
  outline: 1px solid var(--primary-color);
  border-color: var(--primary-color);
}

.estabus-lite .search-field input {
  all: unset;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  padding: 0.5rem;
}

.estabus-lite .search-field input::placeholder {
  color: gray;
}

.estabus-lite .clear-btn {
  background: none;
  border: none;
  color: gray;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.estabus-lite .autocomplete {
  margin-top: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  background: var(--search-bg);
  border-radius: 8px;
}

.estabus-lite .autocomplete button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.estabus-lite .autocomplete button:hover,
.estabus-lite .autocomplete button.active {
  background: var(--peach-hover);
}

.estabus-lite .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.25rem;
}

.estabus-lite .chip {
  flex: 0 0 auto;
  border: 2px solid var(--primary-color);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.estabus-lite .chip:hover,
.estabus-lite .chip.active {
  background: var(--primary-color);
  color: #fff;
}

.estabus-lite .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.estabus-lite .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: #fff;
  color: var(--app-navy);
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.estabus-lite .filter-btn.active {
  background: var(--primary-color);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
.estabus-lite .filter-btn:hover {
    background: var(--peach-hover);
  }
.estabus-lite .filter-btn.active:hover {
    background: var(--app-navy-deep);
    color: #fff;
  }
}

.estabus-lite .tab-selector {
  display: flex;
  width: 100%;
  margin: 0.5rem auto 1rem;
}

.estabus-lite .tab {
  flex: 1;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.35rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--muted);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.estabus-lite .tab.active {
  color: var(--app-navy);
  font-weight: 600;
}

.estabus-lite .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--primary-color);
}

.estabus-lite .tab:hover:not(:disabled) {
  color: #000;
}

.estabus-lite .prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}

.estabus-lite .price-card {
  background: var(--peach-soft);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem;
  text-align: center;
}

.estabus-lite .price-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.estabus-lite .price-card strong {
  font-size: 1.2rem;
}

.estabus-lite .destination-title {
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.estabus-lite .trip-box {
  margin: 0 0 1rem;
}

.estabus-lite .trip-box-wrapper {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  background: #fff;
}

.estabus-lite .trip-box-wrapper:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.estabus-lite .trip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.estabus-lite .company-logo {
  width: 25%;
  max-width: 96px;
  display: flex;
  justify-content: center;
}

.estabus-lite .company-logo img {
  max-height: 40px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(21, 40, 90, 0.28);
}

.estabus-lite .trip-dest {
  flex: 1;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  min-width: 0;
}

.estabus-lite .day-tag {
  width: 25%;
  background: var(--peach-soft);
  border-radius: 0.5rem;
  padding: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

.estabus-lite .weekdays {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.estabus-lite .wd {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #9ca3af;
  background: #f0f0f0;
}

.estabus-lite .wd.on {
  background: var(--primary-color);
  color: #fff;
}

.estabus-lite .wd.today {
  outline: 2px solid var(--app-navy-deep);
}

.estabus-lite .trip-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.estabus-lite .info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.92rem;
  opacity: 0.9;
  min-width: 4.5rem;
}

.estabus-lite .info-item b {
  font-size: 1.05rem;
}

.estabus-lite .obs {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--dark-accent);
  font-weight: 600;
}

.estabus-lite .empty,
.estabus-lite .status {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--muted);
}

.estabus-lite .spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--peach);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  margin: 1rem auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.estabus-lite .alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin: 1rem 0;
}

.estabus-lite .alpha a {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.4rem;
  background: var(--peach-soft);
}

.estabus-lite .alpha a:hover {
  background: var(--primary-color);
}

.estabus-lite .letter-block h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.6rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.estabus-lite .dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.45rem;
}

.estabus-lite .dest-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.55rem;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.estabus-lite .dest-btn:hover {
  background: var(--peach-hover);
  border-color: var(--primary-color);
}

.estabus-lite .hidden {
  display: none !important;
}

@media (max-width: 600px) {
.estabus-lite .wrapper-heading h2 {
    font-size: 1.25rem;
  }
.estabus-lite .prices {
    grid-template-columns: 1fr;
  }
.estabus-lite .trip-row {
    flex-wrap: wrap;
  }
.estabus-lite .trip-dest {
    flex-basis: 100%;
    text-align: left;
    order: 2;
  }
.estabus-lite .company-logo,
.estabus-lite .day-tag {
    width: auto;
  }
.estabus-lite .day-tag {
    margin-left: auto;
  }
.estabus-lite .info-item {
    flex: 1 1 30%;
  }
}

