/**
 * Public Fast Boat directory â€” premium, compact, user-friendly.
 *
 * Design principles
 * â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
 * 1. Respect the theme container â€” never break out of it. This guarantees
 *    the article aligns naturally with everything else the theme renders
 *    (page title, meta, sidebar, footer).
 * 2. Compact rhythm â€” tight vertical spacing, balanced gutters, no dead
 *    air between sections.
 * 3. Premium polish â€” soft shadows, subtle hover lifts, refined typography,
 *    proper aspect ratios.
 * 4. Accessible â€” visible focus rings, comfortable line-heights, large
 *    touch targets, semantic colour contrast.
 *
 * Palette (matches the admin dashboard):
 *   --rbbe-ink:        #0e1f29  deep text, headings
 *   --rbbe-body:       #2a3b46  body text
 *   --rbbe-muted:      #5b6f7a  secondary text
 *   --rbbe-teal:       #2c5f6b  primary accent
 *   --rbbe-teal-deep:  #1f4750  hover / pressed
 *   --rbbe-tint:       #e7f3f5  soft accent tint
 *   --rbbe-surface:    #ffffff  card / paper
 *   --rbbe-bg-soft:    #f4fafc  page-level soft
 *   --rbbe-line:       #e3eaee  hairlines
 */

.rbbe-boats,
.rbbe-boat-detail {
  --rbbe-ink: #0e1f29;
  --rbbe-body: #2a3b46;
  --rbbe-muted: #5b6f7a;
  --rbbe-teal: #2c5f6b;
  --rbbe-teal-deep: #1f4750;
  --rbbe-tint: #e7f3f5;
  --rbbe-surface: #ffffff;
  --rbbe-bg-soft: #f4fafc;
  --rbbe-line: #e3eaee;
  --rbbe-shadow-sm: 0 1px 2px rgba(14, 31, 41, 0.06);
  --rbbe-shadow-md: 0 4px 14px -4px rgba(14, 31, 41, 0.12);
  --rbbe-shadow-lg: 0 18px 38px -16px rgba(14, 31, 41, 0.28);
  --rbbe-radius-sm: 10px;
  --rbbe-radius-md: 14px;
  --rbbe-radius-lg: 18px;

  color: var(--rbbe-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

body.rbbe-route-detail .entry-header {
  display: none;
}

.rbbe-boats *,
.rbbe-boats *::before,
.rbbe-boats *::after,
.rbbe-boat-detail *,
.rbbe-boat-detail *::before,
.rbbe-boat-detail *::after {
  box-sizing: border-box;
}

/* =========================================================
 * LISTING â€” clean image-first grid
 * ========================================================= */
.rbbe-boats {
  margin: 0 0 24px;
}

.rbbe-boats__intro {
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rbbe-boats__count {
  font-size: 0.78rem;
  color: var(--rbbe-muted);
  letter-spacing: 0.015em;
  font-weight: 500;
}

.rbbe-boats__grid {
  display: grid;
  gap: 24px 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .rbbe-boats__grid--cols-2,
  .rbbe-boats__grid--cols-3,
  .rbbe-boats__grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .rbbe-boats__grid--cols-3,
  .rbbe-boats__grid--cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .rbbe-boats__grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Card ---------------------------------------------------- */
.rbbe-boat-card {
  position: relative;
}

.rbbe-boat-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
  border-radius: var(--rbbe-radius-md);
}

.rbbe-boat-card__link:focus-visible {
  outline: 2px solid var(--rbbe-teal);
  outline-offset: 4px;
}

.rbbe-boat-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--rbbe-bg-soft);
  overflow: hidden;
  border-radius: var(--rbbe-radius-md);
  isolation: isolate;
  box-shadow: var(--rbbe-shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rbbe-boat-card__link:hover .rbbe-boat-card__media,
.rbbe-boat-card__link:focus-visible .rbbe-boat-card__media {
  box-shadow: var(--rbbe-shadow-lg);
  transform: translateY(-3px);
}

.rbbe-boat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rbbe-boat-card__link:hover .rbbe-boat-card__img {
  transform: scale(1.06);
}

.rbbe-boat-card__media:has(.rbbe-boat-card__img--placeholder) {
  background: linear-gradient(160deg, #d7e4ea 0%, #eef3f5 55%, #e2ebef 100%);
}

.rbbe-boat-card__img--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(12%) contrast(0.95);
}

.rbbe-boat-card__link:hover .rbbe-boat-card__img--placeholder,
.rbbe-boat-card__link:focus-visible .rbbe-boat-card__img--placeholder {
  opacity: 0.58;
  transform: scale(1.03);
}

/* Soft bottom gradient â€” only on hover, for label legibility */
.rbbe-boat-card__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(14, 31, 41, 0.42) 0%,
    rgba(14, 31, 41, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rbbe-boat-card__link:hover .rbbe-boat-card__shade,
.rbbe-boat-card__link:focus-visible .rbbe-boat-card__shade {
  opacity: 1;
}

/* Capacity chip â€” glass pill */
.rbbe-boat-card__chip .rbbe-boat-icon svg,
.rbbe-boat-detail__chip .rbbe-boat-icon svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.rbbe-boat-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rbbe-ink);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(14, 31, 41, 0.12);
  letter-spacing: 0.01em;
  line-height: 1.3;
  z-index: 2;
}

/* Arrow indicator â€” slides in on hover */
.rbbe-boat-card__go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rbbe-ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px -2px rgba(14, 31, 41, 0.28);
  opacity: 0;
  transform: translateX(-8px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 2;
}

.rbbe-boat-card__link:hover .rbbe-boat-card__go,
.rbbe-boat-card__link:focus-visible .rbbe-boat-card__go {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Card text block ---------------------------------------- */
.rbbe-boat-card__body {
  display: block;
  padding: 12px 4px 0;
}

.rbbe-boat-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.32;
  font-weight: 600;
  color: var(--rbbe-ink);
  letter-spacing: -0.008em;
}

/* Empty / error states ----------------------------------- */
.rbbe-boats__empty {
  padding: 36px 24px;
  text-align: center;
  background: var(--rbbe-bg-soft);
  border: 1px dashed #cfe0e6;
  border-radius: var(--rbbe-radius-md);
  color: var(--rbbe-muted);
  font-size: 0.94rem;
}

.rbbe-boat-detail-missing {
  margin: 32px 0;
  padding: 24px;
  background: #fff7f4;
  border: 1px solid #f3c9bd;
  border-radius: var(--rbbe-radius-md);
  color: #8a3717;
  text-align: center;
  font-size: 0.95rem;
}

/* =========================================================
 * DETAIL â€” premium magazine-style article
 * ========================================================= */
.rbbe-boat-detail {
  margin: 0 0 40px;
}

/* Breadcrumb — flush left (override theme ol/nav padding) */
.rbbe-boat-detail__breadcrumb-nav {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  max-width: 100%;
  text-align: left;
}

.rbbe-boat-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  padding-left: 0;
  padding-inline-start: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--rbbe-muted);
}

.entry-content .rbbe-boat-detail__breadcrumb-nav,
.entry-content .rbbe-boat-detail__breadcrumb,
.wp-block-post-content .rbbe-boat-detail__breadcrumb {
  padding-left: 0;
  padding-inline-start: 0;
  margin-left: 0;
}

.rbbe-boat-detail__breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rbbe-boat-detail__breadcrumb li + li::before {
  content: ">";
  margin: 0 0.4em;
  color: #b4c4cb;
  font-weight: 500;
}

.rbbe-boat-detail__breadcrumb a {
  color: var(--rbbe-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.rbbe-boat-detail__breadcrumb a:hover {
  color: var(--rbbe-teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rbbe-boat-detail__breadcrumb [aria-current="page"] {
  color: var(--rbbe-ink);
  font-weight: 600;
}

/* Header (operator + title + chips) --------------------- */
.rbbe-boat-detail__header {
  margin: 0 0 20px;
}

.rbbe-boat-detail__title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.4vw + 0.6rem, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--rbbe-ink);
}

.rbbe-boat-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.rbbe-boat-detail__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: var(--rbbe-tint);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--rbbe-teal-deep);
  font-weight: 600;
  line-height: 1.4;
}

/* Hero image -------------------------------------------- */
.rbbe-boat-detail__hero {
  position: relative;
  margin: 0 0 28px;
  border-radius: var(--rbbe-radius-lg);
  overflow: hidden;
  background: var(--rbbe-bg-soft);
  box-shadow: var(--rbbe-shadow-md);
  aspect-ratio: 16 / 9;
}

.rbbe-boat-detail__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rbbe-route-detail__header--compact {
  margin-bottom: 10px;
}

.rbbe-route-detail .rbbe-boat-detail__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 34, 0.02) 10%, rgba(7, 24, 34, 0.72) 100%),
    linear-gradient(90deg, rgba(7, 24, 34, 0.66) 0%, rgba(7, 24, 34, 0.24) 52%, rgba(7, 24, 34, 0.04) 100%);
  pointer-events: none;
}

.rbbe-route-detail__hero-caption {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 4vw, 42px);
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(720px, calc(100% - 36px));
  color: #fff;
}

.rbbe-route-detail__hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.rbbe-route-detail__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rbbe-route-detail__title-row .rbbe-route-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.rbbe-route-detail__edit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 38px;
  margin: 0;
  padding: 7px 13px 7px 11px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-align: left;
}

.rbbe-route-detail__edit:hover,
.rbbe-route-detail__edit:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.rbbe-route-detail__edit svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.rbbe-route-detail__edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
}

.rbbe-route-detail__edit span {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.rbbe-route-detail__edit strong {
  font-size: 0.78rem;
  font-weight: 850;
  color: #fff;
}

.rbbe-route-detail__hero-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.82rem, 1.6vw, 0.94rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.rbbe-route-detail__summary-separator {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 600;
}

.rbbe-route-detail__hero-summary strong {
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.rbbe-route-detail .rbbe-schedules--route > .rbbe-schedules__bar,
.rbbe-route-detail .rbbe-schedules--route .rbbe-schedules-refine {
  display: none !important;
}

.rbbe-route-detail__hero-shell {
  position: relative;
}

.rbbe-route-refine-modal[hidden] {
  display: none;
}

html.rbbe-route-refine-open {
  overflow: hidden;
}

html.rbbe-route-refine-open .rbbe-bug-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.rbbe-route-refine-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(7, 24, 34, 0.56);
  backdrop-filter: blur(8px);
}

.rbbe-route-refine-modal__dialog {
  position: relative;
  width: 100%;
  max-height: min(88dvh, calc(100vh - 28px));
  overflow: auto;
  padding: clamp(14px, 2.2vw, 20px);
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 24%, rgba(255, 255, 255, 0.88));
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -24px 70px rgba(7, 24, 34, 0.3);
  animation: rbbe-route-refine-sheet-in 0.24s ease-out both;
  overscroll-behavior: contain;
}

.rbbe-route-refine-modal__dialog:has(.rbbe-route-refine-layer:not([hidden])) {
  overflow: visible;
  animation: none;
  transform: none;
}

.rbbe-route-refine-modal__head,
.rbbe-route-refine-modal__form {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

@keyframes rbbe-route-refine-sheet-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rbbe-route-refine-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rbbe-route-refine-modal__head {
  display: flex;
  min-height: 32px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 4px;
}

.rbbe-route-refine-modal__kicker {
  display: inline-block;
  color: var(--rbbe-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rbbe-route-refine-modal__head h2 {
  margin: 4px 0 0;
  color: var(--rbbe-ink);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.035em;
}

.rbbe-route-refine-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rbbe-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.rbbe-route-refine-modal__form {
  display: grid;
  gap: 0;
}

.rbbe-route-refine-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rbbe-route-refine-field {
  display: grid;
  gap: 6px;
}

.rbbe-route-refine-field--full {
  grid-column: 1 / -1;
}

.rbbe-route-refine-field > span:first-child {
  color: var(--rbbe-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbbe-route-refine-field input,
.rbbe-route-refine-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--rbbe-line) 82%, var(--rbbe-teal));
  border-radius: 13px;
  background: #fff;
  color: var(--rbbe-ink);
  font-weight: 650;
}

.rbbe-route-refine-field .rbbe-route-date-native {
  display: none;
}

.rbbe-route-date-picker {
  position: relative;
  width: 100%;
}

.rbbe-route-date-picker__trigger {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 24%, var(--rbbe-line));
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--rbbe-tint) 38%, #fff));
  color: var(--rbbe-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px -18px rgba(7, 24, 34, 0.35);
}

.rbbe-route-date-picker__trigger.is-empty {
  color: var(--rbbe-muted);
}

.rbbe-route-date-picker__trigger i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rbbe-teal) 12%, #fff);
  color: var(--rbbe-teal);
  font-style: normal;
}

.rbbe-route-date-picker__popover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  width: min(312px, 86vw);
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 24%, rgba(255, 255, 255, 0.86));
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--rbbe-tint) 46%, #fff));
  box-shadow: 0 22px 56px rgba(7, 24, 34, 0.22);
}

.rbbe-route-date-picker--right .rbbe-route-date-picker__popover {
  right: 0;
  left: auto;
}

.rbbe-route-date-picker__popover[hidden] {
  display: none;
}

.rbbe-route-date-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rbbe-route-date-picker__head strong {
  color: var(--rbbe-ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.rbbe-route-date-picker__head button {
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 20%, var(--rbbe-line));
  border-radius: 999px;
  background: #fff;
  color: var(--rbbe-teal-deep);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.rbbe-route-date-picker__week,
.rbbe-route-date-picker__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.rbbe-route-date-picker__week {
  margin-bottom: 6px;
}

.rbbe-route-date-picker__week span {
  color: var(--rbbe-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.rbbe-route-date-picker__day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.rbbe-route-date-picker__day:hover:not(:disabled),
.rbbe-route-date-picker__day:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--rbbe-teal) 12%, #fff);
  color: var(--rbbe-teal-deep);
  outline: none;
}

.rbbe-route-date-picker__day.is-outside {
  color: color-mix(in srgb, var(--rbbe-muted) 48%, #fff);
}

.rbbe-route-date-picker__day.is-selected {
  background: var(--rbbe-teal);
  color: #fff;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--rbbe-teal) 24%, transparent);
}

.rbbe-route-date-picker__day:disabled {
  color: color-mix(in srgb, var(--rbbe-muted) 28%, #fff);
  cursor: not-allowed;
  opacity: 0.6;
}

.rbbe-route-refine-persons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rbbe-route-refine-modal__submit {
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rbbe-teal) 82%, #fff), var(--rbbe-teal));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--rbbe-teal) 28%, transparent);
}

.rbbe-route-refine-route {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--rbbe-line) 86%, var(--rbbe-teal));
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 9px 24px -22px rgba(7, 24, 34, 0.42);
}

.rbbe-route-refine-route__place {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 58px 10px 16px;
  border: 0;
  background: #fff;
  color: var(--rbbe-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rbbe-route-refine-route__icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rbbe-teal) 10%, #fff);
  color: var(--rbbe-teal);
}

.rbbe-route-refine-route__icon svg {
  width: 17px;
  height: 17px;
}

.rbbe-route-refine-route__copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rbbe-route-refine-route__place:last-child {
  border-top: 1px solid var(--rbbe-line);
}

.rbbe-route-refine-route__place:hover,
.rbbe-route-refine-route__place:focus-visible {
  background: color-mix(in srgb, var(--rbbe-tint) 52%, #fff);
  outline: none;
}

.rbbe-route-refine-route__place small {
  color: var(--rbbe-teal);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rbbe-route-refine-route__place strong {
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbbe-route-refine-route__swap {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 24%, var(--rbbe-line));
  border-radius: 50%;
  background: #fff;
  color: var(--rbbe-teal);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(7, 24, 34, 0.1);
}

.rbbe-route-refine-route__swap svg {
  width: 17px;
  height: 17px;
}

.rbbe-route-refine-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--rbbe-line) 86%, var(--rbbe-teal));
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.rbbe-route-refine-dates button {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 0;
  background: #fff;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rbbe-route-refine-dates button + button {
  border-left: 1px solid var(--rbbe-line);
}

.rbbe-route-refine-dates button:hover,
.rbbe-route-refine-dates button:focus-visible {
  background: color-mix(in srgb, var(--rbbe-tint) 52%, #fff);
  outline: none;
}

.rbbe-route-refine-dates__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--rbbe-teal) 9%, #fff);
  color: var(--rbbe-teal);
}

.rbbe-route-refine-dates__icon svg {
  width: 16px;
  height: 16px;
}

.rbbe-route-refine-dates__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.rbbe-route-refine-dates__copy small {
  color: var(--rbbe-muted);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

.rbbe-route-refine-dates strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbbe-route-refine-travelers {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--rbbe-line) 86%, var(--rbbe-teal));
  border-radius: 14px;
  background: #fff;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rbbe-route-refine-travelers strong {
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-weight: 680;
}

.rbbe-route-refine-travelers > span:first-child {
  color: var(--rbbe-teal);
}

.rbbe-route-refine-travelers svg,
.rbbe-route-refine-pax__summary svg {
  display: block;
  width: 20px;
  height: 20px;
}

.rbbe-route-refine-travelers > span:last-child {
  color: var(--rbbe-muted);
}

.rbbe-route-refine-travelers > span:last-child svg {
  width: 16px;
  height: 16px;
}

.rbbe-route-refine-layer[hidden] {
  display: none;
}

.rbbe-route-refine-layer {
  position: fixed;
  z-index: 100010;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  width: min(760px, calc(100% - 40px));
  height: min(82dvh, 760px);
  margin: 0 auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 16%, var(--rbbe-line));
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 -24px 70px rgba(7, 24, 34, 0.3);
  animation: rbbe-route-refine-sheet-in 0.2s ease-out both;
}

.rbbe-route-refine-layer__close {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rbbe-muted);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.rbbe-route-refine-location {
  --rbbe-location-gutter: clamp(18px, 3vw, 28px);
  padding-top: 20px;
  background: #fff;
}

.rbbe-route-refine-location .rbbe-route-refine-layer__close {
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
}

.rbbe-route-refine-location__search {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc(100% - 76px);
  margin: 0 56px 16px 20px;
}

.rbbe-route-refine-location__search > span {
  position: absolute;
  z-index: 1;
  top: -9px;
  left: 13px;
  padding: 0 5px;
  background: #fff;
  color: var(--rbbe-body);
  font-size: 0.74rem;
  font-weight: 800;
}

.rbbe-route-refine-location__search input {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid color-mix(in srgb, var(--rbbe-teal) 72%, var(--rbbe-line));
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--rbbe-ink);
  font: inherit;
  font-size: 0.98rem;
}

.rbbe-route-refine-location__search input:focus {
  border-color: var(--rbbe-teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rbbe-teal) 12%, transparent);
}

.rbbe-route-refine-location > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rbbe-route-refine-location__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--rbbe-teal) 28%, transparent) transparent;
  scrollbar-width: thin;
}

.rbbe-route-refine-location__list > button {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  margin: 0 auto;
  padding: 10px var(--rbbe-location-gutter);
  border: 0;
  border-top: 1px solid var(--rbbe-line);
  background: #fff;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rbbe-route-refine-location__list::-webkit-scrollbar {
  width: 7px;
}

.rbbe-route-refine-location__list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rbbe-teal) 30%, transparent);
  background-clip: padding-box;
}

.rbbe-route-refine-location__list > button[hidden] {
  display: none;
}

.rbbe-route-refine-location__list > button:hover,
.rbbe-route-refine-location__list > button:focus-visible,
.rbbe-route-refine-location__list > button.is-selected {
  background: color-mix(in srgb, var(--rbbe-teal) 8%, #fff);
  outline: none;
}

.rbbe-route-refine-location__icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
  place-items: center;
  background: transparent;
  color: var(--rbbe-teal);
}

.rbbe-route-refine-location__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.rbbe-route-refine-location__list > button > span:nth-child(2) {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.rbbe-route-refine-location__list strong {
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbbe-route-refine-location__list small {
  margin-top: 0;
  color: var(--rbbe-muted);
  font-size: 0.82rem;
}

.rbbe-route-refine-location__list small::before {
  content: "·";
  margin-right: 6px;
}

.rbbe-route-refine-location__list i {
  color: var(--rbbe-teal);
  font-style: normal;
  opacity: 0;
}

.rbbe-route-refine-location__list button.is-selected i {
  opacity: 1;
}

.rbbe-route-refine-location__list > p {
  padding: 28px 16px;
  color: var(--rbbe-muted);
  text-align: center;
}

.rbbe-route-refine-calendar {
  padding-top: 56px;
  background: #fff;
}

.rbbe-route-refine-calendar__tabs {
  display: grid;
  width: min(620px, calc(100% - 28px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  margin: 0 auto 12px;
  border: 1px solid var(--rbbe-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px -18px rgba(7, 24, 34, 0.42);
}

.rbbe-route-refine-calendar__tabs button {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 0;
  background: #fff;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
}

.rbbe-route-refine-calendar__tabs button > span {
  flex: 0 0 auto;
  color: var(--rbbe-teal);
}

.rbbe-route-refine-calendar__tabs button > span svg {
  display: block;
  width: 16px;
  height: 16px;
}

.rbbe-route-refine-calendar__tabs button > strong {
  display: block;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbbe-route-refine-calendar__tabs button + button {
  border-left: 1px solid var(--rbbe-line);
}

.rbbe-route-refine-calendar__tabs button.is-active {
  background: color-mix(in srgb, var(--rbbe-teal) 7%, #fff);
  box-shadow: inset 0 -3px 0 var(--rbbe-teal);
  color: var(--rbbe-teal-deep);
}

.rbbe-route-refine-calendar__months {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 14px 18px;
  background: #fff;
}

.rbbe-route-refine-calendar__month {
  width: min(480px, 100%);
  margin: 0 auto 18px;
}

.rbbe-route-refine-calendar__month h3 {
  margin: 8px 0 10px;
  color: var(--rbbe-ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.rbbe-route-refine-calendar__week,
.rbbe-route-refine-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.rbbe-route-refine-calendar__week {
  margin-bottom: 5px;
}

.rbbe-route-refine-calendar__week span {
  display: grid;
  height: 28px;
  place-items: center;
  color: var(--rbbe-muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.rbbe-route-refine-calendar__days button {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 680;
}

.rbbe-route-refine-calendar__days button:hover:not(:disabled),
.rbbe-route-refine-calendar__days button:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--rbbe-teal) 12%, #fff);
  outline: none;
}

.rbbe-route-refine-calendar__days button.is-departure,
.rbbe-route-refine-calendar__days button.is-return {
  background: var(--rbbe-teal);
  color: #fff;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--rbbe-teal) 28%, transparent);
}

.rbbe-route-refine-calendar__days button:disabled {
  color: color-mix(in srgb, var(--rbbe-muted) 24%, #fff);
  cursor: not-allowed;
}

.rbbe-route-refine-calendar__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rbbe-line);
  background: #fff;
}

.rbbe-route-refine-calendar__actions button {
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid var(--rbbe-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rbbe-body);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.rbbe-route-refine-calendar__actions button:first-child {
  flex: 1 1 auto;
  max-width: 210px;
}

.rbbe-route-refine-calendar__actions button:last-child {
  flex: 0 0 112px;
  border-color: var(--rbbe-teal);
  background: var(--rbbe-teal);
  color: #fff;
}

.rbbe-route-refine-pax {
  height: auto;
  max-height: min(720px, calc(100dvh - 24px));
  padding: 48px 16px max(14px, env(safe-area-inset-bottom));
  overflow: auto;
  background: #fff;
}

.rbbe-route-refine-pax__summary,
.rbbe-route-refine-pax__rows,
.rbbe-route-refine-pax__done {
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.rbbe-route-refine-pax__summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 42%, var(--rbbe-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--rbbe-teal) 4%, #fff);
  color: var(--rbbe-body);
  box-shadow: 0 8px 20px -18px rgba(7, 24, 34, 0.42);
}

.rbbe-route-refine-pax__summary > span {
  color: var(--rbbe-teal);
}

.rbbe-route-refine-pax__rows {
  padding: 12px 4px 10px;
}

.rbbe-route-refine-pax__row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--rbbe-line) 72%, transparent);
}

.rbbe-route-refine-pax__row:last-child {
  border-bottom: 0;
}

.rbbe-route-refine-pax__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rbbe-route-refine-pax__identity > i {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rbbe-teal) 9%, #fff);
  color: var(--rbbe-teal);
  font-style: normal;
}

.rbbe-route-refine-pax__identity > i svg {
  width: 18px;
  height: 18px;
}

.rbbe-route-refine-pax__identity > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rbbe-route-refine-pax__row strong {
  color: var(--rbbe-ink);
  font-size: 0.9rem;
}

.rbbe-route-refine-pax__row small {
  margin-top: 3px;
  color: var(--rbbe-muted);
  font-size: 0.72rem;
}

.rbbe-route-refine-pax__stepper {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  text-align: center;
}

.rbbe-route-refine-pax__stepper button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rbbe-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rbbe-teal);
  cursor: pointer;
  font-size: 1.2rem;
}

.rbbe-route-refine-pax__stepper button:disabled {
  background: color-mix(in srgb, var(--rbbe-line) 58%, #fff);
  color: var(--rbbe-muted);
  cursor: not-allowed;
}

.rbbe-route-refine-pax__done {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--rbbe-teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--rbbe-teal) 24%, transparent);
}

@media (min-width: 641px) {
  .rbbe-route-refine-modal__form {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    column-gap: 10px;
  }

  .rbbe-route-refine-route {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rbbe-route-refine-route__place {
    min-height: 64px;
    padding: 9px 48px 9px 14px;
  }

  .rbbe-route-refine-route__place:last-child {
    padding-right: 14px;
    padding-left: 48px;
    border-top: 0;
    border-left: 1px solid var(--rbbe-line);
  }

  .rbbe-route-refine-route__swap {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .rbbe-route-refine-dates {
    grid-column: 1;
    margin-top: 10px;
  }

  .rbbe-route-refine-travelers {
    grid-column: 2;
    min-height: 58px;
    margin-top: 10px;
  }

  .rbbe-route-refine-modal__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 901px) {
  .rbbe-route-refine-modal {
    align-items: center;
    padding: 24px;
  }

  .rbbe-route-refine-modal__dialog {
    width: min(620px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--rbbe-teal) 20%, var(--rbbe-line));
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(7, 24, 34, 0.28);
    animation: rbbe-route-refine-dialog-in 0.2s ease-out both;
  }

  .rbbe-route-refine-modal__head,
  .rbbe-route-refine-modal__form {
    width: 100%;
  }

  .rbbe-route-refine-modal__form {
    grid-template-columns: 1fr;
  }

  .rbbe-route-refine-route {
    display: block;
    grid-column: 1;
  }

  .rbbe-route-refine-route__place {
    min-height: 60px;
    padding: 9px 52px 9px 14px;
  }

  .rbbe-route-refine-route__place:last-child {
    padding: 9px 52px 9px 14px;
    border-top: 1px solid var(--rbbe-line);
    border-left: 0;
  }

  .rbbe-route-refine-route__swap {
    right: 12px;
    left: auto;
    transform: translateY(-50%);
  }

  .rbbe-route-refine-dates,
  .rbbe-route-refine-travelers,
  .rbbe-route-refine-modal__submit {
    grid-column: 1;
  }

  .rbbe-route-detail__hero-shell {
    margin-bottom: 28px;
  }

  .rbbe-route-detail__hero-shell > .rbbe-boat-detail__hero {
    margin-bottom: 0;
    aspect-ratio: 32 / 9;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-detail__hero-caption {
    right: clamp(18px, 2.4vw, 28px);
    bottom: 88px;
    left: clamp(18px, 2.4vw, 28px);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-detail__edit {
    display: none;
  }

  .rbbe-route-detail__hero-shell > .rbbe-route-refine-modal,
  .rbbe-route-detail__hero-shell > .rbbe-route-refine-modal[hidden] {
    position: absolute;
    inset: auto clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px);
    z-index: 2;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .rbbe-route-detail__hero-shell > .rbbe-route-refine-modal > .rbbe-route-refine-modal__dialog {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    animation: none;
    transform: none;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-modal__head {
    display: none;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-modal__form {
    --rbbe-inline-search-height: 50px;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) 96px;
    gap: 6px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 10px 28px rgba(7, 24, 34, 0.2);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route {
    position: relative;
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: var(--rbbe-inline-search-height);
    overflow: hidden;
    border: 1px solid rgba(221, 229, 233, 0.96);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__place,
  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__place:last-child {
    height: 100%;
    min-height: 0;
    padding: 7px 32px 7px 10px;
    border: 0;
    border-radius: 0;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__place:last-child {
    padding-right: 10px;
    padding-left: 32px;
    border-left: 1px solid var(--rbbe-line);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__swap {
    right: auto;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(7, 24, 34, 0.12);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__swap svg {
    transform: rotate(90deg);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__icon {
    display: none;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__copy small,
  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates__copy small {
    display: none;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-route__copy strong,
  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates strong,
  .rbbe-route-detail__hero-shell .rbbe-route-refine-travelers strong {
    font-size: clamp(0.74rem, 1.15vw, 0.86rem);
    font-weight: 680;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates {
    grid-column: 2;
    height: var(--rbbe-inline-search-height);
    min-width: 0;
    margin: 0;
    border-color: rgba(221, 229, 233, 0.96);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates button {
    height: 100%;
    min-height: 0;
    gap: 6px;
    padding: 7px 9px;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates__icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: transparent;
    color: var(--rbbe-teal);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-dates__icon svg {
    width: 15px;
    height: 15px;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-travelers {
    grid-column: 3;
    height: var(--rbbe-inline-search-height);
    min-width: 0;
    min-height: 0;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    border-color: rgba(221, 229, 233, 0.96);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-travelers > span:last-child {
    display: none;
  }

  .rbbe-route-detail__hero-shell .rbbe-route-refine-modal__submit {
    grid-column: 4;
    height: var(--rbbe-inline-search-height);
    min-height: 0;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--rbbe-teal) 72%, #fff);
    border-radius: 10px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--rbbe-teal) 88%, #fff), var(--rbbe-teal));
    box-shadow:
      0 8px 18px color-mix(in srgb, var(--rbbe-teal) 24%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .rbbe-route-detail__hero-shell > .rbbe-route-refine-modal:has(> .rbbe-route-refine-layer:not([hidden])) {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    background: rgba(7, 24, 34, 0.56);
    backdrop-filter: blur(8px);
  }

  .rbbe-route-detail__hero-shell > .rbbe-route-refine-modal:has(> .rbbe-route-refine-layer:not([hidden])) > .rbbe-route-refine-modal__dialog {
    visibility: hidden;
  }

  .rbbe-route-refine-calendar {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: min(620px, calc(100% - 48px));
    height: min(76dvh, 680px);
    margin: 0 auto;
    border-radius: 22px;
    animation: none;
    transform: translateY(-50%);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .rbbe-route-refine-layer {
    bottom: 12px;
    width: calc(100% - 24px);
    height: min(88dvh, 760px);
    border-radius: 22px;
  }

  .rbbe-route-refine-pax {
    height: auto;
    max-height: min(640px, calc(100dvh - 24px));
  }

  .rbbe-route-refine-route__swap svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .rbbe-route-refine-modal__dialog {
    max-height: 92dvh;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .rbbe-route-refine-layer {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 94dvh;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .rbbe-route-refine-pax {
    height: auto;
    max-height: calc(100dvh - 16px);
  }

  .rbbe-route-refine-location {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 94dvh;
    margin: 0 !important;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .rbbe-route-refine-calendar {
    height: 90dvh;
  }

  .rbbe-route-refine-calendar__tabs {
    width: calc(100% - 24px);
  }

  .rbbe-route-refine-calendar__months {
    padding-right: 12px;
    padding-left: 12px;
  }

  .rbbe-route-refine-calendar__days button {
    height: 36px;
  }

  .rbbe-route-refine-pax__rows {
    padding-right: 0;
    padding-left: 0;
  }

  .rbbe-route-detail__title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rbbe-route-detail__edit {
    min-height: 42px;
  }
}

/* Article prose (schedules UI: frontend-schedules.css) */
.rbbe-prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--rbbe-body);
  width: 100%;
}

.rbbe-prose > :first-child {
  margin-top: 0;
}

.rbbe-prose > :last-child {
  margin-bottom: 0;
}

.rbbe-prose p {
  margin: 0 0 1.1em;
}

.rbbe-prose h2,
.rbbe-prose h3,
.rbbe-prose h4 {
  color: var(--rbbe-ink);
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.rbbe-prose h2 {
  font-size: 1.42rem;
}

.rbbe-prose h3 {
  font-size: 1.18rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rbbe-line);
}

.rbbe-prose h4 {
  font-size: 1.04rem;
}

.rbbe-prose ul,
.rbbe-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.rbbe-prose li {
  margin: 0.3em 0;
}

.rbbe-prose li::marker {
  color: var(--rbbe-teal);
}

.rbbe-prose blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--rbbe-teal);
  background: var(--rbbe-bg-soft);
  color: var(--rbbe-body);
  font-style: italic;
  border-radius: 0 var(--rbbe-radius-sm) var(--rbbe-radius-sm) 0;
}

.rbbe-prose a {
  color: var(--rbbe-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.rbbe-prose a:hover {
  color: var(--rbbe-teal-deep);
  text-decoration-thickness: 2px;
}

/* Gallery ------------------------------------------------ */
.rbbe-boat-detail__gallery {
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rbbe-line);
}

.rbbe-boat-detail__gallery-title {
  margin: 0 0 18px;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--rbbe-ink);
  letter-spacing: -0.014em;
}

.rbbe-boat-detail__gallery .gallery {
  display: grid !important;
  gap: 12px;
  margin: 0 !important;
}

.rbbe-boat-detail__gallery .gallery-columns-2,
.rbbe-boat-detail__gallery .gallery-columns-3,
.rbbe-boat-detail__gallery .gallery-columns-4,
.rbbe-boat-detail__gallery .gallery-columns-5,
.rbbe-boat-detail__gallery .gallery-columns-6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .rbbe-boat-detail__gallery .gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rbbe-boat-detail__gallery .gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rbbe-boat-detail__gallery .gallery-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rbbe-boat-detail__gallery .gallery-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.rbbe-boat-detail__gallery .gallery-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.rbbe-boat-detail__gallery .gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: var(--rbbe-radius-md);
  background: var(--rbbe-bg-soft);
  box-shadow: var(--rbbe-shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rbbe-boat-detail__gallery .gallery-item a:hover {
  box-shadow: var(--rbbe-shadow-md);
  transform: translateY(-2px);
}

.rbbe-boat-detail__gallery .gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0 !important;
  border-radius: var(--rbbe-radius-md);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rbbe-boat-detail__gallery .gallery-item a:hover img {
  transform: scale(1.06);
}

.rbbe-boat-detail__gallery .gallery-caption {
  display: none;
}

/* Bottom navigation -------------------------------------- */
.rbbe-boat-detail__footer {
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rbbe-line);
}

.rbbe-boat-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--rbbe-tint);
  color: var(--rbbe-teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s ease, gap 0.18s ease,
    transform 0.15s ease;
}

.rbbe-boat-detail__back:hover {
  background: #d2e8ec;
  gap: 11px;
  transform: translateX(-2px);
}

.rbbe-boat-detail__back:focus-visible {
  outline: 2px solid var(--rbbe-teal);
  outline-offset: 3px;
}

/* Departures filter — premium refine card inside boat detail */
.rbbe-boat-detail .rbbe-schedules--boat .rbbe-schedules-refine {
  --rbbe-refine-accent: var(--ramaya-sea, #52a9b8);
  --rbbe-refine-accent-hover: var(--ramaya-sea-hover, #4496a4);
  --rbbe-refine-accent-soft: var(--ramaya-sea-soft, #e9f4f6);
}

.rbbe-boat-detail .rbbe-schedules--boat .rbbe-schedules-refine__subtitle {
  color: var(--rbbe-muted);
}

/* =========================================================
 * Accessibility â€” prefers-reduced-motion
 * ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .rbbe-boat-card__media,
  .rbbe-boat-card__img,
  .rbbe-boat-card__shade,
  .rbbe-boat-card__go,
  .rbbe-boat-detail__back,
  .rbbe-boat-detail__gallery .gallery-item a,
  .rbbe-boat-detail__gallery .gallery-item img {
    transition: none !important;
    transform: none !important;
  }
}
