/* Marinova shared yacht tours page, Shared Tours Batch 1 (STB1) layer. Loaded last, after the page, family, layout,
   hero, typography and header layers, so it wins on source order with the page's own selectors; it uses only the page's
   family tokens, so Light, Dark and Use device setting keep working. Page-owned selectors only (#st-root ...). */

/* Compact hero: phones and tablets are already sized by their content; laptops and desktops get a shorter minimum. */
@media(min-width:901px){#st-root.uirh-service .pg-hero{min-height:clamp(480px,calc(70vh - 66px),640px)}}
#st-root.uirh-service .pg-hero-from{margin-bottom:22px}
#st-root.uirh-service .hero-btns{margin-bottom:6px}
/* One primary action now: the two-column action grid (601px and wider) becomes a single centred 248px column. */
@media(min-width:601px){#st-root.uirh-service .hero-btns{grid-template-columns:248px}}
#st-root.uirh-service .st-hero-alt{font-size:13px;color:var(--t2);line-height:1.6;max-width:520px;margin:0 auto 14px}
#st-root.uirh-service .st-hero-alt a{display:inline-flex;align-items:center;min-height:44px;color:var(--gold);text-decoration:underline;text-decoration-color:rgba(201,169,110,.45);text-underline-offset:3px}
#st-root.uirh-service .st-hero-alt a:hover{text-decoration-color:var(--gold)}

/* Tour selection: one short introduction and the comparison line inside each tour row. */
#st-root.uirh-service .st-intro{max-width:600px;margin:-14px auto 6px;font-size:13.5px;line-height:1.75;text-align:center}
#st-root.uirh-service .st-facts{display:block;font-size:11.5px;color:var(--t3);line-height:1.55;margin-top:7px}

/* The guided enquiry: the selected tour's facts, the date and guests, then the review and both contact options. Phones and
   tablets stack them in that order; laptops and desktops place them in two balanced columns. */
#st-root.uirh-service .st-book-main>.st-step:first-child{margin-top:0}
@media(max-width:900px){#st-root.uirh-service .st-book-side>.st-step:first-child{margin-top:28px}}
@media(min-width:901px){
#st-root.uirh-service .st-book{max-width:980px;padding:26px 28px 28px}
#st-root.uirh-service .st-book-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px;align-items:start}
#st-root.uirh-service .st-book-side>.st-step:first-child{margin-top:0}
}
#st-root.uirh-service .st-pick{margin-top:2px;padding:13px 15px;background:var(--gold-dim);border:1px solid var(--gold-b);border-radius:var(--r)}
#st-root.uirh-service .st-pick:empty{display:none}
#st-root.uirh-service .st-pick-t{font-size:14px;font-weight:500;color:var(--white);line-height:1.4;margin-bottom:6px}
#st-root.uirh-service .st-pick-r{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;padding:3px 0;font-size:12.5px;line-height:1.55}
#st-root.uirh-service .st-pick-k{color:var(--t3)}
#st-root.uirh-service .st-pick-v{color:var(--t1)}
@media(max-width:379px){#st-root.uirh-service .st-pick-r{grid-template-columns:1fr;gap:0;padding:4px 0}}
#st-root.uirh-service .st-sum-r--wait span:last-child{color:var(--t2);font-weight:500}
#st-root.uirh-service .st-sum-wait{margin-top:8px;font-size:11.5px;color:var(--t2);line-height:1.6}
#st-root.uirh-service .st-mail-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:12px;padding:12px 16px;border:1px solid var(--gold-b);border-radius:var(--r);background:transparent;color:var(--gold);font-size:13px;font-weight:500;line-height:1.35;text-align:center;transition:border-color var(--ease),background var(--ease)}
#st-root.uirh-service .st-mail-btn:hover{border-color:var(--gold);background:var(--gold-dim)}
#st-root.uirh-service .st-mail-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#st-root.uirh-service .st-mail{margin-top:8px;font-size:11.5px;color:var(--t3);line-height:1.6;text-align:center}
#st-root.uirh-service .st-nojs a{text-decoration:underline;text-underline-offset:3px}

/* Boarding and important details: short cards, the facts in plain lists. */
#st-root.uirh-service .st-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:767px){#st-root.uirh-service .st-board-grid{grid-template-columns:minmax(0,1fr)}}
#st-root.uirh-service .st-board-card{background:var(--navy3);border:1px solid var(--b1);border-radius:var(--r2);padding:20px 20px 18px}
#st-root.uirh-service .st-board-h{font-size:12px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--gold);line-height:1.4;margin-bottom:10px}
#st-root.uirh-service .st-board-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#st-root.uirh-service .st-board-list li{position:relative;padding-left:14px;font-size:13px;color:var(--t2);line-height:1.65}
#st-root.uirh-service .st-board-list li::before{content:'';position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:50%;background:rgba(201,169,110,.55)}
#st-root.uirh-service .st-board-p{font-size:12.5px;color:var(--t3);line-height:1.65;margin:0 0 8px}
#st-root.uirh-service .st-board-list+.st-board-p{margin:10px 0 0}
#st-root.uirh-service .st-board-card a{color:var(--gold);text-decoration:underline;text-decoration-color:rgba(201,169,110,.45);text-underline-offset:3px}

/* Booking steps: the action is a centred block under the steps. */
#st-root.uirh-service .st-center{display:flex;justify-content:center;margin-top:36px}

/* Other ways to sail: three short cards. */
#st-root.uirh-service .st-alt-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:14px}
@media(max-width:900px){#st-root.uirh-service .st-alt-grid{grid-template-columns:minmax(0,1fr)}}
#st-root.uirh-service .st-alt{background:var(--navy3);border:1px solid var(--b1);border-radius:var(--r2);padding:20px 20px 18px}
#st-root.uirh-service .st-alt-h{font-size:15px;font-weight:500;color:var(--white);line-height:1.35}
#st-root.uirh-service .st-alt .sec-body{margin-top:8px;font-size:13.5px;line-height:1.75}

/* Centred section intros: the heading group, eyebrow and introduction share one centre line (boxes, not only text). */
#st-root.uirh-service .sec-hd-c{margin-left:auto;margin-right:auto}
#st-root.uirh-service .sec-hd-c .sec-sub{margin-left:auto;margin-right:auto;max-width:640px}

/* Shared Tours Batch 3 (STB3) layer, appended to the STB1 layer by scripts/ui-system/stb3/stage.mjs. Page-owned selectors
   only (#st-root ...); family tokens only, so Light, Dark and Use device setting keep working. */

/* Each tour row's button now sits inside a level-3 heading (document structure for assistive technology, search and
   browser agents). The heading itself adds nothing visible: no margin, and the button keeps the type it had before. */
#st-root.uirh-service .st-head-h{margin:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;line-height:inherit}

/* One short summary at the top of each priced tour's panel, in the existing note style (as .st-ask-note). */
#st-root.uirh-service .st-tour-sum{margin:16px 0 0;font-size:13.5px;line-height:1.75;color:var(--t2)}

/* Shared Tours R4 (STB4) layer, appended to the STB3 stylesheet by scripts/ui-system/stb4/stage.mjs. Page-owned selectors
   only (#st-root ...); family tokens only, so Light, Dark and Use device setting keep working. The calendar is the accepted
   Fleet Hub planner calendar (pages/fleet.css, #help-choosing .fh-plan-*) with its classes renamed st-dp-*; the counters are
   its guest stepper (.fh-plan-step); the date fallback and the Ride and Slide time field take the same field look. */

/* Fields: the planner field (48px, 10px radius, one-pixel border; the stronger --b2 border this panel already uses). */
#st-root.uirh-service .st-book .st-in{min-height:48px;padding:11px 14px;border:1px solid var(--b2);border-radius:10px;background:var(--navy3);color:var(--t1);font-size:14px}
#st-root.uirh-service .st-book .st-in.st-in--bad{border-color:var(--err)}

/* The calendar trigger replaces the native date field once the calendar is built. */
#st-root.uirh-service .st-dp-trig{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--b2);border-radius:10px;background:var(--navy3);color:var(--t2);font-family:var(--f);font-size:14px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer}
#st-root.uirh-service .st-dp-trig:hover{border-color:var(--t3);color:var(--t1)}
#st-root.uirh-service .st-dp-trig:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#st-root.uirh-service .st-dp-trig[aria-expanded="true"]{border-color:var(--ink)}
#st-root.uirh-service .st-dp-trig.has-val{color:var(--t1);font-weight:500}
#st-root.uirh-service .st-dp-trig.st-in--bad{border-color:var(--err)}
#st-root.uirh-service .st-dp-trig-v{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#st-root.uirh-service .st-dp-tic{width:17px;height:17px;flex:0 0 17px;color:var(--gold-dec)}
#st-root.uirh-service .st-dp-ch{width:14px;height:14px;flex:0 0 14px;opacity:.6}
#st-root.uirh-service :is(.st-dp-tic,.st-dp-ch,.st-dp-aic){fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* The calendar dialog: a neutral box (as the Fleet Hub's dialog reset), never displayed while closed. 360px wide (the Fleet
   Hub popover is 336px) so that every day is a 44px target. */
#st-root.uirh-service .st-dp-pop{inset:auto;margin:0;padding:0;border:0;width:min(360px,calc(100vw - 24px));height:auto;max-width:none;max-height:none;background:transparent;color:var(--t1);overflow:visible;z-index:40;text-align:start}
#st-root.uirh-service .st-dp-pop:not([open]){display:none}
#st-root.uirh-service .st-dp-pop::backdrop{background:transparent}
#st-root.uirh-service .st-dp-scrim{display:none}
#st-root.uirh-service .st-dp-sheet{background:var(--navy3);border:1px solid var(--b1);border-radius:14px;box-shadow:0 22px 60px var(--shadow);padding:16px 16px 12px}
#st-root.uirh-service .st-dp-ph{margin:0 0 5px;font-family:var(--sf);font-weight:400;font-size:19px;line-height:1.24;color:var(--t1);text-transform:none;letter-spacing:0}
#st-root.uirh-service .st-dp-psub{margin:0 0 14px;font-size:12.5px;line-height:1.45;color:var(--t2);max-width:40ch}
#st-root.uirh-service .st-dp-nav{display:flex;align-items:center;gap:8px;margin-bottom:6px}
#st-root.uirh-service .st-dp-arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:none;color:var(--t2);cursor:pointer}
#st-root.uirh-service .st-dp-arrow:hover{background:var(--b3);color:var(--t1)}
#st-root.uirh-service .st-dp-arrow[disabled]{opacity:.3;cursor:default;background:none}
#st-root.uirh-service .st-dp-aic{width:16px;height:16px}
#st-root.uirh-service .st-dp-mon{flex:1 1 auto;text-align:center;font-family:var(--sf);font-size:16px;color:var(--t1)}
#st-root.uirh-service :is(.st-dp-wd,.st-dp-grid){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
#st-root.uirh-service .st-dp-wd span{padding:6px 0;text-align:center;font-size:10.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--t3)}
#st-root.uirh-service :is(.st-dp-d,.st-dp-pad){min-height:44px}
#st-root.uirh-service .st-dp-d{display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:9px;background:none;color:var(--t1);font-family:var(--f);font-size:13.5px;cursor:pointer}
#st-root.uirh-service .st-dp-d:hover{background:var(--b3)}
#st-root.uirh-service .st-dp-d.is-today{box-shadow:inset 0 0 0 1px var(--b2)}
#st-root.uirh-service .st-dp-d[disabled],
#st-root.uirh-service .st-dp-d.is-off{color:var(--t3);opacity:.45;cursor:default;background:none}
#st-root.uirh-service .st-dp-d[disabled]{box-shadow:none}
#st-root.uirh-service .st-dp-d.is-off{text-decoration:line-through;text-decoration-thickness:1px}
#st-root.uirh-service .st-dp-d.on,
#st-root.uirh-service .st-dp-d.on:hover{background:var(--ink);color:var(--on-ink);font-weight:600;box-shadow:none}
#st-root.uirh-service :is(.st-dp-d,.st-dp-arrow,.st-dp-clear,.st-dp-done):focus-visible{outline:2px solid var(--gold);outline-offset:1px}
#st-root.uirh-service .st-dp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid var(--b1)}
#st-root.uirh-service .st-dp-clear{min-height:44px;padding:0 4px;border:0;background:none;color:var(--t2);font-family:var(--f);font-size:13px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#st-root.uirh-service .st-dp-clear:hover{color:var(--t1)}
#st-root.uirh-service .st-dp-done{min-height:44px;padding:11px 26px;border:1px solid var(--ink);border-radius:999px;background:var(--ink);color:var(--on-ink);font-family:var(--f);font-size:14px;font-weight:500;cursor:pointer}
#st-root.uirh-service .st-dp-done:hover{background:var(--ink-h);border-color:var(--ink-h)}
/* Wide screens: the modal dialog is placed as an absolute popover under its button by the page script (the Fleet Hub
   method). Phones: a bottom sheet over a scrim (the modal dialog's own top-layer placement). */
@media(min-width:781px){#st-root.uirh-service .st-dp-pop:modal{position:absolute}}
@media(max-width:780px){
#st-root.uirh-service .st-dp-pop{inset:0;top:0;left:0;width:auto;max-width:none;z-index:700;display:flex;align-items:flex-end}
#st-root.uirh-service .st-dp-pop:not([open]){display:none}
#st-root.uirh-service .st-dp-scrim{display:block;position:absolute;inset:0;background:rgba(4,14,24,.62)}
#st-root.uirh-service .st-dp-sheet{position:relative;width:100%;max-height:88vh;overflow-y:auto;overscroll-behavior:contain;border-width:1px 0 0;border-radius:16px 16px 0 0;padding:18px 12px calc(14px + env(safe-area-inset-bottom,0px))}
}
/* Narrow phones: every day stays a 44px target. While the sheet is open the shared-tours-support integration hides the
   page scrollbar (data-page-lock="max-780"), so the sheet spans the whole viewport; seven 44px columns with no gap and 4px
   sheet edges need 316px, inside 320px. Seven 44px columns (308px) cannot fit beside any classic scrollbar at 320px, so
   below 360px the sheet's own scrollbar, shown only when a short screen makes the sheet scroll, is hidden: the sheet still
   scrolls by touch, wheel and keyboard, and the calendar scrolls the control it focuses into view. The text keeps its 12px
   edge (4px + 8px). */
@media(max-width:359px){
#st-root.uirh-service .st-dp-sheet{padding-left:4px;padding-right:4px;scrollbar-width:none}
#st-root.uirh-service .st-dp-sheet::-webkit-scrollbar{display:none}
#st-root.uirh-service :is(.st-dp-wd,.st-dp-grid){gap:0}
#st-root.uirh-service :is(.st-dp-ph,.st-dp-psub,.st-dp-foot){margin-left:8px;margin-right:8px}
}

/* The three guest counters: compact rows, the label on the left and the minus / value / plus stepper on the right. */
#st-root.uirh-service .st-gst{min-width:0;margin:16px 0 0;padding:0;border:0}
#st-root.uirh-service .st-gst>legend.st-lbl{float:left;width:100%;padding:0}
#st-root.uirh-service .st-gst-r{clear:both;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--b1)}
#st-root.uirh-service .st-gst-r:last-of-type{border-bottom:0}
#st-root.uirh-service .st-gst-l{flex:1 1 auto;min-width:0;font-size:14px;line-height:1.35;color:var(--t1)}
#st-root.uirh-service .st-gst-step{flex:0 0 auto;display:flex;align-items:stretch;width:156px;border:1px solid var(--b2);border-radius:10px;background:var(--navy3);overflow:hidden}
#st-root.uirh-service .st-gst-in{flex:1 1 auto;min-width:0;width:100%;min-height:46px;padding:8px 2px;border:0;border-radius:0;background:none;color:var(--t1);font-family:var(--f);font-size:15px;font-weight:500;text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
#st-root.uirh-service .st-gst-in:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
#st-root.uirh-service .st-gst-b{flex:0 0 auto;width:48px;min-height:46px;padding:0;border:0;background:none;color:var(--t2);font-family:var(--f);font-size:19px;line-height:1;cursor:pointer}
#st-root.uirh-service .st-gst-b:hover{background:var(--b3);color:var(--t1)}
#st-root.uirh-service .st-gst-b:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
#st-root.uirh-service .st-gst-b[disabled]{opacity:.35;cursor:default;background:none}
#st-root.uirh-service .st-gst-b[hidden]{display:none}
#st-root.uirh-service .st-gst-step:has(.st-gst-in[aria-invalid="true"]){border-color:var(--err)}
#st-root.uirh-service .st-gst-r .st-hint{margin-top:0}
#st-root.uirh-service .st-gst>.st-hint{clear:both;margin-top:8px}
@media(max-width:360px){
#st-root.uirh-service .st-gst-step{width:144px}
#st-root.uirh-service .st-gst-b{width:44px}
}
