/**
 * OceanRoute Weather Panel Styles v2.7.2
 * v2.7.1: one grid for the map corners, Google's logo, attribution and
 *         controls never under our controls or panels (the map ends at open
 *         panels); map read-outs never under our controls; legend titles;
 *         map buttons in the panel colours; ship name chips; one-row pill
 *         strip; ship history notice, loading and retry states
 * v2.7.0: one palette, type scale and spacing scale; long ship names; no
 *         overlapping controls; 40 px touch targets; visible keyboard focus;
 *         AA text contrast; SVG icons; reduced motion
 * v2.5.2: deck.gl 9.2.5 canvas transparency fix
 * v2.5: Right Panel → Dark Blue Ocean Glass (logo colors)
 *
 * Every rule is scoped to #oceanroute-map-wrap, the plugin's own container,
 * so nothing here reaches the rest of the page. !important is used only
 *   - against the theme's own !important typography rules (font-family,
 *     font-size, font-weight on button / h2 / h5 / span / input / select), and
 *   - against inline styles written by the scripts or by the weather library.
 */

/* ══════════════════════════════════════════════════════════════
   1. TOKENS — defined once, on the plugin container
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap{
  /* Palette */
  --or-navy:#0A1A33;
  --or-navy-raised:#12264A;
  --or-navy-hover:#1B3562;
  --or-cyan:#22D3EE;
  --or-teal:#0EA5B7;
  --or-teal-ink:#0A6C7A;
  --or-on-dark:#F1F6FB;
  --or-on-dark-muted:#A9BBD0;
  --or-line-dark:rgba(169,187,208,.3);
  --or-light:#FFFFFF;
  --or-light-raised:#F4F7FA;
  --or-on-light:#0A1A33;
  --or-on-light-muted:#4A5A70;
  --or-line-light:#D5DEE8;
  --or-danger:#F87171;
  --or-danger-ink:#B42318;
  --or-ok:#34D399;
  --or-ok-ink:#157347;
  --or-dark-surface:rgba(10,26,51,.96);
  --or-dark-float:rgba(10,26,51,.92);
  --or-shadow:0 4px 16px rgba(4,12,26,.35);

  /* Type: Space Grotesk and Inter are used when the page provides them */
  --or-type-heading:'Space Grotesk','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --or-type-ui:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --or-fs-1:11px;
  --or-fs-2:12px;
  --or-fs-3:13px;
  --or-fs-4:15px;
  --or-fs-5:18px;

  /* Spacing and shape */
  --or-sp-1:4px;
  --or-sp-2:8px;
  --or-sp-3:12px;
  --or-sp-4:16px;
  --or-sp-5:24px;
  --or-radius-sm:6px;
  --or-radius:8px;
  --or-radius-lg:12px;

  /* Control sizes: compact with a fine pointer on a wide screen,
     40 px or more on narrow screens and for coarse pointers (see section 2) */
  --or-control-h:32px;
  --or-float-btn:40px;

  /* Layout */
  --or-panel-w:380px;
  --or-ship-w:380px;
  --or-edge:12px;
  --or-pills-h:48px;
  --or-timeline-h:100px;
  --or-left-inset:0px;
  --or-right-inset:0px;
  --or-bottom-inset:0px;

  /* Google's own furniture on the map (2.7.1). Nothing of ours is placed in
     the bottom strip (logo left, attribution row right) or in the column of
     the camera / zoom control (right edge, above the attribution). Sizes are
     assumptions for Google's 40 px controls (the plugin sets controlSize 40). */
  --or-g-bottom:32px;
  --or-g-side:60px;
  --or-g-nav:120px;

  /* Rows of the corner grid, measured from the bottom of the visible map:
     row 1 timeline bar, row 2 legend (left) and speed legend (right) */
  --or-row1:var(--or-g-bottom);
  --or-row2:max(calc(var(--or-g-bottom) + var(--or-timeline-h) + var(--or-edge)),calc(var(--or-g-nav) + var(--or-sp-2)));

  /* Names the scripts use in inline styles (values for light surfaces) */
  --or-font:var(--or-type-ui);
  --or-font-mono:var(--or-type-ui);
  --or-text:var(--or-on-light);
  --or-text-muted:var(--or-on-light-muted);
  --or-text-dim:var(--or-on-light-muted);
  --or-accent:var(--or-teal-ink);
  --or-border:var(--or-line-light);
  --or-border-light:var(--or-line-light);
}

/* ══════════════════════════════════════════════════════════════
   2. TOUCH CONTEXT AND PANEL STATE
   ══════════════════════════════════════════════════════════════ */
@media (max-width:768px),(pointer:coarse){
  #oceanroute-map-wrap{
    --or-control-h:40px;
    --or-float-btn:44px;
    --or-timeline-h:124px;
    --or-row2:max(calc(var(--or-g-bottom) + var(--or-timeline-h) + var(--or-edge)),calc(var(--or-g-nav) + var(--or-sp-2)));
  }
}
@media (max-width:860px){
  #oceanroute-map-wrap{--or-ship-w:320px}
}
/* Phones (2.7.2): the map above the open bottom sheet is about 60 % of the
   screen height and at least 420 px high; the sheet takes the rest of the
   wrapper, never less than 40 % of it (2.7.1: the sheet took 55 % / 60 % of
   the 900 px wrapper, leaving 360 px of map at 390 px wide). Percentages are
   of the wrapper: the value is used for the sheet's height and as the map's
   bottom inset. */
@media (max-width:600px){
  #oceanroute-map-wrap{--or-sheet-h:max(40%,calc(100% - max(60vh,420px)))}
}

/* The open ship panel pushes the map controls aside. On phones it is as wide
   as the map and lies over it instead (section 10). */
@media (min-width:481px){
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ *{--or-left-inset:var(--or-ship-w)}
}

/* The weather panel is a side panel on wide screens and a bottom sheet on
   narrow ones. It opens with the map, so the insets apply until it is
   collapsed (2.7.1: also before the script has added it, so that the map is
   created with the size it keeps). Where :has() is not supported the insets
   stay 0 and the class-based rules of section 4 apply, as before 2.7.0. */
@supports selector(:has(a)){
  #oceanroute-map-wrap:not(:has(> #oceanroute-weather-panel.collapsed)){--or-right-inset:var(--or-panel-w)}
  @media (max-width:768px){
    #oceanroute-map-wrap:not(:has(> #oceanroute-weather-panel.collapsed)){--or-right-inset:0px;--or-bottom-inset:55%}
  }
  @media (max-width:600px){
    #oceanroute-map-wrap:not(:has(> #oceanroute-weather-panel.collapsed)){--or-bottom-inset:var(--or-sheet-h)}
  }
  /* Bottom-sheet screens: while the sheet is open the strip of map above it
     stays clear. Legend, speed legend and timeline bar are not shown and take
     no focus (up to 2.6.7 they lay under the sheet); the sheet's own Timeline
     section has the transport buttons. They show when the sheet is closed. */
  @media (max-width:768px){
    #oceanroute-map-wrap:has(> #oceanroute-weather-panel:not(.collapsed)) #oceanroute-legend,
    #oceanroute-map-wrap:has(> #oceanroute-weather-panel:not(.collapsed)) #oceanroute-timeline,
    #oceanroute-map-wrap:has(> #oceanroute-weather-panel:not(.collapsed)) .or-speed-legend-overlay{visibility:hidden}
  }
}

/* ══════════════════════════════════════════════════════════════
   3. BASE — our containers only
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-speed-legend,#oceanroute-legend,#oceanroute-timeline,#oceanroute-tooltip,#oceanroute-loading,#oceanroute-panel-toggle,.or-map-action-btn,.or-forecast-popup),
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-speed-legend,#oceanroute-legend,#oceanroute-timeline,#oceanroute-tooltip,#oceanroute-loading,.or-forecast-popup) *{
  box-sizing:border-box;
}

/* Theme resets for buttons inside our containers (the theme styles every
   <button> on the page: padding, bottom margin, line-height, stacking) */
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,.or-forecast-popup) button,
#oceanroute-map-wrap > button{
  margin:0;
  padding:0;
  border-radius:var(--or-radius-sm);
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
  overflow:visible;
  z-index:auto;
  font-family:var(--or-type-ui)!important;
  font-size:var(--or-fs-2)!important;
  font-weight:600!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}

/* Text elements the theme forces to its own family */
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-speed-legend,#oceanroute-legend,#oceanroute-timeline,#oceanroute-tooltip,#oceanroute-loading,.or-forecast-popup) :where(span,a,p,li,label,input,select,textarea){
  font-family:var(--or-type-ui)!important;
  letter-spacing:0;
}

/* Form controls take the UI text size also where they show no text
   (check boxes, sliders), instead of the browser's own default */
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-timeline,.or-forecast-popup) :where(input,select,textarea){
  font-size:var(--or-fs-3);
}

/* Icons (inline SVG written by the scripts and the shortcode template) */
#oceanroute-map-wrap .or-icon{
  width:1.25em;
  height:1.25em;
  flex:none;
  display:inline-block;
  vertical-align:-.25em;
  pointer-events:none;
}

/* Keyboard focus: a cyan ring with a navy ring inside it, so it shows on
   dark and on light surroundings */
#oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-timeline,.or-forecast-popup) :focus-visible,
#oceanroute-map-wrap > button:focus-visible{
  outline:2px solid var(--or-cyan);
  outline-offset:2px;
  box-shadow:0 0 0 2px var(--or-navy);
}

/* ══════════════════════════════════════════════════════════════
   4. FLOATING MAP BUTTONS — panel toggle, fullscreen, ship history
   In the panel colours, like the pills, the timeline bar and the legends
   (2.7.1); "on" (ship history shown) is cyan, like the active pill.
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap #oceanroute-panel-toggle,
#oceanroute-map-wrap .or-map-action-btn{
  position:absolute;
  width:var(--or-float-btn);
  height:var(--or-float-btn);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--or-dark-float);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius);
  color:var(--or-on-dark);
  cursor:pointer;
  box-shadow:var(--or-shadow);
}
#oceanroute-map-wrap #oceanroute-panel-toggle:hover,
#oceanroute-map-wrap .or-map-action-btn:hover{
  background:var(--or-navy-hover);
  border-color:var(--or-teal);
  color:var(--or-on-dark);
}
#oceanroute-map-wrap #oceanroute-panel-toggle{
  top:calc(var(--or-pills-h) + var(--or-sp-2));
  right:calc(var(--or-right-inset) + var(--or-edge));
  font-size:var(--or-fs-4)!important;
  z-index:1000002;
}
#oceanroute-map-wrap .or-map-action-btn{
  left:calc(var(--or-left-inset) + var(--or-edge));
  z-index:1000001;
}
/* Fullscreen first, ship history below it */
#oceanroute-map-wrap .or-fullscreen-btn{top:calc(var(--or-pills-h) + var(--or-sp-2))}
#oceanroute-map-wrap #or-history-toggle-btn{top:calc(var(--or-pills-h) + var(--or-float-btn) + var(--or-sp-4))}
#oceanroute-map-wrap .or-map-action-btn.active{
  background:var(--or-cyan);
  border-color:var(--or-cyan);
  color:var(--or-navy);
}
#oceanroute-map-wrap .or-map-action-btn.active:hover{
  background:var(--or-teal);
  border-color:var(--or-teal);
  color:var(--or-navy);
}
#oceanroute-map-wrap .or-map-action-btn svg{pointer-events:none}

@supports not selector(:has(a)){
  @media (min-width:769px){
    #oceanroute-map-wrap #oceanroute-panel-toggle.panel-open,
    #oceanroute-map-wrap .or-speed-legend-overlay.panel-open{right:calc(var(--or-panel-w) + var(--or-edge))}
  }
}

/* ══════════════════════════════════════════════════════════════
   5. DATASET PILLS
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap .or-pills-bar{
  position:absolute;
  top:0;
  left:var(--or-left-inset);
  right:var(--or-right-inset);
  height:var(--or-pills-h);
  z-index:1000001;
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  padding:0 var(--or-edge);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  /* a pill that takes focus is scrolled clear of the fade (2.7.1) */
  --or-pill-fade:32px;
  scroll-padding-inline:calc(var(--or-pill-fade) + var(--or-sp-2));
  font-family:var(--or-type-ui);
}
#oceanroute-map-wrap .or-pills-bar::-webkit-scrollbar{display:none}
/* One row that scrolls sideways when it does not fit (2.7.1): the side it can
   be scrolled towards fades out; the script sets the two classes and keeps
   the active pill in view */
#oceanroute-map-wrap .or-pills-bar.or-fade-start{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--or-pill-fade));
  mask-image:linear-gradient(to right,transparent,#000 var(--or-pill-fade));
}
#oceanroute-map-wrap .or-pills-bar.or-fade-end{
  -webkit-mask-image:linear-gradient(to left,transparent,#000 var(--or-pill-fade));
  mask-image:linear-gradient(to left,transparent,#000 var(--or-pill-fade));
}
#oceanroute-map-wrap .or-pills-bar.or-fade-start.or-fade-end{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--or-pill-fade),#000 calc(100% - var(--or-pill-fade)),transparent);
  mask-image:linear-gradient(to right,transparent,#000 var(--or-pill-fade),#000 calc(100% - var(--or-pill-fade)),transparent);
}

#oceanroute-map-wrap .or-pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:var(--or-sp-2);
  height:var(--or-control-h);
  padding:0 var(--or-sp-3);
  border:1px solid var(--or-line-dark);
  border-radius:999px;
  background:var(--or-dark-float);
  color:var(--or-on-dark);
  font-weight:500!important;
  white-space:nowrap;
  cursor:pointer;
  position:relative;
}
/* Centred while the row fits (the two spacers share the free space); when it
   does not, the spacers collapse and the row starts at the left edge, so the
   first pill can always be scrolled to */
#oceanroute-map-wrap .or-pills-bar::before,
#oceanroute-map-wrap .or-pills-bar::after{content:'';flex:1 0 0}
#oceanroute-map-wrap .or-pill:hover{
  background:var(--or-navy-hover);
  border-color:var(--or-teal);
}
#oceanroute-map-wrap .or-pill.active{
  background:var(--or-cyan);
  border-color:var(--or-cyan);
  color:var(--or-navy);
  font-weight:600!important;
}
#oceanroute-map-wrap .or-pill-key{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 var(--or-sp-1);
  border-radius:4px;
  background:rgba(241,246,251,.14);
  color:var(--or-on-dark-muted);
  font-size:var(--or-fs-1);
  font-weight:600;
  line-height:1;
  flex-shrink:0;
}
#oceanroute-map-wrap .or-pill.active .or-pill-key{
  background:rgba(10,26,51,.14);
  color:var(--or-navy);
}

/* ══════════════════════════════════════════════════════════════
   6. WEATHER PANEL
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap #oceanroute-weather-panel{
  /* dark surface: the names used by inline styles point at dark-surface values */
  --or-text:var(--or-on-dark);
  --or-text-muted:var(--or-on-dark-muted);
  --or-text-dim:var(--or-on-dark-muted);
  --or-accent:var(--or-cyan);
  --or-border:var(--or-line-dark);
  --or-border-light:var(--or-line-dark);

  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:var(--or-panel-w);
  background:var(--or-dark-surface);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-left:1px solid var(--or-line-dark);
  box-shadow:-4px 0 24px rgba(4,12,26,.35);
  z-index:1000001;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-family:var(--or-type-ui);
  font-size:var(--or-fs-3);
  line-height:1.4;
  color:var(--or-on-dark);
  visibility:visible;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .25s ease,visibility 0s linear 0s;
}
#oceanroute-map-wrap #oceanroute-weather-panel.collapsed{
  transform:translateX(100%);
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .25s ease,visibility 0s linear .3s;
}

/* Header */
#oceanroute-map-wrap .or-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--or-sp-3);
  flex-shrink:0;
  min-height:56px;
  padding:var(--or-sp-2) var(--or-sp-4);
  background:var(--or-navy);
  border-bottom:1px solid var(--or-line-dark);
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-panel-header h2,
#oceanroute-map-wrap .or-ship-header h2{
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  flex:1 1 auto;
  min-width:0;
  margin:0;
  padding:0;
  font-family:var(--or-type-heading)!important;
  font-size:var(--or-fs-4)!important;
  font-weight:600!important;
  line-height:1.3;
  letter-spacing:0;
  text-transform:none;
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-panel-close,
#oceanroute-map-wrap .or-ship-close,
#oceanroute-map-wrap .or-forecast-close{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:var(--or-control-h);
  height:var(--or-control-h);
  background:transparent;
  border:1px solid var(--or-line-dark);
  color:var(--or-on-dark);
  font-size:var(--or-fs-3)!important;
  cursor:pointer;
}
#oceanroute-map-wrap .or-panel-close:hover,
#oceanroute-map-wrap .or-ship-close:hover,
#oceanroute-map-wrap .or-forecast-close:hover{
  background:var(--or-navy-hover);
  border-color:var(--or-danger);
  color:var(--or-danger);
}

/* Scrollable content */
#oceanroute-map-wrap .or-panel-content{
  flex:1;
  overflow-y:auto;
  padding:0;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:var(--or-line-dark) transparent;
}
#oceanroute-map-wrap .or-panel-content::-webkit-scrollbar{width:6px}
#oceanroute-map-wrap .or-panel-content::-webkit-scrollbar-track{background:transparent}
#oceanroute-map-wrap .or-panel-content::-webkit-scrollbar-thumb{background:var(--or-line-dark);border-radius:3px}

/* Sections */
#oceanroute-map-wrap .or-section{border-bottom:1px solid var(--or-line-dark)}
#oceanroute-map-wrap .or-section:last-child{border-bottom:none}
#oceanroute-map-wrap .or-section-title{
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  position:relative;
  min-height:40px;
  padding:0 var(--or-sp-5) 0 var(--or-sp-4);
  font-size:var(--or-fs-1);
  font-weight:600;
  line-height:1.3;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--or-on-dark-muted);
  cursor:pointer;
  user-select:none;
  transition:background-color .15s ease,color .15s ease;
}
#oceanroute-map-wrap .or-section-title:hover{
  background:var(--or-navy-raised);
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-section-title .or-collapse-icon{
  position:absolute;
  top:50%;
  right:var(--or-sp-4);
  display:inline-flex;
  color:var(--or-on-dark-muted);
  font-size:var(--or-fs-2);
  transform:translateY(-50%);
  transition:transform .2s ease;
}
#oceanroute-map-wrap .or-section.collapsed .or-collapse-icon{transform:translateY(-50%) rotate(-90deg)}
#oceanroute-map-wrap .or-section-body{
  padding:0 var(--or-sp-4) var(--or-sp-4);
  max-height:600px;
  opacity:1;
  overflow:hidden;
  transition:max-height .25s ease,opacity .2s ease,padding .25s ease,visibility 0s linear 0s;
}
/* visibility takes the controls of a collapsed section out of the tab order */
#oceanroute-map-wrap .or-section.collapsed .or-section-body{
  max-height:0;
  opacity:0;
  padding-top:0;
  padding-bottom:0;
  visibility:hidden;
  transition:max-height .25s ease,opacity .2s ease,padding .25s ease,visibility 0s linear .25s;
}
#oceanroute-map-wrap .or-section.no-collapse .or-section-title{cursor:default}
#oceanroute-map-wrap .or-section.no-collapse .or-section-title:hover{background:transparent;color:var(--or-on-dark-muted)}
#oceanroute-map-wrap .or-section.no-collapse .or-collapse-icon{display:none}

/* Form controls */
#oceanroute-map-wrap .or-select,
#oceanroute-map-wrap .or-config-input,
#oceanroute-map-wrap .or-config-select{
  height:var(--or-control-h);
  min-height:0;
  margin:0;
  padding:0 var(--or-sp-3);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius-sm);
  background-color:var(--or-navy-raised);
  color:var(--or-on-dark);
  font-size:var(--or-fs-3)!important;
  font-weight:400;
  line-height:1.2;
  box-shadow:none;
}
#oceanroute-map-wrap .or-select{
  width:100%;
  max-width:none;
  padding-right:var(--or-sp-5);
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2322D3EE' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
}
#oceanroute-map-wrap .or-select option,
#oceanroute-map-wrap .or-config-select option{background:var(--or-navy);color:var(--or-on-dark)}
#oceanroute-map-wrap .or-config-input,
#oceanroute-map-wrap .or-config-select{
  width:100px;
  text-align:right;
}
#oceanroute-map-wrap .or-select:hover,
#oceanroute-map-wrap .or-config-input:hover,
#oceanroute-map-wrap .or-config-select:hover{border-color:var(--or-teal)}

/* Cursor data */
#oceanroute-map-wrap .or-cursor-compact{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:var(--or-sp-2);
  min-height:var(--or-control-h);
  padding:var(--or-sp-1) var(--or-sp-3);
  background:var(--or-navy-raised);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius-sm);
  font-size:var(--or-fs-2);
  font-variant-numeric:tabular-nums;
}
#oceanroute-map-wrap .or-cursor-coords{color:var(--or-on-dark-muted);white-space:nowrap}
#oceanroute-map-wrap .or-cursor-sep{color:var(--or-on-dark-muted);line-height:1}
#oceanroute-map-wrap .or-cursor-value{font-weight:600;color:var(--or-cyan);white-space:nowrap}
#oceanroute-map-wrap .or-cursor-value.no-data{color:var(--or-on-dark-muted);font-weight:400}

/* Legacy weather data block (not written by the current scripts) */
#oceanroute-map-wrap .or-weather-data{display:none}
#oceanroute-map-wrap .or-weather-value{font-size:var(--or-fs-5);font-weight:600;color:var(--or-on-dark)}
#oceanroute-map-wrap .or-weather-value.has-data{color:var(--or-cyan)}
#oceanroute-map-wrap .or-weather-details{font-size:var(--or-fs-2);color:var(--or-on-dark-muted)}

/* Timeline section */
#oceanroute-map-wrap .or-timeline-status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--or-sp-2);
  min-height:var(--or-control-h);
  margin-bottom:var(--or-sp-2);
  padding:var(--or-sp-1) var(--or-sp-3);
  background:var(--or-navy-raised);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius-sm);
  font-size:var(--or-fs-2);
  font-variant-numeric:tabular-nums;
  color:var(--or-on-dark-muted);
  text-align:center;
}
#oceanroute-map-wrap .or-timeline-status.playing{
  color:var(--or-ok);
  border-color:var(--or-ok);
}
/* play mark while the timeline is playing */
#oceanroute-map-wrap .or-timeline-status.playing::before{
  content:'';
  flex:none;
  width:0;
  height:0;
  border-style:solid;
  border-width:5px 0 5px 8px;
  border-color:transparent transparent transparent currentColor;
}
#oceanroute-map-wrap .or-timeline-buttons{display:flex;flex-wrap:wrap;gap:var(--or-sp-2)}
#oceanroute-map-wrap .or-timeline-buttons .or-btn{flex:1 1 auto;padding:0 var(--or-sp-2)}

/* Buttons */
#oceanroute-map-wrap .or-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--or-sp-2);
  min-width:var(--or-control-h);
  min-height:var(--or-control-h);
  padding:0 var(--or-sp-3);
  border:1px solid var(--or-line-dark);
  background:var(--or-navy-raised);
  color:var(--or-on-dark);
  white-space:nowrap;
  cursor:pointer;
}
#oceanroute-map-wrap .or-btn:hover:not(:disabled){
  background:var(--or-navy-hover);
  border-color:var(--or-teal);
}
#oceanroute-map-wrap .or-btn:disabled{opacity:.5;cursor:not-allowed}
#oceanroute-map-wrap .or-btn-primary{
  background:var(--or-cyan);
  border-color:var(--or-cyan);
  color:var(--or-navy);
}
#oceanroute-map-wrap .or-btn-primary:hover:not(:disabled){
  background:var(--or-teal);
  border-color:var(--or-teal);
  color:var(--or-navy);
}
#oceanroute-map-wrap .or-btn-full{width:100%;margin-top:var(--or-sp-3)}
#oceanroute-map-wrap .or-btn-sm{padding:0 var(--or-sp-3)}
#oceanroute-map-wrap .or-btn-danger{
  background:transparent;
  border-color:var(--or-danger);
  color:var(--or-danger);
}
#oceanroute-map-wrap .or-btn-danger:hover:not(:disabled){background:rgba(248,113,113,.12);border-color:var(--or-danger)}

/* DateTime range */
#oceanroute-map-wrap .or-config-grid{display:flex;flex-direction:column;gap:var(--or-sp-2)}
#oceanroute-map-wrap .or-config-row{display:flex;align-items:center;justify-content:space-between;gap:var(--or-sp-3)}
#oceanroute-map-wrap .or-config-label{font-size:var(--or-fs-2);color:var(--or-on-dark-muted);flex-shrink:0}
#oceanroute-map-wrap .or-config-info{
  margin-top:var(--or-sp-2);
  font-size:var(--or-fs-1);
  line-height:1.5;
  color:var(--or-on-dark-muted);
  text-align:center;
  overflow-wrap:anywhere;
}

/* Layers and settings */
#oceanroute-map-wrap .or-layer-row{margin-bottom:var(--or-sp-3)}
/* Particle count lowered for frame time (2.7.1) */
#oceanroute-map-wrap .or-slider-note{margin-top:var(--or-sp-1);font-size:var(--or-fs-1);line-height:1.4;color:var(--or-on-dark-muted)}
#oceanroute-map-wrap .or-slider-note[hidden]{display:none!important}
#oceanroute-map-wrap .or-layer-row:last-child{margin-bottom:0}
#oceanroute-map-wrap .or-toggle-label{
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  min-height:var(--or-control-h);
  margin:0;
  font-size:var(--or-fs-3);
  font-weight:400;
  line-height:1.3;
  color:var(--or-on-dark);
  cursor:pointer;
}
#oceanroute-map-wrap .or-toggle-label input[type="checkbox"]{
  flex:none;
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--or-cyan);
}
#oceanroute-map-wrap .or-slider-row{display:flex;justify-content:space-between;align-items:center}
#oceanroute-map-wrap .or-slider-label{font-size:var(--or-fs-1);color:var(--or-on-dark-muted)}
#oceanroute-map-wrap .or-slider-value{font-size:var(--or-fs-1);font-variant-numeric:tabular-nums;color:var(--or-cyan)}
/* The input is as tall as any other control; the 4 px track is drawn inside it */
#oceanroute-map-wrap .or-slider{
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:100%;
  height:var(--or-control-h);
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
#oceanroute-map-wrap .or-slider::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--or-line-dark)}
#oceanroute-map-wrap .or-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:16px;
  height:16px;
  margin-top:-6px;
  border-radius:50%;
  background:var(--or-cyan);
  border:2px solid var(--or-navy);
}
#oceanroute-map-wrap .or-slider::-moz-range-track{height:4px;border-radius:2px;background:var(--or-line-dark)}
#oceanroute-map-wrap .or-slider::-moz-range-thumb{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--or-cyan);
  border:2px solid var(--or-navy);
}
#oceanroute-map-wrap .or-slider:disabled{opacity:.5;cursor:not-allowed}

/* Fleet and storm counters */
#oceanroute-map-wrap .or-stat-card{
  flex:1;
  padding:var(--or-sp-3);
  background:var(--or-navy-raised);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius-sm);
  text-align:center;
}
#oceanroute-map-wrap .or-stat-value{font-size:var(--or-fs-5);font-weight:600;line-height:1.2;color:var(--or-cyan)}
#oceanroute-map-wrap .or-stat-label{margin-top:var(--or-sp-1);font-size:var(--or-fs-1);color:var(--or-on-dark-muted)}

/* Distance calculator */
#oceanroute-map-wrap .or-route-controls{display:flex;flex-wrap:wrap;gap:var(--or-sp-2);margin-top:var(--or-sp-2)}
#oceanroute-map-wrap .or-route-strip{
  margin-top:var(--or-sp-3);
  border-radius:var(--or-radius-sm);
  overflow:hidden;
  border:1px solid var(--or-line-dark);
}
#oceanroute-map-wrap .or-route-strip canvas{display:block;width:100%;height:24px}
#oceanroute-map-wrap .or-route-info{margin-top:var(--or-sp-1);font-size:var(--or-fs-1);color:var(--or-on-dark-muted);text-align:center}
#oceanroute-map-wrap #or-route-waypoints{font-family:var(--or-type-ui);font-variant-numeric:tabular-nums}
/* the rows carry inline sizes and spacing from the script */
#oceanroute-map-wrap #or-route-waypoints *{font-size:var(--or-fs-1)!important}
#oceanroute-map-wrap #or-route-waypoints > div{gap:var(--or-sp-2)!important;padding:var(--or-sp-1) 0!important;margin:0 0 var(--or-sp-1)!important}
#oceanroute-map-wrap #or-route-waypoints > div:last-child{margin:var(--or-sp-1) 0 0!important}
#oceanroute-map-wrap #or-route-waypoints > div > span:nth-child(2){flex:1 1 auto}
#oceanroute-map-wrap #or-route-waypoints > div > span:nth-child(3){margin-left:0!important}
#oceanroute-map-wrap #or-route-waypoints::-webkit-scrollbar{width:4px}
#oceanroute-map-wrap #or-route-waypoints::-webkit-scrollbar-thumb{background:var(--or-line-dark);border-radius:2px}

/* Bottom sheet on narrow screens */
@media (max-width:768px){
  #oceanroute-map-wrap{--or-panel-w:100%}
  #oceanroute-map-wrap #oceanroute-weather-panel{
    top:auto;
    bottom:0;
    right:0;
    width:100%;
    height:55%;
    border-left:none;
    border-top:1px solid var(--or-line-dark);
    border-radius:var(--or-radius-lg) var(--or-radius-lg) 0 0;
    box-shadow:0 -4px 20px rgba(4,12,26,.35);
  }
  #oceanroute-map-wrap #oceanroute-weather-panel.collapsed{transform:translateY(100%)}
}
@media (max-width:600px){
  #oceanroute-map-wrap #oceanroute-weather-panel{height:var(--or-sheet-h)}
}

/* ══════════════════════════════════════════════════════════════
   7. LOADING OVERLAY
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap #oceanroute-loading{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:1000005;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,26,51,.85);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
#oceanroute-map-wrap #oceanroute-loading .loading-content{display:flex;flex-direction:column;align-items:center;gap:var(--or-sp-3)}
#oceanroute-map-wrap #oceanroute-loading .spinner{
  width:36px;
  height:36px;
  border:3px solid var(--or-line-dark);
  border-top-color:var(--or-cyan);
  border-radius:50%;
  animation:or-spin .8s linear infinite;
}
@keyframes or-spin{to{transform:rotate(360deg)}}
#oceanroute-map-wrap #oceanroute-loading .loading-text{font-family:var(--or-type-ui);font-size:var(--or-fs-3);color:var(--or-on-dark)}

/* Error notice written by the scripts when the map or the weather data cannot
   load. It is centred in the free map area, below the pills and the map
   buttons, so it covers none of the controls. Its inline position is overridden. */
#oceanroute-map-wrap > .or-banner{
  top:calc(var(--or-pills-h) + 2 * var(--or-float-btn) + var(--or-sp-5) + var(--or-sp-2))!important;
  left:calc(var(--or-left-inset) + (100% - var(--or-left-inset) - var(--or-right-inset)) / 2)!important;
  box-sizing:border-box;
  width:max-content;
  max-width:calc(100% - var(--or-left-inset) - var(--or-right-inset) - 2 * var(--or-edge));
  font-family:var(--or-type-ui)!important;
  text-align:center;
}
/* Ship history could not be loaded (2.7.1): same place as the notice above,
   in the panel colours, with Retry and close buttons. */
#oceanroute-map-wrap > .or-history-notice{
  position:absolute;
  z-index:1000006;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  padding:var(--or-sp-2) var(--or-sp-2) var(--or-sp-2) var(--or-sp-3);
  background:var(--or-dark-float);
  color:var(--or-on-dark);
  border:1px solid var(--or-danger);
  border-radius:var(--or-radius);
  box-shadow:var(--or-shadow);
  font-size:var(--or-fs-3);
  line-height:1.4;
  text-align:left;
}
#oceanroute-map-wrap > .or-history-notice .or-history-notice-text{color:var(--or-on-dark)}
#oceanroute-map-wrap > .or-history-notice button{
  flex:0 0 auto;
  min-height:var(--or-control-h);
  margin:0;
  padding:0 var(--or-sp-3);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius-sm);
  background:var(--or-navy-raised);
  color:var(--or-on-dark);
  font-size:var(--or-fs-2)!important;
  font-weight:600!important;
  line-height:1;
  cursor:pointer;
}
#oceanroute-map-wrap > .or-history-notice button:hover{background:var(--or-navy-hover)}
#oceanroute-map-wrap > .or-history-notice .or-history-notice-close{display:inline-flex;align-items:center;justify-content:center;width:var(--or-control-h);padding:0}

/* ══════════════════════════════════════════════════════════════
   8. CORNERS AND BOTTOM OF THE MAP — one grid (2.7.1)
   Everything is measured from the edges of the visible map. With :has()
   the map itself ends where an open panel begins (section 12), so Google
   draws its logo, attribution and controls in the visible part and no
   panel lies over them.
     bottom strip, --or-g-bottom high          Google: logo (left), attribution (right)
     right column, --or-g-side x --or-g-nav    Google: camera / zoom control
     row 1 (--or-row1)  timeline bar, centred between the left edge and the right column
     row 2 (--or-row2)  legend (left); speed legend (right, above the right column)
                        (2.7.2: the mini-map that was here is removed)
     top band           dataset pills; below them fullscreen and ship history (left),
                        panel toggle (right) — section 4
   ══════════════════════════════════════════════════════════════ */

/* Timeline bar. The container gets its position and width as inline styles
   from the script, and the library control an inline width: both overridden. */
#oceanroute-map-wrap #oceanroute-timeline{
  bottom:calc(var(--or-bottom-inset) + var(--or-row1))!important;
  min-width:0!important;
  width:min(700px,calc(100% - var(--or-left-inset) - var(--or-right-inset) - var(--or-edge) - var(--or-g-side)));
  min-height:var(--or-timeline-h);
  padding:var(--or-sp-2) var(--or-sp-3)!important;
  background:var(--or-dark-float)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  border:1px solid var(--or-line-dark)!important;
  border-radius:var(--or-radius-lg)!important;
  box-shadow:var(--or-shadow)!important;
  color:var(--or-on-dark)!important;
  font-family:var(--or-type-ui);
  z-index:1000001!important;
}
@supports selector(:has(a)){
  #oceanroute-map-wrap #oceanroute-timeline{
    left:calc(var(--or-left-inset) + var(--or-edge) + (100% - var(--or-left-inset) - var(--or-right-inset) - var(--or-edge) - var(--or-g-side)) / 2)!important;
  }
}
#oceanroute-map-wrap #oceanroute-timeline *{color:var(--or-on-dark)!important}
#oceanroute-map-wrap #oceanroute-timeline #or-timeline-datetime{
  display:block!important;
  padding:0 0 var(--or-sp-1)!important;
  font-family:var(--or-type-ui)!important;
  font-size:var(--or-fs-3)!important;
  font-weight:600!important;
  letter-spacing:0!important;
  font-variant-numeric:tabular-nums;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Library markup (weatherlayers-gl timeline control) */
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control{width:auto!important;margin:0}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control > div{
  display:block;
  background:transparent;
  font-family:var(--or-type-ui);
  font-size:var(--or-fs-2);
}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control header{display:none}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control main{margin:0}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control footer{margin:0;gap:var(--or-sp-2);justify-content:center}
#oceanroute-map-wrap #oceanroute-timeline input[type="range"]{
  width:100%;
  height:24px;
  margin:0;
  accent-color:var(--or-cyan)!important;
  cursor:pointer;
}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__button{
  width:var(--or-control-h);
  height:var(--or-control-h);
  border-radius:var(--or-radius-sm);
  background-size:16px 16px;
}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__button + .weatherlayers-timeline-control__button{margin-left:var(--or-sp-1)}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__button:hover{background-color:var(--or-navy-hover)}
/* The library's icons are black; ours are the same shapes in the light text colour */
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__play-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F1F6FB' d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E")}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__pause-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F1F6FB' d='M7 5h3.5v14H7zM13.5 5H17v14h-3.5z'/%3E%3C/svg%3E")}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__step-backward-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F1F6FB' d='M6 5h2.5v14H6zM19 5.5v13L9.5 12z'/%3E%3C/svg%3E")}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__step-forward-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F1F6FB' d='M15.5 5H18v14h-2.5zM5 5.5v13L14.5 12z'/%3E%3C/svg%3E")}
/* "Loading… n/m" takes the place of the buttons, which the library disables
   while it loads, instead of adding a row to the bar */
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__buttons{position:relative}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control__loader{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
}
#oceanroute-map-wrap #oceanroute-timeline .weatherlayers-timeline-control.loading .weatherlayers-timeline-control__button{visibility:hidden}
@media (max-width:768px),(pointer:coarse){
  #oceanroute-map-wrap #oceanroute-timeline input[type="range"]{height:var(--or-control-h)}
}

/* Timeline native label hide (our own label above the slider replaces it) */
#oceanroute-map-wrap #oceanroute-timeline time,
#oceanroute-map-wrap #oceanroute-timeline [class*="datetime"],
#oceanroute-map-wrap #oceanroute-timeline [class*="Datetime"],
#oceanroute-map-wrap #oceanroute-timeline [class*="time-label"],
#oceanroute-map-wrap #oceanroute-timeline [class*="TimeLabel"]{display:none!important}
#oceanroute-map-wrap #oceanroute-timeline #or-timeline-datetime{display:block!important}
/* Frames loading before playback (2.7.2): the datetime line says so */
#oceanroute-map-wrap #oceanroute-timeline.or-frames-loading #or-timeline-datetime{color:var(--or-cyan)!important}
/* A layer without data for the time chosen (2.7.2): the datetime line is the note */
#oceanroute-map-wrap #oceanroute-timeline.or-data-note #or-timeline-datetime{color:var(--or-cyan)!important}

/* Legend (inline position from the script overridden) */
#oceanroute-map-wrap #oceanroute-legend{
  left:calc(var(--or-left-inset) + var(--or-edge))!important;
  bottom:calc(var(--or-bottom-inset) + var(--or-row2))!important;
  max-width:none!important;
  padding:var(--or-sp-2) var(--or-sp-3)!important;
  background:var(--or-dark-float)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  border:1px solid var(--or-line-dark)!important;
  border-radius:var(--or-radius)!important;
  box-shadow:var(--or-shadow)!important;
  font-family:var(--or-type-ui);
  z-index:1000001!important;
}
#oceanroute-map-wrap #oceanroute-legend *{color:var(--or-on-dark)!important}
/* Library markup (weatherlayers-gl legend control) */
#oceanroute-map-wrap #oceanroute-legend .weatherlayers-legend-control{margin:0}
#oceanroute-map-wrap #oceanroute-legend .weatherlayers-legend-control > div{
  display:block;
  background:transparent;
  font-family:var(--or-type-ui);
  font-size:var(--or-fs-2);
}
#oceanroute-map-wrap #oceanroute-legend .weatherlayers-legend-control header,
#oceanroute-map-wrap #oceanroute-legend .weatherlayers-legend-control main{margin:0}
#oceanroute-map-wrap #oceanroute-legend .weatherlayers-legend-control header{font-weight:600}
#oceanroute-map-wrap #oceanroute-legend svg text{fill:var(--or-on-dark);font-size:var(--or-fs-1)}
/* "Latest analysis … · no forecast for this layer" and similar (2.7.2) */
#oceanroute-map-wrap #oceanroute-legend .or-legend-note{
  max-width:200px;
  margin-top:var(--or-sp-1);
  font-size:var(--or-fs-1);
  line-height:1.35;
  color:var(--or-cyan)!important;
}
#oceanroute-map-wrap #oceanroute-legend .or-legend-note[hidden]{display:none!important}

/* Ship panel open on a screen too narrow for legend and speed legend side by side:
   the legend moves up, under the two map buttons */
@media (min-width:481px) and (max-width:1279px){
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .acf-map #oceanroute-legend{
    top:calc(var(--or-pills-h) + 2 * var(--or-float-btn) + var(--or-sp-5) + var(--or-sp-2))!important;
    bottom:auto!important;
  }
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-speed-legend-overlay .or-speed-swatch{width:24px}
}
/* …and on a bottom-sheet screen the speed legend moves up as well, under the panel toggle */
@media (min-width:481px) and (max-width:768px){
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-speed-legend-overlay{
    top:calc(var(--or-pills-h) + var(--or-float-btn) + 2 * var(--or-sp-2));
    bottom:auto;
  }
}

/* Legend dedup */
#oceanroute-map-wrap .acf-map .weatherlayers-legend:not(#oceanroute-legend):not(#oceanroute-legend *),
#oceanroute-map-wrap .acf-map .wl-legend:not(#oceanroute-legend):not(#oceanroute-legend *),
#oceanroute-map-wrap .acf-map [class*="legend-control"]:not(#oceanroute-legend):not(#oceanroute-legend *),
#oceanroute-map-wrap .acf-map [class*="LegendControl"]:not(#oceanroute-legend):not(#oceanroute-legend *){display:none!important}

/* Speed legend: the colours of the ship trails, titled like the weather
   legend and in the same panel colours (2.7.1) */
#oceanroute-map-wrap .or-speed-legend-overlay{
  position:absolute;
  right:calc(var(--or-right-inset) + var(--or-edge));
  bottom:calc(var(--or-bottom-inset) + var(--or-row2));
  z-index:1000001;
  padding:var(--or-sp-2) var(--or-sp-3);
  background:var(--or-dark-float);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius);
  box-shadow:var(--or-shadow);
  color:var(--or-on-dark);
  font-family:var(--or-type-ui);
  transition:right .3s cubic-bezier(.4,0,.2,1);
}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-legend-title{
  margin:0 0 var(--or-sp-1);
  font-size:var(--or-fs-2);
  font-weight:600;
  line-height:1.3;
  white-space:nowrap;
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-legend-label{color:var(--or-on-dark)}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-legend-row{display:flex;align-items:center;gap:0}
/* Swatch colours are the trail colours (set inline); the number on each is
   navy on the light ones and white on the two dark blues */
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-swatch{
  flex:none;
  width:28px;
  padding:var(--or-sp-1) 0;
  font-size:var(--or-fs-1);
  font-weight:600;
  line-height:1.2;
  text-align:center;
  color:var(--or-navy)!important;
}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-swatch:nth-of-type(n+7){color:#fff!important}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-swatch:first-of-type{border-radius:4px 0 0 4px}
#oceanroute-map-wrap .or-speed-legend-overlay .or-speed-swatch:last-of-type{border-radius:0 4px 4px 0}

@media (max-width:480px){
  /* phones: fullscreen and ship history side by side, the speed legend in a
     row of its own below them, so that legend and timeline fit above the sheet */
  #oceanroute-map-wrap #or-history-toggle-btn{
    top:calc(var(--or-pills-h) + var(--or-sp-2));
    left:calc(var(--or-left-inset) + var(--or-edge) + var(--or-float-btn) + var(--or-sp-2));
  }
  #oceanroute-map-wrap .or-speed-legend-overlay{
    top:calc(var(--or-pills-h) + var(--or-float-btn) + 2 * var(--or-sp-2));
    bottom:auto;
    left:var(--or-edge);
    right:auto;
  }
}

/* ══════════════════════════════════════════════════════════════
   9. HOVER TOOLTIP AND POINT FORECAST POPUP
   ══════════════════════════════════════════════════════════════ */
/* The tooltip element carries inline styles from the script */
#oceanroute-map-wrap #oceanroute-tooltip{
  min-width:120px;
  max-width:min(320px,calc(100% - 2 * var(--or-edge)))!important;
  padding:0!important;
  background:var(--or-dark-float)!important;
  border:1px solid var(--or-line-dark)!important;
  border-radius:var(--or-radius)!important;
  box-shadow:var(--or-shadow)!important;
  color:var(--or-on-dark)!important;
  font-family:var(--or-type-ui)!important;
  white-space:normal!important;
  overflow:hidden;
  pointer-events:none;
  z-index:1000010!important;
}
#oceanroute-map-wrap .or-tooltip-header{
  display:flex;
  align-items:center;
  gap:var(--or-sp-1);
  padding:var(--or-sp-1) var(--or-sp-3);
  border-bottom:1px solid var(--or-line-dark);
  font-size:var(--or-fs-1);
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
  color:var(--or-on-dark-muted);
}
#oceanroute-map-wrap .or-tooltip-body{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:var(--or-sp-1) var(--or-sp-2);
  padding:var(--or-sp-2) var(--or-sp-3);
}
#oceanroute-map-wrap .or-tooltip-value{font-size:var(--or-fs-4);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--or-cyan)}
#oceanroute-map-wrap .or-tooltip-dir{font-size:var(--or-fs-3);white-space:nowrap;color:var(--or-on-dark)}

#oceanroute-map-wrap .or-forecast-popup{
  position:absolute;
  z-index:1000008;
  display:flex;
  flex-direction:column;
  width:280px;
  max-width:calc(100% - 2 * var(--or-edge));
  max-height:min(400px,calc(100% - var(--or-bottom-inset) - var(--or-g-bottom) - var(--or-pills-h) - 2 * var(--or-edge)));
  background:var(--or-dark-surface);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--or-line-dark);
  border-radius:var(--or-radius);
  box-shadow:var(--or-shadow);
  font-family:var(--or-type-ui);
  color:var(--or-on-dark);
  overflow:hidden;
}
#oceanroute-map-wrap .or-forecast-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--or-sp-2);
  padding:var(--or-sp-2) var(--or-sp-2) var(--or-sp-2) var(--or-sp-3);
  background:var(--or-navy);
  border-bottom:1px solid var(--or-line-dark);
  font-size:var(--or-fs-2);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-forecast-header{flex:none}
#oceanroute-map-wrap .or-forecast-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--or-sp-1) 0}
/* Narrow screens: the popup keeps the horizontal position the script gives it
   (out of the column of Google's camera / zoom control), sits just above
   Google's bottom strip and stays below the map buttons, so all of it can be
   seen; its list scrolls */
@media (max-width:768px){
  #oceanroute-map-wrap .or-forecast-popup{
    top:auto!important;
    bottom:calc(var(--or-bottom-inset) + var(--or-g-bottom));
    max-height:calc(100% - var(--or-bottom-inset) - var(--or-g-bottom) - var(--or-pills-h) - 2 * var(--or-float-btn) - var(--or-sp-5) - var(--or-sp-2) - var(--or-edge));
  }
}
@media (max-width:480px){
  #oceanroute-map-wrap .or-forecast-popup{
    left:var(--or-edge)!important;
    width:auto;
    right:var(--or-g-side);
  }
}
#oceanroute-map-wrap .or-forecast-row{
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  min-height:var(--or-control-h);
  padding:0 var(--or-sp-3);
  transition:background-color .1s ease;
}
#oceanroute-map-wrap .or-forecast-row:hover{background:var(--or-navy-raised)}
#oceanroute-map-wrap .or-forecast-icon{display:inline-flex;justify-content:center;width:20px;flex-shrink:0;font-size:var(--or-fs-3);color:var(--or-on-dark-muted)}
#oceanroute-map-wrap .or-forecast-label{flex:1;font-size:var(--or-fs-2);color:var(--or-on-dark)}
#oceanroute-map-wrap .or-forecast-val{font-size:var(--or-fs-3);font-weight:600;font-variant-numeric:tabular-nums;color:var(--or-cyan)}
#oceanroute-map-wrap .or-forecast-row.loading .or-forecast-val{color:var(--or-on-dark-muted);font-weight:400}
#oceanroute-map-wrap .or-forecast-row.loading .or-forecast-val em{font-style:normal}

/* ══════════════════════════════════════════════════════════════
   10. SHIP INFO PANEL — left-side slide-in, light surface
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap #oceanroute-ship-panel{
  position:absolute;
  top:0;
  left:0;
  height:100%;
  width:var(--or-ship-w);
  background:var(--or-light);
  border-right:1px solid var(--or-line-light);
  box-shadow:4px 0 24px rgba(4,12,26,.25);
  z-index:1000003;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translateX(-100%);
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .25s ease,visibility 0s linear .3s;
  font-family:var(--or-type-ui);
  font-size:var(--or-fs-3);
  line-height:1.4;
  color:var(--or-on-light);
}
#oceanroute-map-wrap #oceanroute-ship-panel.open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
  visibility:visible;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .25s ease,visibility 0s linear 0s;
}

/* Header: the name wraps (also a name without spaces); the close button keeps its place */
#oceanroute-map-wrap .or-ship-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:var(--or-sp-3);
  flex-shrink:0;
  min-height:56px;
  padding:var(--or-sp-3) var(--or-sp-4);
  background:var(--or-navy);
  border-bottom:1px solid var(--or-line-dark);
  color:var(--or-on-dark);
}
#oceanroute-map-wrap .or-ship-header h2{min-height:var(--or-control-h)}
#oceanroute-map-wrap .or-ship-header h2 .or-ship-icon{flex:none;display:inline-flex;font-size:var(--or-fs-4);line-height:1.3;color:var(--or-cyan)}
#oceanroute-map-wrap #or-ship-panel-name{min-width:0;overflow-wrap:anywhere;word-break:break-word}

/* Body */
#oceanroute-map-wrap .or-ship-body{
  flex:1;
  overflow-y:auto;
  padding:var(--or-sp-4);
  scrollbar-width:thin;
  scrollbar-color:var(--or-line-light) transparent;
}
#oceanroute-map-wrap .or-ship-body::-webkit-scrollbar{width:6px}
#oceanroute-map-wrap .or-ship-body::-webkit-scrollbar-track{background:transparent}
#oceanroute-map-wrap .or-ship-body::-webkit-scrollbar-thumb{background:var(--or-line-light);border-radius:3px}

#oceanroute-map-wrap .or-ship-card{
  margin-bottom:var(--or-sp-3);
  padding:var(--or-sp-3);
  background:var(--or-light-raised);
  border:1px solid var(--or-line-light);
  border-radius:var(--or-radius);
}
#oceanroute-map-wrap .or-ship-card-label{
  margin-bottom:var(--or-sp-1);
  font-size:var(--or-fs-1);
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--or-on-light-muted);
}
#oceanroute-map-wrap .or-ship-card-value{font-size:var(--or-fs-3);font-weight:500;line-height:1.5;color:var(--or-on-light);overflow-wrap:anywhere}
#oceanroute-map-wrap .or-ship-card-value .coord{font-size:var(--or-fs-2);font-variant-numeric:tabular-nums;color:var(--or-on-light-muted)}

#oceanroute-map-wrap .or-ship-stats{display:grid;grid-template-columns:1fr 1fr;gap:var(--or-sp-3);margin-bottom:var(--or-sp-3)}
#oceanroute-map-wrap .or-ship-stat{
  min-width:0;
  padding:var(--or-sp-3);
  background:var(--or-light-raised);
  border:1px solid var(--or-line-light);
  border-radius:var(--or-radius);
  text-align:center;
}
#oceanroute-map-wrap .or-ship-stat-val{font-size:var(--or-fs-5);font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--or-teal-ink);overflow-wrap:anywhere}
#oceanroute-map-wrap .or-ship-stat-unit{margin-top:var(--or-sp-1);font-size:var(--or-fs-1);font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--or-on-light-muted)}

/* Collapsible sections */
#oceanroute-map-wrap .or-ship-section{
  margin-bottom:var(--or-sp-3);
  border:1px solid var(--or-line-light);
  border-radius:var(--or-radius);
  overflow:hidden;
}
#oceanroute-map-wrap .or-ship-section-header{
  display:flex;
  align-items:center;
  gap:var(--or-sp-2);
  min-height:40px;
  padding:0 var(--or-sp-3);
  background:var(--or-light-raised);
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  transition:background-color .15s ease;
}
#oceanroute-map-wrap .or-ship-section-header:hover{background:#E9EEF4}
#oceanroute-map-wrap .or-ship-section-icon{display:inline-flex;flex-shrink:0;font-size:var(--or-fs-3);color:var(--or-teal-ink)}
#oceanroute-map-wrap .or-ship-section-title{flex:1;font-size:var(--or-fs-1);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--or-on-light)}
#oceanroute-map-wrap .or-ship-section-count{
  min-width:20px;
  padding:0 var(--or-sp-2);
  line-height:1.6;
  border-radius:999px;
  background:rgba(14,165,183,.14);
  color:var(--or-teal-ink);
  font-size:var(--or-fs-1);
  font-weight:600;
  text-align:center;
}
#oceanroute-map-wrap .or-ship-section-count:empty{display:none}
#oceanroute-map-wrap .or-ship-section-chevron{
  display:inline-flex;
  flex-shrink:0;
  font-size:var(--or-fs-3);
  color:var(--or-on-light-muted);
  transition:transform .25s cubic-bezier(.4,0,.2,1);
}
#oceanroute-map-wrap .or-ship-section.expanded .or-ship-section-chevron{transform:rotate(90deg)}
#oceanroute-map-wrap .or-ship-section-body{padding:var(--or-sp-3);background:var(--or-light);border-top:1px solid var(--or-line-light)}

#oceanroute-map-wrap .or-ship-excel-content{margin-bottom:var(--or-sp-3);font-size:var(--or-fs-2);line-height:1.6;color:var(--or-on-light);overflow-wrap:anywhere}
#oceanroute-map-wrap .or-ship-excel-content strong{font-weight:600;color:var(--or-on-light)}
#oceanroute-map-wrap .or-ship-excel-content br + br{content:'';display:block;margin-top:var(--or-sp-1)}

#oceanroute-map-wrap .or-ship-copy-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--or-sp-2);
  width:100%;
  min-height:var(--or-control-h);
  padding:0 var(--or-sp-3);
  background:var(--or-light-raised);
  border:1px solid var(--or-line-light);
  color:var(--or-on-light);
  cursor:pointer;
}
#oceanroute-map-wrap .or-ship-copy-btn:hover{border-color:var(--or-teal);color:var(--or-teal-ink)}
#oceanroute-map-wrap .or-ship-copy-btn.copied{border-color:var(--or-ok-ink);color:var(--or-ok-ink)}
/* Past positions loading / not loaded (2.7.1) */
#oceanroute-map-wrap .or-ship-pos-status{padding:var(--or-sp-2) 0;font-size:var(--or-fs-2);line-height:1.5;color:var(--or-on-light-muted)}
#oceanroute-map-wrap .or-ship-section-error .or-ship-pos-status{color:var(--or-danger-ink)}
#oceanroute-map-wrap .or-ship-retry-btn{
  min-height:var(--or-control-h);
  margin:0 0 var(--or-sp-2);
  padding:0 var(--or-sp-3);
  border:1px solid var(--or-line-light);
  border-radius:var(--or-radius-sm);
  background:var(--or-light);
  color:var(--or-on-light);
  font-size:var(--or-fs-2)!important;
  font-weight:600!important;
  line-height:1;
  cursor:pointer;
}
#oceanroute-map-wrap .or-ship-retry-btn:hover{border-color:var(--or-teal);color:var(--or-teal-ink)}
#oceanroute-map-wrap .or-copy-icon{display:inline-flex}

/* Past positions */
#oceanroute-map-wrap #or-positions-content{
  max-height:320px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--or-line-light) transparent;
}
#oceanroute-map-wrap #or-positions-content::-webkit-scrollbar{width:6px}
#oceanroute-map-wrap #or-positions-content::-webkit-scrollbar-thumb{background:var(--or-line-light);border-radius:3px}
#oceanroute-map-wrap .or-ship-pos-item{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:var(--or-sp-1) var(--or-sp-3);
  padding:var(--or-sp-2) 0;
  border-bottom:1px solid var(--or-line-light);
  font-size:var(--or-fs-2);
  line-height:1.4;
  font-variant-numeric:tabular-nums;
}
#oceanroute-map-wrap .or-ship-pos-item:last-child{border-bottom:none}
#oceanroute-map-wrap .or-ship-pos-time{font-size:var(--or-fs-2);white-space:nowrap;color:var(--or-on-light)}
#oceanroute-map-wrap .or-ship-pos-coords{flex:1 1 auto;font-size:var(--or-fs-2);color:var(--or-on-light-muted)}
#oceanroute-map-wrap .or-ship-pos-speed{font-size:var(--or-fs-2);font-weight:600;white-space:nowrap;color:var(--or-teal-ink)}
#oceanroute-map-wrap .or-ship-pos-speed.speed-fast{color:#1D4ED8}
#oceanroute-map-wrap .or-ship-pos-speed.speed-mid{color:var(--or-ok-ink)}
#oceanroute-map-wrap .or-ship-pos-speed.speed-slow{color:var(--or-danger-ink)}

/* Narrow screens: the ship panel ends where the bottom sheet begins */
@media (max-width:768px){
  #oceanroute-map-wrap #oceanroute-ship-panel{height:calc(100% - var(--or-bottom-inset))}
}
/* Phones: as wide as the map, below the dataset pills. The map controls it
   covers are taken out of the tab order while it is open; the error notice
   waits behind it and is back when the panel is closed. */
@media (max-width:480px){
  #oceanroute-map-wrap #oceanroute-ship-panel{
    top:var(--or-pills-h);
    width:100%;
    height:calc(100% - var(--or-pills-h) - var(--or-bottom-inset));
    border-right:none;
  }
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-speed-legend-overlay,
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-map-action-btn,
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ #oceanroute-panel-toggle,
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-banner,
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .acf-map #oceanroute-legend,
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .acf-map #oceanroute-timeline{visibility:hidden}
  /* The panel covers the map below the pills, with Google's logo and
     attribution: the pills row gets a background, so that no part of the map
     is shown without them (2.7.1) */
  #oceanroute-map-wrap #oceanroute-ship-panel.open ~ .or-pills-bar{background:var(--or-navy)}
}

/* ══════════════════════════════════════════════════════════════
   11. CONTENT WE PUT INTO THE MAP'S INFO WINDOWS (past-position dots, storms)
   The window itself belongs to the map library; only our own elements are styled.
   ══════════════════════════════════════════════════════════════ */
#oceanroute-map-wrap .acf-map h5{
  max-width:320px;
  margin:0 0 var(--or-sp-1);
  padding:0;
  font-family:var(--or-type-heading)!important;
  font-size:var(--or-fs-4)!important;
  font-weight:600!important;
  line-height:1.3;
  letter-spacing:0;
  text-transform:none;
  color:var(--or-on-light);
  overflow-wrap:anywhere;
}
/* the date line of a past position carries an inline colour that is too light on white */
#oceanroute-map-wrap .acf-map h5 + div[style*="color:#00A5E6"]{color:var(--or-teal-ink)!important}

/* Ship name labels on the map: light text on a navy chip (2.7.1). Colour,
   size and weight of the text come from the script (the marker label); the
   map draws the label, this class adds the chip. Where names would overlap,
   the script hides all but one (unified.js, SHIP NAME LABELS). */
#oceanroute-map-wrap .or-ship-label{
  padding:1px 6px!important;
  background:var(--or-dark-float)!important;
  border:1px solid var(--or-line-dark)!important;
  border-radius:4px!important;
  box-shadow:0 1px 3px rgba(4,12,26,.45)!important;
  white-space:nowrap;
  letter-spacing:0;
  line-height:1.3;
  text-shadow:none;
  pointer-events:none;
}

/* ══════════════════════════════════════════════════════════════
   12. MAP CONTAINER, FULLSCREEN, LIBRARY FIXES (unchanged behaviour)
   ══════════════════════════════════════════════════════════════ */
/* Hide Google native fullscreen — replaced by custom wrapper-targeting button */
#oceanroute-map-wrap .acf-map .gm-fullscreen-control{display:none!important}

/* Map container above the site header */
#oceanroute-map-wrap .acf-map{
  position:absolute!important;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%!important;
  height:100%!important;
  z-index:1000000!important;
}

/* Fullscreen mode — the wrapper is the fullscreen element, so all overlays are included */
#oceanroute-map-wrap:-webkit-full-screen{z-index:2000000!important;background:#1a1a2e;width:100%!important;height:100%!important}
#oceanroute-map-wrap:-moz-full-screen{z-index:2000000!important;background:#1a1a2e;width:100%!important;height:100%!important}
#oceanroute-map-wrap:fullscreen{z-index:2000000!important;background:#1a1a2e;width:100%!important;height:100%!important}
#oceanroute-map-wrap:-webkit-full-screen .acf-map{z-index:auto!important;width:100%!important;height:100%!important}
#oceanroute-map-wrap:-moz-full-screen .acf-map{z-index:auto!important;width:100%!important;height:100%!important}
#oceanroute-map-wrap:fullscreen .acf-map{z-index:auto!important;width:100%!important;height:100%!important}
/* Force Google Maps internal container below our overlays in fullscreen */
#oceanroute-map-wrap:-webkit-full-screen .gm-style{z-index:0!important}
#oceanroute-map-wrap:-moz-full-screen .gm-style{z-index:0!important}
#oceanroute-map-wrap:fullscreen .gm-style{z-index:0!important}

/* The map ends where an open panel begins (2.7.1). Google lays out its logo,
   attribution and controls inside the part that can be seen, so no panel
   lies over them. What the scripts put into the map (legend, timeline bar,
   forecast popup) is placed relative to the map. Without :has() the insets
   stay 0 and the panels lie over the map, as before. */
@supports selector(:has(a)){
  #oceanroute-map-wrap .acf-map{
    left:var(--or-left-inset)!important;
    right:var(--or-right-inset)!important;
    bottom:var(--or-bottom-inset)!important;
    width:auto!important;
    height:auto!important;
  }
  #oceanroute-map-wrap:-webkit-full-screen .acf-map{width:auto!important;height:auto!important}
  #oceanroute-map-wrap:fullscreen .acf-map{width:auto!important;height:auto!important}
  #oceanroute-map-wrap .acf-map > *{--or-left-inset:0px;--or-right-inset:0px;--or-bottom-inset:0px}
}

/* The parent theme gives every image max-width:100% (phlox-pro/css/base.css,
   img{max-width:100%;height:auto}). Inside the map that shrinks the images of
   Google's own controls to the size of their frame; they keep their own size.
   Content we put into info windows keeps the theme rule. */
#oceanroute-map-wrap .gm-style img{max-width:none}
#oceanroute-map-wrap .gm-style .gm-style-iw-d img{max-width:100%}

/* A read-out on the map (info window, point forecast popup) is drawn below
   our controls: while one lies over a control, the control steps back until
   the read-out closes or moves away (2.7.1, unified.js) */
#oceanroute-map-wrap .or-yield{opacity:.15}
#oceanroute-map-wrap .or-yield,
#oceanroute-map-wrap .or-yield *{pointer-events:none!important}

/* Hide legacy ship marker content (now displayed in ship panel) */
#oceanroute-map-wrap .inside-marker,
#oceanroute-map-wrap .inside-marker-excel{display:none!important}

/* deck.gl canvas: prevent blue flash during map drag */
#oceanroute-map-wrap .acf-map canvas,
#oceanroute-map-wrap .acf-map > div > div > div > canvas{background:transparent!important}
#oceanroute-map-wrap .acf-map > div > div > div{background:transparent!important}

/* ══════════════════════════════════════════════════════════════
   13. REDUCED MOTION — our own transitions and animations only
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  #oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-speed-legend,#oceanroute-legend,#oceanroute-timeline,#oceanroute-tooltip,#oceanroute-loading,.or-forecast-popup),
  #oceanroute-map-wrap :where(#oceanroute-weather-panel,#oceanroute-ship-panel,#oceanroute-pills-bar,#oceanroute-speed-legend,#oceanroute-legend,#oceanroute-timeline,#oceanroute-tooltip,#oceanroute-loading,.or-forecast-popup) *,
  #oceanroute-map-wrap > button{
    transition-duration:.01ms!important;
    transition-delay:0s!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
  }
  /* the spinner stays visible as a still ring */
  #oceanroute-map-wrap #oceanroute-loading .spinner{animation:none!important}
}
