/* 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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* 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 {
  /* 2025 现代化配色 - 浅色模式优先 */
  --color-apb-bg: #f4f2ed;
  --color-apb-bg-soft: #fbfaf8;
  --color-apb-surface: #ffffff;
  --color-apb-surface-elevated: #ffffff;
  --color-apb-surface-muted: #f9f8f6;
  --color-apb-surface-glass: rgba(255, 255, 255, 0.70);
  --color-apb-surface-glass-strong: rgba(255, 255, 255, 0.85);
  --color-apb-border: #e6e2da;
  --color-apb-border-hover: #d1ccc0;
  --color-apb-text-main: #1a1a1a;
  --color-apb-text-muted: #666666;
  --color-apb-text-subtle: #999999;
  --color-apb-gold: #cca352;
  --color-apb-gold-hover: #d9b05e;
  --color-apb-gold-soft: rgba(204, 163, 82, 0.12);
  --color-apb-gold-softer: rgba(204, 163, 82, 0.06);
  
  /* 状态色 - 浅色模式适配 */
  --color-success: #10b981;
  --color-success-soft: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.1);
  --color-error: #ef4444;
  --color-error-soft: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6;
  --color-info-soft: rgba(59, 130, 246, 0.1);
  
  /* 现代阴影系统 - 浅色模式 */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(166, 160, 149, 0.15), 0 4px 6px -4px rgba(166, 160, 149, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(166, 160, 149, 0.15), 0 8px 10px -6px rgba(166, 160, 149, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(166, 160, 149, 0.25);
  --shadow-apb-soft: 0 8px 32px rgba(166, 160, 149, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-glass-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  --shadow-glow-gold: 0 0 25px rgba(204, 163, 82, 0.2);
  --shadow-glow-gold-intense: 0 0 45px rgba(204, 163, 82, 0.35);
  
  /* 圆角系统 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* 断点（Google 大屏指南）*/
  --bp-compact-max: 599px;
  --bp-medium-min: 600px;
  --bp-medium-max: 839px;
  --bp-expanded-min: 840px;

  /* 断点衍生尺寸 - 【大屏UX Level 2标准】 */
  --layout-max-width: 1440px;
  --pane-gap: 24px;
  --pane-min-width: 280px;  /* 单个窗格最小280dp */
  --pane-max-width: 600px;  /* 单个窗格最大600dp */
  
  /* 【大屏UX】栅格系统 */
  --grid-cols-compact: 4;   /* 小屏 4栏 */
  --grid-cols-medium: 8;    /* 中屏 8栏 */
  --grid-cols-expanded: 12; /* 大屏 12栏 */
  --grid-margin-compact: 16px;
  --grid-margin-medium: 32px;
  --grid-margin-expanded: 48px;
  --grid-gutter: 16px;

  /* Aurora Colors */
  --aurora-1: #ff9a9e;
  --aurora-2: #fad0c4;
  --aurora-3: #a18cd1;
  --aurora-4: #fbc2eb;
}

.liquid-bg-mesh {
  background-color: #fdfbf7;
  background-image: 
    radial-gradient(at 0% 0%, rgba(204, 163, 82, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 154, 158, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(161, 140, 209, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(251, 194, 235, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

/* Animated Blobs for Background */

.blob-cont {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: fly 15s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(204,163,82,0.3) 0%, rgba(204,163,82,0) 70%);
  animation-duration: 20s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(161,140,209,0.2) 0%, rgba(161,140,209,0) 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255,154,158,0.2) 0%, rgba(255,154,158,0) 70%);
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes fly {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

:root {
  color-scheme: light;
  background-color: var(--color-apb-bg);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  /* iOS优化: 防止下拉刷新时的弹性滚动 */
  overscroll-behavior-y: none;
  /* 优化字体渲染 */
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-apb-text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(204, 163, 82, 0.08), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(204, 163, 82, 0.05), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.03), transparent 40%),
    linear-gradient(180deg, #f6f4f0 0%, #f1eee8 100%);
  background-attachment: fixed;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

body[data-theme='dark'] {
  color-scheme: dark;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(92, 83, 57, 0.25), transparent 50%),
    linear-gradient(180deg, #11100e 0%, #1b1a17 40%, #0f0e0b 100%);
  color: #f5f2e8;
}

/* 移动端优化 - iOS/Android 原生APP体验 */

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    /* iOS Safari 地址栏隐藏时的100vh问题 */
    min-height: -webkit-fill-available;
  }
  
  /* 移动端触摸反馈优化 */
  button:active,
  a:active {
    opacity: 0.7;
  }
  
  /* 移动端输入框优化 */
  input,
  textarea,
  select {
    font-size: 16px; /* 防止iOS自动缩放 */
  }
}

/* 【大屏UX Level 2】中屏断点辅助类 (600-839dp) */

@media (min-width: 600px) {
  /* 布局外壳 - 最大宽度限制 */
  .bp-medium--layout-shell {
    max-width: var(--layout-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
  }

  /* 水平堆叠布局 */
  .bp-medium--stack-horizontal {
    display: flex;
    flex-direction: row;
    gap: var(--pane-gap);
    align-items: flex-start;
  }
  
  /* 【大屏UX】栅格系统 - 8栏 */
  .bp-medium--grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--grid-gutter);
    padding: 0 var(--grid-margin-medium);
  }
  
  /* 缩进布局 - 使用中间6栏 */
  .bp-medium--indent {
    grid-column: 2 / 8;
  }
}

/* 【大屏UX Level 2】大屏断点 Pane 辅助类 (≥840dp) */

@media (min-width: 840px) {
  /* 窗格网格布局 */
  .bp-expanded--pane-grid {
    display: grid;
    gap: var(--pane-gap);
    grid-auto-flow: column;
    grid-auto-columns: minmax(var(--pane-min-width), var(--pane-max-width));
    align-items: start;
  }

  /* 窗格网格拉伸模式 */
  .bp-expanded--pane-grid-stretch {
    grid-auto-columns: minmax(var(--pane-min-width), 1fr);
  }

  /* 显示Navigation Rail布局 - optimized for sticky sidebar */
  .bp-expanded--show-navigation-rail {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: var(--pane-gap);
    align-items: start;
  }

  /* 内容列布局 */
  .bp-expanded--content-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--pane-min-width), 1fr));
    gap: var(--pane-gap);
  }
  
  /* 【大屏UX】栅格系统 - 12栏 */
  .bp-expanded--grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter);
    padding: 0 var(--grid-margin-expanded);
  }
  
  /* 缩进布局 - 使用中间8栏 */
  .bp-expanded--indent {
    grid-column: 3 / 11;
  }
  
  /* 2栏布局 - 各占约600dp */
  .bp-expanded--two-pane {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr);
    gap: var(--pane-gap);
    max-width: var(--layout-max-width);
    margin: 0 auto;
  }
  
  /* 3栏布局 - 各占约400dp */
  .bp-expanded--three-pane {
    display: grid;
    grid-template-columns: repeat(3, minmax(var(--pane-min-width), 1fr));
    gap: var(--pane-gap);
    max-width: var(--layout-max-width);
    margin: 0 auto;
  }
}

/* iOS 安全区域适配 - 底部导航栏 */

@supports (padding: max(0px)) {
  .safe-area-bottom {
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
  }
  
  /* 【大屏UX Level 3】全面屏安全区域适配 */
  .safe-area-inset {
    padding-top: max(env(safe-area-inset-top), 0px);
    padding-bottom: max(env(safe-area-inset-bottom), 0px);
    padding-left: max(env(safe-area-inset-left), 0px);
    padding-right: max(env(safe-area-inset-right), 0px);
  }
}

/* 【大屏UX Level 2】图片和视频尺寸控制 */

/* 单张横向图片/视频 - 建议不超40%屏幕高度 */

.media-horizontal {
  max-height: 40vh;
  width: auto;
  object-fit: contain;
}

/* 单张竖向图片/视频 - 建议不超50%屏幕高度 */

.media-vertical {
  max-height: 50vh;
  width: auto;
  object-fit: contain;
}

/* 多图组合 - 整体不超50%屏幕高度 */

.media-group {
  max-height: 50vh;
}

/* 沉浸浏览模式 - 全屏展示 */

.media-immersive {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 容器中的图片 - 响应式缩放 */

.media-in-container {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

/* Navigation Rail（大屏） - Sticky positioning for scroll follow */

.navigation-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  width: 96px;
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 24px -1px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.navigation-rail:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px -4px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.navigation-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-radius: 16px;
  color: var(--color-apb-text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.navigation-rail__item:hover {
  color: var(--color-apb-text-main);
  background: rgba(255, 255, 255, 0.4);
}

.navigation-rail__item.is-active {
  color: var(--color-apb-gold);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  box-shadow: 
    0 4px 12px rgba(204, 163, 82, 0.15),
    0 1px 2px rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

body #asphalt-bao-app {
  background-color: transparent;
}

/* 【大屏UX Level 2】文本段落优化 - 控制单行字数 */

/* 小屏 - 没有限制 */

.text-readable {
  max-width: 100%;
}

/* 中屏 - 最多65个字符 */

@media (min-width: 600px) {
  .text-readable {
    max-width: 65ch;
  }
}

/* 大屏 - 最多75个字符 */

@media (min-width: 840px) {
  .text-readable {
    max-width: 75ch;
  }
}

/* 【大屏UX Level 2】增强行距 - 大屏阅读体验 */

.leading-comfortable {
  line-height: 1.6;
}

@media (min-width: 840px) {
  .leading-comfortable {
    line-height: 1.75;
  }
}

/* 【大屏UX Level 2】文字阴影增强可读性 */

.text-enhanced-contrast {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 增强交互状态 - 更流畅的过渡 */

button, a, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* 移动端触摸优化 */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 【大屏UX Level 2】悬停态 - 基于光标的交互 */

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover,
  a:not([disabled]):hover {
    transform: translateY(-1px);
  }
  
  /* 主要交互元素的悬停态 */
  .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 165, 55, 0.4);
  }
  
  .hover-scale:hover {
    transform: scale(1.02);
  }
}

button:not(:disabled):active,
a:not([disabled]):active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

button:disabled, 
input:disabled, 
select:disabled, 
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 【大屏UX Level 2】焦点可见性 - 基于焦点的交互 */

:focus-visible {
  outline: 3px solid var(--color-apb-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* 【大屏UX Level 2】聚焦态 - 支持键盘、遥控器导航 */

.focusable {
  position: relative;
}

.focusable:focus-visible::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 3px solid var(--color-apb-gold);
  border-radius: inherit;
  pointer-events: none;
  animation: focus-ring 0.2s ease-out;
}

@keyframes focus-ring {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
 * 【大屏UX Level 2】键盘快捷键支持
 * ========================================
 * 
 * 全局快捷键:
 * - Ctrl+K / ⌘+K: 打开全局搜索
 * - Escape: 关闭对话框/搜索
 * - Ctrl+Enter / ⌘+Enter: AI助手发送消息
 * 
 * 浏览器原生支持(无需额外实现):
 * - Ctrl+C / ⌘+C: 复制
 * - Ctrl+V / ⌘+V: 粘贴
 * - Ctrl+X / ⌘+X: 剪切
 * - Ctrl+Z / ⌘+Z: 撤销
 * - Ctrl+Shift+Z / ⌘+Shift+Z: 重做
 * - Ctrl+A / ⌘+A: 全选
 * - Ctrl+F / ⌘+F: 页面内查找
 * 
 * 实现说明:
 * - 全局快捷键在 AppShell.tsx 中注册
 * - 组件级快捷键使用 useKeyboardShortcuts Hook
 * - 输入框中的快捷键会被自动禁用(除非明确允许)
 * - 支持 macOS 和 Windows/Linux 不同的键盘符号
 * 
 * 使用示例:
 * ```typescript
 * import { useKeyboardShortcuts } from '@/hooks/useKeyboardShortcuts';
 * 
 * useKeyboardShortcuts([
 *   { key: 'k', ctrl: true, meta: true, handler: openSearch },
 *   { key: 'Escape', handler: closeDialog }
 * ]);
 * ```
 */

/* 快捷键提示样式 */

kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 500;
  color: var(--color-apb-text-muted);
}

/* Smooth scrolling */

html {
  scroll-behavior: smooth;
}

/* 选中样式 - 金色高亮 */

::selection {
  background-color: var(--color-apb-gold-soft);
  color: var(--color-apb-text-main);
}

::-moz-selection {
  background-color: var(--color-apb-gold-soft);
  color: var(--color-apb-text-main);
}

/* 滚动条样式 - 浅色模式 */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-apb-bg-soft);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--color-apb-border);
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-apb-border-hover);
}

/* Pane 切换动画 */

.pane-enter {
  opacity: 0;
  transform: translateY(8px);
}

.pane-enter-active,
.pane-enter-done {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pane-exit {
  opacity: 1;
  transform: translateY(0);
}

.pane-exit-active {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 加载动画 - 更流畅 */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 工具提示和对话框过渡 */

[role="tooltip"],
[role="dialog"],
[role="menu"] {
  animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for accessibility */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* 移动端输入法优化 - 防止布局被顶起 */

@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  #root {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

/* 所有移动设备通用优化 */

@media (max-width: 768px) {
  /* 防止输入框获得焦点时页面缩放 */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important; /* iOS需要16px以上才不会自动缩放 */
  }
  
  /* 防止输入法弹出时整体布局被顶起 */
  body.keyboard-open {
    position: fixed;
    width: 100%;
  }
  
  /* 输入框聚焦时的优化 */
  input:focus,
  textarea:focus {
    /* 防止自动滚动到顶部 */
    scroll-margin-top: 100px;
    scroll-margin-bottom: 100px;
  }
  
  /* 固定导航栏在输入法弹起时不动 */
  .fixed-header,
  .fixed-nav {
    position: fixed;
    z-index: 1000;
  }
}

/* WebApp 容器覆盖视口，使用统一浅色背景，内部内容可滚动 */

#asphalt-bao-app {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #f5f5f7;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

body.asphalt-bao-app-active {
  background-color: #f5f5f7;
}

/* 取消 2025 主题对内容区域的 max-width 居中限制，让 WebApp 真正铺满宽度 */

body.asphalt-bao-app-active .wp-site-blocks {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 在启用 WebApp 时，隐藏 2025 主题的头部/尾部等外围区域，仅保留包含 shortcode 的内容区 */

body.asphalt-bao-app-active .wp-site-blocks > header,
body.asphalt-bao-app-active .wp-site-blocks > footer {
  display: none !important;
}

/* 仅显示承载 #asphalt-bao-app 的块，隐藏同级其他块 */

body.asphalt-bao-app-active main .wp-block-post-content > *:not(#asphalt-bao-app) {
  display: none !important;
}

/* 移动端输入框优化 - 防止被底部导航栏遮挡 */

@media (max-width: 768px) {
  /* 为页面底部添加额外的内边距，确保内容不被底部导航遮挡 */
  body {
    padding-bottom: 0;
  }

  /* 当输入框聚焦时，确保有足够的滚动空间 */
  input:focus,
  textarea:focus,
  select:focus {
    scroll-margin-bottom: 120px; /* 底部导航高度 + 额外空间 */
  }

  /* iOS Safari 特殊处理 */
  @supports (-webkit-touch-callout: none) {
    input:focus,
    textarea:focus,
    select:focus {
      scroll-margin-bottom: 140px; /* iOS 需要更多空间 */
    }
  }
}

/* 安全区域支持 */

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 全局动画 - 用于组件库 */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast 样式 - 与旧版 Toast.tsx 保持一致的渐变效果 */

.toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(16, 185, 129, 0.1) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.6) !important;
  color: #065f46 !important;
  box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.2) !important;
}

.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(239, 68, 68, 0.1) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  color: #991b1b !important;
  box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.2) !important;
}

.toast-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(245, 158, 11, 0.1) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.6) !important;
  color: #92400e !important;
  box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.2) !important;
}

.toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(59, 130, 246, 0.1) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.6) !important;
  color: #1e40af !important;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2) !important;
}
