/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/* ─────────────────────────────────────────────────────────────────────────
   Route Book — visual system, dark edition of the biz4deal admin
   (room.biz4deal.com): the same navy bar, Arial, 12 px cards, compact bold
   buttons, small pill badges — on a deep-navy night background so it reads
   in the car and in the sun alike.
   Token names are kept from the first version so every view keeps working;
   only their values changed. Chart hues are separate (see lib/charts.js).
   ───────────────────────────────────────────────────────────────────────── */
:root{
  /* surfaces */
  --asphalt:#0E1222;      /* page */
  --navy:#1E2761;         /* the biz4deal bar */
  --surface:#151B30;      /* card */
  --surface-2:#1D2542;    /* raised: hover, inactive button */
  --line:#283154; --grid:#1F2742;
  /* text */
  --paper:#E9EDF7; --text-2:#B7C0D9; --muted:#848DAA;
  /* actions and states (biz4deal blue / green / red / amber, lifted for dark) */
  --blue:#3B7FD0; --blue-l:#8AB6EE; --green:#1F9D6B; --green-l:#62D3A4;
  --alarm:#E25C5C; --alarm-l:#FF9B9B; --amber:#E8A23A; --amber-l:#F4C27A; --ok:#62D3A4;
  /* map marks: drop square, sign diamond */
  --tape:#4C9AE8; --hiviz:#F2C230; --hiviz-dim:#6B5A1E;
  --r:12px; --rb:7px; --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  --sans:Arial,Helvetica,system-ui,-apple-system,sans-serif;
  --mono:Arial,Helvetica,system-ui,sans-serif;   /* numbers use tabular figures, not a second face */
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%}
html{-webkit-text-size-adjust:100%}
body{background:var(--asphalt);color:var(--paper);font:16px/1.45 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:700;letter-spacing:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.muted{color:var(--muted)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:0;color:var(--muted)}
.v,.n,.tl-n,.th-num,.odo-num{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--blue-l);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ── shell ─────────────────────────────────────────────────────────────
   iPhone: navy bar with the page title on top, tabs under the thumb.
   Computer: one 56 px navy bar like the admin — brand, sections, you. */
.app{min-height:100vh}
.topbar{display:none}
.main{padding:0 16px calc(var(--safe-b) + 96px);max-width:1100px;margin:0 auto}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -16px 14px;padding:calc(var(--safe-t) + 12px) 16px 12px;background:var(--navy)}
.top h1{font-size:20px;color:#fff}
.top .eyebrow{color:#CADCFC;font-weight:400}
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:700;display:flex;background:#121833;border-top:1px solid var(--line);padding-bottom:var(--safe-b)}
.tabs a,.tabs button{flex:1;padding:9px 2px 8px;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);font-size:11px;font-weight:700;text-decoration:none;border-top:2px solid transparent;margin-top:-1px;min-height:54px}
.tabs svg,.more-menu svg,.gear svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tabs .on{color:#fff;border-top-color:var(--blue-l)}
.more-menu{position:fixed;right:8px;bottom:calc(var(--safe-b) + 66px);z-index:710;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:6px;min-width:210px;box-shadow:0 12px 32px rgba(0,0,0,.55)}
.more-menu a{display:flex;gap:10px;align-items:center;padding:12px;text-decoration:none;border-radius:var(--rb);font-weight:700;font-size:15px}
.more-menu a:hover,.more-menu a:active{background:var(--surface-2)}
@media (min-width:900px){
  .topbar{display:flex;align-items:center;gap:26px;position:sticky;top:0;z-index:800;height:56px;padding:0 22px;background:var(--navy);color:#fff}
  .topbar .brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
  .brand-t{display:flex;align-items:baseline;gap:6px;line-height:1}
  .brand-t b{font-size:16px}
  .brand-t .eyebrow{font-size:16px;font-weight:700;color:#fff}
  .brand-t .eyebrow::before{content:'· '}
  .topnav{display:flex;align-items:center;gap:18px;flex:1;min-width:0}
  .topnav a{color:#CADCFC;font-size:14px;text-decoration:none;white-space:nowrap;padding:6px 0}
  .topnav a:hover{color:#fff}
  .topnav a.on{color:#fff;font-weight:700}
  .top-r{display:flex;align-items:center;gap:10px;flex:none}
  .who{color:#CADCFC;font-size:13px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .gear{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--rb);color:#CADCFC;border:1px solid rgba(202,220,252,.45)}
  .gear svg{width:18px;height:18px}
  .gear:hover,.gear.on{color:#fff;border-color:#fff}
  .tabs,.more-menu{display:none!important}
  .main{padding:22px 24px 56px;width:100%}
  .top{margin:0 0 16px;padding:0;background:none}
  .top h1{font-size:20px;color:#fff}
  .top .eyebrow{display:none}
}
@media (min-width:900px) and (max-width:1060px){
  .topbar{gap:16px;padding:0 16px}
  .topnav{gap:13px}
  .who{display:none}
}

/* ── marks: shape is type (square = drop, diamond = sign) ───────────────── */
.mk{display:block;transform:translate(-50%,-50%)}
.mk-drop{width:14px;height:14px;background:var(--tape);border:2px solid #0b0f1d;border-radius:3px}
.mk-sign{width:15px;height:15px;background:var(--hiviz);border:2px solid #0b0f1d;transform:translate(-50%,-50%) rotate(45deg)}
.mk-sign.gone{background:var(--alarm)} .mk-sign.off{background:var(--muted)}
.mk-sign.big{display:inline-block;width:26px;height:26px;transform:rotate(45deg);border:0;margin:6px}
.brand .mk-sign{display:inline-block;width:13px;height:13px;background:var(--hiviz);border:0;transform:rotate(45deg);margin:3px;flex:none}
.g{display:inline-block;width:12px;height:12px;flex:none}
.g.drop{background:var(--tape);border-radius:3px}
.g.sign{background:var(--hiviz);transform:rotate(45deg) scale(.85)}
.g.trip{background:#c98500;border-radius:50%}
.g.stop{border:2px solid var(--muted);border-radius:50%}

/* ── cards (the admin's .card: 12 px, 1 px line) ────────────────────────── */
.card-p,.stat,.trip-hero,.odo{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.card-p{padding:14px 16px;margin-bottom:12px;min-width:0}
.card-p h2{font-size:16px;margin-bottom:10px}

/* ── business trip ──────────────────────────────────────────────────────── */
.trip-hero{display:flex;flex-direction:column;overflow:hidden;margin-bottom:12px}
.trip-hero.on{border-color:#2f5d93}
.th-main{padding:16px 16px 4px;min-width:0;flex:1}
.th-title{font-size:20px;margin:4px 0 12px}
.th-note{margin:12px 0 10px}
.th-car{margin:4px 0 6px;font-weight:700}
.th-car .eyebrow{margin-right:6px}
.th-foot{color:var(--muted);font-size:13px;margin:6px 0 10px}
.th-foot b{color:var(--text-2);font-weight:700}
.th-foot a{color:var(--blue-l)}
.th-num{font-weight:700;font-size:44px;line-height:1.05;margin:6px 0 2px;color:var(--paper)}
.trip-hero.live-driving .th-num{color:var(--green-l)}
.trip-hero.live-parked .th-num{color:var(--blue-l)}
.trip-hero.live-error .th-sub{color:var(--alarm-l)}
.th-sub{color:var(--text-2);font-size:14px;margin-bottom:12px}
.th-edit{margin-bottom:6px}
.unit{font-size:.5em;font-weight:700;color:var(--muted)}
.th-go{min-height:60px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:#fff;font-weight:700;font-size:18px}
.th-go span{font-size:15px}
.th-go:active{filter:brightness(.92)}
.th-go[disabled]{opacity:.5}
.th-go.stop{background:var(--surface-2);color:var(--paper);border-top:1px solid var(--line)}
@media (min-width:700px){
  .trip-hero{flex-direction:row}
  .th-main{padding:18px 20px 8px}
  .th-go{width:170px;flex:none;flex-direction:column;gap:6px;min-height:0}
  .th-go span{font-size:24px}
  .th-go.stop{border-top:0;border-left:1px solid var(--line)}
}
.stats.trip-tot{grid-template-columns:1fr}
.stats.trip-tot .stat{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.stats.trip-tot .stat .sub{width:100%}
@media (min-width:640px){.stats.trip-tot{grid-template-columns:repeat(3,1fr)}.stats.trip-tot .stat{display:block}}
.tl-n{margin-left:auto;color:var(--text-2);white-space:nowrap;padding-left:8px;font-weight:700}
.sec-hd .linkbtn{font-size:13px}

/* ── the live-car strip (Drops & Signs) ─────────────────────────────────── */
.odo{display:flex;align-items:stretch;overflow:hidden;margin-bottom:12px}
.odo-main{flex:1;padding:12px 14px;min-width:0}
.odo-num{font-weight:700;font-size:28px;line-height:1.15;color:var(--paper);margin:2px 0}
.odo.live-driving .odo-num{color:var(--green-l)}
.odo.live-parked .odo-num{color:var(--blue-l)}
.odo.live-error .odo-sub{color:var(--alarm-l)}
.odo-sub{color:var(--text-2);font-size:14px}
.odo-btn{width:88px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:var(--green);color:#fff;font-weight:700;font-size:13px;text-decoration:none}
.odo-btn.on{background:var(--surface-2);color:var(--paper);border-left:1px solid var(--line)}
.odo-btn span{font-size:16px}

/* ── stat tiles (the admin's .stats) ────────────────────────────────────── */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}
.stats.kpis{grid-template-columns:repeat(2,1fr)}
@media (min-width:640px){.stats.kpis{grid-template-columns:repeat(4,1fr)}}
.stat{padding:11px 13px;min-width:0}
.stat .n{font-weight:700;font-size:24px;line-height:1.15;margin-top:3px}
.stat .n.sm{font-size:17px;line-height:1.5}
.stat .sub{color:var(--muted);font-size:12px;margin-top:2px}

/* ── the two field buttons: big enough for a thumb at a plaza ───────────── */
.act-row{display:flex;gap:8px;margin:4px 0 6px}
.act{flex:1;min-height:68px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:16px;padding:8px 12px;text-align:center}
.act:active{filter:brightness(.92)}
.act-drop{background:var(--blue);color:#fff}
.act-sign{background:var(--hiviz);color:#1b2233;flex:.7}
.act .glyph{width:15px;height:15px;flex:none}
.act-drop .glyph{background:#fff;border-radius:3px}
.act-sign .glyph{background:#1b2233;transform:rotate(45deg)}

/* ── sections, lists, tables ────────────────────────────────────────────── */
.sec-hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:22px 0 8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.sec-hd h2{font-size:16px}
.two{display:grid;gap:12px}
@media (min-width:1000px){.two{grid-template-columns:1fr 1fr}}
.tl{list-style:none;margin:0;padding:0}
.tl-i{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:12px 6px;border-bottom:1px solid var(--line);border-radius:0}
.tl-i:hover{background:var(--surface)}
.tl-b{display:flex;flex-direction:column;min-width:0;gap:1px}
.tl-b b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-b span{color:var(--muted);font-size:13px}
.tl-i.warn .tl-b b{color:var(--amber-l)}
.list{list-style:none;margin:0;padding:0}
.list .row{width:100%;display:flex;justify-content:space-between;gap:10px;padding:10px 2px;border-bottom:1px solid var(--line);text-align:left}
.person{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.person:last-child{border-bottom:0}
.person-r{display:flex;gap:8px;align-items:center}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;font-weight:700;color:var(--muted);padding:8px 8px;border-bottom:1px solid var(--line);background:var(--surface)}
.tbl td{padding:9px 8px;border-bottom:1px solid var(--grid);vertical-align:top}
.tbl .n{text-align:right;white-space:nowrap}
.tbl.trips tbody tr{cursor:pointer}
.tbl.trips tbody tr:hover{background:var(--surface)}
.tbl tr.personal td{color:var(--muted)}
.tbl .clip{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.tbl.trips th:nth-child(2),.tbl.trips td:nth-child(2),.tbl.trips th:nth-child(4),.tbl.trips td:nth-child(4){display:none}.tbl .clip{max-width:130px}}
.card-p .tbl{display:block;overflow-x:auto}
/* badges: the admin's .b pills */
.tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;background:var(--surface-2);color:var(--text-2);white-space:nowrap;display:inline-block;width:auto;height:auto;vertical-align:middle;line-height:1.5}
.tag.y{background:rgba(232,162,58,.16);color:var(--amber-l)}
.tag.b{background:rgba(59,127,208,.2);color:var(--blue-l)}
.tag.r{background:rgba(226,92,92,.18);color:var(--alarm-l)}
.tag.g{background:rgba(31,157,107,.2);color:var(--green-l)}
.empty{text-align:center;padding:36px 16px;color:var(--muted)}
.empty .big{font-size:15px;color:var(--paper);font-weight:700;margin-bottom:4px}
.rowline{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.rowline .r{text-align:right}
.rowline .warn{color:var(--amber-l)}
.note{font-size:13px;color:var(--muted);line-height:1.5;border-left:3px solid var(--line);padding:2px 0 2px 10px;margin:10px 0}
.note:empty{display:none}
.note b{color:var(--paper);font-weight:700}
.note.ok{border-color:var(--green);color:var(--paper)} .note.bad{border-color:var(--alarm);color:var(--paper)}

/* ── filters ────────────────────────────────────────────────────────────── */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.fsel select,.fsel input{background:var(--surface);border:1px solid var(--line);border-radius:var(--rb);padding:9px 10px;font-size:14px;min-height:40px}
.fsel.grow{flex:1;min-width:200px}.fsel.grow input{width:100%}
.ftog{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--rb);font-size:14px;color:var(--muted);min-height:40px}
.ftog.on{color:var(--paper);background:var(--surface)}

/* ── forms ──────────────────────────────────────────────────────────────── */
.field{margin-bottom:14px}
.field > label,.field > .eyebrow{display:block;margin-bottom:6px}
/* 16 px in inputs keeps iPhone Safari from zooming in on focus */
input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],textarea,select{background:#0B0F1D;border:1px solid var(--line);border-radius:var(--rb);padding:11px 12px;color:var(--paper);font-size:16px;min-height:44px}
input::placeholder,textarea::placeholder{color:#626b88}
.field input,.field textarea,.field select{width:100%}
textarea{min-height:64px;resize:vertical}
input:focus,textarea:focus,select:focus{outline:2px solid var(--blue);outline-offset:0;border-color:transparent}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.inline-edit{display:flex;gap:8px;align-items:center}
.inline-edit input{flex:1;min-width:0}
.inv{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chips{display:flex;gap:7px;flex-wrap:wrap}
.chips.sugg{margin-top:7px}
.chip{padding:9px 13px;border:1px solid var(--line);border-radius:var(--rb);background:var(--surface-2);color:var(--text-2);font-size:14px;font-weight:700;min-height:40px}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
/* buttons: the admin's compact bold buttons, blue primary, green go */
.btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:12px 14px;border-radius:var(--rb);background:var(--blue);color:#fff;font-weight:700;font-size:15px;text-decoration:none;text-align:center}
.btn:active{filter:brightness(.92)}
.btn.blue{background:var(--blue);color:#fff}
.btn.ghost{background:var(--surface-2);border:1px solid var(--line);color:var(--paper)}
.btn.danger{background:transparent;border:1px solid var(--alarm);color:var(--alarm-l)}
.btn.small{width:auto;min-height:36px;padding:8px 13px;font-size:13px}
.btn[disabled]{opacity:.45}
.btn-row{display:flex;gap:8px;margin-top:8px}
.btn-row.wrap{flex-wrap:wrap}.btn-row.wrap .btn{width:auto;flex:1 1 200px}
.linkbtn{color:var(--blue-l);font-size:14px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}

/* photos */
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:7px}
.shots.gallery{margin-bottom:12px}
.shot{position:relative;aspect-ratio:1;border-radius:var(--rb);overflow:hidden;background:#0B0F1D;display:block}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot .rm{position:absolute;top:3px;right:3px;width:28px;height:28px;border-radius:50%;background:rgba(8,10,20,.82);font-size:16px;line-height:28px}
.shot-add{aspect-ratio:1;border:1px dashed var(--line);border-radius:var(--rb);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:12px;font-weight:700}
.shot-add .cam{font-size:22px}

/* ── sheet: slides up on iPhone, docks right on a computer ──────────────── */
.sheet-wrap{position:fixed;inset:0;z-index:900;display:none}
.sheet-wrap.on{display:block}
.scrim{position:absolute;inset:0;background:rgba(5,7,15,.72)}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;background:var(--surface);border-top:1px solid var(--line);border-radius:16px 16px 0 0;display:flex;flex-direction:column;animation:up .22s cubic-bezier(.2,.8,.3,1)}
@media (min-width:900px){.sheet{left:auto;right:20px;bottom:20px;top:76px;width:460px;max-height:none;border-radius:var(--r);border:1px solid var(--line)}}
@keyframes up{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.sheet-hd{padding:14px 16px 12px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:12px;background:var(--navy);border-radius:16px 16px 0 0}
@media (min-width:900px){.sheet-hd{border-radius:var(--r) var(--r) 0 0}}
.sheet-hd .eyebrow{color:#CADCFC;font-weight:400}
.sheet-hd h2{font-size:18px;color:#fff}
.sheet-bd{padding:14px 16px calc(var(--safe-b) + 20px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.x{font-size:28px;line-height:.8;color:#CADCFC;padding:0 4px 6px;min-width:36px;min-height:36px}
.toast{position:fixed;left:50%;bottom:calc(var(--safe-b) + 86px);transform:translateX(-50%);background:#fff;color:#1b2233;padding:11px 17px;border-radius:var(--rb);font-weight:700;font-size:14px;z-index:2000;max-width:min(92vw,520px);text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.5)}
@media (min-width:900px){.toast{bottom:28px}}

/* ── map ────────────────────────────────────────────────────────────────── */
.map-wrap{position:relative}
#mapBox{height:calc(100vh - 250px);height:calc(100dvh - 250px);min-height:360px;border-radius:var(--r);border:1px solid var(--line);background:#0E1222;overflow:hidden}
@media (min-width:900px){#mapBox{height:calc(100vh - 200px)}}
.map-count{position:absolute;left:10px;top:10px;z-index:500;background:rgba(21,27,48,.92);border:1px solid var(--line);padding:5px 10px;border-radius:20px;font-size:12px;font-weight:700}
.map-count:empty{display:none}
.leaflet-container{background:#0E1222;font-family:var(--sans)}
/* Google map markers: one overlay, plain HTML, same .mk shapes */
.gm-pin{position:absolute;left:0;top:0;width:0;height:0;padding:0;cursor:pointer}
.gm-pin .mk{position:absolute;left:0;top:0;transform:translate(-50%,-50%)}
.gm-pin .mk-sign{transform:translate(-50%,-50%) rotate(45deg)}
.gm-pin::before{content:'';position:absolute;left:-16px;top:-16px;width:32px;height:32px}   /* finger-sized hit area */
.gm-pin:hover .mk,.gm-pin:focus-visible .mk{outline:2px solid #fff;outline-offset:1px}
.gm-tip{display:none;position:absolute;left:12px;top:-8px;white-space:nowrap;background:var(--surface);color:var(--paper);border:1px solid var(--line);border-radius:var(--rb);padding:6px 9px;font:13px/1.35 var(--sans);text-align:left;box-shadow:0 6px 18px rgba(0,0,0,.45);z-index:2}
@media (hover:hover){.gm-pin:hover .gm-tip{display:block}}
.gm-pin:focus-visible .gm-tip{display:block}
.gm-pin:hover{z-index:3}
/* Google's own controls in the portal's colours */
.gm-style .gm-style-cc,.gm-style .gm-style-cc a{filter:invert(.85)}
.gm-style button.gm-control-active,.gm-style .gm-fullscreen-control,.gm-style .gm-svpc{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--rb)!important}
.gm-style button.gm-control-active img,.gm-style .gm-fullscreen-control img{filter:invert(.9)}
.gm-style .gmnoprint > div{background:transparent!important;box-shadow:none!important}
.gm-style .gmnoprint > div > div[style*="background-color"]{background:var(--line)!important}
.leaflet-tooltip{background:var(--surface);color:var(--paper);border:1px solid var(--line);font-size:13px}
.leaflet-bar a{background:var(--surface)!important;color:var(--paper)!important;border-color:var(--line)!important}
.leaflet-control-attribution{background:rgba(14,18,34,.75)!important;color:#7c828d!important}
.leaflet-control-attribution a{color:#9aa0aa!important}

/* ── charts ─────────────────────────────────────────────────────────────── */
.chart{position:relative}
.chart-head{display:flex;justify-content:space-between;align-items:center;margin:-4px 0 4px;min-height:24px}
.legend{display:flex;gap:14px;flex-wrap:wrap}
.lg{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.lg i{width:10px;height:10px;border-radius:2px;display:inline-block}
.chart svg{display:block;overflow:visible}
.chart .grid{stroke:var(--grid);stroke-width:1}
.chart .base{stroke:var(--line);stroke-width:1}
.chart .tick{fill:var(--muted);font:11px var(--sans);font-variant-numeric:tabular-nums}
.chart .val{fill:var(--paper);font:700 12px var(--sans)}
.chart .hit{fill:transparent;outline:none}
.chart .hit:hover,.chart .hit:focus{fill:rgba(255,255,255,.04)}
.tip{position:absolute;top:24px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--rb);padding:7px 10px;pointer-events:none;z-index:5;min-width:120px;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.tip-h{font-size:12px;color:var(--muted);margin-bottom:3px}
.tip-r{display:flex;align-items:center;gap:7px;font-size:13px}
.tip-r i{width:12px;height:2px;display:inline-block}
.tip-r b{font-variant-numeric:tabular-nums}
.tip-r span{color:var(--muted)}
.chart-table{margin-top:6px}

/* ── sign-in ────────────────────────────────────────────────────────────── */
.login{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px}
.login-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px 20px}
.login .brand{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.login h1{font-size:24px}
.login h2{font-size:18px;margin-bottom:8px}
.lead{color:var(--text-2);margin:0 0 18px}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin:18px 0}
.or::before,.or::after{content:'';flex:1;height:1px;background:var(--line)}
.login-links{display:flex;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.hide,[hidden]{display:none!important}
