@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: optional;
  src: url(fonts/bricolage-grotesque-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: optional;
  src: url(fonts/bricolage-grotesque-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Leaflet 1.9.4 */
/* 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(vendor/images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(vendor/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(vendor/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;
		}
	}

/* Layout: mobile-first single column; on desktop the day planner and the map sit side by side with the map sticky.
   Palette: Atacama mineral ground + "pata de guanaco" magenta as the one accent; ochre marks gravel and estimates. */
:root {
  --bg: #f5f2f6;
  --surface: #ffffff;
  --surface-2: #efe9f1;
  --ink: #231a2c;
  --muted: #5f5569;
  --line: #ddd4e2;
  --accent: #b0156a;
  --accent-soft: #f8dcec;
  --on-accent: #ffffff;
  --ochre: #94590a;
  --sea: #1a6480;
  --good: #24703f;
  --warn: #a83a08;
  --est-bg: #fff1d6;
  --est-fg: #6f4800;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14101b; --surface: #1e1827; --surface-2: #2a2234; --ink: #f0eaf4; --muted: #b0a6bb;
    --line: #3a3147; --accent: #f466b4; --accent-soft: #4a1d36; --on-accent: #1a0b13; --ochre: #e3a64c;
    --sea: #66bddb; --good: #6cc890; --warn: #ff8f63; --est-bg: #3b2c10; --est-fg: #f3c66e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14101b; --surface: #1e1827; --surface-2: #2a2234; --ink: #f0eaf4; --muted: #b0a6bb;
  --line: #3a3147; --accent: #f466b4; --accent-soft: #4a1d36; --on-accent: #1a0b13; --ochre: #e3a64c;
  --sea: #66bddb; --good: #6cc890; --warn: #ff8f63; --est-bg: #3b2c10; --est-fg: #f3c66e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 3000; border-radius: 6px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.12; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.85rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.flabel, .label { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.row-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 0.85rem; }
.iconbtn { font: 700 0.95rem/1 var(--font-mono); width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.iconbtn:disabled { opacity: 0.35; cursor: default; }

/* Header */
header.top { padding-block: 14px 10px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand h1 { font-size: clamp(1.5rem, 5.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.brand h1 span { color: var(--accent); }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.netpill { font-size: 0.8rem; font-weight: 700; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 4px 10px; }

nav.chips { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1100; background: var(--bg); border-bottom: 1px solid var(--line); }
nav.chips .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
nav.chips a { flex: none; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
nav.chips a:hover { border-color: var(--accent); color: var(--accent); }

main section { padding-block: 28px 4px; display: grid; gap: 14px; }
main section.intro { padding-top: 16px; }
#lugares, #alojamiento, #gastos, #checklist, #fuentes { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.w-date { width: 11.5em; } .w-num { width: 7em; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 44px; width: 100%; }
textarea { font-size: 0.9rem; resize: vertical; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); flex: none; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--ink); padding: 8px 14px; min-height: 44px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Badges */
.est { display: inline-block; font: 700 0.66rem/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--est-fg); background: var(--est-bg); border: 1px dashed var(--est-fg); padding: 3px 5px; border-radius: 4px; vertical-align: middle; white-space: nowrap; }
.src { font-size: 0.74rem; color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); white-space: nowrap; }
.src:hover { color: var(--accent); border-color: var(--accent); }
.pill { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.paved { color: var(--sea); } .pill.gravel { color: var(--ochre); } .pill.warn { color: var(--warn); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.kpis:empty { min-height: 88px; }
.kpi .v { font-family: var(--font-mono); font-size: clamp(1.15rem, 3.6vw, 1.6rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi.hl .v { color: var(--accent); }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice { margin: 0; border: 1px dashed var(--est-fg); background: var(--est-bg); color: var(--est-fg); border-radius: var(--radius); padding: 10px 14px; font-size: 0.9rem; }
.notice.road { border-style: solid; border-color: var(--warn); background: transparent; color: var(--ink); }

/* Planner: tabs + day panel + map */
.tabs { min-height: 58px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.tab { flex: none; font: inherit; text-align: left; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 54px; line-height: 1.3; display: grid; gap: 0; }
.tab .t1 { font-weight: 700; font-size: 0.95rem; }
.tab .t2 { font-size: 0.75rem; color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.tab .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.planner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.mapcol { position: sticky; top: 64px; display: grid; gap: 8px; min-width: 0; }
#map { height: min(72vh, 640px); min-height: 340px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 900px) {
  .planner-grid { grid-template-columns: 1fr; }
  .mapcol { position: static; order: -1; }
  #map { height: 56vh; min-height: 300px; }
}
.mapbar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; }
.catchips { display: flex; flex-wrap: wrap; gap: 6px; }
.catchip { font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 6px 10px; min-height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.catchip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.catchip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.maplog { margin: 0; }

.daypanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.daypanel:focus { outline: none; }
.dayhead { display: grid; gap: 4px; }
.dayhead .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; color: var(--muted); }
.alert { color: var(--warn); font-weight: 700; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stop { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.stop:first-child { border-top: 0; }
.stop.off .sname { color: var(--muted); text-decoration: line-through; }
.stop.dragging { opacity: 0.4; }
.stop.dropbefore { box-shadow: inset 0 3px 0 var(--accent); }
.stop .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-mono); color: var(--on-accent); }
.stop .sname { font-weight: 700; cursor: pointer; }
.stop .sname:hover { color: var(--accent); }
.stop .seginfo { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.stop .ctrl { display: flex; gap: 4px; align-items: center; }
.stop .grip { cursor: grab; color: var(--muted); font-size: 1.1rem; padding: 0 2px; user-select: none; }
.stop .toggle { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 4px; }
.fuelbox { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 0.9rem; }
.overview { display: grid; gap: 8px; }
.ovday { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; }
.ovday:first-child { border-top: 0; }
.ovday .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-mono); color: var(--on-accent); }

/* Map markers */
.mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-mono); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mk.flores { background: #b0156a; } .mk.costa { background: #1a6480; } .mk.alojamiento { background: #4a3a5c; } .mk.combustible { background: #94590a; width: 20px; height: 20px; font-size: 10px; }
.mk.me { background: #1a73e8; width: 18px; height: 18px; }
.leaflet-container { font-family: var(--font-body); background: var(--surface-2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.4; min-width: 210px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 85%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }
.pop h3 { font-size: 1rem; margin-bottom: 4px; }
.pop img { border-radius: 6px; margin-bottom: 6px; display: block; }
.pop dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 6px 0; }
.pop dt { color: var(--muted); font-weight: 700; }
.pop dd { margin: 0; }
.navbtns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.navbtns a { flex: 1; text-align: center; font-weight: 700; text-decoration: none; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); background: var(--surface-2); }

/* Places */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.place.opt { border-style: dashed; }
.place .cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.place .cat.flores { color: var(--accent); } .place .cat.costa { color: var(--sea); }
.place dl { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 0.9rem; }
.place dt { color: var(--muted); font-weight: 700; font-size: 0.8rem; padding-top: 2px; }
.place dd { margin: 0; min-width: 0; }
.place p { margin: 0; font-size: 0.9rem; }

/* Lodging */
.tablebox { overflow-x: auto; }
.lodg { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; min-width: 640px; }
.lodg th, .lodg td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lodg th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
.lodg .r { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.lodg td.sel { background: var(--accent-soft); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; min-width: 0; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }
.toggles { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.93rem; flex-wrap: wrap; }
.chartrow { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
#donut { width: 132px; height: 132px; }
.totals { display: grid; gap: 6px; }
.totals .big { font: 600 clamp(1.5rem, 5vw, 2rem)/1.1 var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.totals .line { font-size: 0.9rem; color: var(--muted); }
.totals .line b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.breakdown { width: 100%; border-collapse: collapse; }
.breakdown td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown td.n { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.breakdown .sub { display: block; font-size: 0.8rem; color: var(--muted); }
.breakdown i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
details.tolls summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.tolltable { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 8px; }
.tolltable td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tolltable input { min-height: 36px; padding: 4px 8px; width: 7.5em; text-align: right; font-family: var(--font-mono); }

/* Checklist */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cl-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.cl-group h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cl-group h3 span { font: 400 0.8rem var(--font-mono); color: var(--muted); }
.cl-group label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; cursor: pointer; padding-block: 4px; }
.cl-group label input { margin-top: 1px; }
.cl-group label.done span { color: var(--muted); text-decoration: line-through; }
.progress { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.srclist, .estlist { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.9rem; }
.estlist { display: block; columns: 2 320px; }
.estlist li { margin-bottom: 4px; break-inside: avoid; }
footer { padding-block: 30px 40px; color: var(--muted); font-size: 0.85rem; }

/* Share dialog */
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 6, 14, 0.55); }
.share { padding: 18px; display: grid; gap: 10px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Route mode: deliberately single-theme, maximum contrast for direct sunlight. */
.routemode { position: fixed; inset: 0; z-index: 2000; background: #ffffff; color: #000000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font-family: var(--font-body);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.rm-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 3px solid #000; }
.rm-head h2 { flex: 1; font-size: 1.3rem; text-align: center; color: #000; }
.rm-body { overflow-y: auto; padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.rm-card { border: 3px solid #000; border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.rm-card .k { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #333; }
.rm-card .v { font: 700 clamp(1.6rem, 7vw, 2.4rem)/1.1 var(--font-display); color: #000; }
.rm-card .d { font-size: 1.05rem; color: #111; }
.rm-card.next { background: #000; color: #fff; }
.rm-card.next .k { color: #ddd; } .rm-card.next .v, .rm-card.next .d { color: #fff; }
.rm-card.warn { border-color: #a00000; }
.rm-card.warn .v { color: #a00000; }
.rm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .rm-grid { grid-template-columns: 1fr; } }
.rm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; border-top: 3px solid #000; }
.rm-btn { font: 700 1.1rem/1.1 var(--font-body); min-height: 54px; border-radius: 12px; border: 3px solid #000; background: #fff; color: #000; cursor: pointer; display: grid; place-items: center; text-decoration: none; text-align: center; padding: 6px; }
.rm-btn.go { background: #000; color: #fff; grid-column: span 2; min-height: 64px; font-size: 1.4rem; }
.rm-btn.nav { background: #8a0c50; border-color: #8a0c50; color: #fff; }
.rm-btn.sm { min-height: 48px; min-width: 48px; font-size: 1.3rem; padding: 4px 10px; }
.rm-btn.close { font-size: 1rem; }
.rm-btn:focus-visible { outline: 4px solid #1a73e8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
