/**
 * 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-btn-accent: var(--ramaya-sea, #52a9b8);
  --rbbe-btn-accent-deep: var(--ramaya-sea-deep, var(--rbbe-teal-deep));
  --rbbe-btn-accent-mid: color-mix(in srgb, var(--rbbe-btn-accent) 68%, var(--rbbe-btn-accent-deep));
  --rbbe-btn-gradient: linear-gradient(
    135deg,
    var(--rbbe-btn-accent) 0%,
    var(--rbbe-btn-accent-mid) 55%,
    var(--rbbe-btn-accent-deep) 100%
  );
  --rbbe-btn-gradient-hover: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rbbe-btn-accent) 92%, #fff) 0%,
    var(--rbbe-btn-accent) 42%,
    var(--rbbe-btn-accent-deep) 100%
  );
  --rbbe-btn-shadow:
    0 12px 28px color-mix(in srgb, var(--rbbe-btn-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --rbbe-btn-shadow-hover:
    0 16px 34px color-mix(in srgb, var(--rbbe-btn-accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --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__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  color: #a4b5bd;
}

/* 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 14px 7px 12px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--rbbe-btn-accent) 38%, rgba(255, 255, 255, 0.55));
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rbbe-btn-accent) 92%, #fff) 0%,
    var(--rbbe-btn-accent) 42%,
    color-mix(
      in srgb,
      var(--rbbe-btn-accent-deep) 78%,
      var(--ramaya-header-warm, #c9844a) 22%
    ) 100%
  );
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rbbe-btn-accent) 28%, rgba(255, 255, 255, 0.35)),
    0 12px 28px color-mix(in srgb, var(--rbbe-btn-accent) 48%, transparent),
    0 0 24px color-mix(in srgb, var(--rbbe-btn-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  text-align: left;
}

.rbbe-route-detail__edit:hover,
.rbbe-route-detail__edit:focus-visible {
  border-color: color-mix(in srgb, var(--rbbe-btn-accent) 24%, rgba(255, 255, 255, 0.72));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rbbe-btn-accent) 82%, #fff) 0%,
    color-mix(in srgb, var(--rbbe-btn-accent) 88%, var(--ramaya-header-warm, #c9844a)) 46%,
    var(--rbbe-btn-accent-deep) 100%
  );
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rbbe-btn-accent) 34%, rgba(255, 255, 255, 0.55)),
    0 16px 36px color-mix(in srgb, var(--rbbe-btn-accent) 56%, transparent),
    0 0 32px color-mix(in srgb, var(--rbbe-btn-accent) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  outline: none;
}

.rbbe-route-detail__edit:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rbbe-btn-accent) 24%, rgba(255, 255, 255, 0.28)),
    0 8px 20px color-mix(in srgb, var(--rbbe-btn-accent) 38%, transparent),
    0 0 18px color-mix(in srgb, var(--rbbe-btn-accent) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.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.98);
  filter: drop-shadow(0 1px 2px rgba(14, 31, 41, 0.22));
}

.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;
  text-shadow: 0 1px 2px rgba(14, 31, 41, 0.18);
}

.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-refine-modal[hidden] {
  display: none;
}

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

.rbbe-route-refine-modal__dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 42px);
  overflow: auto;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid color-mix(in srgb, var(--rbbe-teal) 24%, rgba(255, 255, 255, 0.88));
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--rbbe-tint) 48%, #fff));
  box-shadow: 0 28px 80px rgba(7, 24, 34, 0.34);
}

.rbbe-route-refine-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.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: 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: 22px;
  line-height: 1;
}

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

.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: 50px;
  border: 0;
  border-radius: 13px;
  background: var(--rbbe-btn-gradient);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--rbbe-btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rbbe-route-refine-modal__submit:hover {
  background: var(--rbbe-btn-gradient-hover);
  box-shadow: var(--rbbe-btn-shadow-hover);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .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;
  }
}
