/* Subpages. Calm documents in the home page's materials: same glass, icons and
   ink, no pinned acts. Loaded after scrollcraft.css and site.css. */

body.sm-page { padding-bottom: calc(var(--sm-dock-h) + 2.5rem); }

/* ------------------------------------------------------------- page head -- */
.pg-head { position: relative; height: min(76svh, 44rem); min-height: 27rem; overflow: clip; }
.pg-head > picture img, .pg-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-head__pane {
  position: absolute; left: var(--sc-gutter); bottom: clamp(1.5rem, 5vw, 3.5rem); z-index: 2;
  width: min(36rem, calc(100vw - 2 * var(--sc-gutter))); padding: clamp(1.4rem, 2.4vw, 2.2rem);
}
.pg-head__pane h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.9rem); line-height: 1; max-width: none; margin: 0; }
.pg-head__pane .sm-lead { color: var(--sc-ink); font-size: var(--sc-t-base); line-height: 1.5; max-width: none; }
.pg-head__pane .sm-btn { margin-top: var(--sc-5); }

/* A head with no picture: used where speed matters more than mood. */
.pg-head--plain { height: auto; min-height: 0; padding: calc(var(--sm-bar-h) + 2.5rem) 0 2.5rem; }
.pg-head--plain h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.2rem); line-height: 1; margin: 0; max-width: 16ch; }
.pg-head--plain .sm-lead { color: var(--sc-ink-soft); max-width: 44ch; }

/* ------------------------------------------------------------------ body -- */
.pg-section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.pg-section + .pg-section { padding-top: 0; }
.pg-section h2 { font: 600 var(--sc-t-2xl)/1.05 var(--sc-font-display); letter-spacing: var(--sc-track-snug); margin: 0 0 var(--sc-5); max-width: 18ch; text-wrap: balance; }
.pg-prose p { max-width: 62ch; margin: 0 0 var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; text-wrap: pretty; }
.pg-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }

/* Facts: an icon row, not a card grid. Hairlines and space do the grouping. */
.pg-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-top: 1px solid var(--sc-hairline-strong); }
.pg-facts li { display: grid; gap: 0.5rem; padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--sc-hairline); }
.pg-facts .sm-icon { width: 1.6rem; height: 1.6rem; color: var(--sc-accent); }
.pg-facts b { font: 600 var(--sc-t-lg)/1.15 var(--sc-font-display); letter-spacing: var(--sc-track-snug); }
.pg-facts span { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.pg-facts li[data-open] b { color: var(--sc-ink-soft); font-weight: 500; }

/* The day, as a line with stations. */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.pg-steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding-bottom: 1.5rem; position: relative; }
.pg-steps li::before { content: ""; position: absolute; left: 1.375rem; top: 2.75rem; bottom: 0; width: 1px; background: var(--sc-hairline-strong); }
.pg-steps li:last-child { padding-bottom: 0; }
.pg-steps li:last-child::before { display: none; }
.pg-steps .pg-dot { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--sc-surface); color: var(--sc-accent); box-shadow: var(--sc-e1), var(--sc-edge); }
.pg-steps .pg-dot .sm-icon { width: 1.25rem; height: 1.25rem; }
.pg-steps b { display: block; font: 600 var(--sc-t-lg)/1.2 var(--sc-font-display); letter-spacing: var(--sc-track-snug); padding-top: 0.55rem; }
.pg-steps p { margin: 0.3rem 0 0; color: var(--sc-ink-soft); max-width: 46ch; }

.pg-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px hsl(var(--sc-shadow-color) / 0.18); }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pg-note { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 16px;
  background: var(--sc-surface); box-shadow: var(--sc-e1), var(--sc-edge); max-width: 46rem; }
.pg-note .sm-icon { color: var(--sc-accent); margin-top: 0.15rem; }
.pg-note p { margin: 0; color: var(--sc-ink-soft); }

/* Closing band: the one action, then the way on. */
.pg-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--sc-hairline-strong); }
.pg-close h2 { margin: 0; max-width: 20ch; }
.pg-next { list-style: none; margin: var(--sc-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pg-foot { padding-block: 1.5rem 0.5rem; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.pg-foot a { color: inherit; }

/* ---------------------------------------------------------------- sea help --
   No picture, no glass above the fold: the number first, on a solid ground. */
.pg-sos { background: var(--sm-sos); color: #fff; padding: calc(var(--sm-bar-h) + 2rem) 0 2.25rem; }
.pg-sos h1 { font: 600 clamp(2.2rem, 1.2rem + 3.2vw, 4rem)/1 var(--sc-font-display); letter-spacing: var(--sc-track-tight); margin: 0; max-width: 15ch; }
.pg-sos p { margin: 0.9rem 0 0; max-width: 40ch; font-size: var(--sc-t-lg); line-height: 1.4; }
.pg-sos__call { display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 1.5rem; min-height: 4rem; padding: 0 1.75rem;
  border-radius: 999px; background: #fff; color: #7a2a02; text-decoration: none;
  font: 600 clamp(1.3rem, 1rem + 1.4vw, 1.9rem)/1 var(--sc-font-display); font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 30px rgb(60 20 0 / 0.3); }
.pg-sos__call .sm-icon { width: 1.5rem; height: 1.5rem; }
.pg-sos__row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1rem; }
.pg-sos .sm-btn--quiet { background: rgb(255 255 255 / 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); }
.pg-sos .sm-sos__pos { color: #fff; }
/* On this page the bar's own emergency button would only repeat the header. */
.sm-page--sos .sm-bar .sm-btn--sos { display: none; }
.sm-page--sos .sm-mark, .sm-page--sos .sm-lang { background: #fff; }

/* ----------------------------------------------------------------- contact -- */
.pg-contact { position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--sm-bar-h) + 1rem) var(--sc-gutter) 1.5rem; }
.pg-contact > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 22rem);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.pg-contact .sm-plan { width: auto; max-height: none; overflow: visible; }
.pg-direct { padding: clamp(1.25rem, 2.2vw, 1.9rem); display: grid; gap: 0.7rem; }
.pg-direct h2 { font: 600 var(--sc-t-xl)/1.1 var(--sc-font-display); letter-spacing: var(--sc-track-snug); margin: 0 0 0.3rem; }
.pg-direct .sm-btn { justify-content: flex-start; }
.pg-direct p { margin: 0.4rem 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink); }

/* -------------------------------------------------------- dock on subpages -- */
.sm-dock--nav { padding-left: 0.45rem; }
.sm-dock--nav .sm-dock__stops a { width: auto; min-width: 2.75rem; padding: 0 0.85rem; gap: 0.45rem; display: inline-flex; align-items: center;
  font: 600 var(--sc-t-xs)/1 var(--sc-font-text); letter-spacing: 0.02em; }

@media (max-width: 860px) {
  .pg-head { height: min(70svh, 34rem); }
  .pg-head__pane { left: 0.75rem; right: 0.75rem; width: auto; bottom: 0.9rem; padding: 1.2rem 1.25rem 1.3rem; }
  .pg-split { grid-template-columns: 1fr; }
  .pg-contact { padding-inline: 0.6rem; align-items: start; }
  .pg-contact__grid { grid-template-columns: 1fr; }
  .sm-dock--nav .sm-dock__stops a { padding: 0; }
  .sm-dock--nav .sm-dock__stops a span { display: none; }
}

/* ---------------------------------------------------------- build your day --
   The map is one box with a fixed aspect, so a pin's percentage is always the
   same place. On a wide screen it fills the width; on a phone it keeps its
   height and scrolls sideways. */
.sm-page--adv { padding-bottom: 0; }
.adv { position: relative; }
.adv-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.adv-map { position: relative; width: 100%; aspect-ratio: 2528 / 1696; }
.adv-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.adv-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.adv-route polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.adv-route [data-adv-line] { stroke: #fff; stroke-width: 3.5; filter: drop-shadow(0 1px 3px rgb(6 18 32 / 0.7));
  transition: stroke-dashoffset 700ms var(--sc-ease-out); }
.adv-route [data-adv-line-back] { stroke: rgb(255 255 255 / 0.75); stroke-width: 2; stroke-dasharray: 2 9; }
@media (prefers-reduced-motion: reduce) { .adv-route [data-adv-line] { transition: none; } }

.adv-pin, .adv-start { position: absolute; translate: -1.375rem -1.375rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.adv-pin { border: 0; padding: 0; background: none; cursor: pointer; color: var(--sc-ink); font: inherit; z-index: 2; }
.adv-pin__dot { position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgb(255 255 255 / 0.92); color: var(--sc-accent);
  box-shadow: 0 4px 14px rgb(6 18 32 / 0.45), inset 0 1px 0 #fff;
  transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out); }
.adv-pin__dot .sm-icon { width: 1.2rem; height: 1.2rem; }
.adv-pin__dot i { position: absolute; top: -0.35rem; right: -0.35rem; min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: none; place-items: center; background: #fff; color: var(--sc-ink); font: 600 0.78rem/1 var(--sc-font-display); font-style: normal;
  box-shadow: 0 1px 4px rgb(6 18 32 / 0.4); }
.adv-pin__name { padding: 0.32rem 0.6rem; border-radius: 999px; background: rgb(255 255 255 / 0.9); white-space: nowrap;
  font: 600 var(--sc-t-xs)/1 var(--sc-font-text); box-shadow: 0 2px 8px rgb(6 18 32 / 0.35); }
.adv-pin[aria-pressed="true"] .adv-pin__dot { background: var(--sc-accent); color: #fff; }
.adv-pin[aria-pressed="true"] .adv-pin__dot i { display: grid; }
.adv-pin:active .adv-pin__dot { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .adv-pin:hover .adv-pin__dot { transform: scale(1.08); } }
.adv-pin:focus-visible { outline: none; }
.adv-pin:focus-visible .adv-pin__dot { outline: 3px solid #fff; outline-offset: 2px; }
.adv-start { z-index: 1; pointer-events: none; color: #fff; }
.adv-start .sm-icon { width: 2.75rem; height: 2.75rem; padding: 0.72rem; border-radius: 50%; background: var(--sc-ink); box-shadow: 0 4px 14px rgb(6 18 32 / 0.5); }
.adv-start b { padding: 0.32rem 0.6rem; border-radius: 999px; background: var(--sc-ink); font: 600 var(--sc-t-xs)/1 var(--sc-font-text); }

.adv-panel { position: absolute; z-index: 3; left: var(--sc-gutter); top: calc(var(--sm-bar-h) + 1rem);
  width: min(24rem, 30vw); max-height: calc(100svh - var(--sm-bar-h) - var(--sm-dock-h) - 4rem); overflow: auto;
  padding: clamp(1.2rem, 1.8vw, 1.6rem); }
.adv-panel .sm-h2 { font-size: var(--sc-t-xl); margin: 0; }
.adv-lead { margin: 0.6rem 0 0; color: var(--sc-ink); font-size: var(--sc-t-sm); line-height: 1.45; }
.adv-sub { font: 600 var(--sc-t-xs)/1 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 1.2rem 0 0.55rem; }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.adv-list li { display: flex; align-items: center; gap: 0.6rem; min-height: 2.4rem; padding-left: 0.2rem; font: 500 var(--sc-t-base)/1.2 var(--sc-font-text); }
.adv-list li > b { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sc-accent); color: #fff; font: 600 0.78rem/1 var(--sc-font-display); }
.adv-list li > span { flex: 1; }
.adv-fixed .sm-icon { width: 1.5rem; height: 1.5rem; padding: 0.3rem; border-radius: 50%; background: var(--sc-ink); color: #fff; }
.adv-fixed em { font-style: normal; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.adv-x { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: none; color: var(--sc-ink-soft); cursor: pointer; display: grid; place-items: center; }
.adv-x .sm-icon { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) { .adv-x:hover { background: rgb(255 255 255 / 0.7); color: var(--sc-ink); } }
.adv-empty { margin: 0.2rem 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.adv-extras { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.adv-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.85rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / 0.6); color: var(--sc-ink); font: 600 var(--sc-t-xs)/1 var(--sc-font-text); box-shadow: inset 0 0 0 1px rgb(10 34 56 / 0.14); }
.adv-chip .sm-icon { width: 1.05rem; height: 1.05rem; color: var(--sc-accent); }
.adv-chip[aria-pressed="true"] { background: var(--sc-ink); color: #fff; box-shadow: none; }
.adv-chip[aria-pressed="true"] .sm-icon { color: #fff; }
.adv-dist { margin: 1.1rem 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink); }
.adv-dist b { font: 600 var(--sc-t-lg)/1 var(--sc-font-display); font-variant-numeric: tabular-nums; }
.adv-dist span { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); margin-top: 0.2rem; }
.adv-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.adv-note { margin: 0.9rem 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* The language switch is links on subpages. */
.sm-lang a { min-width: 2.6rem; min-height: 2.25rem; border-radius: 999px; display: grid; place-items: center; text-decoration: none;
  font: 600 var(--sc-t-xs)/1 var(--sc-font-text); letter-spacing: 0.06em; color: var(--sc-ink-soft); }
.sm-lang a[aria-current="true"] { background: var(--sc-ink); color: #fff; }
.sm-dock--nav .sm-dock__stops a[aria-current="page"] { color: var(--sc-ink); background: rgb(255 255 255 / 0.7); }

@media (max-width: 1100px) {
  /* Map on top, route underneath as an ordinary block. */
  .adv-scroll { padding-top: 0; }
  .adv-map { width: auto; height: min(64svh, 34rem); margin-top: 0; }
  .adv-panel { position: relative; left: auto; top: auto; width: auto; max-height: none; margin: -1.5rem 0.6rem calc(var(--sm-dock-h) + 2.5rem); }
  .adv-pin__name { display: none; }
  .adv-pin[aria-pressed="true"] .adv-pin__name { display: block; }
}
@media (min-width: 1101px) {
  .sm-page--adv main { padding-bottom: calc(var(--sm-dock-h) + 2.5rem); }
  /* Names sit on the side away from the panel and from each other. */
  .adv-pin[data-stop="kornati"], .adv-pin[data-stop="murter"] { flex-direction: row; }
}

/* Label on the left of the dot, where the right side is taken. */
.adv-pin[data-stop="skradin"], .adv-pin[data-stop="krapanj"], .adv-pin[data-stop="primosten"], .adv-pin[data-stop="tijat"], .adv-start {
  flex-direction: row-reverse; translate: calc(-100% + 1.375rem) -1.375rem; }
@media (min-width: 1101px) {
  /* The route panel sits over the mainland on the right, clear of every stop. */
  .adv-panel { left: auto; right: clamp(1rem, 2.2vw, 2rem); width: min(22rem, 24vw); }
}

/* ------------------------------------------------------------ bug-sweep fixes */
/* The pane can be taller than the picture (long headline, short screen): let
   the head grow with it instead of letting the pane climb under the top bar. */
.pg-head { height: auto; min-height: min(76svh, 44rem); display: grid; align-items: end;
  padding: calc(var(--sm-bar-h) + 1.25rem) var(--sc-gutter) clamp(1.5rem, 5vw, 3.5rem); }
.pg-head__pane { position: relative; left: auto; bottom: auto; }
/* The fixed dock must never sit on the last line of the form. */
.pg-contact { padding-bottom: calc(var(--sm-dock-h) + 2.75rem); }
.sm-dock--nav .sm-dock__stops a { white-space: nowrap; flex: none; }
.adv-route [data-adv-line], .adv-route [data-adv-line-back] { vector-effect: none; }
/* Every stop by name, for small screens where the pins carry no label. */
.adv-places { display: none; flex-wrap: wrap; gap: 0.45rem; }
@media (max-width: 1100px) {
  .adv-places { display: flex; }
  .adv-sub--places { display: block; }
  /* Tall enough to use, and never narrower than the screen. */
  .adv-map { height: auto; width: max(100%, calc(min(64svh, 34rem) * 1.49)); }
}
@media (min-width: 1101px) { .adv-sub--places { display: none; } }
@media (max-width: 860px) {
  .pg-head { min-height: min(70svh, 34rem); padding: calc(var(--sm-bar-h) + 0.75rem) 0.75rem 0.9rem; }
  .pg-head__pane { width: auto; }
}

/* The map drawn from real geography has its own proportions. */
.adv-map { aspect-ratio: 2400 / 1422; }
@media (max-width: 1100px) { .adv-map { width: max(100%, calc(min(64svh, 34rem) * 1.688)); } }
.adv-pin[data-stop="prvic"] { flex-direction: row-reverse; translate: calc(-100% + 1.375rem) -1.375rem; }
/* On mid-size screens the stops around Šibenik sit close together: show a name
   only for a chosen, hovered or focused stop. */
@media (min-width: 1101px) and (max-width: 1500px) {
  .adv-pin__name { display: none; }
  .adv-pin[aria-pressed="true"] .adv-pin__name, .adv-pin:hover .adv-pin__name, .adv-pin:focus-visible .adv-pin__name { display: block; }
  .adv-places { display: flex; }
  .adv-sub--places { display: block; }
}
/* Where the stops are close together, the start keeps its dark anchor only. */
@media (max-width: 1500px) { .adv-start b { display: none; } }

/* ------------------------------------------------- the map on small screens --
   Full screen, moved with a finger in any direction, zoomed by pinch or the
   buttons. The route lives in a sheet that opens upward over the dock. */
.adv-zoom, .adv-hint, .adv-handle { display: none; }
@media (max-width: 1100px) {
  .sm-page--adv { padding-bottom: 0; overflow: hidden; }
  .adv { height: 100svh; overflow: hidden; }
  .adv-scroll { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
  .adv-scroll:active { cursor: grabbing; }
  /* Before the script sizes it, the map already covers the screen. */
  .adv-map { position: absolute; left: 0; top: 0; margin: 0; height: auto; width: max(100vw, calc(100svh * 1.688)); will-change: transform; }
  .adv-map > img { -webkit-user-drag: none; pointer-events: none; }
  .adv-pin__name { display: none; }
  .adv-map.is-near .adv-pin__name, .adv-pin[aria-pressed="true"] .adv-pin__name { display: block; }
  .adv-start b { display: none; }
  .adv-map.is-near .adv-start b { display: block; }

  .adv-zoom { display: grid; gap: 0.5rem; position: absolute; z-index: 4; right: 0.75rem; top: calc(var(--sm-bar-h) + 0.6rem); }
  .adv-zoom button { --sm-r: 50%; width: 2.9rem; height: 2.9rem; border: 0; cursor: pointer; color: var(--sc-ink);
    font: 500 1.6rem/1 var(--sc-font-display); display: grid; place-items: center; }
  .adv-hint { display: block; position: absolute; z-index: 4; left: 50%; top: calc(var(--sm-bar-h) + 0.9rem); translate: -50% 0; margin: 0;
    padding: 0.5rem 0.9rem; border-radius: 999px; background: rgb(10 34 56 / 0.82); color: #fff; white-space: nowrap;
    font: 600 var(--sc-t-xs)/1 var(--sc-font-text); pointer-events: none; transition: opacity 400ms var(--sc-ease-out); }
  .adv-hint.is-gone { opacity: 0; }

  .adv-panel { position: absolute; z-index: 5; left: 0.6rem; right: 0.6rem; top: auto; bottom: calc(var(--sm-dock-h) + 1.5rem);
    width: auto; margin: 0; padding: 0 1rem; max-height: 3.9rem; overflow: hidden;
    transition: max-height 320ms var(--sc-ease-drawer); }
  .adv-panel.is-open { max-height: calc(100svh - var(--sm-bar-h) - var(--sm-dock-h) - 3rem); overflow-y: auto; padding-bottom: 1rem;
    overscroll-behavior: contain; }
  .adv-handle { display: flex; align-items: center; gap: 0.6rem; height: 3.9rem; position: sticky; top: 0; z-index: 3; }
  .adv-handle > button { flex: 1; min-width: 0; height: 100%; border: 0; background: none; cursor: pointer; color: var(--sc-ink);
    display: flex; align-items: center; gap: 0.7rem; text-align: left; padding: 0; font: inherit; }
  .adv-handle b { font: 600 var(--sc-t-base)/1.2 var(--sc-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adv-grip { width: 1.1rem; height: 1.1rem; flex: none; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
    rotate: -45deg; translate: 0 0.3rem; transition: rotate 240ms var(--sc-ease-out), translate 240ms var(--sc-ease-out); border-radius: 1px; scale: 0.6; }
  .adv-panel.is-open .adv-grip { rotate: 135deg; translate: 0 -0.25rem; }
  .adv-handle .sm-btn { min-height: 2.75rem; width: 2.75rem; padding: 0; justify-content: center; flex: none; }
  .adv-panel > .sm-time { margin-top: 0.2rem; }
  /* Closed, nothing inside the sheet below the handle can be reached by Tab. */
  .adv-panel:not(.is-open) > :not(.adv-handle):not(.glass__layer) { visibility: hidden; }
  .adv-panel .adv-actions .sm-btn[data-adv-send] { display: inline-flex; }
}
@media (max-width: 1100px) and (max-height: 500px) {
  .adv-panel { left: auto; right: 0.6rem; width: min(24rem, 55vw); bottom: calc(var(--sm-dock-h) + 0.9rem); max-height: 3.3rem; }
  .adv-handle { height: 3.3rem; }
  .adv-zoom { right: auto; left: 0.75rem; }
}
/* The map page has no document below the map on small screens. */
@media (max-width: 1100px) { body.sm-page--adv { padding-bottom: 0; overflow: hidden; overscroll-behavior: none; } }

/* The route panel is a pane with a scrolling body inside it. (When the pane
   itself scrolled, its glass scrolled away with the content.) */
.adv-panel { --sm-film: rgb(246 250 253 / 0.88); display: flex; flex-direction: column; overflow: hidden; }
.adv-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
@media (max-width: 1100px) {
  .adv-panel.is-open { overflow: hidden; padding-bottom: 0; }
  .adv-panel .adv-body { padding-bottom: 1rem; }
  .adv-panel:not(.is-open) .adv-body { visibility: hidden; }
  .adv-panel:not(.is-open) > :not(.adv-handle):not(.glass__layer) { visibility: visible; }
  .adv-handle { position: static; flex: none; }
}

/* ------------------------------------------------------------ the finish -- */
.adv-end { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; margin-top: 0.45rem; padding-left: 0.2rem; }
.adv-end label { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 var(--sc-t-xs)/1 var(--sc-font-text); color: var(--sc-ink-soft); white-space: nowrap; }
.adv-end label .sm-icon { width: 1.5rem; height: 1.5rem; padding: 0.3rem; border-radius: 50%; background: var(--sc-ink); color: #fff; }
.adv-end select { min-height: 2.6rem; width: 100%; padding: 0.35rem 0.6rem; border-radius: 12px; border: 1px solid rgb(10 34 56 / 0.2);
  background: rgb(255 255 255 / 0.8); color: var(--sc-ink); font: 600 var(--sc-t-sm)/1.2 var(--sc-font-text); }
.adv-pin__flag { display: none; }
.adv-pin[data-end="true"] .adv-pin__dot { background: var(--sc-ink); color: #fff; }
.adv-pin[data-end="true"] .adv-pin__dot > .sm-icon:first-child { display: none; }
.adv-pin[data-end="true"] .adv-pin__flag { display: block; }
.adv-pin[data-end="true"] .adv-pin__dot i { display: none; }
.adv-pin[data-end="true"] .adv-pin__name { display: block; background: var(--sc-ink); color: #fff; }
