/**
 * WaterJet — SEO UI (route chips, NAP, footer sitelinks, route SEO block)
 * Matches existing ocean / purple-accent homepage. Load after theme CSS.
 */
:root {
  --wj-sea: #2563eb;
  --wj-sea-deep: #1e3a8a;
  --wj-ink: #0f172a;
  --wj-mute: #64748b;
  --wj-line: rgba(15, 23, 42, 0.08);
  --wj-foam: #f0f7ff;
  --wj-wa: #25d366;
  --wj-radius: 14px;
}

/* ── Home route chips (under search) ── */
.wj-home-route-nav {
  margin: 0 0 8px;
  max-width: 100%;
}
.wj-home-route-nav__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.wj-home-route-nav__track::-webkit-scrollbar { display: none; }

.wj-home-route-nav__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--wj-sea-deep) !important;
  background: var(--wj-foam);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wj-home-route-nav__chip:hover,
.wj-home-route-nav__chip:focus {
  background: var(--wj-foam);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--wj-sea) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.wj-home-route-nav__chip--accent {
  background: #ecfdf3;
  color: #15803d !important;
  border-color: rgba(37, 211, 102, 0.35);
}
.wj-home-route-nav__chip--accent:hover,
.wj-home-route-nav__chip--accent:focus {
  background: #dcfce7;
  color: #166534 !important;
  filter: none;
}

@media (min-width: 992px) {
  .wj-home-route-nav {
    margin: 6px 0 14px;
  }
  .wj-home-route-nav__track {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
    gap: 8px;
  }
  .wj-home-route-nav__chip {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ── Location dropdown: show ALL ports (Padang Bai, Gili Meno, …) ── */
html body.wj-ui .wj-search-prototype .input,
html body.wj-ui .wj-search-prototype .input-from-wrapper,
html body.wj-ui .wj-search-prototype .input-to-wrapper,
html body.wj-ui .wj-search-prototype .wj-route-group,
html body.wj-ui.request-is-home .home-search-form-panel,
html body.wj-ui.request-is-home .home-search-carousel-bleed-lg__inner .searchbox,
html body.wj-ui.request-is-home .home-search-carousel-bleed-lg__inner .searchbox-input-wrapper {
  overflow: visible !important;
}

html body.wj-ui .wj-search-prototype .dropdown-input,
html body.wj-ui .dropdown-input#dropdown-depart-from,
html body.wj-ui .input-to .dropdown-input {
  max-height: min(72vh, 480px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
  z-index: 10060 !important;
}

html body.wj-ui .wj-search-prototype .dropdown-input .item,
html body.wj-ui .dropdown-input .item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  padding: 12px 15px !important;
}

html body.wj-ui .wj-search-prototype .dropdown-input .results {
  max-height: none !important;
  overflow: visible !important;
}

/* ── Local NAP — soft brand panel (not gray dump / not heavy navy slab) ── */
.wj-local-nap {
  margin: 10px 0 24px;
}
.wj-local-nap__inner {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border-radius: var(--wj-radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(14, 165, 233, 0.04) 100%),
    #fff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.wj-local-nap__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
  border-radius: 4px 0 0 4px;
}
.wj-local-nap__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wj-sea);
}
.wj-local-nap__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--wj-ink);
}
.wj-local-nap__text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--wj-mute);
}
.wj-local-nap__address {
  margin: 0 0 12px;
  font-style: normal;
  display: grid;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
}
.wj-local-nap__address strong {
  color: var(--wj-ink);
  font-weight: 700;
}
.wj-local-nap__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wj-local-nap__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none !important;
  color: var(--wj-sea-deep) !important;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #fff;
}
.wj-local-nap__btn:hover {
  background: var(--wj-foam);
}
.wj-local-nap__btn--primary {
  background: var(--wj-sea);
  color: #fff !important;
  border-color: transparent;
}
.wj-local-nap__btn--primary:hover {
  background: var(--wj-sea-deep);
  color: #fff !important;
}
.wj-local-nap__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: flex-start;
}
.wj-local-nap__routes a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
  color: var(--wj-sea-deep) !important;
  background: var(--wj-foam);
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.wj-local-nap__routes a:hover {
  background: #dbeafe;
}

@media (min-width: 992px) {
  .wj-local-nap {
    margin: 8px 0 32px;
  }
  .wj-local-nap__inner {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
    padding: 22px 24px 20px 28px;
    gap: 20px;
  }
  .wj-local-nap__title {
    font-size: 1.35rem;
  }
  .wj-local-nap__routes {
    justify-content: flex-end;
    padding-top: 4px;
  }
}

/* ── Footer sitelinks ── */
.wj-sitelinks-nav {
  margin: 0 0 16px;
  padding: 16px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wj-sitelinks-nav__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.wj-sitelinks-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wj-sitelinks-nav__list a {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wj-sitelinks-nav__list a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.wj-sitelinks-nav__wa {
  background: rgba(37, 211, 102, 0.18) !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
}

/* ── Route SEO content (landing pages) ── */
.wj-route-seo {
  margin: 24px auto 32px;
  max-width: 920px;
  padding: 0 16px;
}
.wj-route-seo__inner {
  padding: 20px 16px;
  border-radius: var(--wj-radius);
  background: #fff;
  border: 1px solid var(--wj-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.wj-route-seo__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wj-ink);
  line-height: 1.25;
}
.wj-route-seo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.wj-route-seo__chip {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--wj-sea-deep);
  background: var(--wj-foam);
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.wj-route-seo__text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}
.wj-route-seo__faq {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wj-line);
}
.wj-route-seo__faq-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--wj-ink);
}
.wj-route-seo__faq-item {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid var(--wj-line);
  background: #f8fafc;
  overflow: hidden;
}
.wj-route-seo__faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 13px;
  font-weight: 650;
  color: var(--wj-ink);
}
.wj-route-seo__faq-item summary::-webkit-details-marker { display: none; }
.wj-route-seo__faq-item[open] summary {
  border-bottom: 1px solid var(--wj-line);
  background: #fff;
}
.wj-route-seo__faq-item p {
  margin: 0;
  padding: 11px 13px 13px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

@media (min-width: 992px) {
  .wj-route-seo {
    padding: 0 20px;
    margin: 32px auto 44px;
  }
  .wj-route-seo__inner {
    padding: 26px 26px 22px;
  }
  .wj-route-seo__title {
    font-size: 1.45rem;
  }
}

/* Route cards: keep titles tidy */
.wj-route-card__title {
  font-size: 0.92rem !important;
  line-height: 1.3 !important;
}

/* Tighten separator under hero form */
.home-after-form-separator {
  margin-top: 18px;
}
@media (min-width: 992px) {
  .home-after-form-separator {
    margin-top: 22px;
  }
}

/* wj-chip-wrap-all-routes — show ALL route chips (Padang Bai etc), no clipped scroll */
html body.wj-ui .wj-home-route-nav {
  margin: 8px 0 16px !important;
  overflow: visible !important;
}
html body.wj-ui .wj-home-route-nav__track {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
  overflow-x: visible !important;
  max-width: 100% !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
}
html body.wj-ui .wj-home-route-nav__chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* wj-bleed-overflow-visible-for-dropdown — stop clipping From/To port list */
html body.wj-ui.request-is-home .home-search-carousel-bleed-lg,
html body.wj-ui.request-is-home .home-search-carousel-bleed-lg__inner,
html body.wj-ui.request-is-home .home-search-form-panel,
html body.wj-ui.request-is-home .bravo_wrap,
html body.wj-ui .wj-search-prototype {
  overflow: visible !important;
}
html body.wj-ui.request-is-home .home-search-carousel-bleed-lg {
  z-index: 40;
}

/* wj-dropdown-fit-viewport — keep full port list reachable via inner scroll */
html body.wj-ui.request-is-home .wj-search-prototype .dropdown-input#dropdown-depart-from,
html body.wj-ui.request-is-home .wj-search-prototype .input-to .dropdown-input,
html body.wj-ui .wj-search-prototype .dropdown-input#dropdown-depart-from,
html body.wj-ui .wj-search-prototype .input-to .dropdown-input {
  max-height: min(42vh, 260px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18) !important;
}
