/* 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 {
	
	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 {
	
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	
	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 */
	
	}


/* 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;
		}
	}

:root {
  --sea: #2bc2d6;
  --ink: #1c2c25;
  --paper: #fffdf7;
  --cream: #fff5e1;
  --coral: #ff6b4a;
  --sun: #ffb703;
  --leaf: #22a06b;
  --water: #1d9bf0;
  --fuel: #e5484d;
  --food: #ff7a2f;
  --highway: #2563eb;
  --font-ui: "Manrope", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #142622;
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.fr-app {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--sea);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.45);
}

.fr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.fr-canvas:active {
  cursor: grabbing;
}

/* =========================================================================
   TOP HUD
   ========================================================================= */
.fr-hud-top {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 8px));
  left: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.fr-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  pointer-events: auto;
}

.fr-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
}

.fr-pill-money {
  background: #fff2be;
  color: #6f4000;
}

.fr-pill-clock {
  background: #e9f7ff;
}

.fr-pill-clock.is-dusk {
  background: #ffd7b3;
  color: #8c2a0c;
}

.fr-pill-clock.is-night {
  background: #1b2c4b;
  color: #ffe399;
}

.fr-btn-pill {
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.fr-btn-pill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.fr-btn-pill.is-accent {
  background: var(--sun);
}

.fr-btn-pill.is-drive {
  background: var(--coral);
  color: #ffffff;
}

.fr-gauges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  pointer-events: auto;
}

.fr-gauge {
  background: rgba(255, 253, 247, 0.96);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 4px 6px 5px;
  box-shadow: 0 2.5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-gauge.is-low {
  background: #ffe3e3;
}

.fr-gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.fr-gauge-bar {
  width: 100%;
  height: 7px;
  background: #e6e2d5;
  border-radius: 99px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}

.fr-gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.2s ease;
}

.fr-fill-fuel { background: var(--fuel); }
.fr-fill-water { background: var(--water); }
.fr-fill-battery { background: var(--sun); }
.fr-fill-food { background: var(--food); }

.fr-banner {
  align-self: center;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--sun);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  max-width: 95%;
  display: none;
}

.fr-banner.is-visible {
  display: inline-block;
}

/* =========================================================================
   BOTTOM HUD
   ========================================================================= */
.fr-hud-bottom {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.fr-route-progress {
  pointer-events: auto;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 253, 247, 0.96);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 4px 0 var(--ink);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.fr-route-progress.is-visible {
  display: flex;
}

.fr-city-cta {
  pointer-events: auto;
  width: 100%;
  max-width: 380px;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 15px;
  border: 3px solid var(--ink);
  background: var(--coral);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fr-city-cta.is-visible {
  display: flex;
}

.fr-city-cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.fr-bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: auto;
}

.fr-bottom-left,
.fr-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Floating Zoom Controls (+ / - / Recenter on Van) */
.fr-zoom-controls {
  position: absolute;
  right: 10px;
  top: 52%;
  transform: translateY(-50%);
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 2.5px solid var(--ink);
  background: rgba(255, 253, 247, 0.96);
  color: var(--ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fr-zoom-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.fr-zoom-btn.is-recenter {
  font-size: 17px;
  background: #fff2be;
}

/* =========================================================================
   MODALS
   ========================================================================= */
.fr-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(18, 34, 30, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(2px);
}

.fr-overlay.is-open {
  display: flex;
}

.fr-modal {
  width: 100%;
  max-width: 430px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 8px 0 var(--ink), 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 13px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fr-modal h2 {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
}

.fr-sub {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a5d54;
}

.fr-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.46;
  color: #2c3d35;
}

.fr-tip {
  background: #e8f8ef;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #154a33;
}

.fr-warn {
  background: #fff1e5;
  border: 2px solid var(--coral);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  color: #962b10;
}

/* Budget & Van Selection Cards */
.fr-choice-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fr-choice-card {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-choice-card.is-selected {
  background: #fff5cc;
  border-color: var(--coral);
  box-shadow: 0 3px 0 var(--coral);
}

.fr-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.fr-choice-desc {
  font-size: 11.5px;
  font-weight: 600;
  color: #4f6158;
}

/* Route comparison cards (Autoroute vs Nationale) */
.fr-route-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fr-route-option {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.fr-route-option.is-highway {
  background: #eef5ff;
}

.fr-route-option.is-nationale {
  background: #ecfaf2;
}

.fr-route-option h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.fr-route-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Select inputs for A -> B planner */
.fr-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
}

.fr-field select {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.fr-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fr-btn-primary {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 13px;
  border: 2.5px solid var(--ink);
  background: var(--leaf);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.fr-btn-primary.is-coral { background: var(--coral); }
.fr-btn-primary.is-blue { background: var(--highway); }
.fr-btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.fr-btn-primary:disabled {
  background: #c7cdc9;
  color: #5b6760;
  cursor: not-allowed;
  box-shadow: 0 2px 0 #7b8580;
}

.fr-btn-secondary {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 13px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}

.fr-btn-secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.fr-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.fr-tab {
  min-height: 36px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fr-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.fr-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fr-stat {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 7px 9px;
}

.fr-stat span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #52635b;
}

.fr-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.fr-calc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fr-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #edf7ff;
  color: var(--ink);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
}

.fr-pill-waste {
  background: #eef9f2;
  color: #165b3d;
  padding: 5px 8px;
  font-size: 11.5px;
}

.fr-pill-waste.is-warn {
  background: #ffe0db;
  color: #9e1c0e;
  border-color: var(--coral);
}

.fr-mission-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fr-mission-card {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 9px 11px;
  box-shadow: 0 3px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-mission-card.is-done {
  background: #e7faef;
  border-color: var(--leaf);
  box-shadow: 0 3px 0 var(--leaf);
}

.fr-mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

.fr-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fr-photo-card {
  background: #fffdf7;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 7px 8px;
  box-shadow: 0 2.5px 0 var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.fr-photo-card strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 2px;
}

.fr-eco-bar {
  width: 100%;
  height: 12px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: #e6e2d5;
  overflow: hidden;
  margin-top: 4px;
}

.fr-eco-fill {
  height: 100%;
  background: linear-gradient(90deg, #22a06b, #54d17a);
  transition: width 0.3s ease;
}

.fr-duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fr-duration-btn {
  padding: 7px 5px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}

.fr-duration-btn small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #4f6158;
}

.fr-duration-btn.is-selected {
  background: var(--sun);
  border-color: var(--ink);
}

.fr-van-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.fr-van-grid .fr-choice-card {
  padding: 7px 9px;
}

.fr-quest-preview {
  background: #fff7dc;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 8px 11px;
  box-shadow: 0 3px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-quest-preview strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.fr-quest-preview span {
  font-size: 11.5px;
  font-weight: 700;
  color: #4a5d54;
  line-height: 1.35;
}

.fr-quest-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-quest-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.fr-quest-step.is-done {
  background: #e7faef;
  border-color: var(--leaf);
}

.fr-quest-prog {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.fr-quest-step.is-done .fr-quest-prog {
  background: var(--leaf);
  color: #ffffff;
  border-color: var(--leaf);
}

.fr-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.fr-vehicle-card {
  text-align: left;
  padding: 7px 8px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  box-shadow: 0 2.5px 0 var(--ink);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fr-vehicle-card.is-selected {
  background: #fff5cc;
  border-color: var(--coral);
  box-shadow: 0 2.5px 0 var(--coral);
}

.fr-vehicle-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.fr-vehicle-meta {
  font-size: 10px;
  font-weight: 700;
  color: #4f6158;
  line-height: 1.25;
}

.fr-bike-toggle {
  width: 100%;
  padding: 7px 10px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  background: #f5f2e8;
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.fr-bike-toggle.is-on {
  background: #e7faef;
  border-color: var(--leaf);
  color: #154a33;
}

.fr-zoom-btn.is-help {
  font-size: 18px;
  background: #e9f7ff;
  color: #0b4c7c;
}

/* =========================================================================
   INTERACTIVE GUIDED TUTORIAL (SPOTLIGHT + COACH CARD)
   ========================================================================= */
.fr-tuto-layer {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: none;
  pointer-events: auto;
  overflow: hidden;
}

.fr-tuto-layer.is-open {
  display: block;
}

.fr-tuto-spot {
  position: absolute;
  border-radius: 16px;
  border: 3.5px solid var(--sun);
  box-shadow: 0 0 0 9999px rgba(14, 28, 24, 0.72), 0 0 0 6px rgba(255, 183, 3, 0.35);
  pointer-events: none;
  transition: left 0.32s ease, top 0.32s ease, width 0.32s ease, height 0.32s ease;
  animation: fr-tuto-pulse 1.5s infinite ease-in-out;
}

@keyframes fr-tuto-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(14, 28, 24, 0.72), 0 0 0 4px rgba(255, 183, 3, 0.45); }
  50% { box-shadow: 0 0 0 9999px rgba(14, 28, 24, 0.72), 0 0 0 11px rgba(255, 107, 74, 0.45); }
}

.fr-tuto-card {
  position: absolute;
  left: 12px;
  right: 12px;
  max-width: 410px;
  margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 7px 0 var(--ink), 0 16px 32px rgba(0, 0, 0, 0.4);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 56;
  transition: top 0.3s ease, bottom 0.3s ease;
}

.fr-tuto-card.pos-bottom {
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  top: auto;
}

.fr-tuto-card.pos-top {
  top: max(18px, env(safe-area-inset-top, 18px));
  bottom: auto;
}

.fr-tuto-card.pos-mid {
  top: 50%;
  transform: translateY(-50%);
}

.fr-tuto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fr-tuto-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fr-tuto-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #d4d0c5;
  border: 1.5px solid var(--ink);
}

.fr-tuto-dot.is-active {
  width: 18px;
  background: var(--coral);
}

.fr-tuto-card h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

.fr-tuto-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 600;
  color: #2b3c34;
}

.fr-tuto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.fr-tuto-skip {
  background: transparent;
  border: none;
  color: #5b6d64;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 6px;
  cursor: pointer;
}

.fr-tuto-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   TOURISM, COMMERCIAL BUILDINGS & PARTNER SHOWCASE CARDS (ÉTAPE B)
   ========================================================================= */
.fr-tabs.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.fr-tabs.is-4 .fr-tab {
  font-size: 11px;
  padding: 0 4px;
}

.fr-bld-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fr-bld-card {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 13px;
  padding: 8px 10px;
  box-shadow: 0 3px 0 var(--ink);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fr-bld-card.is-partner {
  background: #fff9df;
  border-color: #d97706;
  box-shadow: 0 3px 0 #d97706;
}

.fr-bld-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink);
}

.fr-bld-pill {
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
}

.fr-bld-pill.is-partner {
  background: var(--sun);
  border-color: var(--ink);
}

.fr-bld-desc {
  font-size: 11.5px;
  font-weight: 600;
  color: #465a51;
  line-height: 1.3;
}

.fr-partner-box {
  background: linear-gradient(135deg, #fff8d6, #eefaf2);
  border: 2.5px dashed #d97706;
  border-radius: 14px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-partner-box strong {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink);
}

.fr-partner-box p {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #3f5249;
  line-height: 1.35;
}

/* =========================================================================
   FREE CAMPERVAN SPOTS FILTER BAR & MODAL (MOBILE-FIRST 360px / 390px)
   ========================================================================= */
.fr-spot-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  pointer-events: auto;
}

.fr-spot-chip {
  min-width: 0;
  height: 28px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.48;
  filter: grayscale(0.45);
  box-shadow: none;
  transition: opacity 0.14s ease, transform 0.1s ease, filter 0.14s ease;
}

.fr-spot-chip.is-active {
  opacity: 1;
  filter: none;
  box-shadow: 0 2px 0 var(--ink);
}

.fr-spot-chip.is-active:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--ink);
}

.fr-spot-chip.is-elec.is-active {
  background: #fef9c3;
  border-color: #a16207;
  color: #422006;
  box-shadow: 0 2px 0 #a16207;
}

.fr-spot-chip.is-water.is-active {
  background: #e0f2fe;
  border-color: #0369a1;
  color: #082f49;
  box-shadow: 0 2px 0 #0369a1;
}

.fr-spot-chip.is-sleep.is-active {
  background: #dcfce7;
  border-color: #15803d;
  color: #052e16;
  box-shadow: 0 2px 0 #15803d;
}

.fr-spot-chip.is-dump.is-active {
  background: #f3e5d8;
  border-color: #5c3312;
  color: #3b1f09;
  box-shadow: 0 2px 0 #5c3312;
}

.fr-spot-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.fr-spot-cnt {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 44, 37, 0.25);
  flex-shrink: 0;
}

@media (max-width: 395px) {
  .fr-top-row {
    gap: 3px;
  }
  .fr-top-row .fr-pill {
    padding: 4px 6px;
    font-size: 11px;
    gap: 3px;
  }
  .fr-top-row .fr-btn-pill {
    min-height: 32px;
    padding: 3px 7px;
    font-size: 11px;
  }
}

@media (max-width: 375px) {
  .fr-spot-bar {
    gap: 4px;
  }
  .fr-spot-chip {
    padding: 0 3px;
    font-size: 10px;
    gap: 2px;
  }
  .fr-spot-cnt {
    font-size: 9px;
    padding: 1px 3px;
  }
}

.fr-spot-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-size: 11.5px;
  font-weight: 900;
  margin-bottom: 6px;
}

.fr-spot-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.fr-spot-gps,
.fr-spot-dist {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f1e6;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.fr-spot-dist {
  background: #eefaf2;
  border-color: #15803d;
  color: #14532d;
}

.fr-spot-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fr-spot-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1.8px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.fr-spot-warn {
  background: #fee2e2;
  border: 2px solid #b91c1c;
  color: #7f1d1d;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
}

.fr-spot-island-note {
  background: #e0f2fe;
  border: 2px solid #0369a1;
  color: #0c4a6e;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
}

.fr-btn-primary.is-spot-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
  padding: 9px 12px;
}

.fr-btn-primary.is-spot-act-btn svg {
  background: rgba(255, 253, 247, 0.92);
  border-radius: 999px;
  padding: 2px;
  width: 22px;
  height: 22px;
  box-shadow: 0 1px 0 rgba(28, 44, 37, 0.35);
}

.fr-btn-primary.is-spot-elec {
  background: #facc15;
  color: #1c2c25;
}

.fr-btn-primary.is-spot-dump {
  background: #7c4a21;
  color: #ffffff;
}

.fr-spot-disclaimer {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: #5b6d64;
  text-align: center;
  line-height: 1.3;
}

.fr-spot-gmaps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 2px solid #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 2px 0 #1e3a8a;
}

.fr-spot-gmaps-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #1e3a8a;
}

/* =========================================================================
   REAL INTERACTIVE MAP (LEAFLET · GOOGLE MAPS & SATELLITE)
   ========================================================================= */
.fr-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #aad3df;
  touch-action: none;
}

.fr-map.is-driving-mode {
  cursor: crosshair;
}

.fr-sky-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: background 0.6s ease;
}

.leaflet-container {
  font-family: var(--font-ui);
  background: #aad3df;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  line-height: 1.2 !important;
  background: rgba(255, 253, 247, 0.78) !important;
  color: #334155 !important;
  padding: 1px 5px !important;
  border-radius: 6px 0 0 0 !important;
  margin-bottom: 56px !important;
  pointer-events: auto;
}

.leaflet-control-attribution a {
  color: #0f766e !important;
}

.fr-zoom-btn.is-layer {
  font-size: 17px;
  background: #e0f2fe;
}

.fr-zoom-btn.is-layer.is-satellite {
  background: #1e293b;
  color: #ffffff;
  border-color: #0f172a;
}

/* Base divIcon reset */
.fr-lf-icon {
  background: transparent !important;
  border: none !important;
}

/* City Pill Markers */
.fr-gcity-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.fr-gcity-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid #1c2c25;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.32);
  transition: transform 0.12s ease;
}

.fr-gcity-pill.is-mid {
  font-size: 10px;
  padding: 2px 6.5px;
}

.fr-gcity-pill.is-current {
  border-color: #1c2c25;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.85), 0 3px 8px rgba(15, 23, 42, 0.42);
  transform: scale(1.06);
}

.fr-gcity-pill.is-quest {
  background: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.72), 0 3px 8px rgba(15, 23, 42, 0.36);
}

.fr-gcity-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #1c2c25;
  background: #fffdf7;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.fr-gcity-dot.is-visited {
  background: #bbf7d0;
}

/* Free Campervan Spot Markers (exact real GPS) */
.fr-gspot-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.fr-gspot-pin {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fffdf7;
  border: 2.4px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.fr-gspot-pin.is-compact {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

.fr-gspot-pin.is-elec {
  border-color: #a16207;
  background: #fefce8;
}

.fr-gspot-pin.is-water {
  border-color: #0369a1;
  background: #f0f9ff;
}

.fr-gspot-pin.is-sleep {
  border-color: #15803d;
  background: #f0fdf4;
}

.fr-gspot-pin.is-dump {
  border-color: #5c3312;
  background: #fdf6ee;
}

.fr-gspot-pin.is-near {
  animation: frSpotPulse 1.6s ease-in-out infinite;
}

@keyframes frSpotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.72), 0 2px 6px rgba(15, 23, 42, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0), 0 2px 6px rgba(15, 23, 42, 0.35); }
}

.fr-gspot-subdot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid #fffdf7;
}

.fr-gspot-lbl {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.96);
  border: 1.5px solid #1c2c25;
  color: #1c2c25;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.25);
}

/* Smart Cluster Badges (zero overlap when zoomed out) */
.fr-gcluster-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fffdf7;
  border: 2.4px solid #1c2c25;
  color: #1c2c25;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 2.5px 7px rgba(15, 23, 42, 0.38);
  cursor: pointer;
}

.fr-gcluster-pin.is-elec { background: #fef08a; border-color: #a16207; }
.fr-gcluster-pin.is-water { background: #bae6fd; border-color: #0369a1; }
.fr-gcluster-pin.is-sleep { background: #bbf7d0; border-color: #15803d; }
.fr-gcluster-pin.is-dump { background: #e8d3bc; border-color: #5c3312; }

/* Zoomed-in City Street POIs & Buildings (zoom >= 11.5) */
.fr-gpoi-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.fr-gpoi-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fffdf7;
  border: 2.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.fr-gpoi-tag {
  margin-top: 2px;
  padding: 1.5px 6px;
  border-radius: 999px;
  border: 1.5px solid #1c2c25;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.3);
}

.fr-gbld-circle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fffdf7;
  border: 2.4px solid #1c2c25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.fr-gbld-circle.is-partner {
  background: #fef3c7;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.55), 0 2px 6px rgba(15, 23, 42, 0.35);
}

.fr-gbld-tag {
  margin-top: 2px;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #fffdf7;
  border: 1.5px solid #1c2c25;
  color: #1c2c25;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.25);
}

.fr-gbld-tag.is-partner {
  background: #ffb703;
  border-color: #92400e;
}

/* Animated Vehicle Marker */
.fr-gvan-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.45));
}

.fr-gvan-rot {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Custom Tapped Destination Pin */
.fr-gcustom-pin {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -88%);
  pointer-events: none;
}

.fr-gcustom-pin-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.45);
}

.fr-gcustom-pin-stem {
  width: 3px;
  height: 8px;
  background: #0f172a;
  border-radius: 0 0 2px 2px;
}

.fr-near-spots-box {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-near-spots-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #334155;
}

.fr-near-spot-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.8px solid var(--ink);
  background: #fffdf7;
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.fr-near-spot-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fr-near-spot-km {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 900;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
