/* ==========================================================================
   Any.Travel Boats — Cross-Platform Design System (Web / Android / iOS)
   Semantic tokens map 1:1 to AppColors/AppSpacing (Jetpack Compose)
   and AppTheme (SwiftUI).
   ========================================================================== */
:root {
  /* Typography */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  /* Brand & Semantic Colors */
  --color-primary: #0067C7;
  --color-primary-pressed: #0052A3;
  --color-primary-soft: #EAF3FC;
  --color-on-primary: #FFFFFF;
  --color-teal: #0EA5A4;
  --color-navy: #0B1F3A;

  --color-ocean-tint: #E6F2FD;
  --color-ocean-mid: #EFF6FD;

  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F0F3F7;
  --color-surface-hover: #E5EBF3;

  --color-text: #131C2B;
  --color-text-secondary: #546275;
  --color-text-tertiary: #7D8B9E;

  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  --color-success: #0E8A5F;
  --color-success-soft: #E8F6F0;
  --color-warning: #F59E0B;
  --color-warning-soft: #FEF3C7;
  --color-danger: #DF4642;
  --color-danger-soft: #FEF0F0;

  /* 4pt Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Corner Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(19, 28, 43, .05);
  --shadow-sm: 0 4px 14px rgba(19, 28, 43, .06);
  --shadow-md: 0 12px 30px rgba(19, 28, 43, .09);
  --shadow-lg: 0 20px 48px rgba(19, 28, 43, .18);
  --shadow-primary: 0 8px 22px rgba(0, 103, 199, .26);
  --shadow-primary-hover: 0 12px 28px rgba(0, 103, 199, .34);
  --shadow-card-hover: 0 16px 36px rgba(19, 28, 43, .11), 0 2px 6px rgba(0, 103, 199, .06);

  /* Layout & Motion */
  --max: 1160px;
  --header-h: 64px;
  --touch: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 160ms;
  --dur-med: 260ms;
  --dur-slow: 480ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 103, 199, .08);
}
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 15px/1.55 var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.has-sheet-open { overflow: hidden; }
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-pressed); }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.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;
}

/* ==========================================================================
   Header & Cross-Platform Navigation Bar
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--color-text);
  margin-right: auto;
  min-height: var(--touch);
  white-space: nowrap;
}
.logo:hover { color: var(--color-text); }
.logo img { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
}
.nav a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-picker { position: relative; }
.hdr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.hdr-pill:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border-strong);
}
.hdr-fav-btn svg { color: var(--color-danger); }
.hdr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hdr-badge[hidden] { display: none; }
.hdr-caret {
  color: var(--color-text-secondary);
  transition: transform .15s var(--ease);
}
.hdr-pill[aria-expanded="true"] .hdr-caret { transform: rotate(180deg); }

.hdr-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
}
.hdr-menu[hidden] { display: none; }
.hdr-menu a,
.hdr-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: none;
  border-radius: var(--radius-xs);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.hdr-menu small {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
}
.hdr-menu a:hover,
.hdr-menu button:hover { background: var(--color-surface-subtle); }
.hdr-menu .is-on {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}
.hdr-menu .is-on small { color: var(--color-primary); }

/* Mobile Bottom Tab Bar (iOS TabView / Material 3 NavigationBar parity) */
.bottom-nav { display: none; }

/* ==========================================================================
   Typography, Breadcrumbs & Hero Ocean Band
   ========================================================================== */
h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.14;
  margin: 0 0 10px;
  color: var(--color-text);
}
h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text);
}
.lead {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 66ch;
}
.muted { color: var(--color-text-secondary); font-size: 13px; margin: 0; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 16px 0 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  padding-right: 16px;
}
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--color-text-secondary); font-weight: 500; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs span:last-child { color: var(--color-text); font-weight: 600; }
.crumb-sep { color: var(--color-border-strong); user-select: none; }

/* Atmospheric light-ocean hero band (1:1 Compose Brush.verticalGradient / SwiftUI LinearGradient) */
.hero {
  position: relative;
  padding: 32px 0 20px;
}
.hero-home::before,
.hero-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 48px);
  background: linear-gradient(180deg, var(--color-ocean-tint) 0%, var(--color-ocean-mid) 52%, rgba(245, 247, 250, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-hub { padding-top: 16px; }
.hero-copy { margin-bottom: 22px; }
.hero.compact { padding: 16px 0 12px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
}
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(0, 103, 199, .14);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-stat svg { color: var(--color-primary); flex-shrink: 0; }

.dir-head { padding: 14px 0 20px; }
.dir-head .lead { margin-top: 8px; }
.dir-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.dir-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.dir-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.dir-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}
.dir-search input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 103, 199, .14);
}
.empty-inline {
  margin: 24px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.page-section { margin: 32px 0 12px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 36px;
}
.section-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: background-color .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover {
  background: var(--color-primary-pressed);
  color: var(--color-on-primary);
}
.btn:active { transform: scale(.99); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
}

.btn.is-loading,
.toolbar-btn.is-loading,
.sort-trigger.is-loading,
.filters-reset.is-loading,
.ac button.is-loading {
  pointer-events: none;
  color: transparent !important;
}
.btn.is-loading *,
.toolbar-btn.is-loading *,
.sort-trigger.is-loading *,
.filters-reset.is-loading *,
.ac button.is-loading * {
  visibility: hidden;
}
.btn.is-loading::after,
.toolbar-btn.is-loading::after,
.sort-trigger.is-loading::after,
.filters-reset.is-loading::after,
.ac button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn-secondary.is-loading::after,
.toolbar-btn.is-loading::after,
.sort-trigger.is-loading::after,
.filters-reset.is-loading::after,
.ac button.is-loading::after {
  border-color: var(--color-border);
  border-top-color: var(--color-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Search Card & Quick Filter Rails
   ========================================================================== */
.search-wrap { position: relative; }
.search-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  overflow: visible;
}
.search-card.is-compact { padding: 8px; }
.search-wrap.is-open .search-card.is-compact { padding: var(--space-4); }
.search-wrap.is-open .search-card.is-compact .search-fields { margin-top: 14px; }

.search-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  position: relative;
  min-height: 54px;
  transition: background-color .15s var(--ease);
}
.search-summary:hover { background: var(--color-surface-hover); }
.search-summary.is-loading { pointer-events: none; cursor: default; }
.search-summary-icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}
.search-summary-main { flex: 1; min-width: 0; }
.search-summary-main strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-summary-meta {
  display: block;
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.search-summary-edit {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.search-summary-chevron {
  flex: 0 0 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-summary-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s var(--ease);
}
.search-wrap.is-open .search-summary-chevron::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.search-summary.is-loading .search-summary-chevron,
.search-summary.is-loading .search-summary-edit { visibility: hidden; }
.search-summary.is-loading::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.search-bar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, .95fr) auto;
  gap: 12px;
  align-items: end;
}
.field {
  display: block;
  position: relative;
  min-width: 0;
}
.field > span,
.field > label,
.label {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 6px;
}

.field-control { position: relative; }
.field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  display: inline-flex;
  pointer-events: none;
}
.field input[type="text"],
.dates-trigger,
.guests-trigger {
  width: 100%;
  height: 48px;
  border: 1.5px solid transparent;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field-control.has-icon input { padding-left: 40px; padding-right: 46px; }
.dates-trigger,
.guests-trigger {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  padding-left: 40px;
  font-variant-numeric: tabular-nums;
}
.trigger-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field input[type="text"]:hover,
.dates-trigger:hover,
.guests-trigger:hover {
  background: var(--color-surface-hover);
}
.field input[type="text"]:focus,
.dates-trigger[aria-expanded="true"],
.guests-trigger[aria-expanded="true"] {
  background: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 103, 199, .12);
  outline: none;
}
.field input::placeholder { color: var(--color-text-tertiary); font-weight: 500; }

/* 44x44px hit target with 22px visual badge */
.field-clear {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--touch);
  height: var(--touch);
  border: 0;
  background: radial-gradient(circle, #C1CAD6 0 11px, transparent 11.5px);
  cursor: pointer;
}
.field-clear[hidden] { display: none; }
.field-clear::before,
.field-clear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}
.field-clear::before { transform: translate(-50%, -50%) rotate(45deg); }
.field-clear::after { transform: translate(-50%, -50%) rotate(-45deg); }
.field-clear:hover {
  background: radial-gradient(circle, var(--color-text-secondary) 0 11px, transparent 11.5px);
}

.field-spinner {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.field-control.is-busy .field-spinner { display: block; }
.field-control.is-busy .field-clear { display: none; }

.search-submit {
  width: auto;
  padding: 0 24px;
  white-space: nowrap;
  height: 48px;
}

/* Autocomplete Dropdown */
.ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow: auto;
  padding: 6px;
}
.ac[hidden] { display: none; }
.ac button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  min-height: var(--touch);
}
.ac button:hover,
.ac button.is-focus { background: var(--color-surface-subtle); }
.ac-main { min-width: 0; flex: 1; }
.ac button strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac button small {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ac-type-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.ac-empty { margin: 0; padding: 14px; color: var(--color-text-secondary); font-size: 14px; text-align: center; }

/* Popovers (Desktop) -> Bottom Sheets (Mobile) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(19, 28, 43, .45);
  backdrop-filter: blur(3px);
}
.sheet-backdrop[hidden] { display: none; }
.sheet-pop-bar { display: none; }
.cal-done-btn { display: none; }

.dates-pop,
.guests-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 52;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dates-pop[hidden],
.guests-pop[hidden] { display: none; }
.dates-pop {
  width: min(344px, calc(100vw - 32px));
  padding: 14px 14px 10px;
}
.guests-pop {
  width: min(320px, calc(100vw - 32px));
  right: 0;
  left: auto;
  padding: 8px 16px 16px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cal-nav strong {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.cal-nav-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  cursor: pointer;
  position: relative;
}
.cal-nav-btn:hover { background: var(--color-surface-hover); }
.cal-nav-btn::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}
.cal-nav-btn.is-prev::before { transform: rotate(45deg) translate(1px, -1px); }
.cal-nav-btn.is-next::before { transform: rotate(-135deg) translate(1px, -1px); }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cal-weekdays span {
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-grid button {
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 0;
  padding: 0;
}
.cal-grid button:hover:not(:disabled):not(.is-start):not(.is-end) {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-xs);
}
.cal-grid button.is-other { color: var(--color-text-tertiary); font-weight: 500; }
.cal-grid button:disabled { color: #CBD2DC; cursor: default; }
.cal-grid button.is-in { background: var(--color-primary-soft); color: var(--color-primary); }
.cal-grid button.is-start,
.cal-grid button.is-end {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.cal-grid button.is-start { border-radius: 10px 0 0 10px; }
.cal-grid button.is-end { border-radius: 0 10px 10px 0; }
.cal-grid button.is-start.is-end { border-radius: 10px; }
.cal-grid button.is-today:not(.is-start):not(.is-end) {
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
  border-radius: 10px;
}
.hint { color: var(--color-text-secondary); font-size: 12.5px; margin: 10px 4px 2px; }

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.stepper-row + .stepper-row { border-top: 1px solid var(--color-border); }
.stepper-row > span { font-size: 15px; font-weight: 600; }
.stepper-ctrl { display: flex; align-items: center; gap: 6px; }
.step-val {
  min-width: 60px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.step-btn:hover:not(:disabled) { background: var(--color-primary-soft); }
.step-btn:disabled { color: var(--color-text-tertiary); cursor: default; }
.guests-pop .btn { margin-top: 8px; min-height: 44px; }

/* Quick Filter Chips Rail */
.search-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.chips-group {
  min-width: 0;
  max-width: 100%;
}
.chips-rail {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: var(--color-surface-subtle);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0 15px;
  min-height: 38px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { background: var(--color-surface-hover); }
.chip.is-on {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Styled Search Dropdowns (Boat Type & Crew) */
.search-selects-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px 16px;
  align-items: end;
}
.search-select {
  position: relative;
  min-width: 0;
}
.search-select > .label {
  display: block;
  margin-bottom: 6px;
}
.select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong, var(--color-border));
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.select-trigger:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-subtle);
}
.search-select.is-open .select-trigger,
.select-trigger:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.select-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-chevron {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  transition: transform .18s var(--ease);
}
.search-select.is-open .select-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, .14));
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.select-menu[hidden] { display: none; }
.select-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm, 8px);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}
.select-opt:hover {
  background: var(--color-surface-subtle);
}
.select-opt.is-on {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}
.select-opt.is-on::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 640px) {
  .search-selects-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Destination & Boat Type Tiles
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tiles-types {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tiles.is-collapsed .tile:nth-child(n + 9) { display: none; }
.tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.tile[hidden] { display: none; }
.tile:hover {
  color: var(--color-text);
  border-color: #B4CBE4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.tile-icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-main strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-main span {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tile-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: transform .15s var(--ease), color .15s var(--ease);
}
.tile:hover .tile-arrow {
  color: var(--color-primary);
  transform: translateX(2px);
}
.tiles-more {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0 4px;
  min-height: var(--touch);
  cursor: pointer;
}

/* ==========================================================================
   Results Toolbar, Active Filter Chips & Boat Cards Grid
   ========================================================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.toolbar-btn svg { color: var(--color-primary); flex-shrink: 0; }
.toolbar-btn:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-subtle);
}
.toolbar-btn.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.sort { margin: 0; }
.sort-trigger select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.results-count {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Removable Active Filter Chips (Material 3 InputChip / SwiftUI Chip) */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}
.active-chip:hover { background: #DCEBFB; color: var(--color-primary-pressed); }
.active-chip-x {
  font-size: 16px;
  line-height: 1;
  opacity: .75;
}
.active-chip.is-reset {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  padding: 0 12px;
}
.active-chip.is-reset:hover { background: var(--color-surface-subtle); color: var(--color-text); }

.search-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.results-live.is-loading .search-status { display: flex; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 0 28px;
}
.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #C2D4E8;
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-subtle);
  overflow: hidden;
}
.card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.card:hover .card-img img { transform: scale(1.03); }
.card-img.is-loading img { opacity: 0; }
.boat-gallery-hero.is-loading img,
.boat-gallery-side button.is-loading img,
.boat-gallery-thumbs button.is-loading img,
.gallery-lightbox.is-loading img {
  opacity: .18;
}
.card-img.is-loading::after,
.boat-gallery-hero.is-loading::after,
.boat-gallery-side button.is-loading::after,
.boat-gallery-thumbs button.is-loading::after,
.gallery-lightbox.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.badge-discount {
  left: 12px;
  background: var(--color-danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(223, 70, 66, .35);
}

/* Favorite Heart Button (1:1 Android/iOS FavoriteButton) */
.card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(19, 28, 43, .16);
  transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.card-fav:hover { background: #fff; transform: scale(1.06); }
.card-fav:active { transform: scale(.94); }
.fav-btn.is-saved svg {
  fill: var(--color-danger);
  stroke: var(--color-danger);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  color: var(--color-text);
}
.card-body:hover { color: var(--color-text); }
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-secondary);
  font-size: 13px;
  margin: 0 0 6px;
}
.card-loc svg { flex-shrink: 0; color: var(--color-text-tertiary); }
.card-loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-specs {
  color: var(--color-text-secondary);
  font-size: 12.5px;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}
.card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.price {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.price strong { font-weight: 700; }
.price-prefix,
.price span,
.price small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-rating svg { color: var(--color-warning); }
.card-rating strong { color: var(--color-text); font-weight: 700; }
.card-rating span { color: var(--color-text-secondary); font-weight: 500; }

.results-more-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 36px;
}
.results-more-wrap[hidden] { display: none; }
.results-more-btn {
  width: auto;
  min-width: 240px;
  border-radius: var(--radius-pill);
}

.card.is-preview { opacity: .88; }
.card.is-skel { pointer-events: none; box-shadow: none; }
.card.is-skel .card-img,
.skel-line {
  background: linear-gradient(90deg, var(--color-surface-subtle) 25%, #E4EAF1 50%, var(--color-surface-subtle) 75%);
  background-size: 200% 100%;
  animation: skel 1.25s ease-in-out infinite;
}
.skel-line {
  display: block;
  height: 13px;
  border-radius: 6px;
  margin: 8px 0;
}
.skel-line.is-short { width: 52%; }
.skel-line.is-mid { width: 74%; }
@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================================
   Slide-Over Drawers: Filters & Saved Favorites
   ========================================================================== */
.filters-dialog {
  width: min(440px, 100vw);
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.filters-dialog::backdrop {
  background: rgba(19, 28, 43, .48);
  backdrop-filter: blur(4px);
}
.filters-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.filters-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  flex-shrink: 0;
  padding: 0 14px 0 10px;
  border-bottom: 1px solid var(--color-border);
}
.filters-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  flex: 1;
}
.filters-back {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.filters-back:hover { background: var(--color-surface-subtle); }
/* Desktop: crisp close ×; Mobile: native back chevron < */
.filters-back::before,
.filters-back::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-text);
}
.filters-back::before { transform: translate(-50%, -50%) rotate(45deg); }
.filters-back::after { transform: translate(-50%, -50%) rotate(-45deg); }

.filters-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: var(--color-surface-subtle);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.filters-reset[hidden] { display: none; }
.filters-reset:hover { background: var(--color-surface-hover); color: var(--color-text); }
.filters-body {
  flex: 1;
  overflow: auto;
  padding: 8px 0 24px;
}
.filter-group {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.filter-group:last-child { border-bottom: 0; }
.filter-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.filter-group h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.filter-range-label {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.filter-dual {
  position: relative;
  height: 36px;
  margin-top: 12px;
  --from: 0%;
  --to: 100%;
}
.filter-dual::before,
.filter-dual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--color-border);
  pointer-events: none;
}
.filter-dual::after {
  left: var(--from);
  right: auto;
  width: calc(var(--to) - var(--from));
  background: var(--color-primary);
}
.filter-dual input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  background: none;
  appearance: none;
  outline: none;
  pointer-events: none;
}
.filter-dual input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(19, 28, 43, .25);
  cursor: pointer;
}
.filter-dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(19, 28, 43, .25);
  cursor: pointer;
}
.filter-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.filter-price-fields label span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.filter-price-fields input {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  background: var(--color-surface);
  font-variant-numeric: tabular-nums;
}
.filter-opts { list-style: none; margin: 10px 0 0; padding: 0; }
.filter-opts.is-collapsed .is-extra { display: none; }
.filter-opts label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.filter-opt-name { flex: 1; min-width: 0; }
.filter-opt-count {
  color: var(--color-text-tertiary);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.filter-opts input {
  appearance: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--color-border-strong);
  border-radius: 6px;
  margin: 0;
  background: var(--color-surface);
  transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.filter-opts input:checked {
  border-color: var(--color-primary);
  background: var(--color-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 5.2L4.5 8.2L10.5 1.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}
.filter-more {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0 2px;
  min-height: 40px;
  cursor: pointer;
}
.filters-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}

/* Favorites List Items inside Drawer */
.favorites-body { padding: 14px 16px 28px; }
.fav-empty {
  text-align: center;
  padding: 48px 16px;
}
.fav-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  margin-bottom: 14px;
}
.fav-empty strong { display: block; font-size: 18px; margin-bottom: 6px; }
.fav-empty p { margin: 0 auto; color: var(--color-text-secondary); font-size: 14px; max-width: 30ch; }
.fav-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.fav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: var(--color-text);
}
.fav-item-img {
  flex: 0 0 84px;
  height: 64px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--color-surface-subtle);
}
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-info strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-item-info span {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-item-price {
  margin-top: 3px;
  font-size: 13.5px !important;
  font-weight: 700;
  color: var(--color-primary) !important;
}
.fav-item-rm {
  flex: 0 0 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  font-size: 18px;
  cursor: pointer;
}
.fav-item-rm:hover { background: var(--color-danger-soft); color: var(--color-danger); }

/* ==========================================================================
   Boat Details Page
   ========================================================================== */
.boat-page { padding-bottom: 36px; }

.boat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.boat-topbar .crumbs { margin: 0; flex: 1; min-width: 0; }
.boat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.action-pill:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border-strong);
}
.action-pill.is-saved {
  border-color: #F4B8B6;
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.boat-gallery { margin: 14px 0 6px; }
.boat-gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-subtle);
  height: 450px;
  box-shadow: var(--shadow-sm);
}
.boat-gallery-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: var(--color-surface-subtle);
  cursor: zoom-in;
  overflow: hidden;
}
.boat-gallery-hero img,
.boat-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-out);
}
.boat-gallery-hero:hover img,
.boat-gallery-side button:hover img { transform: scale(1.025); }

.boat-gallery-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 31, 58, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.boat-gallery-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.boat-gallery-all:hover { background: #fff; }
.boat-gallery-all[hidden] { display: none; }

.boat-gallery-nav,
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(11, 31, 58, .22);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.boat-gallery-stage .boat-gallery-nav {
  opacity: .86;
}
.boat-gallery-stage:hover .boat-gallery-nav {
  opacity: 1;
}
.boat-gallery-nav:hover,
.gallery-lightbox-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.boat-gallery-nav:active,
.gallery-lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.boat-gallery-nav.is-prev, .gallery-lightbox-nav.is-prev { left: 14px; }
.boat-gallery-nav.is-next, .gallery-lightbox-nav.is-next { right: 14px; }
.boat-gallery-nav::before, .gallery-lightbox-nav::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  margin: 0 auto;
}
.boat-gallery-nav.is-prev::before, .gallery-lightbox-nav.is-prev::before { transform: rotate(45deg) translate(2px, -1px); }
.boat-gallery-nav.is-next::before, .gallery-lightbox-nav.is-next::before { transform: rotate(-135deg) translate(1px, 2px); }

.boat-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 31, 58, .18) transparent;
  -webkit-overflow-scrolling: touch;
}
.boat-gallery-thumbs::-webkit-scrollbar { height: 5px; }
.boat-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.boat-gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(11, 31, 58, .16);
  border-radius: var(--radius-pill);
}
.boat-gallery-thumbs button {
  position: relative;
  flex: 0 0 96px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface-subtle);
  cursor: pointer;
  opacity: .74;
  transition: opacity var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.boat-gallery-thumbs button:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(0, 103, 199, .42);
}
.boat-gallery-thumbs button.is-on {
  opacity: 1;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 103, 199, .18), 0 4px 10px rgba(11, 31, 58, .10);
}
.boat-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.boat-gallery-thumbs button:hover img { transform: scale(1.05); }

/* Fullscreen Lightbox with Thumbnail Strip */
.gallery-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  padding: 0;
  background: #0B0F17;
  color: #fff;
}
.gallery-lightbox[open] {
  display: flex;
  flex-direction: column;
}
.gallery-lightbox::backdrop { background: rgba(11, 15, 23, .95); }
.gallery-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  flex-shrink: 0;
}
.gallery-lightbox-count {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}
.gallery-lightbox-close {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.gallery-lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
}
.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gallery-lightbox-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px max(14px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  flex-shrink: 0;
  justify-content: safe center;
}
.gallery-lightbox-strip::-webkit-scrollbar { display: none; }
.gallery-lightbox-strip button {
  flex: 0 0 68px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  opacity: .6;
  cursor: pointer;
  transition: opacity .15s var(--ease), border-color .15s var(--ease);
}
.gallery-lightbox-strip button:hover { opacity: .9; }
.gallery-lightbox-strip button.is-on { border-color: #fff; opacity: 1; }
.gallery-lightbox-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Boat Header, Highlights & Jump Navigation */
.boat-head { margin: 0 0 22px; }
.boat-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.boat-head-top h1 { margin: 0; }
.boat-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-xs);
}
.boat-rating-pill[hidden] { display: none; }
.boat-rating-pill svg { color: var(--color-warning); }
.boat-rating-pill strong { font-weight: 700; }
.boat-rating-pill span { color: var(--color-text-secondary); }
.boat-place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.boat-place svg { flex-shrink: 0; color: var(--color-primary); }
.boat-meta {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: 13.5px;
}

.boat-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-width: 640px;
}
.highlight-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.highlight-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.highlight-lbl {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.boat-jump-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.boat-jump-nav::-webkit-scrollbar { display: none; }
.boat-jump-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.boat-jump-nav a:hover {
  background: var(--color-primary-soft);
  border-color: rgba(0, 103, 199, .25);
  color: var(--color-primary);
}

/* Boat 2-Column Layout */
.boat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "hero aside"
    "main aside";
  gap: 18px 28px;
  align-items: start;
  margin-top: 12px;
}
.boat-hero-col {
  grid-area: hero;
  min-width: 0;
}
.boat-hero-col .boat-head {
  margin-bottom: 0;
}
.boat-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.boat-main .boat-jump-nav {
  margin-top: 0;
}
.boat-aside {
  grid-area: aside;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
}
.boat-extra {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.boat-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-card.is-empty { display: none; }
.section-card > h2 { margin-bottom: 14px; }
.section-card > h2 a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--color-border-strong, #cbd5e1); }
.section-card > h2 a:hover { color: var(--color-brand); border-bottom-color: var(--color-brand); }
.boat-copy {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}
.boat-copy + .boat-copy { margin-top: 10px; }
.boat-copy.is-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs Grid */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
  margin: 0;
}
.specs div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}
.specs dt { color: var(--color-text-secondary); font-size: 14px; }
.specs dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Amenities Pills & Extras List */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pills li {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
}

.extras-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.extras-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.extras-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.extra-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.extra-name { font-weight: 600; color: var(--color-text); }
.extra-unit { font-size: 12.5px; color: var(--color-text-secondary); }
.extra-price {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Price & Booking Card */
.price-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.price-dates-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.price-dates-pill svg { color: var(--color-primary); flex-shrink: 0; }
.price-box .price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.price-box .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.price-reviews {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.price-reviews[hidden] { display: none; }
.price-reviews svg { color: var(--color-warning); }
.price-reviews strong { color: var(--color-text); font-weight: 700; }
.price-box.is-loading #price-status { display: block; }
#price-status { display: none; }
.price-box.is-loading .price { opacity: .65; }
.price-box.is-unavailable .price {
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 600;
}

.price-weeks { margin: 18px 0 16px; }
.price-weeks h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
}
.price-weeks table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.price-weeks td {
  padding: 0;
  background: var(--color-surface-subtle);
}
.price-weeks td:first-child { border-radius: 10px 0 0 10px; }
.price-weeks td:last-child {
  border-radius: 0 10px 10px 0;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.price-weeks td a,
.price-weeks td .is-na {
  display: block;
  padding: 10px 12px;
  color: var(--color-text);
}
.price-weeks tr:hover td { background: var(--color-surface-hover); }
.price-weeks tr.is-on td { background: var(--color-primary-soft); }
.price-weeks tr.is-on td a { color: var(--color-primary); font-weight: 700; }
.price-weeks .is-na { color: var(--color-text-tertiary); font-weight: 500; }
.btn-book { margin-top: 14px; min-height: 50px; }
.partner-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

/* Reviews Section */
.reviews-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.reviews-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviews-score-box[hidden] { display: none; }
.reviews-big-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.reviews-score-meta { display: flex; flex-direction: column; gap: 2px; }
.reviews-word { font-size: 15px; font-weight: 700; color: var(--color-text); }
.reviews-word[hidden] { display: none; }
.reviews-summary {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.reviews-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.rating-bar { display: flex; flex-direction: column; gap: 4px; }
.rating-bar-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}
.rating-bar-track {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  overflow: hidden;
}
.rating-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.reviews-list { display: grid; gap: 12px; }
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-avatar {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-author { flex: 1; min-width: 0; }
.review-author strong { display: block; font-size: 14.5px; line-height: 1.25; }
.review-author .muted { font-size: 12.5px; margin-top: 2px; }
.review-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.review-text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
}
.review-text.is-pro {
  padding-left: 10px;
  border-left: 3px solid var(--color-success);
}
.review-text.is-con {
  padding-left: 10px;
  border-left: 3px solid var(--color-danger);
}
.review-text.is-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-more {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 0 2px;
  min-height: 36px;
  cursor: pointer;
}

/* Mobile Sticky Bottom Booking Bar */
.mobile-book-bar { display: none; }

/* ==========================================================================
   Empty State, 404 & Toast Banner (iOS ToastBanner / Android Snackbar)
   ========================================================================== */
.empty-state {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  max-width: 520px;
  margin: 24px auto 48px;
  box-shadow: var(--shadow-xs);
}
.empty-state[hidden] { display: none; }
.empty-state.is-page { margin-top: 48px; }
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.empty-state h1 { font-size: 26px; margin-bottom: 10px; }
.empty-state p {
  color: var(--color-text-secondary);
  margin: 0 auto 22px;
  max-width: 40ch;
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.empty-actions .btn { width: auto; min-width: 170px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  background: #131C2B;
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast[hidden] { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  margin-top: 48px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 13.5px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--space-5) calc(28px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 20px 32px;
  align-items: start;
}
.foot-brand .logo { min-height: auto; font-size: 15px; margin-bottom: 8px; }
.foot-brand p { margin: 0; max-width: 48ch; line-height: 1.5; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 4px;
}
.foot-links a { color: var(--color-text-secondary); font-weight: 500; }
.foot-links a:hover { color: var(--color-primary); }
.foot-langs {
  display: flex;
  gap: 6px;
  padding-top: 2px;
}
.foot-langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.foot-langs a:hover { background: var(--color-surface-subtle); }
.foot-langs a.is-on {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet <= 960px, Mobile <= 720px)
   ========================================================================== */
@media (max-width: 960px) {
  .search-bar-grid { grid-template-columns: 1fr 1fr; }
  .field-dest, .field-submit { grid-column: 1 / -1; }
  .search-submit { width: 100%; height: 50px; }
  .tiles, .tiles-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boat-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "hero"
      "aside"
      "main";
    gap: 18px;
  }
  .boat-aside {
    position: static;
    width: 100%;
  }
  .boat-main { width: 100%; }
  .boat-gallery-stage { height: 380px; }
  .foot-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  main, .top-inner, .foot-inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  .lead { font-size: 15px; }
  .hero { padding: 18px 0 12px; }
  .hero-copy { margin-bottom: 14px; }
  .hero-stats { gap: 6px; margin-top: 12px; }
  .hero-stat { font-size: 12px; padding: 5px 10px; }

  .nav, .hdr-fav-btn { display: none; }
  .hdr-pill { min-height: 40px; padding: 0 11px; }

  /* Mobile Bottom Tab Bar */
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--color-border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(19, 28, 43, .06);
  }
  .bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border: 0;
    background: none;
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px;
  }
  .bottom-tab.is-active { color: var(--color-primary); }
  .bottom-tab-icon { position: relative; display: inline-flex; }
  .bottom-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
  }
  .bottom-badge[hidden] { display: none; }

  body:not(.is-boat-page) .foot-inner {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  body:not(.is-boat-page) .toast {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  /* Search Form Mobile: Clean card + bounded horizontal chip rails */
  .search-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  .search-summary-edit { display: none; }
  .search-bar-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Native Bottom Sheets for Calendar & Guests on Mobile */
  .sheet-pop-bar { display: block; margin-bottom: 10px; }
  .sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border-strong);
    margin: 4px auto 10px;
  }
  .sheet-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
  }
  .sheet-pop-head strong { font-size: 17px; font-weight: 700; }
  .sheet-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface-subtle);
    color: var(--color-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .dates-pop,
  .guests-pop {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    max-height: 88dvh;
    overflow-y: auto;
    z-index: 70;
    border: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(19, 28, 43, .22);
  }
  .cal-done-btn { display: inline-flex; margin-top: 12px; }

  /* Bounded Horizontal Scroll Chip Rails (ZERO horizontal overflow!) */
  .search-chips-bar {
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .chips-group { width: 100%; overflow: hidden; }
  .chips-rail {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 24px 2px 0;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { min-height: 40px; }

  /* Toolbar & Grids */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .toolbar-btn {
    width: 100%;
    padding: 0 12px;
    font-size: 13.5px;
  }
  .sort-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dir-search { width: 100%; }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tiles-types { grid-template-columns: 1fr; }
  .tile { padding: 12px 13px; min-height: 60px; }
  .tile-main strong { font-size: 14px; }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Native Full-Screen Sheets for Filters & Favorites on Mobile */
  .filters-dialog {
    width: 100vw;
    margin: 0;
    border-radius: 0;
  }
  .filters-back::before {
    width: 10px;
    height: 10px;
    background: none;
    border-left: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    border-radius: 0;
    transform: translate(-35%, -50%) rotate(45deg);
  }
  .filters-back::after { display: none; }

  /* Boat Details Mobile */
  .boat-topbar { margin-top: 10px; gap: 8px; }
  .action-pill span { display: none; }
  .action-pill {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .boat-gallery-stage {
    grid-template-columns: 1fr;
    height: auto;
    border-radius: var(--radius-md);
  }
  .boat-gallery-side { display: none; }
  .boat-gallery-hero img { aspect-ratio: 16 / 10; height: auto; }
  .boat-gallery-all { display: none; }

  .boat-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .section-card { padding: 18px 16px; border-radius: var(--radius-md); }
  .price-box { padding: 18px 16px; border-radius: var(--radius-lg); }
  .price-box .price { font-size: 26px; }
  .specs { grid-template-columns: 1fr; gap: 0; }
  .reviews-overview { grid-template-columns: 1fr; gap: 14px; }
  .reviews-breakdown { grid-template-columns: 1fr; }

  .empty-actions { flex-direction: column; }
  .empty-actions .btn { width: 100%; }

  /* Smart Sticky Bottom Booking Bar (slides up only when inline Book CTA is off-screen) */
  .boat-page { padding-bottom: 92px; }
  .mobile-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.5) blur(14px);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(19, 28, 43, .10);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .mobile-book-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-book-price-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .mobile-book-price-col strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
  }
  .mobile-book-price-col span {
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-book-cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 142px;
    min-height: var(--touch);
    padding: 0 18px;
  }

  .foot-langs a { min-width: 40px; height: 40px; }
}

/* ==========================================================================
   SEO / GEO FAQ Accordion & Internal Cross-Linking
   ========================================================================== */
.seo-faq { margin-top: var(--space-10); }
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--color-primary); }
.faq-chev {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.faq-a {
  padding: 0 18px 16px;
  color: var(--color-text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-a p { margin: 0; max-width: 78ch; }

.boat-type-link {
  color: var(--color-primary);
  font-weight: 600;
}
.boat-type-link:hover { text-decoration: underline; }
.similar-boats { margin-top: var(--space-10); }

/* Boat Sidebar Clickable Dates + Popover */
.boat-dates-wrap {
  position: relative;
  margin-bottom: 12px;
}
.boat-dates-wrap .price-dates-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
  border: 1px solid var(--color-border);
  text-align: left;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.boat-dates-wrap .price-dates-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}
.price-dates-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-dates-edit {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
}
.boat-dates-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 320px;
  max-width: calc(100vw - 32px);
  z-index: 60;
}
.boat-dates-pop .cal-foot {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.boat-dates-pop .cal-picked {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.boat-dates-pop .cal-done-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 0;
}
.boat-dates-pop .cal-grid button.is-sat:not(.is-start):not(.is-end):not(.is-in) {
  font-weight: 700;
  color: var(--color-text);
}
@media (max-width: 640px) {
  .boat-dates-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
  }
}

/* Multi-Provider Booking Stack */
.booking-offers { margin-top: 14px; }
.booking-offers .btn-book { margin-top: 0; width: 100%; }
.btn-book-anytravel {
  background: linear-gradient(135deg, #0067C7 0%, #004E9A 100%);
  color: #fff;
}
.booking-offers-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 8px;
}
.booking-offers-list[hidden] { display: none; }
.booking-offers-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}
.offer-row {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.offer-row:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
}
.offer-row.is-primary {
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface-subtle));
  border-color: color-mix(in srgb, var(--color-primary) 26%, transparent);
}
.offer-row.is-direct {
  background: color-mix(in srgb, #10B981 6%, var(--color-surface-subtle));
  border-color: color-mix(in srgb, #10B981 22%, transparent);
}
.offer-row.is-gds {
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface-subtle));
  border-color: color-mix(in srgb, var(--color-primary) 26%, transparent);
}
.offer-row-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.offer-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.offer-row-title strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.offer-row-sub {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.offer-badge.is-best_price {
  background: #DCFCE7;
  color: #166534;
  border-color: #BBF7D0;
}
.offer-badge.is-direct_operator {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}
.offer-badge.is-direct_anytravel {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.offer-badge.is-discount {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}
.offer-row-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.offer-row-act:not(:has(.offer-row-price)) .offer-row-btn {
  width: 100%;
  justify-content: center;
}
.offer-row-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.offer-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.offer-row-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.offer-row-btn.is-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.offer-row-btn.is-primary:hover {
  filter: brightness(.94);
  color: #fff;
}
.offer-row-btn.is-direct {
  border-color: color-mix(in srgb, #059669 35%, var(--color-border));
  color: #047857;
}
.offer-row-btn.is-direct:hover {
  background: #ECFDF5;
  border-color: #059669;
}
.offer-row-btn.is-anytravel {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.offer-row-btn.is-anytravel:hover {
  filter: brightness(.94);
  color: #fff;
}

/* Charter Directory & Profile */
.charter-verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.charter-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.charter-official-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, #059669 35%, var(--color-border));
  color: #047857;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.charter-official-btn small {
  color: var(--color-text-secondary);
  font-weight: 500;
}
.charter-official-btn:hover {
  background: #ECFDF5;
  border-color: #059669;
}

/* Direct Any.Travel Booking Dialog */
.direct-book-body { display: grid; gap: 14px; }
.direct-book-sub { margin: 0; font-size: 13.5px; color: var(--color-text-secondary); line-height: 1.5; }
.direct-book-summary {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  font-size: 13.5px;
}
.direct-book-price { font-weight: 700; color: var(--color-primary); margin-top: 2px; }
.direct-book-form { display: grid; gap: 12px; }
.db-field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--color-text); }
.db-field input,
.db-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}
.db-field input:focus,
.db-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.db-error { margin: 0; color: #DC2626; font-size: 13px; font-weight: 600; }
.direct-book-success {
  text-align: center;
  padding: 18px 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.direct-book-success[hidden] { display: none; }
.db-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.db-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
}

@media (max-width: 520px) {
  .offer-row { flex-direction: column; align-items: stretch; }
  .offer-row-act { justify-content: space-between; }
}

/* ==========================================================================
   UX/UI Design System Upgrade — Typography, Fluidity, Accents & Mobile UX
   ========================================================================== */
@keyframes uiFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes uiPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes uiSheetUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes uiDrawerRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes uiPulseSoft {
  0%, 100% { opacity: .45; }
  50%      { opacity: .88; }
}

/* 1. Display Typography & Optical Hierarchy */
h1, h2, h3, .logo, .price-box .price, .offer-row-price, .reviews-big-score {
  font-family: var(--font-display);
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.032em;
  color: var(--color-navy);
}
h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -.024em;
  color: var(--color-navy);
}
.lead {
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 62ch;
}

/* 2. Smart Glass Header & Popover Menus */
.top {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(19, 28, 43, .07);
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.top.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(19, 28, 43, .10);
  box-shadow: 0 8px 28px rgba(11, 31, 58, .07);
}
.logo {
  font-weight: 800;
  letter-spacing: -.028em;
  color: var(--color-navy);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.logo:active { transform: scale(.98); }
.nav a,
.hdr-pill,
.hdr-fav-btn {
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 103, 199, .18);
}
.hdr-pill:hover {
  box-shadow: var(--shadow-xs);
}
.hdr-pill:active,
.hdr-fav-btn:active { transform: scale(.96); }
.hdr-menu:not([hidden]),
.ac:not([hidden]) {
  animation: uiPopIn 180ms var(--ease-out) both;
  transform-origin: top right;
}
.ac:not([hidden]) { transform-origin: top left; }
.dates-pop:not([hidden]),
.guests-pop:not([hidden]) {
  animation: uiPopIn 200ms var(--ease-out) both;
  transform-origin: top center;
}
.filters-dialog[open] {
  animation: uiDrawerRight 240ms var(--ease-out) both;
}

/* 3. Atmospheric Marine Hero */
.hero-home::before,
.hero-hub::before {
  background:
    radial-gradient(62% 88% at 12% 0%, rgba(0, 122, 230, .16) 0%, rgba(0, 122, 230, 0) 68%),
    radial-gradient(50% 78% at 88% 6%, rgba(14, 165, 164, .13) 0%, rgba(14, 165, 164, 0) 65%),
    linear-gradient(180deg, var(--color-ocean-tint) 0%, var(--color-ocean-mid) 54%, rgba(245, 247, 250, 0) 100%);
}
.hero-copy {
  animation: uiFadeUp var(--dur-slow) var(--ease-out) both;
}
.hero-stat {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(0, 103, 199, .16);
  box-shadow: 0 2px 10px rgba(11, 31, 58, .05);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.hero-stat:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 103, 199, .30);
  box-shadow: 0 6px 16px rgba(0, 103, 199, .11);
}

/* 4. Expressive CTAs & Tactile Controls */
.btn:not(.btn-secondary),
.search-submit {
  background: linear-gradient(180deg, #0E78DE 0%, var(--color-primary) 100%);
  box-shadow: var(--shadow-primary);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.btn:not(.btn-secondary):hover,
.search-submit:hover {
  background: linear-gradient(180deg, #006BD2 0%, var(--color-primary-pressed) 100%);
  box-shadow: var(--shadow-primary-hover);
  transform: translateY(-1px);
}
.btn:not(.btn-secondary):active,
.search-submit:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 3px 10px rgba(0, 103, 199, .22);
}
.btn-secondary {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:active { transform: scale(.985); }

/* 5. Search Card, Inputs, Chips & Section Links */
.search-card {
  border-color: rgba(0, 103, 199, .14);
  box-shadow: 0 16px 40px rgba(11, 31, 58, .08), 0 1px 3px rgba(11, 31, 58, .04);
  transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.search-card:focus-within {
  border-color: rgba(0, 103, 199, .32);
  box-shadow: 0 20px 46px rgba(0, 103, 199, .11), 0 2px 6px rgba(11, 31, 58, .05);
}
.chip,
.toolbar-btn,
.active-chip,
.section-link {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.chip:hover,
.toolbar-btn:hover { transform: translateY(-1px); }
.chip:active,
.toolbar-btn:active,
.active-chip:active { transform: scale(.96); }
.section-link svg {
  transition: transform var(--dur-fast) var(--ease-out);
}
.section-link:hover svg { transform: translateX(3px); }

/* 6. Boat Cards — Showcase Quality */
.card {
  border-color: rgba(11, 31, 58, .08);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 103, 199, .26);
}
.card:active {
  transform: translateY(-1px) scale(.992);
}
.card-img::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0) 0%, rgba(11, 31, 58, .18) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: .75;
  transition: opacity var(--dur-med) var(--ease-out);
}
.card:hover .card-img::before { opacity: .42; }
.card-img img {
  transition: transform 540ms var(--ease-out), opacity 260ms var(--ease-out);
  will-change: transform;
}
.card:hover .card-img img { transform: scale(1.055); }
.badge-discount {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, .36);
  letter-spacing: .01em;
}
.card-title {
  color: var(--color-navy);
  transition: color var(--dur-fast) var(--ease-out);
}
.card:hover .card-title { color: var(--color-primary); }
.card-rating {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}
.card-rating strong { color: #92400E; }
.card-rating span { color: #B45309; }
.card-foot {
  border-top-color: rgba(11, 31, 58, .07);
}
.card-fav {
  transition: transform var(--dur-fast) var(--ease-spring), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.card-fav:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(11, 31, 58, .22);
}
.card-fav:active { transform: scale(.88); }

/* 7. Destination & Boat Type Tiles */
.tile {
  border-color: rgba(11, 31, 58, .08);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 31, 58, .08);
  border-color: rgba(0, 103, 199, .28);
}
.tile:active { transform: scale(.985); }
.tile-arrow {
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tile:hover .tile-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}
.tile-icon {
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.tile.is-type:hover .tile-icon {
  background: linear-gradient(135deg, #0E78DE 0%, var(--color-teal) 100%);
  color: #fff;
  transform: scale(1.06);
}

/* 8. Boat Page — Gallery, Price Card, Live Broker Comparison & Weeks */
.boat-gallery-hero img,
.boat-gallery-side img {
  transition: transform 540ms var(--ease-out), opacity 260ms var(--ease-out);
}
.boat-gallery-hero:hover img,
.boat-gallery-side button:hover img {
  transform: scale(1.03);
}
.boat-gallery-all {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.boat-gallery-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 31, 58, .22);
}
.action-pill {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.action-pill:hover { box-shadow: var(--shadow-xs); }
.action-pill:active { transform: scale(.95); }

.price-box {
  position: relative;
  overflow: visible;
  border-color: rgba(0, 103, 199, .15);
  box-shadow: 0 16px 40px rgba(11, 31, 58, .09), 0 2px 6px rgba(11, 31, 58, .03);
}
.price-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-teal) 100%);
  opacity: .9;
  pointer-events: none;
}
.price-box.is-loading .price {
  animation: uiPulseSoft 1.35s ease-in-out infinite;
}
.price-dates-pill {
  min-height: 44px;
  width: 100%;
  justify-content: space-between;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.price-dates-pill:hover {
  border-color: rgba(0, 103, 199, .40);
  background: var(--color-primary-soft);
  box-shadow: 0 2px 10px rgba(0, 103, 199, .09);
}
.price-dates-pill:active { transform: scale(.99); }

.booking-offers-list {
  gap: 10px;
}
.offer-row {
  position: relative;
  padding: 13px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  animation: uiFadeUp 280ms var(--ease-out) both;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.offer-row:nth-of-type(2) { animation-delay: 45ms; }
.offer-row:nth-of-type(3) { animation-delay: 90ms; }
.offer-row:nth-of-type(4) { animation-delay: 135ms; }
.offer-row:nth-of-type(5) { animation-delay: 180ms; }
.offer-row:hover {
  transform: translateY(-1px);
  background: var(--color-surface);
  border-color: rgba(0, 103, 199, .34);
  box-shadow: 0 8px 22px rgba(11, 31, 58, .08);
}
.offer-row.is-primary {
  background: linear-gradient(135deg, rgba(0, 103, 199, .065) 0%, rgba(14, 165, 164, .05) 100%), var(--color-surface);
  border-color: rgba(0, 103, 199, .36);
  box-shadow: inset 3.5px 0 0 var(--color-primary), 0 6px 18px rgba(0, 103, 199, .10);
}
.offer-row.is-primary:hover {
  border-color: var(--color-primary);
  box-shadow: inset 3.5px 0 0 var(--color-primary), 0 10px 26px rgba(0, 103, 199, .16);
}
.offer-row.is-direct {
  background: linear-gradient(135deg, rgba(16, 185, 129, .06) 0%, rgba(255, 255, 255, 0) 100%), var(--color-surface);
  border-color: rgba(5, 150, 105, .28);
  box-shadow: inset 3.5px 0 0 #059669, var(--shadow-xs);
}
.offer-row.is-direct:hover {
  border-color: #059669;
  box-shadow: inset 3.5px 0 0 #059669, 0 8px 20px rgba(5, 150, 105, .11);
}
.offer-row-price {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--color-navy);
}
.offer-row.is-primary .offer-row-price {
  color: var(--color-primary-pressed);
}
.offer-badge.is-best_price {
  background: linear-gradient(135deg, #DCFCE7 0%, #D1FAE5 100%);
  color: #14532D;
  border-color: #86EFAC;
  box-shadow: 0 1px 3px rgba(22, 101, 52, .10);
}
.offer-row-btn {
  min-height: 38px;
  padding: 7px 14px;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.offer-row-btn svg {
  transition: transform var(--dur-fast) var(--ease-out);
}
.offer-row-btn:hover svg {
  transform: translate(1.5px, -1.5px);
}
.offer-row-btn:active { transform: scale(.96); }
.offer-row-btn.is-primary {
  background: linear-gradient(180deg, #0E78DE 0%, var(--color-primary) 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 103, 199, .28);
}
.offer-row-btn.is-primary:hover {
  filter: none;
  background: linear-gradient(180deg, #006BD2 0%, var(--color-primary-pressed) 100%);
  box-shadow: 0 6px 18px rgba(0, 103, 199, .36);
  transform: translateY(-1px);
}
.offer-row-btn.is-direct:hover {
  box-shadow: 0 4px 12px rgba(5, 150, 105, .15);
}

.price-weeks td {
  transition: background-color var(--dur-fast) var(--ease-out);
}
.price-weeks tr.is-on td:first-child {
  box-shadow: inset 3px 0 0 var(--color-primary);
}
.section-card {
  border-color: rgba(11, 31, 58, .08);
  box-shadow: var(--shadow-xs);
}
.reviews-big-score {
  background: linear-gradient(135deg, #0E78DE 0%, var(--color-primary-pressed) 100%);
  box-shadow: 0 6px 16px rgba(0, 103, 199, .26);
}
.foot a {
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

/* 9. Mobile Ergonomics & Touch Precision */
@media (hover: none) {
  .card:hover,
  .tile:hover,
  .offer-row:hover,
  .chip:hover,
  .toolbar-btn:hover,
  .hero-stat:hover,
  .btn:not(.btn-secondary):hover,
  .offer-row-btn.is-primary:hover,
  .boat-gallery-all:hover {
    transform: none;
  }
  .card:hover .card-img img,
  .boat-gallery-hero:hover img,
  .boat-gallery-side button:hover img,
  .tile.is-type:hover .tile-icon {
    transform: none;
  }
}

@media (max-width: 720px) {
  .dates-pop:not([hidden]),
  .guests-pop:not([hidden]) {
    animation: uiSheetUp 240ms var(--ease-out) both;
  }
  .filters-dialog[open] {
    animation: uiSheetUp 240ms var(--ease-out) both;
  }
  .bottom-tab {
    transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }
  .bottom-tab:active { transform: scale(.92); }
  .bottom-tab-icon {
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  .bottom-tab.is-active .bottom-tab-icon {
    background: var(--color-primary-soft);
  }
  .mobile-book-bar {
    backdrop-filter: saturate(1.7) blur(20px);
    -webkit-backdrop-filter: saturate(1.7) blur(20px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -8px 28px rgba(11, 31, 58, .12);
  }
  .mobile-book-bar .btn {
    min-height: 46px;
  }
  .boat-gallery-thumbs {
    gap: 8px;
    margin-top: 10px;
  }
  .boat-gallery-thumbs button {
    flex: 0 0 76px;
    height: 52px;
    border-radius: 10px;
  }
  .offer-row { padding: 13px 13px; }
  .offer-row-price { font-size: 16px; }
  .offer-row-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .price-box::before {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 520px) {
  .offer-row-act {
    gap: 8px;
    padding-top: 2px;
  }
  .offer-row-btn {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
