/* ==========================================================================
   Bowtt Sail — dhow experiences inside the Bowtt app.
   Sits on top of app.css (same cards, spacing, bottom nav, sheets) and only
   adds the Ride/Sail switch plus a warm "golden hour" accent for Sail.
   Mobile first; the app column is 560px wide at most, like every other page.
   ========================================================================== */
:root {
  --sail-1: #f97316;            /* sunset orange */
  --sail-2: #e11d48;            /* dusk rose */
  --sail-deep: #2b1d4e;         /* evening indigo */
  --sail-ink: #1f1633;
  --sail-sand: #fff7ed;
  --sail-sand-2: #ffedd5;
  --sail-line: #fde2c8;
  --sail-grad: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  --sail-grad-deep: linear-gradient(160deg, #2b1d4e 0%, #7c2d5b 55%, #f97316 100%);
}

/* ---------------- Ride / Sail switch (topbars) ---------------- */
.bowtt-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #eef3f7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
  flex: 0 0 auto;
}
.bowtt-mode-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.bowtt-mode-switch a i { font-size: 12px; }
.bowtt-mode-switch a:active { transform: scale(.96); }
.bowtt-mode-switch a.is-active.mode-ride {
  background: var(--bowt-primary, #0077b6);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 119, 182, .28);
}
.bowtt-mode-switch a.is-active.mode-sail {
  background: var(--sail-grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(244, 63, 94, .3);
}

/* Passenger topbar: centred between logo and avatar on phones. */
.passenger-topbar .bowtt-mode-switch {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-top: calc(var(--bowt-safe-top, 0px) / 2);
}
@media (max-width: 359px) {
  .bowtt-mode-switch a { padding: 0 10px; }
  .bowtt-mode-switch a i { display: none; }
}
@media (min-width: 900px) {
  .passenger-topbar .bowtt-mode-switch {
    position: static;
    transform: none;
    margin: 0 auto 0 18px;
  }
  .passenger-topbar .bowtt-mode-switch a { height: 34px; padding: 0 16px; font-size: 13.5px; }
}

/* Captain topbar is blue: glass switch. */
.captain-topbar .bowtt-mode-switch {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  margin-left: auto;
  margin-right: 10px;
}
.captain-topbar .bowtt-mode-switch a { color: rgba(255, 255, 255, .92); }
.captain-topbar .bowtt-mode-switch a.is-active.mode-ride { background: #fff; color: var(--bowt-primary, #0077b6); box-shadow: 0 3px 10px rgba(15, 23, 42, .15); }
.captain-topbar .bowtt-mode-switch a.is-active.mode-sail { background: var(--sail-grad); color: #fff; }
.captain-topbar .sail-only-badge {
  margin-left: auto;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sail-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 430px) {
  .captain-topbar.has-mode-switch .captain-brand span { display: none; }
}
@media (min-width: 900px) {
  body.cd .captain-topbar .bowtt-mode-switch,
  body.cd .captain-topbar .sail-only-badge { margin: 0 auto 0 18px; position: relative; z-index: 62; }
}

/* Sail tint for the topbars while in Sail mode. */
.captain-topbar.is-sail { background: var(--sail-grad-deep); box-shadow: 0 3px 14px rgba(124, 45, 91, .28); }

/* ---------------- Bottom navs in Sail mode ---------------- */
.bowt-bottom-nav.is-sail a.active { color: var(--sail-2); background: var(--sail-sand); }
.captain-bottom-nav.is-sail a.active:not(.captain-dashboard-home) { color: var(--sail-2); }
.captain-bottom-nav.is-sail a.active:not(.captain-dashboard-home)::after { background: var(--sail-2); }
.captain-bottom-nav.is-sail .captain-dashboard-home { background: var(--sail-grad); box-shadow: 0 10px 22px rgba(244, 63, 94, .32); }
.captain-bottom-nav.is-sail .captain-dashboard-home.active { background: linear-gradient(145deg, #ea580c, #be123c); }
@media (min-width: 900px) {
  body.cd .captain-bottom-nav.is-sail a.active,
  body.cd .captain-bottom-nav.is-sail .captain-dashboard-home.active { background: #fff; color: var(--sail-2); }
  body.cd .captain-bottom-nav.is-sail .captain-dashboard-home { background: transparent; box-shadow: none; }
}
.sail-nav-badge {
  position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--sail-2); color: #fff; font-size: 9px; font-weight: 800;
  line-height: 16px; text-align: center;
}

/* ---------------- Sail page building blocks ---------------- */
body.sail-page { background: #fbf7f2; }
body.sail-page .bowt-page { padding-top: 14px; }

.sail-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 196px;
  color: #fff;
  background: #2b1d4e url('../images/sail/dhow-sunset.svg') 82% 60% / cover no-repeat;
  box-shadow: 0 12px 30px rgba(43, 29, 78, .22);
  margin-bottom: 16px;
  isolation: isolate;
}
.sail-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 22, 51, .78) 0%, rgba(31, 22, 51, .42) 55%, rgba(31, 22, 51, 0) 85%),
    linear-gradient(180deg, rgba(31, 22, 51, 0) 45%, rgba(31, 22, 51, .55) 100%);
  z-index: -1;
}
.sail-hero-body { position: relative; padding: 16px 16px 14px; }
.sail-hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 10px; margin-bottom: 8px;
}
.sail-hero h1 { max-width: 15ch; font-size: 22px; font-weight: 800; line-height: 1.15; margin: 0 0 4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.sail-hero p { font-size: 13px; margin: 0; opacity: .92; max-width: 30ch; }
.sail-hero-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sail-hero-facts span {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--sail-ink);
}
.sail-hero.is-compact { min-height: 132px; }
.sail-hero.is-compact h1 { font-size: 19px; max-width: 20ch; }

.sail-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.sail-section-head h2 { font-size: 17px; font-weight: 800; margin: 0; color: var(--sail-ink); }
.sail-section-head small { color: var(--bowt-muted); font-size: 12px; }

/* Filter chips */
.sail-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 4px; }
.sail-chips::-webkit-scrollbar { display: none; }
.sail-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--sail-line); background: #fff; color: #7c4a2d;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.sail-chip.active { background: var(--sail-ink); border-color: var(--sail-ink); color: #fff; }

/* Dhow listing card */
.sail-card {
  background: #fff; border: 1px solid #f1e6da; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(60, 30, 20, .06); margin-bottom: 14px;
}
.sail-card-top {
  position: relative; padding: 14px 14px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffe4e6 100%);
  display: flex; gap: 12px; align-items: center;
}
.sail-card-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sail-grad); color: #fff; font-size: 20px;
  box-shadow: 0 6px 14px rgba(244, 63, 94, .25);
}
.sail-card-icon.is-jahazi { background: linear-gradient(135deg, #7c2d5b, #2b1d4e); box-shadow: 0 6px 14px rgba(43, 29, 78, .25); }
.sail-card-title { font-weight: 800; font-size: 15.5px; color: var(--sail-ink); line-height: 1.2; }
.sail-card-sub { font-size: 12px; color: #8a6a5a; margin-top: 2px; }
.sail-card-when {
  margin-left: auto; text-align: right; flex: 0 0 auto;
  font-size: 11px; color: #8a6a5a; font-weight: 700;
}
.sail-card-when strong { display: block; font-size: 16px; color: var(--sail-ink); }
.sail-card-body { padding: 12px 14px 14px; }
.sail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sail-meta span {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  background: #f8fafc; color: #475569; border-radius: 999px; padding: 5px 10px;
}
.sail-meta span i { color: var(--sail-1); }
.sail-seatbar { height: 6px; border-radius: 99px; background: #f1f5f9; overflow: hidden; margin: 4px 0 6px; }
.sail-seatbar > i { display: block; height: 100%; border-radius: 99px; background: var(--sail-grad); }
.sail-seat-text { font-size: 12px; color: #64748b; font-weight: 600; }
.sail-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sail-prices { display: flex; flex-direction: column; gap: 1px; }
.sail-price { font-size: 17px; font-weight: 800; color: var(--sail-ink); line-height: 1.2; }
.sail-price small { font-size: 11.5px; font-weight: 600; color: #8a6a5a; }
.sail-price.is-secondary { font-size: 13.5px; }

.btn-sail {
  background: var(--sail-grad); border: 0; color: #fff; font-weight: 800;
  border-radius: 14px; padding: 12px 18px; box-shadow: 0 8px 18px rgba(244, 63, 94, .24);
}
.btn-sail:hover, .btn-sail:focus { color: #fff; filter: brightness(1.04); }
.btn-sail:disabled { opacity: .55; box-shadow: none; }
.btn-sail-soft {
  background: var(--sail-sand); border: 1px solid var(--sail-line); color: #9a3412;
  font-weight: 800; border-radius: 14px; padding: 11px 16px;
}
.btn-sail-soft:hover { background: var(--sail-sand-2); color: #9a3412; }

/* "Can't find one?" request promo */
.sail-request-promo {
  border-radius: 20px; padding: 16px; margin: 6px 0 14px;
  background: var(--sail-grad-deep); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(43, 29, 78, .22);
}
.sail-request-promo::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 214, 140, 0) 70%);
}
.sail-request-promo h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.sail-request-promo p { font-size: 13px; opacity: .9; margin: 0 0 12px; max-width: 34ch; }
.sail-request-promo .btn { position: relative; z-index: 1; background: #fff; color: var(--sail-2); font-weight: 800; border-radius: 12px; padding: 10px 16px; border: 0; }

/* Current request — the passenger's one live request/booking, called out
   on its own with full details, instead of blending into the history list. */
.sail-active-req {
  background: #fff; border: 1px solid var(--sail-line); border-radius: 20px; padding: 16px;
  margin: 6px 0 14px; box-shadow: 0 10px 26px rgba(43, 29, 78, .10);
  border-left: 5px solid var(--sail-1);
}
.sail-active-req.is-accepted { border-left-color: #16a34a; }
.sail-active-req-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sail-active-req-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800;
  color: var(--sail-2); background: var(--sail-sand); border: 1px solid var(--sail-line);
  border-radius: 999px; padding: 4px 10px 4px 8px;
}
.sail-active-req.is-accepted .sail-active-req-badge { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.sail-active-req-since { font-size: 11.5px; color: var(--bowt-muted); }
.sail-active-req-title { font-weight: 800; font-size: 16px; color: var(--sail-ink); margin-bottom: 6px; }
.sail-active-req-details { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: #475569; margin-bottom: 8px; }
.sail-active-req-details span { display: inline-flex; align-items: center; gap: 6px; }
.sail-active-req-details i { color: var(--sail-1); width: 14px; text-align: center; }
.sail-active-req-note { font-size: 12.5px; color: #64748b; background: #f8fafc; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; display: flex; gap: 6px; }
.sail-active-req-status { font-size: 13px; font-weight: 700; color: var(--sail-ink); margin-bottom: 12px; }
.sail-active-req-actions .btn { font-size: 13.5px; }

/* Requests list */
.sail-req {
  background: #fff; border: 1px solid #f1e6da; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.sail-req-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; margin-top: 6px; flex: 0 0 10px; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.sail-req-dot.is-searching { animation: sail-pulse 1.6s ease-in-out infinite; }
.sail-req-dot.is-accepted { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.sail-req-dot.is-cancelled, .sail-req-dot.is-expired { background: #94a3b8; box-shadow: none; }
@keyframes sail-pulse { 50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, .05); } }
.sail-req-title { font-weight: 800; font-size: 14px; color: var(--sail-ink); }
.sail-req-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.sail-req-actions { margin-left: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.sail-link { font-size: 12.5px; font-weight: 800; color: var(--sail-2); text-decoration: none; background: none; border: 0; padding: 0; }

/* Empty state */
.sail-empty { text-align: center; padding: 26px 16px; color: #8a6a5a; background: #fff; border: 1px dashed var(--sail-line); border-radius: 18px; }
.sail-empty i { font-size: 30px; color: #fdba74; margin-bottom: 8px; display: block; }
.sail-empty h5 { font-weight: 800; color: var(--sail-ink); font-size: 15px; margin-bottom: 4px; }
.sail-empty p { font-size: 13px; margin: 0; }

/* ---------------- Bottom sheet (book / request) ---------------- */
.sail-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(31, 22, 51, .45); z-index: 1100;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.sail-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sail-sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 1101;
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  transform: translate(-50%, 104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(18px + var(--bowt-safe-bottom, 0px));
  box-shadow: 0 -16px 40px rgba(31, 22, 51, .22);
  overscroll-behavior: contain;
}
.sail-sheet.open { transform: translate(-50%, 0); }
.sail-sheet-handle { width: 42px; height: 5px; border-radius: 99px; background: #e5e7eb; margin: 4px auto 12px; }
.sail-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sail-sheet-head h3 { font-size: 18px; font-weight: 800; margin: 0; color: var(--sail-ink); }
.sail-sheet-head p { font-size: 12.5px; color: #64748b; margin: 2px 0 0; }
.sail-sheet-close { border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 50%; color: #475569; flex: 0 0 34px; }
body.sail-sheet-open { overflow: hidden; }

.sail-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a6a5a; margin: 14px 0 7px; }
.sail-seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 8px; }
.sail-seg input { display: none; }
.sail-seg label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid #eadfd3; background: #fff;
  font-weight: 800; font-size: 13px; color: #475569; cursor: pointer; text-align: center; line-height: 1.15;
}
.sail-seg label small { font-weight: 600; font-size: 11px; color: #94a3b8; }
.sail-seg label i { color: var(--sail-1); font-size: 16px; }
.sail-seg input:checked + label { border-color: var(--sail-2); background: #fff1f2; color: var(--sail-ink); box-shadow: 0 0 0 3px rgba(244, 63, 94, .08); }
.sail-seg input:checked + label small { color: #be123c; }
.sail-seg input:disabled + label { opacity: .45; cursor: not-allowed; }

.sail-stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid #eadfd3; border-radius: 14px; padding: 6px; }
.sail-stepper button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--sail-sand); color: #9a3412; font-size: 16px; font-weight: 800; }
.sail-stepper button:disabled { opacity: .4; }
.sail-stepper output { font-size: 22px; font-weight: 800; color: var(--sail-ink); min-width: 60px; text-align: center; }
.sail-stepper output small { display: block; font-size: 10.5px; font-weight: 700; color: #94a3b8; }

.sail-input { width: 100%; border: 1.5px solid #eadfd3; border-radius: 14px; padding: 12px 14px; font-size: 15px; background: #fff; color: var(--sail-ink); }
.sail-input:focus { outline: none; border-color: var(--sail-1); box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
select.sail-input { appearance: auto; }

.sail-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sail-sand); border: 1px solid var(--sail-line); border-radius: 16px; padding: 12px 14px; margin-top: 16px;
}
.sail-summary small { display: block; font-size: 11px; color: #9a6b53; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sail-summary strong { font-size: 22px; color: var(--sail-ink); }
.sail-hint { font-size: 12px; color: #8a6a5a; margin-top: 6px; }
.sail-trip-recap { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #faf7f3; }

/* ---------------- Captain Sail ---------------- */
.sail-captain-hero {
  border-radius: 22px; padding: 16px; margin-bottom: 12px; color: #fff; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 22, 51, .82) 0%, rgba(31, 22, 51, .45) 60%, rgba(31, 22, 51, .1) 100%),
    #2b1d4e url('../images/sail/dhow-sunset.svg') 85% 60% / cover no-repeat;
  box-shadow: 0 12px 30px rgba(43, 29, 78, .2);
}
.sail-captain-hero .captain-eyebrow { color: rgba(255, 255, 255, .85); }
.sail-captain-hero h1 { font-size: 21px; font-weight: 800; margin: 2px 0 4px; }
.sail-captain-hero p { font-size: 13px; margin: 0; opacity: .92; max-width: 30ch; }
.sail-captain-hero .captain-online-toggle { box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.sail-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sail-strip a, .sail-strip div {
  background: #fff; border: 1px solid #f1e6da; border-radius: 16px; padding: 11px 6px; text-align: center;
  text-decoration: none; color: var(--sail-ink); display: flex; flex-direction: column; gap: 1px;
}
.sail-strip strong { font-size: 20px; background: var(--sail-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sail-strip span { font-size: 10.5px; color: #8a6a5a; font-weight: 700; }
.sail-float-cta {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border: 1px solid #fed7aa; border-radius: 20px; padding: 14px; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, .10); color: var(--sail-ink);
}
.sail-float-cta .sail-card-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 22px; }
.sail-float-cta b { display: block; font-size: 15.5px; }
.sail-float-cta small { color: #8a6a5a; font-size: 12.5px; }
.sail-float-cta .fa-chevron-right { margin-left: auto; color: #fb923c; }

.sail-boat-pick { display: grid; gap: 8px; }
.sail-boat-pick input { display: none; }
.sail-boat-pick label {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid #eadfd3; background: #fff; cursor: pointer;
}
.sail-boat-pick label .sail-card-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
.sail-boat-pick label b { display: block; font-size: 14.5px; color: var(--sail-ink); }
.sail-boat-pick label small { color: #8a6a5a; font-size: 12px; }
.sail-boat-pick input:checked + label { border-color: var(--sail-2); background: #fff1f2; box-shadow: 0 0 0 3px rgba(244, 63, 94, .08); }
.sail-boat-pick label .check { margin-left: auto; color: #e5e7eb; font-size: 18px; }
.sail-boat-pick input:checked + label .check { color: var(--sail-2); }

.sail-mine {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3ece4; text-decoration: none; color: inherit;
}
.sail-mine:last-child { border-bottom: 0; padding-bottom: 2px; }
.sail-mine b { display: block; font-size: 14px; color: var(--sail-ink); }
.sail-mine small { display: block; color: #8a6a5a; font-size: 12px; }
.sail-mine .status-pill { margin-left: auto; font-size: 11px; padding: 4px 10px; }

.sail-price-hint { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sail-price-hint button {
  border: 1px dashed #fdba74; background: #fffaf5; color: #9a3412; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 4px 10px;
}

/* Desktop: sail pages use the same left panel as the rest of the app. */
@media (min-width: 900px) {
  body.sail-page.pd, body.sail-page.cd { background: #efe7df; }
  .sail-sheet { left: auto; right: 0; bottom: 0; top: 0; max-height: none; border-radius: 24px 0 0 24px; transform: translateX(104%); width: 460px; }
  .sail-sheet.open { transform: translateX(0); }
}

/* ==========================================================================
   Sunset theme — the whole app while in Bowtt Sail.
   The topbars add .bowtt-sail-theme to <html> in Sail mode, so every page
   (My Trips, Notifications, Account, captain Trips/Boats/Account...) picks
   up the golden-hour colours without each page needing its own styles.
   ========================================================================== */
html.bowtt-sail-theme {
  --bowt-primary: #e11d48;
  --bowt-primary-dark: #be123c;
  --bowt-primary-light: #fff1f2;
  --bowt-accent: #f97316;
  --bowt-bg: #fbf7f2;
  --bowt-border: #f1e6da;
  --bowt-shadow: 0 4px 20px rgba(60, 30, 20, .07);
  background: #fbf7f2;
}
html.bowtt-sail-theme body { background: #fbf7f2; }
@media (min-width: 900px) { html.bowtt-sail-theme body.pd, html.bowtt-sail-theme body.cd { background: #efe7df; } }

/* Passenger topbar: warm paper instead of white. */
html.bowtt-sail-theme .passenger-topbar { background: #fffaf5; border-bottom-color: #f6e3d3; }
html.bowtt-sail-theme .passenger-topbar .captain-header-avatar { background: #ffe4e6; color: #9f1239; }

/* Buttons, chips and accents. */
html.bowtt-sail-theme .btn-bowtt { background: var(--sail-grad); border: 0; box-shadow: 0 6px 16px rgba(244, 63, 94, .22); }
html.bowtt-sail-theme .btn-bowtt:hover, html.bowtt-sail-theme .btn-bowtt:focus { background: linear-gradient(135deg, #f97316, #e11d48); color: #fff; }
html.bowtt-sail-theme .btn-bowt-outline { border-color: #e11d48; color: #e11d48; }
html.bowtt-sail-theme .btn-outline-primary {
  --bs-btn-color: #e11d48; --bs-btn-border-color: #fda4af;
  --bs-btn-hover-bg: #e11d48; --bs-btn-hover-border-color: #e11d48; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #be123c; --bs-btn-active-border-color: #be123c;
}
html.bowtt-sail-theme .text-primary-bowtt { color: #e11d48 !important; }
html.bowtt-sail-theme .bg-primary-bowtt { background: #e11d48 !important; }
html.bowtt-sail-theme .my-trips-filter.active { background: var(--sail-ink); border-color: var(--sail-ink); }
html.bowtt-sail-theme .bowt-card, html.bowtt-sail-theme .trip-card { border-color: #f1e6da; }
html.bowtt-sail-theme .trip-card .route-line i { color: #f43f5e; }
html.bowtt-sail-theme .bowt-empty i { color: #fdba74; }
html.bowtt-sail-theme .notification-icon { background: #fff1f2; color: #e11d48; }
html.bowtt-sail-theme .notification-unread { box-shadow: 0 8px 24px rgba(244, 63, 94, .10); }
html.bowtt-sail-theme .nav-notification-badge { background: #e11d48; }
/* Phones/tablets only: on desktop the nav becomes a transparent layer across the
   header, and a background here would hide the logo and the Ride/Sail switch. */
@media (max-width: 899px) {
  html.bowtt-sail-theme .bowt-bottom-nav { background: #fffaf5; border-top-color: #f6e3d3; }
  html.bowtt-sail-theme .captain-bottom-nav { background: rgba(255, 250, 245, .98); border-top-color: #f6e3d3; }
}

/* Passenger account (passenger-account.css uses fixed blues). */
html.bowtt-sail-theme .pa-avatar { background: #ffe4e6; }
html.bowtt-sail-theme .pa-spend { background: var(--sail-grad-deep); }
html.bowtt-sail-theme .pa-ic, html.bowtt-sail-theme .pa-count { background: #fff1f2; }
html.bowtt-sail-theme .pa-more { background: #fff7ed; }

/* Captain pages in Sail. */
html.bowtt-sail-theme .captain-topbar { background: var(--sail-grad-deep); box-shadow: 0 3px 14px rgba(124, 45, 91, .28); }
html.bowtt-sail-theme .acct-hero { background: linear-gradient(180deg, #fff1f2 0%, #fff 70%); }
html.bowtt-sail-theme .acct-earn { background: var(--sail-grad-deep); }
html.bowtt-sail-theme .acct-ic, html.bowtt-sail-theme .acct-stat i { color: #e11d48; }
html.bowtt-sail-theme .acct-ic { background: #fff1f2; }
html.bowtt-sail-theme .captain-current-trip-card { border-left-color: #f43f5e; }
html.bowtt-sail-theme .boat-photo-placeholder { background: linear-gradient(135deg, #fff7ed, #ffe4e6); color: #f43f5e; }

/* ---------------- Meet the dhows (top of Sail) ---------------- */
.sail-dhows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sail-dhow {
  background: #fff; border: 1px solid #f1e6da; border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(60, 30, 20, .06); display: flex; flex-direction: column;
}
.sail-dhow img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: #d6ebf3; }
.sail-dhow-body { padding: 10px 12px 12px; }
.sail-dhow-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 800; font-size: 15.5px; color: var(--sail-ink); }
.sail-dhow-name span { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #fff1f2; color: #be123c; white-space: nowrap; }
.sail-dhow p { font-size: 12px; line-height: 1.4; color: #7a5a4a; margin: 4px 0 0; }

/* Slot chips on listing cards. */
.sail-slot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #fff; color: #9a3412; border: 1px solid #fed7aa; margin-top: 4px; }

/* Centred "Don't see your dhow?" card. */
.sail-request-promo { text-align: center; }
.sail-request-promo p { margin-left: auto; margin-right: auto; }
.sail-request-promo .sail-promo-active { position: relative; z-index: 1; font-size: 13px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 10px 12px; margin-top: 4px; }

/* Price estimate shown before "Send to captains". */
.sail-estimate {
  margin-top: 16px; border-radius: 16px; padding: 14px; text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fff1f2); border: 1px solid var(--sail-line);
}
.sail-estimate small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9a6b53; }
.sail-estimate strong { display: block; font-size: 22px; color: var(--sail-ink); margin: 2px 0; }
.sail-estimate span { font-size: 12px; color: #8a6a5a; }

/* Desktop header: the bell and first name next to the avatar were white on a
   light header, so they couldn't be seen. */
@media (min-width: 900px) {
  .passenger-topbar .passenger-topbar-notif,
  .passenger-topbar .passenger-topbar-name { color: #0f172a; }
  html.bowtt-sail-theme .passenger-topbar .passenger-topbar-notif,
  html.bowtt-sail-theme .passenger-topbar .passenger-topbar-name { color: var(--sail-ink); }
}
