<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>


<!-- Tiles@Home Rules File for zoom level 17 -->

<rules
	xmlns:xlink="http://www.w3.org/1999/xlink"
	xmlns:svg="http://www.w3.org/2000/svg"
	data="data.osm"
	svgBaseProfile="full"
	scale="1"
	symbolScale="0.107"
	textAttenuation="14"
	minimumMapWidth="0.5"
	minimumMapHeight="0.5"
	withOSMLayers="yes"
	withUntaggedSegments="no"
	showScale="no"
	showGrid="no"
	showBorder="no"
	showLicense="no"
	interactive="no"
	showRelationRoute="no"
	symbolsDir="../stylesheets/symbols"
	meter2pixel="0.1375">


	<!-- Select all nodes and ways (unless they have an osmarender:render=no tag) -->
	<rule e="node|way" k="osmarender:render" v="~|yes">

		<!-- Landuse -->
		<rule e="way" k="landuse" v="landfill|quarry">
			<area class="landuse-quarry"/>
		</rule>
		<rule e="way" k="landuse" v="cemetery">
			<rule e="way" k="religion" v="christian">
				<area class="landuse-cemetery-christian"/>
			</rule>
			<else>
				<area class="landuse-cemetery"/>
			</else>
		</rule>
		<rule e="way" k="amenity" v="grave_yard">
			<rule e="way" k="religion" v="christian">
				<area class="landuse-cemetery-christian"/>
			</rule>
			<else>
				<area class="landuse-cemetery"/>
			</else>
		</rule>
		<rule e="way" k="landuse" v="vineyard">
			<area class="landuse-vineyard"/>
		</rule>

		<!-- Natural features -->
		<rule e="way" k="natural" v="coastline">
			<area class="natural-coastline"/>
		</rule>
		<rule e="way" k="natural" v="glacier">
			<line class='natural-glacier'/>
		</rule>
		<rule e="way" k="natural" v="land">
			<area class="natural-land"/>
		</rule>
		<rule e="way" k="natural" v="beach">
			<area class="natural-beach"/>
		</rule>
		<rule e="way" k="natural|landuse" v="forest|wood|scrub">
			<rule e="way" k="wood" v="coniferous">
				<area class="landuse-wood-coniferous"/>
			</rule>
			<else>
				<rule e="way" k="wood" v="deciduous">
					<area class="landuse-wood-deciduous"/>
				</rule>
				<else>
					<rule e="way" k="wood" v="mixed">
						<area class="landuse-wood-mixed"/>
					</rule>
					<else>
						<area class="landuse-wood"/>
					</else>
				</else>
			</else>
		</rule>
		<rule e="way" k="natural" v="heath">
			<area class="natural-heath"/>
		</rule>
		<rule e="way" k="natural" v="wetland">
			<rule e="way" k="wetland" v="bog">
				<area class="wetland-bog"/>
			</rule>
		</rule>
		<rule e="way" k="landuse" v="conservation">
			<area class="landuse-conservation"/>
		</rule>

		<!-- Artificial landuse -->
		<rule e="way" k="landuse" v="field|farm|farmland|allotments|village_green|recreation_ground|meadow|grass">
			<area class="landuse-field"/>
		</rule>
		<rule e="way" k="leisure" v="park|garden|golf_course|common|green">
			<area class="leisure-park"/>
		</rule>
		<rule e="way" k="leisure" v="playground|playing_fields|pitch">
			<rule e="way" k="sport" v="tennis">
				<area class="sport-tennis"/>
			</rule>
			<else>
				<!-- Done separately from the above rule to layer these above. Tend to be smaller and inside parks. -->
				<area class="leisure-park"/>
			</else>
		</rule>
		<rule e="way" k="leisure" v="nature_reserve">
			<area class="leisure-nature_reserve"/>
			<symbol ref="bird" position="center"/>
		</rule>
		<rule e="way" k="leisure" v="stadium|sports_centre|water_park">
			<area class="leisure-stadium"/>
		</rule>
		<rule e="way" k="leisure" v="track">
			<rule e="way" k="area" v="yes|true">
				<area class="leisure-track-area"/>
			</rule>
			<else>
				<line class="leisure-track-casing"/>
				<line class="leisure-track-core"/>
			</else>
		</rule>
		<rule e="way" k="leisure" v="swimming_pool">
			<area class="leisure-swimming-pool"/>
		</rule>

		<!-- Airports and runways -->
		<rule e="way" k="aeroway" v="aerodrome" closed="yes">
			<area class="aeroway-aerodrome"/>
		</rule>
		<rule e="way" k="aeroway" v="apron">
			<area class="aeroway-apron"/>
		</rule>
		<rule e="way" k="landuse" v="runway">
			<rule e="way" k="use_status" v="~">
				<area class="landuse-runway"/>
			</rule>
			<rule e="way" k="use_status" v="disused">
				<area class="landuse-runway-disused"/>
			</rule>
			<rule e="way" k="use_status" v="dismantled">
				<area class="landuse-runway-dismantled"/>
			</rule>
		</rule>

		<!-- Raceways and racetracks (cars and horses etc) -->
		<rule e="way" k="landuse" v="raceway">
			<rule e="way" k="use_status" v="~">
				<area class="landuse-raceway"/>
			</rule>
			<rule e="way" k="use_status" v="disused">
				<area class="landuse-raceway-disused"/>
			</rule>
			<rule e="way" k="use_status" v="dismantled">
				<area class="landuse-raceway-dismantled"/>
			</rule>
		</rule>

		<!-- Man-made areas -->
		<rule e="way" k="leisure|landuse|amenity|tourism" v="~">
			<rule e="way" k="building" v="~|no|false|0">
				<rule e="way" k="sport" v="swimming">
					<area class="sport-swimming"/>
				</rule>
				<else>
					<rule e="way" k="sport" v="tennis">
						<area class="sport-tennis"/>
					</rule>
					<else>
						<rule e="way" k="sport" v="*" closed="yes">
							<area class="sport"/>
						</rule>
					</else>
				</else>
			</rule>
		</rule>
		<rule e="way" k="amenity" v="parking">
			<area class="amenity-parking"/>
		</rule>
		<rule e="way" k="tourism" v="attraction">
			<rule e="way" k="highway" v="~">
				<rule e="way" k="area" v="no" />
				<else>
					<area class="tourism-attraction"/>
				</else>
			</rule>
		</rule>
		<rule e="way" k="tourism" v="zoo|picnic_site|caravan_site|camp_site">
			<area class="tourism-green-area"/>
		</rule>

		<!-- access rules for parking -->
		<rule e="way" k="amenity" v="parking">
			<rule e="way" k="access" v="private">
				<area class="access-private-small-area"/>
			</rule>
			<rule e="way" k="access" v="permissive|public">
				<area class="access-permissive-small-area"/>
			</rule>
			<rule e="way" k="access" v="destination">
				<area class="access-destination-small-area"/>
			</rule>
			<rule e="way" k="access" v="no">
				<area class="access-no-small-area"/>
			</rule>
		</rule>

		<!-- house number interpolation lines -->
		<rule e="way" k="addr:interpolation" v="odd">
			<line class="housenumber-interpolation housenumber-interpolation-odd"/>
		</rule>
		<rule e="way" k="addr:interpolation" v="even">
			<line class="housenumber-interpolation housenumber-interpolation-even"/>
		</rule>
		<rule e="way" k="addr:interpolation" v="all">
			<line class="housenumber-interpolation housenumber-interpolation-all"/>
		</rule>

		<!-- Airfields and airports -->
		<rule e="way" k="aeroway" v="runway">
			<line class="aeroway-runway-casing"/>
		</rule>
		<rule e="way" k="aeroway" v="taxiway">
			<line class="aeroway-taxiway-casing"/>
		</rule>

		<!-- Waterways -->
		<rule e="way" k="lock" v="yes|true">
			<line class="waterway-lock-casing" smart-linecap="no" />
			<line class="waterway-lock-core" smart-linecap="no" />
		</rule>
		<rule e="way" k="waterway" v="lock">
			<line class="waterway-lock-casing" smart-linecap="no" />
			<line class="waterway-lock-core" smart-linecap="no" />
		</rule>
		<rule e="way" k="waterway" v="river">
			<line class="waterway-casing waterway-river-casing" width-scale-factor="1" honor-width="yes" minimum-width="2" maximum-width="100"/>
		</rule>
		<rule e="way" k="waterway" v="stream">
			<line class="waterway-casing waterway-stream-casing" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="3"/>
		</rule>
		<rule e="way" k="waterway" v="canal">
			<line class="waterway-casing waterway-canal-casing" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="100"/>
		</rule>
		<rule e="way" k="waterway" v="drain">
			<line class="waterway-casing waterway-drain-casing" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="20"/>
		</rule>
		<rule e="way" k="waterway" v="ditch">
			<line class="waterway-casing waterway-ditch-casing" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="10"/>
		</rule>
		<rule e="way" k="tunnel" v="yes">
			<rule e="way" k="waterway" v="river">
				<line class="waterway-core waterway-river-tunnel-core" width-scale-factor="1" honor-width="yes"	minimum-width="2" maximum-width="100"/>
			</rule>
			<rule e="way" k="waterway" v="stream">
				<line class="waterway-core waterway-stream-tunnel-core" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="3"/>
			</rule>
			<rule e="way" k="waterway" v="canal">
				<line class="waterway-core waterway-canal-tunnel-core" width-scale-factor="1" honor-width="yes"	minimum-width="0.1" maximum-width="100"/>
			</rule>
			<rule e="way" k="waterway" v="drain">
				<line class="waterway-core waterway-drain-tunnel-core" width-scale-factor="1" honor-width="yes"	minimum-width="0.1" maximum-width="20"/>
			</rule>
			<rule e="way" k="waterway" v="ditch">
				<line class="waterway-core waterway-ditch-tunnel-core" width-scale-factor="1" honor-width="yes"	minimum-width="0.1" maximum-width="10"/>
			</rule>
		</rule>
		<else>
			<rule e="way" k="waterway" v="river">
				<line class="waterway-core waterway-river-core" width-scale-factor="1" honor-width="yes" minimum-width="2" maximum-width="100"/>
			</rule>
			<rule e="way" k="waterway" v="stream">
				<line class="waterway-core waterway-stream-core" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="3"/>
			</rule>
			<rule e="way" k="waterway" v="canal">
				<line class="waterway-core waterway-canal-core" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="100"/>
			</rule>
			<rule e="way" k="waterway" v="drain">
				<line class="waterway-core waterway-drain-core" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="20"/>
			</rule>
			<rule e="way" k="waterway" v="ditch">
				<line class="waterway-core waterway-ditch-core" width-scale-factor="1" honor-width="yes" minimum-width="0.1" maximum-width="10"/>
			</rule>
		</else>
		<rule e="way" k="waterway" v="dock">
			<area class="natural-water"/>
		</rule>
		<rule e="way" k="natural" v="water|pond|lake">
			<area class="natural-water"/>
		</rule>
		<rule e="way" k="natural" v="marsh">
			<area class="natural-water-marsh"/>
		</rule>
		<rule e="way" k="landuse" v="reservoir">
			<area class="natural-water"/>
		</rule>
		<rule e="way" k="landuse" v="basin">
			<area class="natural-water"/>
		</rule>
		<rule e="way" k="waterway" v="riverbank">
			<area class="waterway-riverbank"/>
		</rule>
		<rule e="node" k="lock" v="yes|true">
			<wayMarker k="waterway" class="canal-lock"/>
		</rule>
		<rule e="node" s="way" k="lock" v="yes|true">
			<wayMarker k="waterway" class="canal-lock"/>
		</rule>
		<rule e="node" k="waterway" v="lock">
			<wayMarker k="waterway" class="canal-lock"/>
		</rule>
		<rule e="node" s="way" k="waterway" v="lock">
			<wayMarker k="waterway" class="canal-lock"/>
		</rule>

		<rule e="way" k="highway" v="*">
			<rule e="way" k="highway" v="motorway|motorway_link|footway|steps|pedestrian|cycleway|bridleway|track|byway|path|cycleroad|living_street|construction|planned|proposed|disused|abandoned|dismantled">
			</rule>
			<else>
				<rule e="way" k="motorroad" v="yes">
				</rule>
				<else>
					<rule e="way" k="bicycle" v="no">
						<line class="highway-nobicycle-1" smart-linecap="no" />
						<line class="highway-nobicycle-2" smart-linecap="no" />
					</rule>
				</else>
			</else>
		</rule>

		<!-- embankments & cutings -->
		<rule e="way" k="man_made" v="dyke|dike|levee|embankment">
			<rule e="way" k="highway" v="*">
				<rule e="way" k="cycleway" v="yes|track|lane">
					<line class="dyke embankment-wide-long-casing"   smart-linecap="no" />
					<line class="dyke embankment-wide-short-casing"  smart-linecap="no" />
					<line class="dyke embankment-wide-middle-casing" smart-linecap="no" />
					<line class="dyke embankment-wide-core"          smart-linecap="no" />
				</rule>
				<else>
					<rule e="way" k="motorroad" v="yes">
						<line class="dyke embankment-wide-long-casing"   smart-linecap="no" />
						<line class="dyke embankment-wide-short-casing"  smart-linecap="no" />
						<line class="dyke embankment-wide-middle-casing" smart-linecap="no" />
						<line class="dyke embankment-wide-core"          smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="highway" v="motorway|trunk">
							<line class="dyke embankment-wide-long-casing"   smart-linecap="no" />
							<line class="dyke embankment-wide-short-casing"  smart-linecap="no" />
							<line class="dyke embankment-wide-middle-casing" smart-linecap="no" />
							<line class="dyke embankment-wide-core"          smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="highway" v="path|footway|cycleway|bridleway|service|track|steps">
								<line class="dyke embankment-small-long-casing"   smart-linecap="no" />
								<line class="dyke embankment-small-short-casing"  smart-linecap="no" />
								<line class="dyke embankment-small-middle-casing" smart-linecap="no" />
								<line class="dyke embankment-small-core"          smart-linecap="no" />
							</rule>
							<else>
								<line class="dyke embankment-long-casing"   smart-linecap="no" />
								<line class="dyke embankment-short-casing"  smart-linecap="no" />
								<line class="dyke embankment-middle-casing" smart-linecap="no" />
								<line class="dyke embankment-core"          smart-linecap="no" />
							</else>
						</else>
					</else>
				</else>
			</rule>
			<else>
				<line class="dyke embankment-small-long-casing"   smart-linecap="no" />
				<line class="dyke embankment-small-short-casing"  smart-linecap="no" />
				<line class="dyke embankment-small-middle-casing" smart-linecap="no" />
				<line class="dyke embankment-small-core"          smart-linecap="no" />
			</else>
		</rule>
		<else>
			<rule e="way" k="embankment" v="yes|true">
				<rule e="way" k="highway" v="*">
					<rule e="way" k="cycleway" v="yes|track|lane">
						<line class="embankment-cutting embankment-wide-long-casing"   smart-linecap="no" />
						<line class="embankment-cutting embankment-wide-short-casing"  smart-linecap="no" />
						<line class="embankment-cutting embankment-wide-middle-casing" smart-linecap="no" />
						<line class="embankment-cutting embankment-wide-core"          smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="embankment-cutting embankment-wide-long-casing"   smart-linecap="no" />
							<line class="embankment-cutting embankment-wide-short-casing"  smart-linecap="no" />
							<line class="embankment-cutting embankment-wide-middle-casing" smart-linecap="no" />
							<line class="embankment-cutting embankment-wide-core"          smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="highway" v="motorway|trunk">
								<line class="embankment-cutting embankment-wide-long-casing"   smart-linecap="no" />
								<line class="embankment-cutting embankment-wide-short-casing"  smart-linecap="no" />
								<line class="embankment-cutting embankment-wide-middle-casing" smart-linecap="no" />
								<line class="embankment-cutting embankment-wide-core"          smart-linecap="no" />
							</rule>
							<else>
								<rule e="way" k="highway" v="path|footway|cycleway|bridleway|service|track|steps">
									<line class="embankment-cutting embankment-small-long-casing"   smart-linecap="no" />
									<line class="embankment-cutting embankment-small-short-casing"  smart-linecap="no" />
									<line class="embankment-cutting embankment-small-middle-casing" smart-linecap="no" />
									<line class="embankment-cutting embankment-small-core"          smart-linecap="no" />
								</rule>
								<else>
									<line class="embankment-cutting embankment-long-casing"   smart-linecap="no" />
									<line class="embankment-cutting embankment-short-casing"  smart-linecap="no" />
									<line class="embankment-cutting embankment-middle-casing" smart-linecap="no" />
									<line class="embankment-cutting embankment-core"          smart-linecap="no" />
								</else>
							</else>
						</else>
					</else>
				</rule>
				<else>
					<line class="embankment-cutting embankment-small-long-casing"   smart-linecap="no" />
					<line class="embankment-cutting embankment-small-short-casing"  smart-linecap="no" />
					<line class="embankment-cutting embankment-small-middle-casing" smart-linecap="no" />
					<line class="embankment-cutting embankment-small-core"          smart-linecap="no" />
				</else>
			</rule>
		</else>

		<rule e="way" k="cutting" v="yes|true">
			<rule e="way" k="highway" v="*">
				<rule e="way" k="cycleway" v="yes|track|lane">
					<line class="embankment-cutting cutting-wide-casing"           smart-linecap="no" />
					<line class="embankment-cutting cutting-wide-long-core"        smart-linecap="no" />
					<line class="embankment-cutting cutting-wide-short-core"       smart-linecap="no" />
					<line class="embankment-cutting cutting-wide-middle-core"      smart-linecap="no" />
				</rule>
				<else>
					<rule e="way" k="motorroad" v="yes">
						<line class="embankment-cutting cutting-wide-casing"           smart-linecap="no" />
						<line class="embankment-cutting cutting-wide-long-core"        smart-linecap="no" />
						<line class="embankment-cutting cutting-wide-short-core"       smart-linecap="no" />
						<line class="embankment-cutting cutting-wide-middle-core"      smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="highway" v="motorway|trunk">
							<line class="embankment-cutting cutting-wide-casing"           smart-linecap="no" />
							<line class="embankment-cutting cutting-wide-long-core"        smart-linecap="no" />
							<line class="embankment-cutting cutting-wide-short-core"       smart-linecap="no" />
							<line class="embankment-cutting cutting-wide-middle-core"      smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="highway" v="path|footway|cycleway|bridleway|service|track|steps">
								<line class="embankment-cutting cutting-small-casing"           smart-linecap="no" />
								<line class="embankment-cutting cutting-small-long-core"        smart-linecap="no" />
								<line class="embankment-cutting cutting-small-short-core"       smart-linecap="no" />
								<line class="embankment-cutting cutting-small-middle-core"      smart-linecap="no" />
							</rule>
							<else>
								<line class="embankment-cutting cutting-casing"           smart-linecap="no" />
								<line class="embankment-cutting cutting-long-core"        smart-linecap="no" />
								<line class="embankment-cutting cutting-short-core"       smart-linecap="no" />
								<line class="embankment-cutting cutting-middle-core"      smart-linecap="no" />
							</else>
						</else>
					</else>
				</else>
			</rule>
			<else>
				<line class="embankment-cutting cutting-small-casing"           smart-linecap="no" />
				<line class="embankment-cutting cutting-small-long-core"        smart-linecap="no" />
				<line class="embankment-cutting cutting-small-short-core"       smart-linecap="no" />
				<line class="embankment-cutting cutting-small-middle-core"      smart-linecap="no" />
			</else>
		</rule>

		<!-- Bridge casings -->
		<rule e="way" k="bridge" v="yes|true">
			<rule e="way" k="railway" v="rail|narrow_gauge|preserved|light_rail|tram|subway|incline|funicular|monorail|spur|yard|siding">
				<rule e="way" k="disused|abandoned|dismantled|construction|planned|proposed" v="yes|true">
					<line class="bridge-casing railway-bridge-casing railway-pla-casing-color" smart-linecap="no" suppress-markers-tag="bridge"/>
				</rule>
				<else>
					<line class="bridge-casing railway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
				</else>
			</rule>
			<rule e="way" k="railway" v="disused|abandoned|dismantled|construction|planned|proposed">
				<line class="bridge-casing railway-bridge-casing railway-pla-casing-color" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>

			<rule e="way" k="highway" v="motorway">
				<line class="bridge-casing highway-motorway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="trunk">
				<line class="bridge-casing highway-trunk-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="primary">
				<line class="bridge-casing highway-primary-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="motorway_link">
				<line class="bridge-casing highway-motorway-link-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="trunk_link">
				<line class="bridge-casing highway-trunk-link-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="primary_link">
				<line class="bridge-casing highway-primary-link-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="secondary">
				<line class="bridge-casing highway-secondary-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="secondary_link">
				<line class="bridge-casing highway-secondary-link-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="tertiary">
				<line class="bridge-casing highway-tertiary-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="tertiary_link">
				<line class="bridge-casing highway-tertiary-link-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="unclassified|minor|road">
				<line class="bridge-casing highway-unclassified-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="residential|living_street|cycleroad">
				<line class="bridge-casing highway-residential-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="service">
				<rule e="way" k="service" v="parking_aisle|driveway|driveway">
					<line class="bridge-casing highway-aisle-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
				</rule>
				<else>
					<line class="bridge-casing highway-service-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="unsurfaced">
				<line class="bridge-casing highway-unsurfaced-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="track">
				<line class="bridge-casing highway-track-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="byway">
				<line class="bridge-casing highway-byway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="bridleway">
				<line class="bridge-casing highway-bridleway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="cycleway">
				<line class="bridge-casing highway-cycleway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="bridge-casing highway-cycleway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="bridge-casing highway-bridleway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
					</rule>
					<else>
						<line class="bridge-casing highway-footway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
					</else>
				</else>
			</rule>
			<rule e="way" k="highway" v="pedestrian">
				<line class="bridge-casing highway-pedestrian-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="footway|footpath">
				<line class="bridge-casing highway-footway-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
			<rule e="way" k="highway" v="steps">
				<line class="bridge-casing highway-steps-bridge-casing" smart-linecap="no" suppress-markers-tag="bridge"/>
			</rule>
		</rule>

		<!-- Bridge cores -->
		<rule e="way" k="bridge" v="yes|true">
			<rule e="way" k="railway" v="*">
				<line class="bridge-core railway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="motorway">
				<line class="bridge-core highway-motorway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="trunk">
				<line class="bridge-core highway-trunk-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="primary">
				<line class="bridge-core highway-primary-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="motorway_link">
				<line class="bridge-core highway-motorway-link-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="trunk_link">
				<line class="bridge-core highway-trunk-link-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="primary_link">
				<line class="bridge-core highway-primary-link-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="secondary_link">
				<line class="bridge-core highway-secondary-link-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="secondary">
				<line class="bridge-core highway-secondary-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="tertiary_link">
				<line class="bridge-core highway-tertiary-link-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="tertiary">
				<line class="bridge-core highway-tertiary-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="unclassified|minor|road">
				<line class="bridge-core highway-unclassified-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="residential|living_street|cycleroad">
				<line class="bridge-core highway-residential-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="service">
				<rule e="way" k="service" v="parking_aisle|driveway|driveway">
					<line class="bridge-core highway-aisle-bridge-core" smart-linecap="no"/>
				</rule>
				<else>
					<line class="bridge-core highway-service-bridge-core" smart-linecap="no"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="unsurfaced">
				<line class="bridge-core highway-unsurfaced-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="track">
				<line class="bridge-core highway-track-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="byway">
				<line class="bridge-core highway-byway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="bridleway">
				<line class="bridge-core highway-bridleway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="cycleway">
				<line class="bridge-core highway-cycleway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="bridge-core highway-cycleway-bridge-core" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="bridge-core highway-bridleway-bridge-core" smart-linecap="no"/>
					</rule>
					<else>
						<line class="bridge-core highway-footway-bridge-core" smart-linecap="no"/>
					</else></else>
			</rule>
			<rule e="way" k="highway" v="pedestrian">
				<line class="bridge-core highway-pedestrian-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="footway|footpath">
				<line class="bridge-core highway-footway-bridge-core" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="steps">
				<line class="bridge-core highway-steps-bridge-core" smart-linecap="no"/>
			</rule>
		</rule>

		<!-- Highway area casings -->
		<rule e="way" k="area" v="yes|true">
			<rule e="way" k="highway" v="track">
				<area class="highway-casing highway-track-area-back-casing" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="footway|footpath">
				<area class="highway-casing highway-footway-casing highway-footway-area-casing no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="pedestrian">
				<area class="highway-casing highway-pedestrian-casing highway-pedestrian-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="cycleway">
				<area class="highway-casing highway-cycleway-casing highway-cycleway-area-casing no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<area class="highway-casing highway-cycleway-casing highway-cycleway-area-casing no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<area class="highway-casing highway-bridleway-casing highway-bridleway-area-casing no-bezier" smart-linecap="no"/>
					</rule>
					<else>
						<area class="highway-casing highway-footway-casing highway-footway-area-casing no-bezier" smart-linecap="no"/>
					</else></else>
			</rule>
			<rule e="way" k="highway" v="bridleway">
				<area class="highway-casing highway-bridleway-casing highway-bridleway-area-casing no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="byway">
				<area class="highway-casing highway-byway-1-casing highway-byway-1-area-casing no-bezier" smart-linecap="no"/>
				<area class="highway-casing highway-byway-2-casing highway-byway-2-area-casing no-bezier" smart-linecap="no"/>
				<area class="highway-casing highway-byway-3-casing highway-byway-3-area-casing no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="track">
				<rule e="way" k="tracktype" v="grade1">
					<area class="highway-casing highway-track-casing highway-track-grade1-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="tracktype" v="grade2">
						<area class="highway-casing highway-track-casing highway-track-grade2-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="tracktype" v="grade3">
							<area class="highway-casing highway-track-casing highway-track-grade3-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="tracktype" v="grade4">
								<area class="highway-casing highway-track-casing highway-track-grade4-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
							</rule>
							<else>
								<rule e="way" k="tracktype" v="grade5">
									<area class="highway-casing highway-track-casing highway-track-grade5-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
								</rule>
								<else>
									<area class="highway-casing highway-track-casing highway-track-gradex-casing highway-track-area-casing no-bezier" smart-linecap="no"/>
								</else>
							</else>
						</else>
					</else>
				</else>
			</rule>
			<rule e="way" k="highway" v="unsurfaced">
				<area class="highway-casing highway-unsurfaced-casing highway-unsurfaced-area-casing no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="service">
				<rule e="way" k="service" v="parking_aisle|driveway">
					<area class="highway-casing highway-aisle-casing highway-aisle-area-casing no-bezier"/>
				</rule>
				<else>
					<area class="highway-casing highway-service-casing highway-service-area-casing no-bezier"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="unclassified|minor|road">
				<area class="highway-casing highway-unclassified-casing highway-unclassified-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="residential">
				<area class="highway-casing highway-residential-casing highway-residential-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="living_street">
				<area class="highway-casing highway-livingstreet-casing highway-livingstreet-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="cycleroad">
				<rule e="way" k="motorcar|motor_vehicle" v="yes|destination|private">
					<area class="highway-casing highway-cycleroad-casing highway-cycleroad-area-casing no-bezier"/>
				</rule>
				<else>
					<area class="highway-casing highway-cycleroad-casing highway-cycleroad-area-casing no-bezier"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="tertiary_link">
				<area class="highway-casing highway-tertiary-link-casing highway-tertiary-link-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="tertiary">
				<area class="highway-casing highway-tertiary-casing highway-tertiary-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="secondary_link">
				<area class="highway-casing highway-secondary-link-casing highway-secondary-link-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="secondary">
				<area class="highway-casing highway-secondary-casing highway-secondary-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="primary_link">
				<area class="highway-casing highway-primary-link-casing highway-primary-link-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="trunk_link">
				<area class="highway-casing highway-trunk-link-casing highway-trunk-link-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="motorway_link">
				<area class="highway-casing highway-motorway-link-casing highway-motorway-link-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="primary">
				<area class="highway-casing highway-primary-casing highway-primary-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="trunk">
				<area class="highway-casing highway-trunk-casing highway-trunk-area-casing no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="motorway">
				<area class="highway-casing highway-motorway-casing highway-motorway-area-casing no-bezier"/>
			</rule>
		</rule>

		<!-- Linear casings -->
		<rule e="way" k="tunnel" v="~|no|false">
			<rule e="way" k="area" v="~|no|false">
				<rule e="way" k="highway" v="track">
					<line class="highway-casing highway-track-back-casing" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="raceway">
					<rule e="way" k="use_status" v="~">
						<line class="highway-raceway-casing"/>
					</rule>
					<rule e="way" k="use_status" v="disused">
						<line class="highway-raceway-casing-disused"/>
					</rule>
					<rule e="way" k="use_status" v="dismantled">
						<line class="highway-raceway-casing-dismantled"/>
					</rule>
				</rule>
				<rule e="way" k="highway" v="steps">
					<line class="highway-casing highway-steps-casing"/>
				</rule>
				<rule e="way" k="highway" v="footway|footpath">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-footway-cy1-casing" smart-linecap="no"/>
					</rule>
					<else>
						<line class="highway-casing highway-footway-casing" smart-linecap="no"/>
					</else>
				</rule>
				<rule e="way" k="highway" v="pedestrian">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-pedestrian-cy1-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-pedestrian-casing"/>
					</else>
				</rule>
				<rule e="way" k="highway" v="cycleway">
					<line class="highway-casing highway-cycleway-casing" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="path">
					<rule e="way" k="bicycle" v="yes|designated">
						<line class="highway-casing highway-cycleway-casing" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="horse" v="yes|designated">
							<line class="highway-casing highway-bridleway-casing" smart-linecap="no"/>
						</rule>
						<else>
							<line class="highway-casing highway-footway-casing" smart-linecap="no"/>
						</else>
					</else>
				</rule>
				<rule e="way" k="highway" v="bridleway">
					<line class="highway-casing highway-bridleway-casing" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="byway">
					<line class="highway-casing highway-byway-1-casing" smart-linecap="no"/>
					<line class="highway-casing highway-byway-2-casing" smart-linecap="no"/>
					<line class="highway-casing highway-byway-3-casing" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="track">
					<rule e="way" k="tracktype" v="grade1">
						<line class="highway-casing highway-track-casing highway-track-grade1-casing" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="tracktype" v="grade2">
							<line class="highway-casing highway-track-casing highway-track-grade2-casing" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="tracktype" v="grade3">
								<line class="highway-casing highway-track-casing highway-track-grade3-casing" smart-linecap="no"/>
							</rule>
							<else>
								<rule e="way" k="tracktype" v="grade4">
									<line class="highway-casing highway-track-casing highway-track-grade4-casing" smart-linecap="no"/>
								</rule>
								<else>
									<rule e="way" k="tracktype" v="grade5">
										<line class="highway-casing highway-track-casing highway-track-grade5-casing" smart-linecap="no"/>
									</rule>
									<else>
										<rule e="way" k="track" v="racetrack">
											<line class="highway-racetrack-casing-white" smart-linecap="no"/>
											<line class="highway-racetrack-casing-red" smart-linecap="no"/>
										</rule>
										<else>
											<line class="highway-casing highway-track-casing highway-track-gradex-casing" smart-linecap="no"/>
										</else>
									</else>
								</else>
							</else>
						</else>
					</else>
				</rule>
				<rule e="way" k="highway" v="unsurfaced">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-unsurfaced-cy1-casing" smart-linecap="no"/>
					</rule>
					<else>
						<line class="highway-casing highway-unsurfaced-casing" smart-linecap="no"/>
					</else>
				</rule>
				<rule e="way" k="highway" v="service">
					<rule e="way" k="service" v="parking_aisle|driveway">
						<line class="highway-casing highway-aisle-casing"/>
					</rule>
					<else>
						<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
							<line class="highway-casing highway-service-cy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-service-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="unclassified|minor|road|ford">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-unclassified-cy1-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-unclassified-casing"/>
					</else>
				</rule>

				<rule e="way" k="highway" v="residential">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-residential-cy1-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-residential-casing"/>
					</else>
				</rule>

				<rule e="way" k="highway" v="living_street">
					<line class="highway-casing highway-livingstreet-casing"/>
				</rule>

				<rule e="way" k="highway" v="cycleroad">
					<rule e="way" k="motorcar|motor_vehicle" v="yes|destination|private">
						<line class="highway-casing highway-cycleroad-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-cycleroad-casing"/>
					</else>
				</rule>

				<rule e="way" k="highway" v="tertiary_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-tertiary-link-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-tertiary-link-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="tertiary">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-tertiary-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-tertiary-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="secondary_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-secondary-link-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-secondary-link-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-secondary-link-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-secondary-link-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="secondary">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-secondary-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-secondary-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-secondary-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-secondary-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="primary_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-primary-link-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-primary-link-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-primary-link-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-primary-link-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="primary">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-primary-mrcy1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-primary-cy1-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-primary-mr1-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-primary-casing"/>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="trunk_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-link-mrcy1-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-link-mrcy1-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-link-cy1-casing"/>
							</else>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-link-mr1-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-link-mr1-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-link-casing"/>
							</else>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="trunk">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mrcy1-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mrcy1-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-cy1-casing"/>
							</else>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mr1-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mr1-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-casing"/>
							</else>
						</else>
					</else>
				</rule>

				<rule e="way" k="highway" v="motorway_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-motorway-link-cy1-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-motorway-link-casing"/>
					</else>
				</rule>

				<rule e="way" k="highway" v="motorway">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-motorway-cy1-casing"/>
					</rule>
					<else>
						<line class="highway-casing highway-motorway-casing"/>
					</else>
				</rule>

				<rule e="way" k="highway" v="footway|footpath">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-footway-cy2-casing" smart-linecap="no"/>
					</rule>
				</rule>
				<rule e="way" k="highway" v="pedestrian">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-pedestrian-cy2-casing"/>
					</rule>
				</rule>
				<rule e="way" k="highway" v="unsurfaced">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-unsurfaced-cy2-casing" smart-linecap="no"/>
					</rule>
				</rule>
				<rule e="way" k="highway" v="service">
					<rule e="way" k="service" v="parking_aisle|driveway">
						<line class="highway-casing highway-aisle-casing"/>
					</rule>
					<else>
						<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
							<line class="highway-casing highway-service-cy2-casing"/>
						</rule>
					</else>
				</rule>
				<rule e="way" k="highway" v="unclassified|minor|road|ford">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-unclassified-cy2-casing"/>
					</rule>
				</rule>

				<rule e="way" k="highway" v="residential">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-residential-cy2-casing"/>
					</rule>
				</rule>

				<rule e="way" k="highway" v="tertiary_link|tertiary|secondary_link|secondary|primary_link|primary">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mrcy2-casing"/>
						</rule>
						<else>
							<line class="highway-casing highway-tertiary-link-cy2-casing"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mr2-casing"/>
						</rule>
					</else>
				</rule>
				<rule e="way" k="highway" v="trunk_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-link-mrcy2-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-link-mrcy2-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-link-cy2-casing"/>
							</else>
						</else>
					</rule>
				</rule>
				<rule e="way" k="highway" v="trunk">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mrcy2-casing"/>
							<line class="highway-casing highway-trunk-mrcy3-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mrcy2-casing"/>
								<line class="highway-casing highway-trunk-mrcy4-casing"/>
							</rule>
							<else>
								<line class="highway-casing highway-trunk-cy2-casing"/>
							</else>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mr2-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mr3-casing"/>
							</rule>
						</else>
					</else>
				</rule>
				<rule e="way" k="highway" v="motorway_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-motorway-link-cy2-casing"/>
					</rule>
				</rule>

				<rule e="way" k="highway" v="motorway">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<line class="highway-casing highway-motorway-cy2-casing"/>
					</rule>
				</rule>

				<rule e="way" k="highway" v="tertiary_link|tertiary|secondary_link|secondary|primary_link|primary">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mrcy3-casing"/>
						</rule>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-tertiary-link-mr2-casing"/>
						</rule>
					</else>
				</rule>
				<rule e="way" k="highway" v="trunk_link">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-link-mrcy3-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-link-mrcy4-casing"/>
							</rule>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-link-mr2-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-link-mr3-casing"/>
							</rule>
						</else>
					</else>
				</rule>
				<rule e="way" k="highway" v="trunk">
					<rule e="way" k="cycleway" v="track|lane|opposite_track|opposite_lane|yes">
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mrcy3-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mrcy4-casing"/>
							</rule>
						</else>
					</rule>
					<else>
						<rule e="way" k="motorroad" v="yes">
							<line class="highway-casing highway-trunk-mr2-casing"/>
						</rule>
						<else>
							<rule e="way" k="motorroad" v="no">
								<line class="highway-casing highway-trunk-mr3-casing"/>
							</rule>
						</else>
					</else>
				</rule>
				<rule e="way" k="railway" v="*">
					<rule e="way" k="construction" v="*">
						<line class="railway-con-casing railway-con-casing-color railway-casing" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="planned|proposed" v="*">
							<line class="railway-pla-casing railway-pla-casing-color railway-casing" smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="disused" v="*">
								<line class="railway-dis-casing railway-dis-casing-color railway-casing" smart-linecap="no" />
							</rule>
							<else>
								<rule e="way" k="abandoned|dismantled" v="*">
									<line class="railway-aba-casing railway-aba-casing-color railway-casing" smart-linecap="no" />
								</rule>
								<else>
									<rule e="way" k="railway" v="construction">
										<line class="railway-con-casing railway-con-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="planned|proposed">
										<line class="railway-pla-casing railway-pla-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="disused">
										<line class="railway-dis-casing railway-dis-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="abandoned|dismantled">
										<line class="railway-aba-casing railway-aba-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="rail">
										<line class="railway-rail-casing railway-rail-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="narrow_gauge">
										<line class="railway-narrow-casing railway-narrow-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="preserved">
										<line class="railway-preserved-casing railway-preserved-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="light_rail">
										<line class="railway-light-casing railway-light-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="tram">
										<line class="railway-tram-casing railway-tram-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="subway">
										<line class="railway-subway-casing railway-subway-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="incline|funicular">
										<line class="railway-funicular-casing railway-funicular-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="monorail">
										<line class="railway-monorail-casing railway-monorail-casing-color railway-casing" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="spur|yard|siding">
										<line class="railway-yard-casing railway-yard-casing-color railway-casing" smart-linecap="no" />
									</rule>
								</else>
							</else>
						</else>
					</else>
				</rule>

			</rule>
		</rule>

		<!-- Turning circles -->
		<rule e="node" k="highway" v="turning_circle">
			<rule e="node" s="way" k="highway" v="unclassified|residential|minor|road">
				<circle r="1.5" class="highway-unclassified-turningcircle"/>
			</rule>
		</rule>

		<!-- platforms casings -->
		<rule e="way" k="highway|railway|public_transport" v="platform" closed="yes">
			<line class="highway-platform-area-casing" />
		</rule>
		<rule e="way" k="highway|railway|public_transport" v="platform" closed="no">
			<line class="highway-platform-way-casing" />
		</rule>

		<!-- Highway area cores -->
		<rule e="way" k="area" v="yes|true">
			<rule e="way" k="highway" v="footway|footpath">
				<area class="highway-core highway-footway-area no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="pedestrian">
				<area class="highway-core highway-pedestrian-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="cycleway">
				<area class="highway-core highway-cycleway-area no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<area class="highway-core highway-cycleway-area no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<area class="highway-core highway-bridleway-area no-bezier" smart-linecap="no"/>
					</rule>
					<else>
						<area class="highway-core highway-path-area no-bezier" smart-linecap="no"/>
					</else></else>
			</rule>
			<rule e="way" k="highway" v="bridleway">
				<area class="highway-core highway-bridleway-area no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="byway">
				<area class="highway-core highway-byway-area no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="track">
				<rule e="way" k="tracktype" v="grade1">
					<area class="highway-core highway-track-grade1-area no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="tracktype" v="grade2">
						<area class="highway-core highway-track-grade2-area no-bezier" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="tracktype" v="grade3">
							<area class="highway-core highway-track-grade3-area no-bezier" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="tracktype" v="grade4">
								<area class="highway-core highway-track-grade4-area no-bezier" smart-linecap="no"/>
							</rule>
							<else>
								<rule e="way" k="tracktype" v="grade5">
									<area class="highway-core highway-track-grade5-area no-bezier" smart-linecap="no"/>
								</rule>
								<else>
									<area class="highway-core highway-track-gradex-area no-bezier" smart-linecap="no"/>
								</else>
							</else>
						</else>
					</else>
				</else>
			</rule>
			<rule e="way" k="highway" v="unsurfaced">
				<area class="highway-core highway-unsurfaced-area no-bezier" smart-linecap="no"/>
			</rule>
			<rule e="way" k="highway" v="service">
				<rule e="way" k="service" v="parking_aisle|driveway">
					<area class="highway-core highway-aisle-area no-bezier"/>
				</rule>
				<else>
					<area class="highway-core highway-service-area no-bezier"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="unclassified|minor">
				<area class="highway-core highway-unclassified-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="residential">
				<area class="highway-core highway-residential-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="road">
				<area class="highway-core highway-road-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="living_street">
				<area class="highway-core highway-livingstreet-area-1 no-bezier"/>
				<area class="highway-core highway-livingstreet-area-2 no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="cycleroad">
				<rule e="way" k="motorcar|motor_vehicle" v="yes|destination|private">
					<area class="highway-core highway-cycleroad-area-1 no-bezier"/>
					<area class="highway-core highway-cycleroad-area-2 no-bezier"/>
				</rule>
				<else>
					<area class="highway-core highway-cycleroad-area-3 no-bezier"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="tertiary_link">
				<area class="highway-core highway-tertiary-link-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="tertiary">
				<area class="highway-core highway-tertiary-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="secondary_link">
				<area class="highway-core highway-secondary-link-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="secondary">
				<area class="highway-core highway-secondary-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="primary_link">
				<area class="highway-core highway-primary-link-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="trunk_link">
				<area class="highway-core highway-trunk-link-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="motorway_link">
				<area class="highway-core highway-motorway-link-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="primary">
				<area class="highway-core highway-primary-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="trunk">
				<area class="highway-core highway-trunk-area no-bezier"/>
			</rule>
			<rule e="way" k="highway" v="motorway">
				<area class="highway-core highway-motorway-area no-bezier"/>
			</rule>
		</rule>

		<!-- Buildings -->
		<rule e="way" k="aeroway" v="terminal">
			<area class="building-block"/>
		</rule>
		<rule e="way" k="building" v="*">
			<area class="building-block no-bezier"/>
		</rule>
		<rule e="node" k="building" v="*">
			<symbol ref="building" position="center"/>
		</rule>

		<!-- Linear cores -->
		<rule e="way" k="tunnel" v="~|false|no">
			<rule e="way" k="area" v="~|false|no">
				<rule e="way" k="highway" v="ford">
					<line class="highway-core highway-ford-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="raceway">
					<rule e="way" k="use_status" v="~">
						<line class="highway-raceway-core"/>
					</rule>
					<rule e="way" k="use_status" v="disused">
						<line class="highway-raceway-core-disused"/>
					</rule>
					<rule e="way" k="use_status" v="dismantled">
						<line class="highway-raceway-core-dismantled"/>
					</rule>
				</rule>
				<rule e="way" k="scramble" v="*">
					<line class="highway-core highway-scramble-core"/>
				</rule>
				<rule e="way" k="highway" v="path">
					<rule e="way" k="bicycle" v="yes|designated">
						<line class="highway-core highway-cycleway-core" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="horse" v="yes|designated">
							<line class="highway-core highway-bridleway-core" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="foot" v="yes|designated">
								<line class="highway-core highway-footway-core" smart-linecap="no"/>
							</rule>
							<else>
								<line class="highway-core highway-path-core" smart-linecap="no"/>
							</else></else></else>
				</rule>
				<rule e="way" k="highway" v="footway|footpath">
					<line class="highway-core highway-footway-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="steps">
					<line class="highway-core highway-steps-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="cycleway">
					<line class="highway-core highway-cycleway-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="bridleway">
					<line class="highway-core highway-bridleway-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="pedestrian">
					<line class="highway-core highway-pedestrian-core"/>
				</rule>
				<rule e="way" k="highway" v="byway">
					<line class="highway-core highway-byway-2-casing" smart-linecap="no"/>
					<line class="highway-core highway-byway-3-casing" smart-linecap="no"/>
					<line class="highway-core highway-byway-1-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="track">
					<rule e="way" k="track" v="racetrack">
						<line class="highway-racetrack-core" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="tracktype" v="grade1">
							<line class="highway-core highway-track-core2 highway-track-grade1-core" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="tracktype" v="grade2">
								<line class="highway-core highway-track-core2 highway-track-grade2-core" smart-linecap="no"/>
							</rule>
							<else>
								<rule e="way" k="tracktype" v="grade3">
									<line class="highway-core highway-track-core highway-track-grade3-core" smart-linecap="no"/>
								</rule>
								<else>
									<rule e="way" k="tracktype" v="grade4">
										<line class="highway-core highway-track-core highway-track-grade4-core" smart-linecap="no"/>
									</rule>
									<else>
										<rule e="way" k="tracktype" v="grade5">
											<line class="highway-core highway-track-core  highway-track-grade5-core" smart-linecap="no"/>
										</rule>
										<else>
											<line class="highway-core highway-track-core2 highway-track-gradex-core" smart-linecap="no"/>
										</else>
									</else>
								</else>
							</else>
						</else>
					</else>
				</rule>
				<rule e="way" k="highway" v="unsurfaced">
					<line class="highway-core highway-unsurfaced-core" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="service">
					<rule e="way" k="service" v="parking_aisle|driveway">
						<line class="highway-core highway-aisle-core"/>
					</rule>
					<else>
						<line class="highway-core highway-service-core"/>
					</else>
				</rule>
				<rule e="way" k="highway" v="unclassified|minor">
					<line class="highway-core highway-unclassified-core"/>
				</rule>
				<rule e="way" k="highway" v="residential">
					<line class="highway-core highway-residential-core"/>
				</rule>
				<rule e="way" k="highway" v="road">
					<line class="highway-core highway-road-core"/>
				</rule>
				<rule e="way" k="highway" v="living_street">
					<line class="highway-core highway-livingstreet-core-1" smart-linecap="no"/>
					<line class="highway-core highway-livingstreet-core-2" smart-linecap="no"/>
				</rule>
				<rule e="way" k="highway" v="cycleroad">
					<rule e="way" k="motorcar|motor_vehicle" v="yes|destination|private">
						<line class="highway-core highway-cycleroad-core-1" smart-linecap="no"/>
						<line class="highway-core highway-cycleroad-core-2" smart-linecap="no"/>
					</rule>
					<else>
						<line class="highway-core highway-cycleroad-core-3"/>
					</else>
				</rule>
				<rule e="way" k="highway" v="tertiary_link">
					<line class="highway-core highway-tertiary-link-core"/>
				</rule>
				<rule e="way" k="highway" v="tertiary">
					<line class="highway-core highway-tertiary-core"/>
				</rule>
				<rule e="way" k="highway" v="secondary_link">
					<line class="highway-core highway-secondary-link-core"/>
				</rule>
				<rule e="way" k="highway" v="secondary">
					<line class="highway-core highway-secondary-core"/>
				</rule>
				<rule e="way" k="highway" v="primary_link">
					<line class="highway-core highway-primary-link-core"/>
				</rule>
				<rule e="way" k="highway" v="trunk_link">
					<line class="highway-core highway-trunk-link-core"/>
				</rule>
				<rule e="way" k="highway" v="motorway_link">
					<line class="highway-core highway-motorway-link-core"/>
				</rule>
				<rule e="way" k="highway" v="primary">
					<line class="highway-core highway-primary-core"/>
				</rule>
				<rule e="way" k="highway" v="trunk">
					<line class="highway-core highway-trunk-core"/>
				</rule>
				<rule e="way" k="highway" v="motorway">
					<line class="highway-core highway-motorway-core"/>
				</rule>

				<rule e="way" k="railway" v="*">
					<rule e="way" k="construction" v="*">
						<line class="railway-con-1-core railway-con-1-core-color railway-1-core" smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="planned|proposed" v="*">
							<line class="railway-pla-1-core railway-pla-1-core-color railway-1-core" smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="disused" v="*">
								<line class="railway-dis-1-core railway-dis-1-core-color railway-1-core" smart-linecap="no" />
							</rule>
							<else>
								<rule e="way" k="abandoned|dismantled" v="*">
									<line class="railway-aba-1-core railway-aba-1-core-color railway-1-core" smart-linecap="no" />
								</rule>
								<else>
									<rule e="way" k="railway" v="construction">
										<line class="railway-con-1-core railway-con-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="planned|proposed">
										<line class="railway-pla-1-core railway-pla-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="disused">
										<line class="railway-dis-1-core railway-dis-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="abandoned|dismantled">
										<line class="railway-aba-1-core railway-aba-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="rail">
										<line class="railway-rail-1-core railway-rail-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="narrow_gauge">
										<line class="railway-narrow-1-core railway-narrow-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="preserved">
										<line class="railway-preserved-1-core railway-preserved-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="light_rail">
										<line class="railway-light-1-core railway-light-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="tram">
										<line class="railway-tram-1-core railway-tram-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="subway">
										<line class="railway-subway-1-core railway-subway-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="incline|funicular">
										<line class="railway-funicular-1-core railway-funicular-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="monorail">
										<line class="railway-monorail-1-core railway-monorail-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="spur|yard|siding">
										<line class="railway-yard-1-core railway-yard-1-core-color railway-1-core" smart-linecap="no" />
									</rule>
								</else>
							</else>
						</else>
					</else>
				</rule>

				<rule e="way" k="railway" v="*">
					<rule e="way" k="construction" v="*">
						<line class="railway-con-2-core railway-con-2-core-color railway-2-core" smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="planned|proposed" v="*">
							<line class="railway-pla-2-core railway-pla-2-core-color railway-2-core" smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="disused" v="*">
								<line class="railway-dis-2-core railway-dis-2-core-color railway-2-core" smart-linecap="no" />
							</rule>
							<else>
								<rule e="way" k="abandoned|dismantled" v="*">
									<line class="railway-aba-2-core railway-aba-2-core-color railway-2-core" smart-linecap="no" />
								</rule>
								<else>
									<rule e="way" k="railway" v="construction">
										<line class="railway-con-2-core railway-con-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="planned|proposed">
										<line class="railway-pla-2-core railway-pla-2-core-color railway-2-core"/>
									</rule>
									<rule e="way" k="railway" v="disused">
										<line class="railway-dis-2-core railway-dis-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="abandoned|dismantled">
										<line class="railway-aba-2-core railway-aba-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="rail">
										<line class="railway-rail-2-core railway-rail-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="narrow_gauge">
										<line class="railway-narrow-2-core railway-narrow-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="preserved">
										<line class="railway-preserved-2-core railway-preserved-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="light_rail">
										<line class="railway-light-2-core railway-light-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="tram">
										<line class="railway-tram-2-core railway-tram-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="subway">
										<line class="railway-subway-2-core railway-subway-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="incline|funicular">
										<line class="railway-funicular-2-core railway-funicular-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="monorail">
										<line class="railway-monorail-2-core railway-monorail-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
									<rule e="way" k="railway" v="spur|yard|siding">
										<line class="railway-yard-2-core railway-yard-2-core-color railway-2-core" smart-linecap="no" />
									</rule>
								</else>
							</else>
						</else>
					</else>
				</rule>

				<rule e="way" k="aeroway" v="runway">
					<line class="aeroway-runway-core"/>
				</rule>
				<rule e="way" k="aeroway" v="taxiway">
					<line class="aeroway-taxiway-core"/>
				</rule>
			</rule>
		</rule>

		<!-- Tunnels -->
		<rule e="way" k="tunnel" v="true|yes">
			<rule e="way" k="highway" v="steps">
				<line class="tunnel-casing highway-steps-casing tunnel" mask-class="tunnel-core highway-steps-core"/>
				<line class="highway-steps-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="footway|footpath">
				<line class="tunnel-casing highway-footway-casing tunnel" mask-class="tunnel-core highway-footway-core"/>
				<line class="highway-footway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="pedestrian">
				<line class="tunnel-casing highway-pedestrian-casing tunnel" mask-class="tunnel-core highway-pedestrian-core"/>
				<line class="highway-pedestrian-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="cycleway">
				<line class="tunnel-casing highway-cycleway-casing tunnel" mask-class="tunnel-core highway-cycleway-core"/>
				<line class="highway-cycleway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="tunnel-casing highway-cycleway-casing tunnel" mask-class="tunnel-core highway-cycleway-core"/>
					<line class="highway-cycleway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="tunnel-casing highway-bridleway-casing tunnel" mask-class="tunnel-core highway-bridleway-core"/>
						<line class="highway-bridleway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
					</rule>
					<else>
						<line class="tunnel-casing highway-footway-casing tunnel" mask-class="tunnel-core highway-footway-core"/>
						<line class="highway-footway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
					</else></else>
			</rule>
			<rule e="way" k="highway" v="bridleway">
				<line class="tunnel-casing highway-bridleway-casing tunnel" mask-class="tunnel-core highway-bridleway-core"/>
				<line class="highway-bridleway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="byway">
				<line class="tunnel-casing highway-byway-1-casing tunnel" mask-class="tunnel-core highway-byway-1-core"/>
				<line class="highway-byway-1-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="track">
				<line class="tunnel-casing highway-track-casing tunnel" mask-class="tunnel-core highway-track-core"/>
				<line class="highway-track-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="unsurfaced">
				<line class="tunnel-casing highway-unsurfaced-casing tunnel" mask-class="tunnel-core highway-unsurfaced-core"/>
				<line class="highway-unsurfaced-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="service">
				<rule e="way" k="service" v="parking_aisle|driveway">
					<line class="tunnel-casing highway-aisle-casing tunnel" mask-class="tunnel-core highway-aisle-core"/>
					<line class="highway-aisle-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
				</rule>
				<else>
					<line class="tunnel-casing highway-service-casing tunnel" mask-class="tunnel-core highway-service-core"/>
					<line class="highway-service-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
				</else>
			</rule>
			<rule e="way" k="highway" v="unclassified|residential|minor|living_street|cycleroad">
				<line class="tunnel-casing highway-unclassified-casing tunnel" mask-class="tunnel-core highway-unclassified-core"/>
				<line class="highway-unclassified-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="road">
				<line class="tunnel-casing highway-unclassified-casing tunnel" mask-class="tunnel-core highway-road-core"/>
				<line class="highway-unclassified-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="tertiary_link">
				<line class="tunnel-casing highway-tertiary-link-casing tunnel" mask-class="tunnel-core highway-tertiary-link-core"/>
				<line class="highway-secondary-link-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="tertiary">
				<line class="tunnel-casing highway-tertiary-casing tunnel" mask-class="tunnel-core highway-tertiary-core"/>
				<line class="highway-tertiary-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="secondary_link">
				<line class="tunnel-casing highway-secondary-link-casing tunnel" mask-class="tunnel-core highway-secondary-link-core"/>
				<line class="highway-secondary-link-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="secondary">
				<line class="tunnel-casing highway-secondary-casing tunnel" mask-class="tunnel-core highway-secondary-core"/>
				<line class="highway-secondary-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="primary_link">
				<line class="tunnel-casing highway-primary-link-casing tunnel" mask-class="tunnel-core highway-primary-link-core"/>
				<line class="highway-primary-link-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="trunk_link">
				<line class="tunnel-casing highway-trunk-link-casing tunnel" mask-class="tunnel-core highway-trunk-link-core"/>
				<line class="highway-trunk-link-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="motorway_link">
				<line class="tunnel-casing highway-motorway-link-casing tunnel" mask-class="tunnel-core highway-motorway-link-core"/>
				<line class="highway-motorway-link-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="primary">
				<line class="tunnel-casing highway-primary-casing tunnel" mask-class="tunnel-core highway-primary-core"/>
				<line class="highway-primary-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="trunk">
				<line class="tunnel-casing highway-trunk-casing tunnel" mask-class="tunnel-core highway-trunk-core"/>
				<line class="highway-trunk-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>
			<rule e="way" k="highway" v="motorway">
				<line class="tunnel-casing highway-motorway-casing tunnel" mask-class="tunnel-core highway-motorway-core"/>
				<line class="highway-motorway-casing highway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>

			<rule e="way" k="railway" v="*">
				<rule e="way" k="construction" v="yes|true">
					<line class="railway-con-casing railway-con-casing-color tunnel-casing tunnel" mask-class="tunnel-core railway-con-1-core"/>
					<line class="railway-con-2-core railway-con-2-core-color railway-2-core railway-con-tunnel-core tunnel"  smart-linecap="no" />
				</rule>
				<else>
					<rule e="way" k="planned|proposed" v="yes|true">
						<line class="railway-pla-casing railway-pla-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-pla-1-core"/>
						<line class="railway-pla-2-core railway-pla-2-core-color railway-2-core railway-pla-tunnel-core tunnel"  smart-linecap="no" />
					</rule>
					<else>
						<rule e="way" k="disused" v="yes|true">
							<line class="railway-dis-casing railway-dis-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-dis-1-core"/>
							<line class="railway-dis-2-core railway-dis-2-core-color railway-2-core railway-dis-tunnel-core tunnel"  smart-linecap="no" />
						</rule>
						<else>
							<rule e="way" k="abandoned|dismantled" v="yes|true">
								<line class="railway-aba-casing railway-aba-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-aba-1-core"/>
								<line class="railway-aba-2-core railway-aba-2-core-color railway-2-core railway-aba-tunnel-core tunnel"  smart-linecap="no" />
							</rule>
							<else>
								<rule e="way" k="railway" v="construction">
									<line class="railway-con-casing railway-con-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-con-1-core"/>
									<line class="railway-con-2-core railway-con-2-core-color railway-2-core railway-con-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="planned|proposed">
									<line class="railway-pla-casing railway-pla-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-pla-1-core"/>
									<line class="railway-pla-2-core railway-pla-2-core-color railway-2-core railway-pla-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="disused">
									<line class="railway-dis-casing railway-dis-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-dis-1-core"/>
									<line class="railway-dis-2-core railway-dis-2-core-color railway-2-core railway-dis-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="abandoned|dismantled">
									<line class="railway-aba-casing railway-aba-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-aba-1-core"/>
									<line class="railway-aba-2-core railway-aba-2-core-color railway-2-core railway-aba-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="rail">
									<line class="railway-rail-casing railway-rail-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-rail-1-core"/>
									<line class="railway-rail-2-core railway-rail-2-core-color railway-2-core railway-rail-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="narrow_gauge">
									<line class="railway-narrow-casing railway-narrow-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-narrow-1-core"/>
									<line class="railway-narrow-2-core railway-narrow-2-core-color railway-2-core railway-narrow-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="preserved">
									<line class="railway-preserved-casing railway-preserved-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-preserved-1-core"/>
									<line class="railway-preserved-2-core railway-preserved-2-core-color railway-2-core railway-preserved-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="light_rail">
									<line class="railway-light-casing railway-light-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-light-1-core"/>
									<line class="railway-light-2-core railway-light-2-core-color railway-2-core railway-light-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="tram">
									<line class="railway-tram-casing railway-tram-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-tram-1-core"/>
									<line class="railway-tram-2-core railway-tram-2-core-color railway-2-core railway-tram-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="subway">
									<line class="railway-subway-casing railway-subway-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-subway-1-core"/>
									<line class="railway-subway-2-core railway-subway-2-core-color railway-2-core railway-subway-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="incline|funicular">
									<line class="railway-funicular-casing railway-funicular-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-funicular-t-core"/>
									<line class="railway-funicular-1-core railway-funicular-1-core-color railway-1-core railway-funicular-tunnel-core tunnel"  smart-linecap="no" />
									<line class="railway-funicular-2-core railway-funicular-2-core-color railway-2-core railway-funicular-tunnel-core tunnel-casing tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="monorail">
									<line class="railway-monorail-casing railway-monorail-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-monorail-1-core"/>
									<line class="railway-monorail-2-core railway-monorail-2-core-color railway-2-core railway-monorail-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
								<rule e="way" k="railway" v="spur|yard|siding">
									<line class="railway-yard-casing railway-yard-casing-color railway-casing tunnel-casing tunnel" mask-class="tunnel-core railway-yard-1-core"/>
									<line class="railway-yard-2-core railway-yard-2-core-color railway-2-core railway-yard-tunnel-core tunnel"  smart-linecap="no" />
								</rule>
							</else>
						</else>
					</else>
				</else>
				<line class="railway-tunnel-ends" suppress-markers-tag="tunnel"/>
			</rule>

		</rule>

		<!-- platforms cores -->
		<rule e="way" k="highway|railway|public_transport" v="platform" closed="yes">
			<line class="highway-platform-area" />
		</rule>
		<rule e="way" k="highway|railway|public_transport" v="platform" closed="no">
			<line class="highway-platform-way-core" />
		</rule>

		<!-- Linear cores (under construction) -->
		<rule e="way" k="highway" v="construction">
			<rule e="way" k="construction" v="steps">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-steps-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="footway|footpath">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-footway-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="pedestrian">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-pedestrian-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="cycleway">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-cycleway-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="under-construction-1" smart-linecap="no"/>
					<line class="highway-core highway-cycleway-core under-construction-2" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="under-construction-1" smart-linecap="no"/>
						<line class="highway-core highway-bridleway-core under-construction-2" smart-linecap="no"/>
					</rule>
					<else>
						<line class="under-construction-1" smart-linecap="no"/>
						<line class="highway-core highway-footway-core under-construction-2" smart-linecap="no"/>
					</else></else>
			</rule>
			<rule e="way" k="construction" v="bridleway">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-bridleway-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="byway">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-byway-1-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="track">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-track-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="unsurfaced">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-unsurfaced-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="service">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-service-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="unclassified|residential|minor|living_street|cycleroad">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-unclassified-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="~|road|yes">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-road-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="tertiary_link">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-tertiary-link-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="tertiary">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-tertiary-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="secondary_link">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-secondary-link-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="secondary">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-secondary-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="primary_link">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-primary-link-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="trunk_link">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-trunk-link-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="motorway_link">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-motorway-link-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="primary">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-primary-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="trunk">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-trunk-core under-construction-2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="construction" v="motorway">
				<line class="under-construction-1" smart-linecap="no"/>
				<line class="highway-core highway-motorway-core under-construction-2" smart-linecap="no"/>
			</rule>
		</rule>

		<!-- Linear cores (planned) -->
		<rule e="way" k="highway" v="planned|proposed">
			<rule e="way" k="planned|proposed" v="steps">
				<line class="highway-core highway-steps-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="footway|footpath">
				<line class="highway-core highway-footway-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="pedestrian">
				<line class="highway-core highway-pedestrian-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="cycleway">
				<line class="highway-core highway-cycleway-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="highway-core highway-cycleway-core planned" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="highway-core highway-bridleway-core planned" smart-linecap="no"/>
					</rule>
					<else>
						<line class="highway-core highway-footway-core planned" smart-linecap="no"/>
					</else></else>
			</rule>
			<rule e="way" k="planned|proposed" v="bridleway">
				<line class="highway-core highway-bridleway-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="byway">
				<line class="highway-core highway-byway-1-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="track">
				<line class="highway-core highway-track-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="unsurfaced">
				<line class="highway-core highway-unsurfaced-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="service">
				<line class="highway-core highway-service-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="unclassified|residential|minor|living_street|cycleroad">
				<line class="highway-core highway-unclassified-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="~|road|yes">
				<line class="highway-core highway-road-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="tertiary_link">
				<line class="highway-core highway-tertiary-link-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="tertiary">
				<line class="highway-core highway-tertiary-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="secondary_link">
				<line class="highway-core highway-secondary-link-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="secondary">
				<line class="highway-core highway-secondary-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="primary_link">
				<line class="highway-core highway-primary-link-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="trunk_link">
				<line class="highway-core highway-trunk-link-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="motorway_link">
				<line class="highway-core highway-motorway-link-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="primary">
				<line class="highway-core highway-primary-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="trunk">
				<line class="highway-core highway-trunk-core planned" smart-linecap="no"/>
			</rule>
			<rule e="way" k="planned|proposed" v="motorway">
				<line class="highway-core highway-motorway-core planned" smart-linecap="no"/>
			</rule>
		</rule>

		<!-- Linear cores (disused) -->
		<rule e="way" k="highway" v="disused">
			<rule e="way" k="disused" v="steps">
				<line class="highway-core highway-steps-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="footway|footpath">
				<line class="highway-core highway-footway-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="pedestrian">
				<line class="highway-core highway-pedestrian-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="cycleway">
				<line class="highway-core highway-cycleway-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="highway-core highway-cycleway-core disused-1" smart-linecap="no"/>
					<line class="disused-2" smart-linecap="no" />
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="highway-core highway-bridleway-core disused-1" smart-linecap="no"/>
						<line class="disused-2" smart-linecap="no" />
					</rule>
					<else>
						<line class="highway-core highway-footway-core disused-1" smart-linecap="no"/>
						<line class="disused-2" smart-linecap="no" />
					</else></else>
			</rule>
			<rule e="way" k="disused" v="bridleway">
				<line class="highway-core highway-bridleway-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="byway">
				<line class="highway-core highway-byway-1-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="track">
				<line class="highway-core highway-track-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="unsurfaced">
				<line class="highway-core highway-unsurfaced-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="service">
				<line class="highway-core highway-service-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="unclassified|residential|minor|living_street|cycleroad">
				<line class="highway-core highway-unclassified-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="~|road|yes">
				<line class="highway-core highway-road-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="tertiary_link">
				<line class="highway-core highway-tertiary-link-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="tertiary">
				<line class="highway-core highway-tertiary-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="secondary_link">
				<line class="highway-core highway-secondary-link-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="secondary">
				<line class="highway-core highway-secondary-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="primary_link">
				<line class="highway-core highway-primary-link-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="trunk_link">
				<line class="highway-core highway-trunk-link-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="motorway_link">
				<line class="highway-core highway-motorway-link-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="primary">
				<line class="highway-core highway-primary-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="trunk">
				<line class="highway-core highway-trunk-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="disused" v="motorway">
				<line class="highway-core highway-motorway-core disused-1" smart-linecap="no"/>
				<line class="disused-2" smart-linecap="no" />
			</rule>
		</rule>

		<!-- Linear cores (abandoned) -->
		<rule e="way" k="highway" v="abandoned|dismantled">
			<rule e="way" k="abandoned|dismantled" v="steps">
				<line class="highway-core highway-steps-core abandoned-1"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="footway|footpath">
				<line class="highway-core highway-footway-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="pedestrian">
				<line class="highway-core highway-pedestrian-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="cycleway">
				<line class="highway-core highway-cycleway-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="path">
				<rule e="way" k="bicycle" v="yes|designated">
					<line class="highway-core highway-cycleway-core abandoned-1" smart-linecap="no"/>
					<line class="abandoned-2" smart-linecap="no" />
				</rule>
				<else>
					<rule e="way" k="horse" v="yes|designated">
						<line class="highway-core highway-bridleway-core abandoned-1" smart-linecap="no"/>
						<line class="abandoned-2" smart-linecap="no" />
					</rule>
					<else>
						<line class="highway-core highway-footway-core abandoned-1" smart-linecap="no"/>
						<line class="abandoned-2" smart-linecap="no" />
					</else></else>
			</rule>
			<rule e="way" k="abandoned|dismantled" v="bridleway">
				<line class="highway-core highway-bridleway-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="byway">
				<line class="highway-core highway-byway-1-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="track">
				<line class="highway-core highway-track-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="unsurfaced">
				<line class="highway-core highway-unsurfaced-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="service">
				<line class="highway-core highway-service-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="unclassified|residential|minor|living_street|cycleroad">
				<line class="highway-core highway-unclassified-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="~|road|yes">
				<line class="highway-core highway-road-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="tertiary_link">
				<line class="highway-core highway-tertiary-link-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="tertiary">
				<line class="highway-core highway-tertiary-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="secondary_link">
				<line class="highway-core highway-secondary-link-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="secondary">
				<line class="highway-core highway-secondary-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="primary_link">
				<line class="highway-core highway-primary-link-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="trunk_link">
				<line class="highway-core highway-trunk-link-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="motorway_link">
				<line class="highway-core highway-motorway-link-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="primary">
				<line class="highway-core highway-primary-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="trunk">
				<line class="highway-core highway-trunk-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
			<rule e="way" k="abandoned|dismantled" v="motorway">
				<line class="highway-core highway-motorway-core abandoned-1" smart-linecap="no"/>
				<line class="abandoned-2" smart-linecap="no" />
			</rule>
		</rule>

		<rule e="way" k="highway" v="*">
			<rule e="way" k="highway" v="motorway|motorway_link|footway|steps|pedestrian|living_street|construction|planned|proposed|disused|abandoned|dismantled">
			</rule>
			<else>
				<rule e="way" k="bicycle" v="no">
					<rule e="way" k="motorroad" v="yes">
					</rule>
					<else>
						<line class="highway-nobicycle-3" smart-linecap="no" />
					</else>
				</rule>
			</else>
		</rule>





		<!-- access restrictions -->
		<rule e="way" k="highway" v="*">
			<rule e="way" k="construction|planned|proposed|disused|abandoned|dismantled" v="yes|true">
				<line class="wrong-under-construction" smart-linecap="no"/>
			</rule>
			<rule e="way" k="area" v="yes|true">
				<rule e="way" k="access" v="private">
					<area class="access-private-area"/>
				</rule>
				<rule e="way" k="access" v="permissive">
					<area class="access-permissive-area"/>
				</rule>
				<rule e="way" k="access" v="destination">
					<area class="access-destination-area"/>
				</rule>
				<rule e="way" k="access" v="no">
					<area class="access-no-area"/>
				</rule>
			</rule>
			<else>
				<rule e="way" k="highway" v="footway|footpath|cycleway|path|bridleway|byway|unsurfaced">
					<rule e="way" k="access" v="private">
						<line class="access-private-line" smart-linecap="no"/>
					</rule>
					<rule e="way" k="access" v="permissive">
						<line class="access-permissive-line" smart-linecap="no"/>
					</rule>
					<rule e="way" k="access" v="destination">
						<line class="access-destination-line" smart-linecap="no"/>
					</rule>
					<rule e="way" k="access" v="no">
						<line class="access-no-line" smart-linecap="no"/>
					</rule>
				</rule>
				<else>
					<rule e="way" k="highway" v="track">
						<rule e="way" k="tracktype" v="grade3|grade4|grade5">
							<rule e="way" k="access" v="private">
								<line class="access-private-line" smart-linecap="no"/>
							</rule>
							<rule e="way" k="access" v="permissive">
								<line class="access-permissive-line" smart-linecap="no"/>
							</rule>
							<rule e="way" k="access" v="destination">
								<line class="access-destination-line" smart-linecap="no"/>
							</rule>
							<rule e="way" k="access" v="no">
								<line class="access-no-line" smart-linecap="no"/>
							</rule>
						</rule>
						<else>
							<rule e="way" k="access" v="private">
								<line class="access-private-line"/>
							</rule>
							<rule e="way" k="access" v="permissive">
								<line class="access-permissive-line"/>
							</rule>
							<rule e="way" k="access" v="destination">
								<line class="access-destination-line"/>
							</rule>
							<rule e="way" k="access" v="no">
								<line class="access-no-line"/>
							</rule>
						</else>
					</rule>
					<else>
						<rule e="way" k="access" v="private">
							<line class="access-private-line"/>
						</rule>
						<rule e="way" k="access" v="permissive">
							<line class="access-permissive-line"/>
						</rule>
						<rule e="way" k="access" v="destination">
							<line class="access-destination-line"/>
						</rule>
						<rule e="way" k="access" v="no">
							<line class="access-no-line"/>
						</rule>
					</else>
				</else>
			</else>
		</rule>

		<!-- Mini-roundabouts -->
		<rule e="node" k="highway" v="mini_roundabout">
			<rule e="node" k="direction" v="clockwise">
				<symbol ref="roundabout_left" position="center"/>
			</rule>
			<else>
				<!-- Default is anti-clockwise -->
				<symbol ref="roundabout_right" position="center"/>
			</else>
		</rule>

		<!-- Oneway markers -->
		<rule e="way" k="tunnel" v="~|false|no">
			<rule e="way" k="area" v="~|false|no">
				<rule e="way" k="highway" v="*">
					<rule e="way" k="oneway" v="1|yes|true">
						<rule e="way" k="cycleway" v="opposite|opposite_track|opposite_lane">
							<line class="oneway-exclcycle-casing oneway-casing-1" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-2" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-3" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-4" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-5" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-6" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-7" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-8" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-1" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-2" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-3" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-4" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-5" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-6" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-7" smart-linecap="no"/>
						</rule>
						<else>
							<line class="oneway-casing oneway-casing-1" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-2" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-3" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-4" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-5" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-6" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-7" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-8" smart-linecap="no"/>
							<line class="oneway-core oneway-core-1" smart-linecap="no"/>
							<line class="oneway-core oneway-core-2" smart-linecap="no"/>
							<line class="oneway-core oneway-core-3" smart-linecap="no"/>
							<line class="oneway-core oneway-core-4" smart-linecap="no"/>
							<line class="oneway-core oneway-core-5" smart-linecap="no"/>
							<line class="oneway-core oneway-core-6" smart-linecap="no"/>
							<line class="oneway-core oneway-core-7" smart-linecap="no"/>
						</else>
					</rule>
					<rule e="way" k="oneway" v="-1">
						<rule e="way" k="cycleway" v="opposite|opposite_track|opposite_lane">
							<line class="oneway-exclcycle-casing oneway-casing-r1" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r2" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r3" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r4" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r5" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r6" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r7" smart-linecap="no"/>
							<line class="oneway-exclcycle-casing oneway-casing-r8" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r1" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r2" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r3" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r4" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r5" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r6" smart-linecap="no"/>
							<line class="oneway-exclcycle-core oneway-core-r7" smart-linecap="no"/>
						</rule>
						<else>
							<line class="oneway-casing oneway-casing-r1" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r2" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r3" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r4" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r5" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r6" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r7" smart-linecap="no"/>
							<line class="oneway-casing oneway-casing-r8" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r1" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r2" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r3" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r4" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r5" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r6" smart-linecap="no"/>
							<line class="oneway-core oneway-core-r7" smart-linecap="no"/>
						</else>
					</rule>
				</rule>
				<!-- Motorway implies oneway-ness -->
				<rule e="way" k="highway" v="motorway|motorway_link">
					<!-- exclude explicit oneway=no -->
					<rule e="way" k="oneway" v="~|yes|true|1">
						<line class="oneway-casing oneway-casing-1" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-2" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-3" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-4" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-5" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-6" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-7" smart-linecap="no"/>
						<line class="oneway-casing oneway-casing-8" smart-linecap="no"/>
						<line class="oneway-core oneway-core-1" smart-linecap="no"/>
						<line class="oneway-core oneway-core-2" smart-linecap="no"/>
						<line class="oneway-core oneway-core-3" smart-linecap="no"/>
						<line class="oneway-core oneway-core-4" smart-linecap="no"/>
						<line class="oneway-core oneway-core-5" smart-linecap="no"/>
						<line class="oneway-core oneway-core-6" smart-linecap="no"/>
						<line class="oneway-core oneway-core-7" smart-linecap="no"/>
					</rule>
				</rule>
				<!-- Roundabouts are oneway in the direction of the segments -->
				<rule e="way" k="junction" v="roundabout">
					<line class="oneway-casing oneway-casing-1" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-2" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-3" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-4" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-5" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-6" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-7" smart-linecap="no"/>
					<line class="oneway-casing oneway-casing-8" smart-linecap="no"/>
					<line class="oneway-core oneway-core-1" smart-linecap="no"/>
					<line class="oneway-core oneway-core-2" smart-linecap="no"/>
					<line class="oneway-core oneway-core-3" smart-linecap="no"/>
					<line class="oneway-core oneway-core-4" smart-linecap="no"/>
					<line class="oneway-core oneway-core-5" smart-linecap="no"/>
					<line class="oneway-core oneway-core-6" smart-linecap="no"/>
					<line class="oneway-core oneway-core-7" smart-linecap="no"/>
				</rule>
			</rule>
		</rule>

		<!-- SAC scale for paths and footways -->
		<rule e="way" k="highway" v="path|footway">
			<rule e="way" k="sac_scale" v="hiking|t1|T1">
				<line class="sac-scale-t1" smart-linecap="no"/>
			</rule>
			<rule e="way" k="sac_scale" v="mountain_hiking|t2|T2">
				<line class="sac-scale-t2" smart-linecap="no"/>
			</rule>
			<rule e="way" k="sac_scale" v="demanding_mountain_hiking|t3|T3">
				<line class="sac-scale-t3" smart-linecap="no"/>
			</rule>
			<rule e="way" k="sac_scale" v="alpine_hiking|t4|T4">
				<line class="sac-scale-t4" smart-linecap="no"/>
			</rule>
			<rule e="way" k="sac_scale" v="demanding_alpine_hiking|t5|T5">
				<line class="sac-scale-t5" smart-linecap="no"/>
			</rule>
			<rule e="way" k="sac_scale" v="difficult_alpine_hiking|t6|T6">
				<line class="sac-scale-t6" smart-linecap="no"/>
			</rule>
		</rule>

		<!-- Piste maps -->
		<rule e="way" k="piste:type" v="downhill">
			<rule e="way" k="piste:difficulty" v="novice">
				<line class="piste-core piste-difficulty-novice" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="easy">
				<line class="piste-core piste-difficulty-easy" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="intermediate">
				<line class="piste-core piste-difficulty-intermediate" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="advanced">
				<line class="piste-core piste-difficulty-advanced" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="expert">
				<line class="piste-core piste-difficulty-expert" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="freeride">
				<line class="piste-core piste-difficulty-freeride" smart-linecap="no"/>
			</rule>
			<rule e="way" k="piste:difficulty" v="~">
				<line class="piste-core piste-difficulty-other" smart-linecap="no"/>
			</rule>
			<rule e="way" k="name|ref" v="*">
				<!-- prefer to render name, otherwise render ref -->
				<!-- text is rendered at 75%, refs at 25%, aerialway name at 50% -->
				<rule e="way" k="name" v="~">
					<rule e="way" k="ref" v="*">
						<pathText k="ref" dy="2px" class="piste-downhill-ref" text-anchor="middle" startOffset="75%"/>
					</rule>
				</rule>
				<else>
					<rule e="way" k="ref" v="*">
						<pathText k="ref" dy="2px" class="piste-downhill-ref" text-anchor="middle" startOffset="25%"/>
					</rule>
					<rule e="way" k="name" v="*">
						<pathText k="name" dy="2px" class="piste-downhill-name" text-anchor="middle" startOffset="75%"/>
					</rule>
				</else>
			</rule>
		</rule>
		<rule e="way" k="piste:type" v="sled">
			<line class="piste-type-sled"/>
		</rule>
		<rule e="way" k="piste:type" v="nordic">
			<line class="piste-type-nordic"/>
		</rule>
		<rule e="way" k="man_made" v="piste:halfpipe">
			<area class="man-made-piste-halfpipe"/>
			<symbol ref="man-made-halfpipe" position="center"/>
		</rule>

		<!-- Surface lifts (render over pistes) -->
		<rule e="way" k="piste:lift" v="*">
			<rule e="way" k="piste:lift" v="t-bar|j-bar|platter">
				<line class="aerialway-line piste-lift-t-bar-marker"/>
				<line smart-linecap="no" class="aerialway-struts no-bezier"/>
			</rule>
			<rule e="way" k="piste:lift" v="rope_tow">
				<line smart-linecap="no" class="piste-lift-rope-tow no-bezier"/>
			</rule>
			<rule e="way" k="piste:lift" v="magic_carpet">
				<line smart-linecap="no" class="piste-lift-magic-carpet no-bezier"/>
			</rule>
			<rule e="way" k="name" v="*">
				<pathText k="name" dx="0px" dy="-3px" class="aerialway-name" text-anchor="middle" startOffset="50%"/>
			</rule>
		</rule>

		<!-- Aerialways (render over pistes) -->
		<rule e="node|way" k="aerialway" v="*">
			<rule e="way" k="aerialway" v="cable_car">
				<line class="aerialway-line aerialway-cablecar-marker no-bezier" smart-linecap="no"/>
			</rule>
			<else>
				<rule e="way" k="aerialway" v="gondola">
					<line class="aerialway-line aerialway-gondola-marker no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="aerialway" v="chair_lift">
						<rule e="way" k="piste:lift:occupancy" v="4|5|6">
							<line class="aerialway-line aerialway-chairlift4-marker no-bezier" smart-linecap="no"/>
						</rule>
						<else>
							<line class="aerialway-line aerialway-chairlift2-marker no-bezier" smart-linecap="no"/>
						</else>
					</rule>
					<else>
						<rule e="way" k="aerialway" v="mixed_lift">
							<line class="aerialway-line aerialway-mixedlift-marker no-bezier" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="aerialway" v="*">
								<line class="aerialway-line no-bezier" smart-linecap="no"/>
							</rule>
						</else>
					</else>
				</else>
			</else>
			<line smart-linecap="no" class="aerialway-struts no-bezier"/>
			<rule e="node" k="aerialway" v="station">
				<circle r="0.4px" class="aerialway-station"/>
			</rule>
			<rule e="node" s="way" k="aerialway" v="*">
				<rule e="node" k="ele" v="*">
					<caption k="ele" dx="0px" dy="-2.5px" class="aerialway-elevation-text"/>
				</rule>
			</rule>
			<rule e="way" k="name" v="*">
				<pathText k="name" dx="0px" dy="-3px" class="aerialway-name" text-anchor="middle" startOffset="50%"/>
			</rule>
		</rule>

		<!-- Natural features -->
		<rule e="node" k="natural" v="peak">
			<symbol ref="peak" position="center"/>
		</rule>
		<rule e="node" k="natural" v="cave_entrance">
			<symbol ref="cave_entrance" position="center"/>
		</rule>
		<rule e="way" k="natural" v="cliff">   <!-- !!! aby to umelo vykreslovat i skalni utesy -->
			<line class="cliff"/>
		</rule>
		<rule e="node" k="mountain_pass" v="yes" layer="-5">
			<rule e="node" s="way" k="highway|track" v="path|secondary|track|unclassified|tertiary|primary|footway|unclassified|trunk|service|motorway|residential|bridleway|road|cycleway">
				<wayMarker k="highway" class="mountain_pass" layer="-5"/>
			</rule>
			<else>
				<symbol ref="mountain_pass" position="center" layer="-5"/>
			</else>
		</rule>

		<!-- Draw marine features -->
		<rule e="way" k="man_made" v="breakwater">
			<line class="breakwater"/>
		</rule>
		<rule e="way" k="man_made" v="pier" closed="yes">
			<line class="artificial-pier-area"/>
		</rule>
		<rule e="way" k="man_made" v="pier" closed="no">
			<line class="artificial-pier-casing"/>
		</rule>
		<rule e="way" k="man_made" v="pier" closed="no">
			<line class="artificial-pier-core"/>
		</rule>

		<!-- Power lines and pylons -->
		<rule e="node|way" k="power" v="tower">
			<symbol ref="power-tower" position="center"/>
		</rule>
		<rule e="way" k="power" v="line">
			<line class="powerline-pipeline-casing no-bezier"/>
			<line class="power-line no-bezier"/>
		</rule>

		<!-- Power generators -->
		<rule e="node" k="power" v="generator">
			<rule e="node" k="power_source" v="wind">
				<symbol ref="power_wind" position="center"/>
			</rule>
			<else>
				<rule e="node" k="power_source" v="hydro">
					<symbol ref="power_hydro" position="center"/>
				</rule>
				<else>
					<rule e="node" k="power_source" v="photovoltaic">
						<symbol ref="power_photovoltaic" position="center"/>
					</rule>
					<else>
						<symbol ref="power_generic" position="center"/>
					</else>
				</else>
			</else>
		</rule>
		<rule e="way" k="power" v="generator">
			<rule e="way" k="power_source" v="wind">
				<area class="power-wind"/>
			</rule>
			<else>
				<rule e="way" k="power_source" v="hydro">
					<area class="power-hydro"/>
				</rule>
				<else>
					<rule e="way" k="power_source" v="photovoltaic">
						<area class="power-photovoltaic"/>
					</rule>
					<else>
						<area class="power-generic"/>
					</else>
				</else>
			</else>
		</rule>

		<!-- Electrical substations -->
		<rule e="way" k="power" v="sub_station">
			<area class="power-generic"/>
		</rule>

		<!-- Pipelines -->
		<rule e="way" k="man_made" v="pipeline">
			<rule e="way" k="type" v="water">
				<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
				<line class="pipeline-water no-bezier" smart-linecap="no"/>
			</rule>
			<else>
				<rule e="way" k="type" v="oil">
					<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
					<line class="pipeline-oil no-bezier" smart-linecap="no"/>
				</rule>
				<else>
					<rule e="way" k="type" v="gas">
						<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
						<line class="pipeline-gas no-bezier" smart-linecap="no"/>
					</rule>
					<else>
						<rule e="way" k="type" v="sewage">
							<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
							<line class="pipeline-sewage no-bezier" smart-linecap="no"/>
						</rule>
						<else>
							<rule e="way" k="type" v="hot_water|heat">
								<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
								<line class="pipeline-heat no-bezier" smart-linecap="no"/>
							</rule>
							<else>
								<line class="powerline-pipeline-casing no-bezier" smart-linecap="no"/>
								<line class="pipeline-unknown no-bezier" smart-linecap="no"/>
							</else>
						</else>
					</else>
				</else>
			</else>
		</rule>

		<!-- Non-physical routes -->
		<rule e="way" k="route" v="ferry">
			<line class="route-ferry"/>
		</rule>

		<!-- Tourist features -->
		<rule e="node|way" k="tourism" v="hotel">
			<rule e="node|way" k="amenity" v="restaurant">
			</rule>
			<else>
				<symbol ref="hotel" position="center"/>
			</else>
		</rule>
		<rule e="node|way" k="tourism" v="hostel">
			<symbol ref="hostel" position="center"/>
		</rule>
		<rule e="node|way" k="tourism" v="camp_site">
			<symbol ref="campSite" position="center"/>
		</rule>
		<rule e="node|way" k="tourism" v="information">
			<rule e="node" k="information" v="guidepost">
				<symbol ref="information-guidepost" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
			</rule>
			<else>
				<rule e="node" k="information" v="office">
					<symbol ref="information-office" position="center"/>			
				</rule>
				<else>
					<symbol ref="information" position="center"/>
				</else>	
			</else>	
		</rule>
		<rule e="node" k="tourism" v="viewpoint">
			<symbol ref="viewpoint" position="center"/>
		</rule>

		<!-- platforms nodes -->
		<rule e="node" k="highway|railway|public_transport" v="platform">
			<circle r="0.6px" class="highway-platform-node" />
		</rule>

		<!-- Railway stations -->
		<rule e="node" k="railway" v="station">
			<rule e="node" s="way" k="railway" v="rail">
				<circle r="0.7" class="railway-station"/>
			</rule>
			<else>
				<circle r="0.4" class="railway-halt"/>
			</else>
		</rule>
		<rule e="node" k="railway" v="halt">
			<circle r="0.4" class="railway-halt"/>
		</rule>

		<!-- tram stops -->
		<rule e="node" k="railway" v="tram_stop">
			<circle r="0.4" class="railway-halt"/>
		</rule>

		<!-- Level crossings -->
		<!-- If tagged explicitly -->
		<rule e="node" k="railway" v="level_crossing">
			<symbol ref="railway-crossing" position="center"/>
		</rule>
		<rule e="node" k="railway" v="crossing">
			<symbol ref="railway-crossing-small" position="center"/>
		</rule>

		<!-- For everything, except trams, if it shares a node with a road then render a railroad crossing symbol. 
			not feasible
			beware for historic reasons and as example fpr s="..."
		else
			rule e="node" s="way" k="railway" v="rail|light_rail|subway|narrow_gauge|preserved|monorail|incline|funicular"
				rule e="node" s="way" k="railway" v="rail"
					rule e="node" s="way" k="highway" v="motorway|trunk|primary|secondary|tertiary|minor|unclassified|residential|service|unsurfaced|track|living_street|cycleroad|road|cycleway|path|footway"
						symbol ref="railway-crossing-small" position="center"
					/rule
				/rule
			/rule
		/else
		-->

		<!-- Barriers -->
		<rule e="way" k="barrier" v="bollard|hedge|fence|wall|retaining_wall|city_wall">
			<rule e="way" k="barrier" v="bollard">
				<line class="barrier barrier-bollard"/>
			</rule>
			<rule e="way" k="barrier" v="hedge">
				<line class="barrier barrier-hedge-1"/>
				<line class="barrier barrier-hedge-2"/>
			</rule>
			<rule e="way" k="barrier" v="fence">
				<line class="barrier barrier-fence-1"/>
				<line class="barrier barrier-fence-2"/>
			</rule>
			<rule e="way" k="barrier" v="wall">
				<line class="barrier barrier-wall"/>
			</rule>
			<rule e="way" k="barrier" v="retaining_wall">
				<line class="barrier barrier-retaining-wall-1"/>
				<line class="barrier barrier-retaining-wall-2"/>
			</rule>
			<rule e="way" k="barrier" v="city_wall">
				<rule e="way" k="two_sided" v="yes">
					<line class="barrier barrier-city-wall-ts-1"/>
					<line class="barrier barrier-city-wall-ts-2"/>
				</rule>
				<else>
					<!-- We can't move the dot of to one side yet -->
					<line class="barrier barrier-city-wall-1"/>
					<line class="barrier barrier-city-wall-2"/>
				</else>
			</rule>
		</rule>
		<else>
			<rule e="way" k="barrier">
				<line class="barrier"/>
			</rule>
		</else>

		<rule e="node" k="noexit:foot" v="yes|true">
			<wayMarker k="highway" class="noexit-all"/>
		</rule>
		<else>
			<rule e="node" k="noexit:bicycle|noexit:vehicle" v="yes|true">
				<wayMarker k="highway" class="noexit-veh"/>
			</rule>
			<else>
				<rule e="node" k="noexit:motor_bicycle|noexit:motorcar|noexit:hgv|noexit:goods" v="yes|true">
					<wayMarker k="highway" class="noexit-mot"/>
				</rule>
				<else>


					<rule e="node" k="noexit" v="yes|true">
						<wayMarker k="highway" class="noexit-all"/>
					</rule>
					<rule e="node" k="noexit" v="vehicle">
						<wayMarker k="highway" class="noexit-veh"/>
					</rule>
					<rule e="node" k="noexit" v="motor_vehicle|motorcar">
						<wayMarker k="highway" class="noexit-mot"/>
					</rule>
					<rule e="node" k="noexit" v="no|false">
						<wayMarker k="highway" class="noexit-no"/>
					</rule>

				</else>
			</else>
		</else>
		<rule e="node" k="FIXME|fixme" v="continue|continuation">
			<wayMarker k="highway" class="noexit-no"/>
		</rule>

		<rule e="node" k="barrier|highway" v="gate|lift_gate">
			<rule e="node" k="status" v="open">
				<wayMarker k="highway" class="gate-open"/>
			</rule>
			<else>
				<rule e="node" k="status" v="locked">
					<wayMarker k="highway" class="gate-locked"/>
				</rule>
				<else>
					<wayMarker k="highway" class="gate-closed"/>
				</else>
			</else>
		</rule>
		<rule e="node" k="highway|barrier" v="stile">
			<wayMarker k="highway" fill="none" stroke="red" stroke-width="1px" stroke-opacity="0" marker-mid="url(#marker-stile)"/>
		</rule>
		<rule e="node" k="highway|barrier" v="bollard">
			<circle r='0.2px' class='bollard' />
		</rule>
		<rule e="node" k="barrier" v="cycle_barrier|chicane">
			<wayMarker k="highway" class="chicane"/>
		</rule>

		<!-- Traffic calming -->
		<rule e="node" k="traffic_calming" v="*">
			<wayMarker k="highway" class="traffic-calming"/>
		</rule>


		<!-- Bus stops -->
		<rule e="node|way" k="highway" v="bus_stop">
			<symbol ref="bus" position="center"/>
		</rule>
		<!-- bus stations -->
		<rule e="node|way" k="amenity" v="bus_station">
			<symbol ref="bus_sta" position="center"/>
		</rule>
		<!-- subway entrance -->
		<rule e="node|way" k="railway" v="subway_entrance">
			<symbol ref="subway" position="center"/>
		</rule>
		<!-- highway motorway_junctions -->
		<rule e="node" k="highway" v="motorway_junction">
			<circle r="1.825" class="highway-motorway-junction"/>
			<caption k="name" class="highway-motorway-junction-caption" dy="-2.3px"/>
			<caption k="ref" class="highway-motorway-junction-caption" dy="0.7px"/>
		</rule>

		<!-- Amenities -->
		<rule e="node|way" k="aeroway" v="helipad">
			<symbol ref="helipad" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="hospital">
			<symbol ref="hospital" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="doctors">
			<symbol ref="doctor" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="pharmacy">
			<symbol ref="pharmacy" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="post_office">
			<symbol ref="postoffice" position="center"/>
		</rule>
		<rule e="node" k="amenity" v="post_box">
			<symbol ref="postbox" position="center"/>
		</rule>
		<rule e="node" k="amenity" v="speed_trap">
			<symbol ref="speed_trap" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="pub">
			<symbol ref="pub" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="cafe">
			<symbol ref="cafe" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="restaurant">
			<rule e="node|way" k="tourism" v="hotel">
				<symbol ref="hotel_and_restaurant" position="center"/>
			</rule>
			<else>
				<symbol ref="restaurant" position="center"/>
			</else>
		</rule>
		<rule e="node|way" k="amenity" v="cinema">
			<symbol ref="cinema" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="theatre">
			<symbol ref="theatre" position="center"/>
		</rule>
		<rule e="node|way" k="man_made" v="lighthouse">
			<symbol ref="lighthouse" position="center"/>
		</rule>
		<rule e="node|way" k="man_made" v="windmill">
			<symbol ref="windmill" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="place_of_worship">
			<rule e="node|way" k="denomination|religion" v="jewish">
				<symbol ref="synagogue" position="center"/>
			</rule>
			<else>
				<rule e="node|way" k="denomination|religion" v="muslim|moslem">
					<symbol ref="mosque" position="center"/>
				</rule>
				<else>
					<rule e="node|way" k="denomination|religion" v="christian">
						<symbol ref="church" position="center"/>
					</rule>
					<else>
						<rule e="node|way" k="denomination|religion" v="sikhism|sikh">
							<symbol ref="khanda" position="center"/>
						</rule>
						<else>
							<symbol ref="religion" position="center"/>
						</else>
					</else>
				</else>
			</else>
		</rule>

		<!-- Parking -->
		<rule e="node|way" k="amenity" v="parking">
			<rule e="node|way" k="access" v="~">
				<rule e="node|way" k="parking" v="park_and_ride">
					<symbol ref="park_and_ride" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
				</rule>
				<else>
					<rule e="node|way" k="parking" v="multi-storey|underground">
						<rule e="node|way" k="fee" v="yes">
							<symbol ref="parking_roof_fee" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
						</rule>
						<else>
							<symbol ref="parking_roof" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
						</else>
					</rule>
					<else>
						<rule e="node|way" k="fee" v="yes">
							<symbol ref="parking_fee" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
						</rule>
						<else>
							<symbol ref="parking" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
						</else>
					</else>
				</else>
			</rule>
			<else>
				<rule e="node|way" k="access" v="permissive|public">
					<rule e="node|way" k="parking" v="park_and_ride">
						<symbol ref="park_and_ride-permissive" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
					</rule>
					<else>
						<rule e="node|way" k="parking" v="multi-storey|underground">
							<rule e="node|way" k="fee" v="yes">
								<symbol ref="parking_roof_fee-permissive" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
							</rule>
							<else>
								<symbol ref="parking_roof-permissive" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
							</else>
						</rule>
						<else>
							<rule e="node|way" k="fee" v="yes">
								<symbol ref="parking_fee-permissive" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
							</rule>
							<else>
								<symbol ref="parking-permissive" position="center" transform="scale(0.8)"/>   <!-- !!! zmenseni -->
							</else>
						</else>
					</else>
				</rule>
			</else>
		</rule>

		<rule e="node" k="highway" v="traffic_signals">
			<symbol ref="traffic_signal" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="school">
			<symbol ref="school" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="university|college">
			<symbol ref="university" position="center"/>
		</rule>
		<rule e="node|way" k="amenity|shop" v="supermarket|organic">
			<symbol ref="supermarket" position="center"/>
		</rule>
		<rule e="node|way" k="shop" v="bakery">
			<symbol ref="bakery" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="shelter">
			<rule e="node|way" k="fireplace" v="yes">
				<symbol ref="shelter-fireplace" position="center"/>
			</rule>
			<else>
				<symbol ref="shelter" position="center"/>
			</else>
		</rule>
		<rule e="node|way" k="amenity" v="library">
			<symbol ref="library" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="fire_station">
			<symbol ref="firebrigade" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="fuel">
			<symbol ref="petrolStation" position="center"/>
		</rule>
		<rule e="node" k="amenity" v="bicycle_rental">
			<symbol ref="bicycle_rental"  position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="recycling">
			<symbol ref="recycling" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="toilets">
			<symbol ref="toilets" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="fountain">
			<symbol ref="fountain" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="drinking_water">
			<symbol ref="drinking_water" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="bank">
			<symbol ref="bank" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="atm">
			<symbol ref="atm" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="bureau_de_change">
			<symbol ref="bureau_de_change" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="car_sharing">
			<symbol ref="car_sharing" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="telephone">
			<symbol ref="telephone" position="center"/>
		</rule>
		<rule e="node|way" k="amenity" v="fast_food">
			<symbol ref="fastfood" position="center"/>
		</rule>

		<!-- Leisure symbols -->
		<rule e="node|way" k="leisure" v="golf_course">
			<symbol ref="golfCourse" position="center"/>
		</rule>
		<rule e="node|way" k="leisure" v="slipway">
			<symbol ref="slipway" position="center"/>
		</rule>
		<rule e="node|way" k="leisure" v="playground">
			<symbol ref="playground" position="center"/>
		</rule>

		<!-- Sport symbols with border on nodes -->
		<rule e="node" k="sport" v="soccer">
			<symbol ref="soccer" position="center"/>
		</rule>
		<rule e="node" k="sport" v="handball">
			<symbol ref="handball" position="center"/>
		</rule>
		<rule e="node" k="sport" v="tennis">
			<symbol ref="tennis" position="center"/>
		</rule>
		<rule e="node" k="sport" v="swimming">
			<symbol ref="swimming" position="center"/>
		</rule>
		<rule e="node" k="sport" v="curling">
			<symbol ref="curling" position="center"/>
		</rule>
		
		<!-- Sport symbols without borders on ways -->
		<rule e="way" k="sport" v="soccer">
			<symbol ref="soccer-borderless" position="center" transform="scale(0.6)"/>  <!-- !!! zmenseni -->
		</rule>
		<rule e="way" k="sport" v="handball">
			<symbol ref="handball-borderless" position="center" transform="scale(0.6)"/>  <!-- !!! zmenseni -->
		</rule>
		<rule e="way" k="sport" v="tennis">
			<symbol ref="tennis-borderless" position="center" transform="scale(0.6)"/>  <!-- !!! zmenseni -->
		</rule>
		<rule e="way" k="sport" v="swimming">
			<symbol ref="swimming-borderless" position="center" transform="scale(0.6)"/>  <!-- !!! zmenseni -->
		</rule>
		<rule e="way" k="sport" v="curling">
			<symbol ref="curling-borderless" position="center" transform="scale(0.6)"/>  <!-- !!! zmenseni -->
		</rule>
		
		<!-- Historic symbols -->
		<rule e="node" k="historic" v="*">
			<rule e="node" k="historic" v="museum">
				<symbol ref="museum" position="center"/>
			</rule>
			<else>
				<circle r="0.4" class="generic-poi"/>
			</else>
		</rule>
		<rule e="way" k="historic" v="museum">
				<area ref="museum" position="center"/>
				<symbol ref="museum" position="center"/>
		</rule>
		<rule e="node" k="man_made" v="cairn">
			<circle r="0.4" stroke="black" stroke-width="0.1px" fill="white"/>
			<circle r="0.1" stroke="black" stroke-width="0.1px" fill="black"/>
		</rule>
		<rule e="node|way" k="amenity|man_made|leisure|shop|tourism|building" v="*">
			<rule e="node|way" k="disused|abandoned" v="yes|true">
				<symbol ref="disused" position="center"/>
			</rule>
		</rule>
		<!-- ==================================== Layer -5 ======================================== -->

		<!-- Access restrictions for areas -->
		<rule e="way" k="landuse" v="conservation" layer="-5">
			<rule e="way" k="access" v="private" layer="-5">
				<area class="access-private-area-border access-area-border-width-landuse-conservation" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="permissive" layer="-5">
				<area class="access-permissive-area-border access-area-border-width-landuse-conservation" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="destination" layer="-5">
				<area class="access-destination-area-border access-area-border-width-landuse-conservation" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="no" layer="-5">
				<area class="access-no-area-border access-area-border-width-landuse-conservation" layer="-5"/>
			</rule>
		</rule>
		<rule e="way" k="leisure" v="park" layer="-5">
			<rule e="way" k="access" v="private" layer="-5">
				<area class="access-private-area-border access-area-border-width-leisure-park" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="permissive" layer="-5">
				<area class="access-permissive-area-border access-area-border-width-leisure-park" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="destination" layer="-5">
				<area class="access-destination-area-border access-area-border-width-leisure-park" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="no" layer="-5">
				<area class="access-no-area-border access-area-border-width-leisure-park" layer="-5"/>
			</rule>
		</rule>
		<rule e="way" k="leisure" v="recreation_ground" layer="-5">
			<rule e="way" k="access" v="private" layer="-5">
				<area class="access-private-area-border access-area-border-width-landuse-field" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="permissive" layer="-5">
				<area class="access-permissive-area-border access-area-border-width-landuse-field" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="destination" layer="-5">
				<area class="access-destination-area-border access-area-border-width-landuse-field" layer="-5"/>
			</rule>
			<rule e="way" k="access" v="no" layer="-5">
				<area class="access-no-area-border access-area-border-width-landuse-field" layer="-5"/>
			</rule>
		</rule>

		<!-- Man-made areas -->
		<rule e="way" k="landuse" v="military" layer="-5">
			<rule e="way" k="military" v="~" layer="-5">
				<area class="military-area" layer="-5"/>
			</rule>
		</rule>
		<rule e="way" k="military" v="*" layer="-5">
			<area class="military-area" layer="-5"/>
		</rule>

		<!-- Landuse -->
		<rule e="way" k="landuse" v="residential|farmyard" layer="-5">
			<area class="landuse-residential" layer="-5"/>
		</rule>
		<rule e="way" k="landuse" v="retail" layer="-5">
			<area class="landuse-retail" layer="-5"/>
		</rule>
		<rule e="way" k="landuse" v="industrial|brownfield|railway" layer="-5">
			<area class="landuse-industrial" layer="-5"/>
		</rule>
		<rule e="way" k="landuse" v="commercial" layer="-5">
			<area class="landuse-commercial" layer="-5"/>
		</rule>
		<rule e="way" k="landuse" v="construction|greenfield" layer="-5">
			<area class="landuse-construction" layer="-5"/>
		</rule>

		<!-- Artificial landuse -->
		<rule e="way" k="man_made" v="wastewater_plant" layer="-5" closed="yes">
			<area class="man_made-wastewater" layer="-5"/>
		</rule>
		<rule e="way" k="man_made" v="wastewater_plant">
			<symbol ref="wastewater" position="center"/>
		</rule>
		<rule e="node" k="man_made" v="wastewater_plant">
			<symbol ref="wastewater" position="center"/>
		</rule>
		<rule e="way" k="amenity" v="school|college|university" layer="-5">
			<area class="amenity-school" layer="-5"/>
		</rule>


		<!-- ==================================== Layer 5 ======================================== -->

		<!-- Non-physical boundaries -->
		<rule e="way" k="boundary" v="administrative" layer="5">
			<rule e="way" k="admin_level" v="1|2|3|4|5|6|7|8|9|10|11" layer="5">
				<rule e="way" k="admin_level" v="11" layer="5">
					<line class="boundary boundary-level-11-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="10" layer="5">
					<line class="boundary boundary-level-10-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="9" layer="5">
					<line class="boundary boundary-level-9-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="8" layer="5">
					<line class="boundary boundary-level-8-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="7" layer="5">
					<line class="boundary boundary-level-7-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="6" layer="5">
					<line class="boundary boundary-level-6-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="5" layer="5">
					<line class="boundary boundary-level-5-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="4" layer="5">
					<line class="boundary boundary-level-4-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="3" layer="5">
					<line class="boundary boundary-level-3-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="2" layer="5">
					<line class="boundary boundary-level-2-casing" layer="5"/>
					<line class="boundary boundary-level-2-core" layer="5"/>
				</rule>
				<rule e="way" k="admin_level" v="1" layer="5">
					<line class="boundary boundary-level-1-casing" layer="5"/>
					<line class="boundary boundary-level-1-core" layer="5"/>
				</rule>
			</rule>
			<!-- If we don't have explicit admin_level then guess -->
			<else>
				<rule e="way" k="border_type" v="suburb" layer="5">
					<line class="boundary boundary-level-10-core" layer="5"/>
				</rule>
				<rule e="way" k="border_type" v="municipality|city" layer="5">
					<line class="boundary boundary-level-8-core" layer="5"/>
				</rule>
				<rule e="way" k="border_type" v="county|district" layer="5">
					<line class="boundary boundary-level-6-core" layer="5"/>
				</rule>
				<rule e="way" k="border_type" v="region|state" layer="5">
					<line class="boundary boundary-level-4-core" layer="5"/>
				</rule>
				<rule e="way" k="border_type" v="nation|country" layer="5">
					<line class="boundary boundary-level-2-casing" layer="5"/>
					<line class="boundary boundary-level-2-core" layer="5"/>
				</rule>
			</else>
		</rule>
		<rule e="way" k="boundary" v="national_park" layer="5">
			<line class="boundary boundary-nationalpark-core" layer="5"/>
		</rule>

		<!-- Waterway and Street names -->
		<rule e="way" k="osmarender:renderName" v="~|yes" layer="5">
			<rule e="way" k="tunnel" v="~|no|false" layer="5"> <!-- no names in tunnels -->
				<rule e="way" k="area" v="~|no|false" layer="5"> <!-- area names are done elsewhere -->
					<rule e="way" k="junction" v="~" layer="5"> <!-- no names on or along junctions -->
						<!-- Waterway names -->
						<rule e="way" k="waterway" v="ditch" layer="5">
							<pathText k="name" startOffset="50%" class="waterway-name-casing waterway-ditch-name-casing" dy="0.5px" layer="5"/>
							<pathText k="name" startOffset="50%" class="waterway-name-core waterway-ditch-name-core" dy="0.5px" layer="5"/>
						</rule>
						<rule e="way" k="waterway" v="drain" layer="5">
							<pathText k="name" startOffset="50%" class="waterway-name-casing waterway-drain-name-casing" dy="0.5px" layer="5"/>
							<pathText k="name" startOffset="50%" class="waterway-name-core waterway-drain-name-core" dy="0.5px" layer="5"/>
						</rule>
						<rule e="way" k="waterway" v="canal" layer="5">
							<pathText k="name" startOffset="50%" class="waterway-name-casing waterway-canal-name-casing" dy="0.5px" layer="5"/>
							<pathText k="name" startOffset="50%" class="waterway-name-core waterway-canal-name-core" dy="0.5px" layer="5"/>
						</rule>
						<rule e="way" k="waterway" v="stream" layer="5">
							<pathText k="name" startOffset="50%" class="waterway-name-casing waterway-stream-name-casing" dy="0.5px" layer="5"/>
							<pathText k="name" startOffset="50%" class="waterway-name-core waterway-stream-name-core" dy="0.5px" layer="5"/>
						</rule>
						<rule e="way" k="waterway" v="river" layer="5">
							<pathText k="name" startOffset="50%" class="waterway-name-casing waterway-river-name-casing" dy="0.5px" layer="5"/>
							<pathText k="name" startOffset="50%" class="waterway-name-core waterway-river-name-core" dy="0.5px" layer="5"/>
						</rule>

						<!-- Scramble names -->
						<rule e="way" k="scramble" v="*" layer="5">
							<pathText startOffset="50%" class="caption-casing highway-scramble-name" dy="0.35px" layer="5"><tag k="name"/> ( <tag k="scramble"/> )</pathText>
							<pathText startOffset="50%" class="caption-core highway-scramble-name" dy="0.35px" layer="5"><tag k="name"/> ( <tag k="scramble"/> )</pathText>
						</rule>

						<!-- Highway names -->
						<rule e="way" k="highway" v="steps" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-steps-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="footway|footpath" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-footway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="pedestrian" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-pedestrian-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="cycleway" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-cycleway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="path" layer="5">
							<rule e="way" k="bicycle" v="yes|designated" layer="5">
								<pathText k="name" startOffset="50%" class="highway-name highway-cycleway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
							</rule>
							<else>
								<rule e="way" k="horse" v="yes|designated" layer="5">
									<pathText k="name" startOffset="50%" class="highway-name highway-bridleway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
								</rule>
								<else>
									<pathText k="name" startOffset="50%" class="highway-name highway-footway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
								</else></else>
						</rule>
						<rule e="way" k="highway" v="bridleway" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-bridleway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="byway" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-byway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="track" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-track-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="unsurfaced" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-unsurfaced-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="service" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-service-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="unclassified|residential|minor|living_street|cycleroad|road" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-unclassified-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="tertiary_link" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-tertiary-link-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="tertiary" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-tertiary-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="secondary_link" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-secondary-link-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="secondary" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-secondary-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="primary_link" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-primary-link-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="trunk_link" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-trunk-link-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="motorway_link" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-motorway-link-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="primary" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-primary-name" dy="0.5px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="trunk" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-trunk-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
						<rule e="way" k="highway" v="motorway" layer="5">
							<pathText k="name" startOffset="50%" class="highway-name highway-motorway-name" dy="0.35px" layer="5" avoid-duplicates="true" />
						</rule>
					</rule>

					<!-- Roundabouts, motorway exits etc -->
					<rule e="way" k="junction" v="*" layer="5" notConnectedSameTag="name">
						<rule e="way" k="highway" v="unsurfaced|track" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-unsurfaced-name" dy="0.75px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="pedestrian" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-pedestrian-name" dy="0.75px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="unclassified|residential|minor|living_street|cycleroad|road" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-unclassified-name" dy="0.75px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="tertiary|tertiary_link" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-tertiary-name" dy="0.75px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="secondary|secondary_link" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-secondary-name" dy="1px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="primary|primary_link" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-primary-name" dy="1px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="trunk|trunk_link" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-trunk-name" dy="1.5px" layer="5"/>
						</rule>
						<rule e="way" k="highway" v="motorway|motorway_link" layer="5">
							<caption k="name" startOffset="50%" class="highway-name highway-motorway-name" dy="1.5px" layer="5"/>
						</rule>
					</rule>
				</rule>
				<else> <!-- area!=yes -->
					<rule e="way" k="highway" v="*" notConnectedSameTag="name" layer="5">
						<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
						<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
					</rule>
				</else>
			</rule>
		</rule>

		<!-- Road numbers for all highways -->
		<rule e="way" k="osmarender:renderRef" v="~|yes" layer="5">
			<rule e="way" k="tunnel" v="~|no|false" layer="5"> <!-- no road numbers in tunnels -->
				<rule e="way" k="junction" v="~" layer="5"> <!-- no ref on junctions / roundabouts -->
					<!-- Use startOffset to prevent captions from colliding on dual carriageways -->
					<rule e="way" k="highway" v="steps" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-steps-ref" dy="-0.5px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="footway|footpath" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-footway-ref" dy="-0.5px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="pedestrian" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-pedestrian-ref" dy="-1px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="cycleway" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-cycleway-ref" dy="-0.8px" avoid-duplicates="true" />
						<pathText k="ncn_ref" startOffset="60%" class="highway-ref highway-cycleway-ref" dy="-0.8px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="path" layer="5">
						<rule e="way" k="bicycle" v="yes|designated" layer="5">
							<pathText k="ref" startOffset="30%" class="highway-ref highway-cycleway-ref" dy="-0.8px" layer="5" avoid-duplicates="true" />
							<pathText k="ncn_ref" startOffset="60%" class="highway-ref highway-cycleway-ref" dy="-0.8px" layer="5" avoid-duplicates="true" />
						</rule>
						<else>
							<rule e="way" k="horse" v="yes|designated" layer="5">
								<pathText k="ref" startOffset="30%" class="highway-ref highway-bridleway-ref" dy="-0.8px" layer="5" avoid-duplicates="true" />
							</rule>
							<else>
								<pathText k="ref" startOffset="30%" class="highway-ref highway-footway-ref" dy="-0.5px" layer="5" avoid-duplicates="true" />
							</else></else>
					</rule>
					<rule e="way" k="highway" v="bridleway" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-bridleway-ref" dy="-0.8px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="byway" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-byway-ref" dy="-1px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="track" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-track-ref" dy="-1px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="unsurfaced" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-unsurfaced-ref" dy="-1px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="service" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-service-ref" dy="-1px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="unclassified|residential|minor|living_street|cycleroad|road" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-unclassified-ref" dy="-1.2px" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="tertiary" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-tertiary-ref" dy="-1.25px" textAttenuation="3" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="secondary" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-secondary-ref" dy="-1.25px" textAttenuation="3" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="primary" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-primary-ref" dy="-1.25px" textAttenuation="3" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="trunk" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-trunk-ref" dy="-1.25px" textAttenuation="3" layer="5" avoid-duplicates="true" />
					</rule>
					<rule e="way" k="highway" v="motorway" layer="5">
						<pathText k="ref" startOffset="30%" class="highway-ref highway-motorway-ref" dy="-1.50px" textAttenuation="3" layer="5" avoid-duplicates="true" />
					</rule>
				</rule>
			</rule>
		</rule>

		<!-- House numbers -->
		<rule e="node|way" k="addr:housenumber" v="*" layer="5">
			<rule e="node|way" k="power|tourism|amenity|man_made|shop|historic" v="tower|hotel|hostel|information|camp_site|hospital|doctor|pharmacy|postoffice|pub|cafe|cinema|theatre|windmill|place_of_worship|parking|school|university|college|supermarket|bakery|organic|shelter|library|fire_station|fuel|recycling|toilets|drinking_water|bank|atm|bureau_de_change|museum|telephone|fast_food|restaurant" layer="5">
				<!-- circle r="0.9px" class="housenumber-node" transform="translate(1.6,0)" layer="5"/ testweise raus ... -->
				<caption k="addr:housenumber" startOffset="50%" class="housenumber-casing housenumber-left"  dy="0.3px" dx="0.9px" layer="5"/>
				<caption k="addr:housenumber" startOffset="50%" class="housenumber-caption housenumber-left" dy="0.3px" dx="0.9px" layer="5"/>
			</rule>
			<else>
				<rule e="node|way" k="sport" v="soccer|handball|tennis|swimming|curling" layer="5"><!-- !!! posunuti cisla domu u sportovnich zarizeni -->
				<!-- circle r="0.9px" class="housenumber-node" transform="translate(1.6,0)" layer="5"/ testweise raus ... -->
					<caption k="addr:housenumber" startOffset="50%" class="housenumber-casing housenumber-center" dy="2.6px" dx="0px" layer="5"/>
					<caption k="addr:housenumber" startOffset="50%" class="housenumber-caption housenumber-center" dy="2.6px" dx="0px" layer="5"/>
				</rule>
				<else>
				<!-- circle r="0.9px" class="housenumber-node" layer="5"/ -->
					<caption k="addr:housenumber" startOffset="50%" class="housenumber-casing housenumber-center"  dy="0.3px" layer="5"/>
					<caption k="addr:housenumber" startOffset="50%" class="housenumber-caption housenumber-center" dy="0.3px" layer="5"/>
				</else>
			</else>
		</rule>

		<!-- Place names  -->
		<rule e="node|way" k="osmarender:renderName" v="~|yes" layer="5">
			<rule e="node|way" k="aeroway" v="gate" layer="5">
				<caption k="ref" class="place-caption" font-size="1px" layer="5"/>
			</rule>
			<rule e="node|way" k="natural" v="peak" layer="5">
				<caption k="name" class="place-caption peak-caption" dy="-1.5px" layer="5"/>
				<caption k="ele" class="place-caption" font-size="1px" dy="2.0px" layer="5"/>
			</rule>
			<rule e="node" k="mountain_pass" v="yes" layer="5">
				<caption k="name" class="place-caption pass-caption" dy="-1.5px" layer="5"/>
				<caption k="ele" class="place-caption" font-size="1px" dy="2.0px" layer="5"/>
			</rule>
			<rule e="node|way" k="natural" v="cave_entrance" layer="5">
				<caption k="name" class="place-caption cave-caption" dy="-1.5px" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="islet" layer="5">
				<caption k="name" class="place-caption islet-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="village" layer="5">
				<caption k="name" class="place-caption village-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="suburb" layer="5">
				<caption k="name" class="place-caption suburb-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="hamlet" layer="5">
				<caption k="name" class="place-caption hamlet-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="locality" layer="5">
				<caption k="name" class="place-caption locality-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="place" v="farm" layer="5">
				<caption k="name" class="place-caption farm-caption" layer="5"/>
			</rule>
			<rule e="node|way" k="tourism" v="attraction" layer="5">
				<rule e="node|way" k="amenity|historic" v="place_of_worship|ruins" />
				<else>
					<rule e="node|way" k="highway" v="~">
						<caption k="name" class="tourism-attraction-caption" layer="5"/>
					</rule>
				</else>
			</rule>

			<!-- platforms text -->
			<rule e="way" k="highway|railway|public_transport" v="platform" closed="yes">
				<caption k="ref" startOffset="50%" class="highway-platform-ref" dy="0.3px" layer="5" />
			</rule>
			<rule e="way" k="highway|railway|public_transport" v="platform" closed="no">
				<caption k="ref" startOffset="50%" class="highway-platform-ref" dy="0.3px" layer="5" />
			</rule>
			<rule e="node" k="highway|railway|public_transport" v="platform">
				<caption k="ref" startOffset="50%" class="highway-platform-ref" dy="0.3px" layer="5" />
			</rule>

			<rule e="node" k="railway" v="station" layer="5">
				<rule e="node" s="way" k="railway" v="rail" layer="5">
					<caption k="name" class="caption-casing railway-station-caption-casing" dy="-1.5px" layer="5"/>
					<caption k="name" class="caption-core railway-station-caption-core" dy="-1.5px" layer="5"/>
				</rule>
				<else>
					<caption k="name" class="caption-casing railway-halt-caption-casing" dy="-1px" layer="5"/>
					<caption k="name" class="caption-core railway-halt-caption-core" dy="-1px" layer="5"/>
				</else>
			</rule>
			<rule e="node" k="railway" v="halt" layer="5">
				<caption k="name" class="caption-casing railway-halt-caption-casing" dy="-1px" layer="5"/>
				<caption k="name" class="caption-core railway-halt-caption-core" dy="-1px" layer="5"/>
			</rule>
			<rule e="node" k="railway" v="tram_stop" layer="5">
				<caption k="name" class="caption-casing railway-halt-caption-casing" dy="-1px" layer="5"/>
				<caption k="name" class="caption-core railway-halt-caption-core" dy="-1px" layer="5"/>
			</rule>
			<rule e="node" k="aerialway" v="station" layer="5">
				<caption k="name" class="caption-casing railway-halt-caption-casing" dy="-1px" layer="5"/>
				<caption k="name" class="caption-core railway-halt-caption-core" dy="-1px" layer="5"/>
			</rule>
			<rule e="node|way" k="amenity" v="pub|cafe" layer="5">
				<caption k="name" class="caption-casing amenity-pub-caption-casing" dy="-1.2px" layer="5"/>
				<caption k="name" class="caption-core amenity-pub-caption-core" dy="-1.2px" layer="5"/>
			</rule>
			<rule e="node|way" k="man_made" v="lighthouse" layer="5">
				<caption k="name" class="caption-casing man_made-lighthouse-caption-casing" dy="-1.2px" layer="5"/>
				<caption k="name" class="caption-core man_made-lighthouse-caption-core" dy="-1.2px" layer="5"/>
			</rule>
			<rule e="node|way" k="amenity" v="cinema" layer="5">
				<caption k="name" class="caption-casing amenity-cinema-caption-casing" dy="-2px" layer="5"/>
				<caption k="name" class="caption-core amenity-cinema-caption-core" dy="-2px" layer="5"/>
			</rule>
			<rule e="node|way" k="amenity" v="theatre" layer="5">
				<caption k="name" class="caption-casing amenity-theatre-caption-casing" dy="-3px" layer="5"/>
				<caption k="name" class="caption-core amenity-theatre-caption-core" dy="-3px" layer="5"/>
			</rule>

			<rule e="node|way" k="amenity" v="school|college|university" layer="5">
				<caption k="name" class="caption-casing generic-caption-casing" dy="-3px" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" dy="-3px" layer="5"/>
			</rule>
			<rule e="node|way" k="amenity" v="restaurant|shelter|supermarket|bakery|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|atm|bureau_de_change|bus_station|fast_food|fuel" layer="5">
				<caption k="name" class="caption-casing generic-caption-casing" dy="-2.5px" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" dy="-2.5px" layer="5"/>
			</rule>
			<rule e="node|way" k="shop" v="supermarket|organic|bakery" layer="5">
				<caption k="name" class="caption-casing generic-caption-casing" dy="-2.5px" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" dy="-2.5px" layer="5"/>
			</rule>
			<rule e="node|way" k="tourism" v="hotel|hostel|camp_site|information" layer="5">
				<rule e="node|way" k="amenity" v="restaurant" layer="5">
				</rule>
				<else>
					<caption k="name" class="caption-casing generic-caption-casing" dy="-2.5px" layer="5"/>
					<caption k="name" class="caption-core generic-caption-core" dy="-2.5px" layer="5"/>
				</else>
			</rule>
			<rule e="node|way" k="historic" v="*" layer="5">
				<rule e="node|way" k="building" v="~|no">
					<caption k="name" class="caption-casing generic-caption-casing" dy="-2.5px" layer="5"/>
					<caption k="name" class="caption-core generic-caption-core" dy="-2.5px" layer="5"/>
				</rule>
			</rule>
		</rule>

		<!-- Area captions -->
		<rule e="way" k="natural" v="*" layer="5">
			<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
			<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
		</rule>

		<rule e="way" k="sport" v="~" layer="5"> <!-- omit rendering captions for leisure, if sport is also set -->
			<rule e="way" k="leisure" v="*" layer="5">
				<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
			</rule>
		</rule>
		<rule e="way" k="sport" v="*" layer="5">
			<!-- Offset captions for areas with icons -->
			<rule e="way" k="sport" v="soccer|handball|tennis|swimming|curling" layer="5">
				<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" dy="1.7px" layer="5"/><!-- !! posunuti trochu nahoru -->
				<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" dy="1.7px" layer="5"/><!-- !! posunuti trochu nahoru -->
			</rule>
			<else>
				<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
			</else>
		</rule>
		<rule e="way" k="landuse|military" v="*" layer="5">
			<!-- Only render landuse caption when no other caption is rendered for the area. -->
			<rule e="way" k="amenity|shop|tourism" v="pub|cafe|cinema|theatre|school|college|university|restaurant|shelter|supermarket|bakery|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|atm|bureau_de_change|bus_station|supermarket|organic|hotel|hostel|camp_site|information" />
			<else>
				<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
				<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
			</else>
		</rule>

		<rule e="node" k="sport" v="~" layer="5"> <!-- don't render captions for buildings, if sport is also set, thus honor offsets -->
			<rule e="node" k="building" v="*" layer="5">
				<!-- same goes if one of the following is set -->
				<rule e="node" k="amenity|shop|tourism" v="pub|cafe|cinema|theatre|school|college|university|restaurant|shelter|supermarket|bakery|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|atm|bureau_de_change|bus_station|supermarket|organic|hotel|hostel|camp_site|information|fast_food|fuel" layer="5">
				</rule>
				<else>
					<caption k="name" class="caption-casing generic-caption-casing" text-anchor='middle' startOffset='50%' dy="-0.7px" layer="5"/>
					<caption k="name" class="caption-core generic-caption-core" text-anchor='middle' startOffset='50%' dy="-0.7px" layer="5"/>
				</else>
			</rule>
		</rule>
		<rule e="way" k="sport" v="~" layer="5"> <!-- don't render captions for buildings, if sport is also set, thus honor offsets -->
			<rule e="way" k="building" v="*" layer="5">
				<!-- same goes if one of the following is set -->
				<rule e="way" k="amenity|shop|tourism" v="pub|cafe|cinema|theatre|school|college|university|restaurant|shelter|supermarket|bakery|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|atm|bureau_de_change|bus_station|supermarket|organic|hotel|hostel|camp_site|information|fast_food|fuel" layer="5">
				</rule>
				<else>
					<rule e="way" k="addr:housenumber" v="*">
						<!-- Offset caption if housenumber is present -->
						<caption k="name" class="caption-casing generic-caption-casing" text-anchor='middle' startOffset='50%' dy="-0.7px" layer="5"/>
						<caption k="name" class="caption-core generic-caption-core" text-anchor='middle' startOffset='50%' dy="-0.7px" layer="5"/>
					</rule>
					<else>
						<caption k="name" class="caption-casing generic-caption-casing" text-anchor='middle' startOffset='50%' layer="5"/>
						<caption k="name" class="caption-core generic-caption-core" text-anchor='middle' startOffset='50%' layer="5"/>
					</else>
				</else>
			</rule>
		</rule>
		<rule e="way" k="tourism" v="tourism-attraction|zoo|picnic_site|caravan_site|camp_site" layer="5">
			<caption k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
			<caption k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
		</rule>
	</rule>

	<!-- Relation/Routes SDW -->
	<!--
		<rule e="relation" k="type" v="route">
			<rule e="relation" k="prefered_color" v="*">
				<rule e="relation" k="prefered_color" v="white">
					<line class="relationroute-way relationroute-white" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="silver">
					<line class="relationroute-way relationroute-silver" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="gray">
					<line class="relationroute-way relationroute-gray" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="black">
					<line class="relationroute-way relationroute-black" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="red">
					<line class="relationroute-way relationroute-red" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="maroon">
					<line class="relationroute-way relationroute-maroon" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="green">
					<line class="relationroute-way relationroute-green" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="lime">
					<line class="relationroute-way relationroute-lime" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="blue">
					<line class="relationroute-way relationroute-blue" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="navy">
					<line class="relationroute-way relationroute-navy" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="fuchsia">
					<line class="relationroute-way relationroute-fuchsia" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="purple">
					<line class="relationroute-way relationroute-purple" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="yellow">
					<line class="relationroute-way relationroute-yellow" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="olive">
					<line class="relationroute-way relationroute-olive" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="aqua">
					<line class="relationroute-way relationroute-aqua" smart-linecap="no"/>
				</rule>
				<rule e="relation" k="prefered_color" v="teal">
					<line class="relationroute-way relationroute-teal" smart-linecap="no"/>
				</rule>
			</rule>
			<else>
				<rule e="relation" k="route" v="road">
					<line class="relationroute-way relationroute-yellow" smart-linecap="no"/>
					<circle class="relationroute-yellow relationroute-stop" r="0.5px"/>
				</rule>
				<rule e="relation" k="route" v="bicycle">
					<line class="relationroute-way relationroute-blue" smart-linecap="no"/>
					<circle class="relationroute-blue relationroute-stop" r="0.5px"/>
				</rule>
				<rule e="relation" k="route" v="hiking">
					<line class="relationroute-way relationroute-red" smart-linecap="no"/>
					<circle class="relationroute-red relationroute-stop" r="0.5px"/>
				</rule>
				<rule e="relation" k="route" v="bus">
					<line class="relationroute-way relationroute-green" smart-linecap="no"/>
					<circle class="relationroute-green relationroute-stop" r="0.5px"/>
				</rule>
			</else>
		</rule>
		-->

	<!-- SVG Definitions - markers, symbols etc go here -->
	<include ref="markers.xml"/>
	<defs>
		<style xmlns="http://www.w3.org/2000/svg" id="styles" type="text/css">
			/* DO NOT DELETE - Used by osmarender.xsl */
			.untagged-segments {
			stroke-width: 0.5px;
			stroke-linejoin: round;
			stroke-linecap: butt;
			stroke: #e0e0e0;
			stroke-dasharray: 0.5,0.5;
			}

			.canal-lock {
			fill: none;
			stroke: #ffffff;
			stroke-width: 0.1px;
			stroke-opacity: 0;
			marker-mid: url(#canal-lock);
			}

			.noexit-all {
			fill: none;
			stroke: #ffffff;
			stroke-width: 0.1px;
			stroke-opacity: 0;
			marker-mid: url(#noexit-all);
			}
			.noexit-veh {
			fill: none;
			stroke: #ffffff;
			stroke-width: 0.1px;
			stroke-opacity: 0;
			marker-mid: url(#noexit-veh);
			}
			.noexit-mot {
			fill: none;
			stroke: #ffffff;
			stroke-width: 0.1px;
			stroke-opacity: 0;
			marker-mid: url(#noexit-mot);
			}
			.noexit-no {
			fill: none;
			stroke: #ffffff;
			stroke-width: 0.1px;
			stroke-opacity: 0;
			marker-mid: url(#noexit-no);
			}
			.gate-locked {
			fill: none;
			stroke: red;
			stroke-width: 1px;
			stroke-opacity: 0;
			marker-mid: url(#marker-gate-locked);
			}

			.gate-closed {
			fill: none;
			stroke: red;
			stroke-width: 1px;
			stroke-opacity: 0;
			marker-mid: url(#marker-gate-closed);
			}

			.gate-open {
			fill: none;
			stroke: red;
			stroke-width: 1px;
			stroke-opacity: 0;
			marker-mid: url(#marker-gate-open);
			}

			.bollard {
			fill: #707070;
			stroke: none;
			}

			.chicane {
			fill: none;
			stroke: red;
			stroke-width: 2px;
			stroke-opacity: 0;
			marker-mid: url(#marker-chicane);
			}

			.traffic-calming {
			fill: none;
			stroke: red;
			stroke-width: 2px;
			stroke-opacity: 0;
			marker-mid: url(#marker-traffic-calming);
			}

			/* RelationRoute - generic styles */
			.relationroute-way {
			stroke-linecap: round;
			stroke-linejoin: round;
			smart-linecap: no;
			fill: none;
			stroke-width: 2.5px;
			opacity: 0.75;
			}

			.relationroute-stop {
			stroke-width: 4px;
			fill: none;
			opacity: 0.75;
			}

			/* VGA colours supported, add more if necessary */
			.relationroute-white                      { stroke: #FFFFFF; }
			.relationroute-silver                     { stroke: #C0C0C0; }
			.relationroute-gray                       { stroke: #808080; }
			.relationroute-black                      { stroke: #000000; }
			.relationroute-red                        { stroke: #FF0000; }
			.relationroute-maroon                     { stroke: #800000; }
			.relationroute-green                      { stroke: #008000; }
			.relationroute-lime                       { stroke: #00FF00; }
			.relationroute-blue                       { stroke: #0000FF; }
			.relationroute-navy                       { stroke: #000080; }
			.relationroute-fuchsia                    { stroke: #FF00FF; }
			.relationroute-purple                     { stroke: #800080; }
			.relationroute-yellow                     { stroke: #FFFF00; }
			.relationroute-olive                      { stroke: #808000; }
			.relationroute-aqua                       { stroke: #00FFFF; }
			.relationroute-teal                       { stroke: #008080; }

			/* Highways - generic styles */
			.highway-casing {
			stroke-linecap: square;
			stroke-linejoin: round;
			fill: none;
			}

			.highway-core {
			stroke-linecap: square;
			stroke-linejoin: round;
			fill: none;
			}

			.highway-motorway-junction {
			fill: yellow;
			stroke: #4D5D73;
			stroke-width: 0.75px;
			}

			.highway-motorway-junction-caption {
			fill: black;
			stroke: black;
			stroke-width: 0.05px;
			font-family: "DejaVu Sans";
			font-size: 1.5px;
			font-weight: bold;
			text-anchor: middle;
			}

			.highway-ref {
			fill: #606060;
			stroke: white;
			font-family: "DejaVu Sans";
			font-weight: normal;
			text-anchor: middle;
			}

			.highway-name {
			fill: black;
			font-family: "DejaVu Sans";
			font-weight: normal;
			stroke: white;
			text-anchor: middle;
			}

			.highway-user {
			stroke-width: 0px;
			font-size: 1.0px; fill: #c0c0c0;
			}

			.highway-nobicycle-1 { stroke-width: 2.7px; stroke: #000080; stroke-dasharray: 0.1,1.9; stroke-linecap: butt; fill: none; stroke-miterlimit: 0.1; }
			.highway-nobicycle-2 { stroke-width: 2.0px; stroke: #d1fad1; stroke-dasharray: 0.1,1.9; stroke-linecap: butt; fill: none; stroke-miterlimit: 0.1; }
			.highway-nobicycle-3 { stroke-width: 0.2px; stroke: #000080; stroke-dasharray: 0.1,1.9; stroke-linecap: butt; fill: none; stroke-miterlimit: 0.1; }

			.bridge-casing {
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #707070;
			fill: none;
			marker-start: url(#bridge-casing-start);
			marker-end: url(#bridge-casing-end);
			}

			.bridge-core {
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #ffffff;
			fill: none;
			}

			.tunnel-casing {
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			}

			.tunnel-core {
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			}

			.tunnel { stroke-dasharray: 0.4, 0.4; }

			.embankment-cutting              { fill: none; stroke-linejoin: bevel; stroke-linecap: butt; stroke: #6f4a18; }
			.dyke                            { fill: none; stroke-linejoin: bevel; stroke-linecap: butt; stroke: #3a7019; }

			.embankment-long-casing          { stroke-width: 3.6px; stroke-dasharray: 0.1, 1.1; }
			.embankment-short-casing         { stroke-width: 3.0px; stroke-dasharray: 0.1, 0.5, 0.1, 0.5;  }
			.embankment-middle-casing        { stroke-width: 1.9px; stroke-dasharray: none; }
			.embankment-core                 { stroke-width: 1.7px; stroke: #f8f8f8; stroke-dasharray: none; }

			.embankment-small-long-casing    { stroke-width: 3.1px; stroke-dasharray: 0.1, 1.1; }
			.embankment-small-short-casing   { stroke-width: 2.5px; stroke-dasharray: 0.1, 0.5, 0.1, 0.5;  }
			.embankment-small-middle-casing  { stroke-width: 1.4px; stroke-dasharray: none; }
			.embankment-small-core           { stroke-width: 1.2px; stroke: #f8f8f8; stroke-dasharray: none; }

			.embankment-wide-long-casing     { stroke-width: 4.3px; stroke-dasharray: 0.1, 1.1; }
			.embankment-wide-short-casing    { stroke-width: 3.6px; stroke-dasharray: 0.1, 0.5, 0.1, 0.5;  }
			.embankment-wide-middle-casing   { stroke-width: 2.4px; stroke-dasharray: none; }
			.embankment-wide-core            { stroke-width: 2.2px; stroke: #f8f8f8; stroke-dasharray: none; }

			.cutting-casing                  { stroke-width: 3.6px; stroke-dasharray: none; }
			.cutting-long-core               { stroke-width: 3.4px; stroke: #f8f8f8; stroke-dasharray: 0.5, 0.1, 0.5, 0.1; }
			.cutting-short-core              { stroke-width: 2.9px; stroke: #f8f8f8; stroke-dasharray: 1.1, 0.1; }
			.cutting-middle-core             { stroke-width: 2.1px; stroke: #f8f8f8; stroke-dasharray: none; }

			.cutting-small-casing            { stroke-width: 3.1px; stroke-dasharray: none; }
			.cutting-small-long-core         { stroke-width: 2.9px; stroke: #f8f8f8; stroke-dasharray: 0.5, 0.1, 0.5, 0.1; }
			.cutting-small-short-core        { stroke-width: 2.4px; stroke: #f8f8f8; stroke-dasharray: 1.1, 0.1; }
			.cutting-small-middle-core       { stroke-width: 1.6px; stroke: #f8f8f8; stroke-dasharray: none; }

			.cutting-wide-casing             { stroke-width: 4.3px; stroke-dasharray: none; }
			.cutting-wide-long-core          { stroke-width: 4.1px; stroke: #f8f8f8; stroke-dasharray: 0.5, 0.1, 0.5, 0.1; }
			.cutting-wide-short-core         { stroke-width: 3.4px; stroke: #f8f8f8; stroke-dasharray: 1.1, 0.1; }
			.cutting-wide-middle-core        { stroke-width: 2.6px; stroke: #f8f8f8; stroke-dasharray: none; }

			.railway-casing { stroke-linecap: butt; stroke-linejoin: round; fill: none; }
			.railway-1-core { stroke-linecap: butt; stroke-linejoin: round; fill: none; }
			.railway-2-core { stroke-linecap: butt; stroke-linejoin: round; fill: none; }
			.railway-core   { stroke-linecap: butt; stroke-linejoin: round; fill: none; }

			.railway-tunnel-ends {
			stroke-opacity: 0;
			fill: none;
			marker-start: url(#marker-tunnel-start);
			marker-end: url(#marker-tunnel-end);
			stroke: #b0b0b0;
			stroke-width: 1.5px;
			}

			.railway-bridge-casing             { stroke-width: 1.5px; }
			.railway-bridge-core               { stroke-width: 1.0px; }

			.railway-rail-casing                    { stroke-width: 0.55px; }
			.railway-rail-1-core                    { stroke-width: 0.4px; }
			.railway-rail-2-core                    { stroke-width: 0.4px; stroke-dasharray: 1.5,1.5; }
			.railway-rail-casing-color              { stroke: #333333; }
			.railway-rail-1-core-color              { stroke: #e6e6e6; }
			.railway-rail-2-core-color              { stroke: #333333; }
			.railway-rail-tunnel-core               { stroke-opacity: 0.15; }

			.railway-narrow-casing                    { stroke-width: 0.4px; }
			.railway-narrow-1-core                    { stroke-width: 0.25px; }
			.railway-narrow-2-core                    { stroke-width: 0.25px; stroke-dasharray: 1.8,1.8; }
			.railway-narrow-casing-color              { stroke: #333333; }
			.railway-narrow-1-core-color              { stroke: #e6e6e6; }
			.railway-narrow-2-core-color              { stroke: #333333; }
			.railway-narrow-tunnel-core               { stroke-opacity: 0.15; }

			.railway-preserved-casing                    { stroke-width: 0.4px; }
			.railway-preserved-1-core                    { stroke-width: 0.25px; }
			.railway-preserved-2-core                    { stroke-width: 0.25px; stroke-dasharray: 1.5,1.5; }
			.railway-preserved-casing-color              { stroke: #909090; }
			.railway-preserved-1-core-color              { stroke: #e6e6e6; }
			.railway-preserved-2-core-color              { stroke: #333333; }
			.railway-preserved-tunnel-core               { stroke-opacity: 0.15; }

			.railway-light-casing                    { stroke-width: 0.4px; }
			.railway-light-1-core                    { stroke-width: 0.25px; }
			.railway-light-2-core                    { stroke-width: 0.25px; stroke-dasharray: 1.2,1.8; }
			.railway-light-casing-color              { stroke: #0f4c0f; }
			.railway-light-1-core-color              { stroke: #b7e6e6; }
			.railway-light-2-core-color              { stroke: #0f4c0f; }
			.railway-light-tunnel-core               { stroke-opacity: 0.3; }

			.railway-tram-casing                    { stroke-width: 0.4px; }
			.railway-tram-1-core                    { stroke-width: 0.25px; }
			.railway-tram-2-core                    { stroke-width: 0.25px; stroke-dasharray: 1.2,1.8; }
			.railway-tram-casing-color              { stroke: #4c0f4c; }
			.railway-tram-1-core-color              { stroke: #e6b7e6; }
			.railway-tram-2-core-color              { stroke: #4c0f4c; }
			.railway-tram-tunnel-core               { stroke-opacity: 0.3; }

			.railway-subway-casing                    { stroke-width: 0.4px; }
			.railway-subway-1-core                    { stroke-width: 0.25px; }
			.railway-subway-2-core                    { stroke-width: 0.25px; stroke-dasharray: 1.2,1.8; }
			.railway-subway-casing-color              { stroke: #0f0f4c; }
			.railway-subway-1-core-color              { stroke: #b7b7e6; }
			.railway-subway-2-core-color              { stroke: #0f0f4c; }
			.railway-subway-tunnel-core               { stroke-opacity: 0.3; }

			.railway-funicular-casing                    { stroke-width: 0.4px; }
			.railway-funicular-1-core                    { stroke-width: 0.25px; stroke-dasharray: 1.2,1.8; }
			.railway-funicular-t-core                    { stroke-width: 0.25px; }
			.railway-funicular-2-core                    { stroke-width: 0.08px; }
			.railway-funicular-casing-color              { stroke: #4c0f0f; }
			.railway-funicular-1-core-color              { stroke: #e6b7b7; }
			.railway-funicular-2-core-color              { stroke: #4c0f0f; }
			.railway-funicular-tunnel-core               { stroke-opacity: 0.3; }

			.railway-monorail-casing                    { stroke-width: 0.4px; }
			.railway-monorail-1-core                    { stroke-width: 0.25px; }
			.railway-monorail-2-core                    { stroke-width: 0.08px; }
			.railway-monorail-casing-color              { stroke: #4c0f0f; }
			.railway-monorail-1-core-color              { stroke: #e6b7b7; }
			.railway-monorail-2-core-color              { stroke: #ffffff; }
			.railway-monorail-tunnel-core               { stroke-opacity: 0.3; }

			.railway-yard-casing                    { stroke-width: 0.3px; }
			.railway-yard-1-core                    { stroke-width: 0.17px; }
			.railway-yard-2-core                    { stroke-width: 0.17px; stroke-dasharray: 0.9,2.1; }
			.railway-yard-casing-color              { stroke: #333333; }
			.railway-yard-1-core-color              { stroke: #e6e6e6; }
			.railway-yard-2-core-color              { stroke: #333333; }
			.railway-yard-tunnel-core               { stroke-opacity: 0.3; }

			.railway-con-casing                { stroke-width: 0.4px; stroke-dasharray: 0.5,0.5; }
			.railway-con-1-core                { stroke-width: 0.25px; }
			.railway-con-2-core                { stroke-width: 0.25px; stroke-dasharray: 0.5,0.5,0.5,1.5; }
			.railway-con-casing-color          { stroke: #606060; }
			.railway-con-1-core-color          { stroke: #f2f2f2; }
			.railway-con-2-core-color          { stroke: #606060; }
			.railway-con-tunnel-core               { stroke-opacity: 0.1; }

			.railway-pla-casing                { stroke-width: 0.4px; stroke-dasharray: 0.5,0.5; }
			.railway-pla-1-core                { stroke-width: 0.25px; }
			.railway-pla-2-core                { stroke-width: 0.25px; stroke-dasharray: 0.5,0.5,0.5,1.5; }
			.railway-pla-casing-color          { stroke: #b2b2b2; }
			.railway-pla-1-core-color          { stroke: #ffffff; }
			.railway-pla-2-core-color          { stroke: #b2b2b2; }
			.railway-pla-tunnel-core               { stroke-opacity: 0.1; }

			.railway-dis-casing                { stroke-width: 0.4px; stroke-opacity: 0.7; }
			.railway-dis-1-core                { stroke-width: 0.25px; stroke-opacity: 0.7; }
			.railway-dis-2-core                { stroke-width: 0.25px; stroke-opacity: 0.7; stroke-dasharray: 1.5,1.5; }
			.railway-dis-casing-color          { stroke: #808080; }
			.railway-dis-1-core-color          { stroke: #f2f2f2; }
			.railway-dis-2-core-color          { stroke: #808080; }
			.railway-dis-tunnel-core               { stroke-opacity: 0.1; }

			.railway-aba-casing                { stroke-width: 0.4px; stroke-opacity: 0.4; }
			.railway-aba-1-core                { stroke-width: 0.25px; stroke-opacity: 0.4; }
			.railway-aba-2-core                { stroke-width: 0.25px; stroke-opacity: 0.4; stroke-dasharray: 1.5,1.5; }
			.railway-aba-casing-color          { stroke: #b2b2b2; }
			.railway-aba-1-core-color          { stroke: #ffffff; }
			.railway-aba-2-core-color          { stroke: #b2b2b2; }
			.railway-aba-tunnel-core               { stroke-opacity: 0.1; }


			.highway-motorway-bridge-casing         { stroke-width: 2.70px; }
			.highway-motorway-bridge-core           { stroke-width: 2.40px; }
			.highway-motorway-casing                { stroke-width: 2.0px;  stroke: #707070; }
			.highway-motorway-cy1-casing            { stroke-width: 2.75px;     stroke: #707070; }
			.highway-motorway-cy2-casing            { stroke-width: 2.5px;     stroke: #d1fad1; }
			.highway-motorway-area-casing           { stroke-width: 0.3px; }
			.highway-motorway-core                  { stroke-width: 1.7px;  stroke: #809BC0; }
			.highway-motorway-area                  { fill: #809BC0; }
			.highway-motorway-name                  { stroke-width: 0px;     font-size: 1.5px; }
			.highway-motorway-ref                   { stroke-width: 0px;     font-size: 2px; }

			.highway-motorway-link-bridge-casing    { stroke-width: 2.5px; }
			.highway-motorway-link-bridge-core      { stroke-width: 2.2px; }
			.highway-motorway-link-casing           { stroke-width: 1.8px;     stroke: #707070; }
			.highway-motorway-link-cy1-casing       { stroke-width: 2.55px;     stroke: #707070; }
			.highway-motorway-link-cy2-casing       { stroke-width: 2.3px;     stroke: #d1fad1; }
			.highway-motorway-link-area-casing      { stroke-width: 0.3px; }
			.highway-motorway-link-core             { stroke-width: 1.5px;  stroke: #809BC0; }
			.highway-motorway-link-area             { fill: #809BC0; }
			.highway-motorway-link-name             { stroke-width: 0px;     font-size: 1.5px; }
			.highway-motorway-link-ref              { stroke-width: 0px;     font-size: 2px; }

			.highway-trunk-bridge-casing            { stroke-width: 2.5px; }
			.highway-trunk-bridge-core              { stroke-width: 2.2px; }
			.highway-trunk-casing                   { stroke-width: 1.8px;     stroke: #707070; }
			.highway-trunk-cy1-casing               { stroke-width: 2.55px;     stroke: #707070; }
			.highway-trunk-cy2-casing               { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-trunk-mr1-casing               { stroke-width: 2.3px;      stroke: #707070; }
			.highway-trunk-mr2-casing               { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-trunk-mr3-casing               { stroke-width: 2.15px;     stroke: #FDBF6F; }
			.highway-trunk-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-trunk-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-trunk-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-trunk-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-trunk-area-casing              { stroke-width: 0.3px; }
			.highway-trunk-core                     { stroke-width: 1.5px;  stroke: #7FC97F; }
			.highway-trunk-area                     { fill: #7FC97F; }
			.highway-trunk-name                     { stroke-width: 0px;     font-size: 1.5px; }
			.highway-trunk-ref                      { stroke-width: 0px;     font-size: 2px; }

			.highway-trunk-link-bridge-casing       { stroke-width: 2.5px; }
			.highway-trunk-link-bridge-core         { stroke-width: 2.2px; }
			.highway-trunk-link-casing              { stroke-width: 1.8px;     stroke: #707070; }
			.highway-trunk-link-cy1-casing          { stroke-width: 2.55px;     stroke: #707070; }
			.highway-trunk-link-cy2-casing          { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-trunk-link-mr1-casing          { stroke-width: 2.3px;      stroke: #707070; }
			.highway-trunk-link-mr2-casing          { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-trunk-link-mr3-casing          { stroke-width: 2.15px;     stroke: #FDBF6F; }
			.highway-trunk-link-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-trunk-link-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-trunk-link-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-trunk-link-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-trunk-link-area-casing         { stroke-width: 0.3px; }
			.highway-trunk-link-core                { stroke-width: 1.5px;  stroke: #7FC97F; }
			.highway-trunk-link-area                { fill: #7FC97F; }
			.highway-trunk-link-name                { stroke-width: 0px;     font-size: 1.5px; }
			.highway-trunk-link-ref                 { stroke-width: 0px;     font-size: 2px; }

			.highway-primary-bridge-casing          { stroke-width: 2.5px; }
			.highway-primary-bridge-core            { stroke-width: 2.2px; }
			.highway-primary-casing                 { stroke-width: 1.8px;     stroke: #707070; }
			.highway-primary-cy1-casing             { stroke-width: 2.55px;     stroke: #707070; }
			.highway-primary-cy2-casing             { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-primary-mr1-casing             { stroke-width: 2.3px;      stroke: #707070; }
			.highway-primary-mr2-casing             { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-primary-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-primary-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-primary-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-primary-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-primary-area-casing            { stroke-width: 0.3px; }
			.highway-primary-core                   { stroke-width: 1.5px;  stroke: #e46d71; }
			.highway-primary-area                   { fill: #e46d71; }
			.highway-primary-name                   { stroke-width: 0px;     font-size: 1.5px; }
			.highway-primary-ref                    { stroke-width: 0px;     font-size: 2px; }

			.highway-primary-link-bridge-casing     { stroke-width: 2.5px; }
			.highway-primary-link-bridge-core       { stroke-width: 2.2px; }
			.highway-primary-link-casing            { stroke-width: 1.8px;  stroke: #707070; }
			.highway-primary-link-cy1-casing        { stroke-width: 2.55px;     stroke: #707070; }
			.highway-primary-link-cy2-casing        { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-primary-link-mr1-casing        { stroke-width: 2.3px;      stroke: #707070; }
			.highway-primary-link-mr2-casing        { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-primary-link-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-primary-link-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-primary-link-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-primary-link-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-primary-link-area-casing       { stroke-width: 0.3px; }
			.highway-primary-link-core              { stroke-width: 1.5px;   stroke: #e46d71; }
			.highway-primary-link-area              { fill: #e46d71; }
			.highway-primary-link-name              { stroke-width: 0px;     font-size: 1.5px; }
			.highway-primary-link-ref               { stroke-width: 0px;     font-size: 2px; }

			.highway-secondary-bridge-casing        { stroke-width: 2.5px; }
			.highway-secondary-bridge-core          { stroke-width: 2.2px; }
			.highway-secondary-casing               { stroke-width: 1.8px;     stroke: #707070; }
			.highway-secondary-cy1-casing           { stroke-width: 2.55px;     stroke: #707070; }
			.highway-secondary-cy2-casing           { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-secondary-mr1-casing           { stroke-width: 2.3px;      stroke: #707070; }
			.highway-secondary-mr2-casing           { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-secondary-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-secondary-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-secondary-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-secondary-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-secondary-area-casing          { stroke-width: 0.3px; }
			.highway-secondary-core                 { stroke-width: 1.5px;  stroke: #FDBF6F; }
			.highway-secondary-area                 { fill: #FDBF6F; }
			.highway-secondary-name                 { stroke-width: 0px;     font-size: 1.5px;}
			.highway-secondary-ref                  { stroke-width: 0px;     font-size: 2px; }

			.highway-secondary-link-bridge-casing   { stroke-width: 2.5px; }
			.highway-secondary-link-bridge-core     { stroke-width: 2.2px; }
			.highway-secondary-link-casing          { stroke-width: 1.8px;     stroke: #707070; }
			.highway-secondary-link-cy1-casing      { stroke-width: 2.55px;     stroke: #707070; }
			.highway-secondary-link-cy2-casing      { stroke-width: 2.3px;      stroke: #d1fad1; }
			.highway-secondary-link-mr1-casing      { stroke-width: 2.3px;      stroke: #707070; }
			.highway-secondary-link-mr2-casing      { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-secondary-link-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-secondary-link-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-secondary-link-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-secondary-link-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-secondary-link-area-casing     { stroke-width: 0.3px; }
			.highway-secondary-link-core            { stroke-width: 1.5px;  stroke: #FDBF6F; }
			.highway-secondary-link-area            { fill: #FDBF6F; }
			.highway-secondary-link-name            { stroke-width: 0px;     font-size: 1.5px;}
			.highway-secondary-link-ref             { stroke-width: 0px;     font-size: 2px; }

			.highway-tertiary-bridge-casing         { stroke-width: 2.5px; }
			.highway-tertiary-bridge-core           { stroke-width: 2.2px; }
			.highway-tertiary-casing                { stroke-width: 1.8px;  stroke: #707070; }
			.highway-tertiary-cy1-casing            { stroke-width: 2.55px;  stroke: #707070; }
			.highway-tertiary-cy2-casing            { stroke-width: 2.3px;   stroke: #d1fad1; }
			.highway-tertiary-mr1-casing            { stroke-width: 2.3px;      stroke: #707070; }
			.highway-tertiary-mr2-casing            { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-tertiary-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-tertiary-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-tertiary-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-tertiary-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-tertiary-area-casing           { stroke-width: 0.3px; }
			.highway-tertiary-core                  { stroke-width: 1.5px;   stroke: #ffff60; }   /* !!! vic zezlutit */
			.highway-tertiary-area                  { fill: #ffff60; }   /* !!! vic zezlutit */
			.highway-tertiary-name                  { stroke-width: 0px;     font-size: 1.25px; }
			.highway-tertiary-ref                    { stroke-width: 0px;     font-size: 1.5px; }

			.highway-tertiary-link-bridge-casing    { stroke-width: 2.5px; }
			.highway-tertiary-link-bridge-core      { stroke-width: 2.2px; }
			.highway-tertiary-link-casing           { stroke-width: 1.8px;  stroke: #707070; }
			.highway-tertiary-link-cy1-casing       { stroke-width: 2.55px;  stroke: #707070; }
			.highway-tertiary-link-cy2-casing       { stroke-width: 2.3px;   stroke: #d1fad1; }
			.highway-tertiary-link-mr1-casing       { stroke-width: 2.3px;      stroke: #707070; }
			.highway-tertiary-link-mr2-casing       { stroke-width: 2.15px;     stroke: #809BC0; }
			.highway-tertiary-link-mrcy1-casing               { stroke-width: 2.8px;      stroke: #707070; }
			.highway-tertiary-link-mrcy2-casing               { stroke-width: 2.6px;      stroke: #d1fad1; }
			.highway-tertiary-link-mrcy3-casing               { stroke-width: 2.0px;     stroke: #809BC0; }
			.highway-tertiary-link-mrcy4-casing               { stroke-width: 2.0px;     stroke: #FDBF6F; }
			.highway-tertiary-link-area-casing      { stroke-width: 0.3px; }
			.highway-tertiary-link-core             { stroke-width: 1.5px;   stroke: #ffff90; }
			.highway-tertiary-link-area             { fill: #ffff90; }
			.highway-tertiary-link-name             { stroke-width: 0px;     font-size: 1.25px; }
			.highway-tertiary-link-ref              { stroke-width: 0px;     font-size: 1.5px; }

			.highway-unclassified-bridge-casing     { stroke-width: 2.35px; }
			.highway-unclassified-bridge-core       { stroke-width: 2.05px; }
			.highway-unclassified-casing            { stroke-width: 1.45px;  stroke: #707070; }  /* !!! zuzeni */
			.highway-unclassified-cy1-casing        { stroke-width: 2.4px;  stroke: #707070; }
			.highway-unclassified-cy2-casing        { stroke-width: 2.1px;  stroke: #d1fad1; }
			.highway-unclassified-area-casing       { stroke-width: 0.3px; }
			.highway-unclassified-core              { stroke-width: 1.25px; stroke: #ffffff; }  /* !!! zuzeni */
			.highway-residential-bridge-casing      { stroke-width: 2.2px; }
			.highway-residential-bridge-core        { stroke-width: 1.9px; }
			.highway-residential-casing             { stroke-width: 1.3px;  stroke: #404040; }  /* !!! zuzeni + ztmaveni */
			.highway-residential-cy1-casing         { stroke-width: 2.3px;  stroke: #707070; }
			.highway-residential-cy2-casing         { stroke-width: 2.15px; stroke: #d1fad1; }
			.highway-residential-area-casing        { stroke-width: 0.15px; }
			.highway-residential-core               { stroke-width: 1.17px; stroke: #ffffff; }  /* !!! zuzeni */
			.highway-ford-core                      { stroke-width: 1.25px; stroke: #b5d6f1; stroke-linecap: butt; }
			.highway-unclassified-area              { fill: #ffffff; }
			.highway-residential-area               { fill: #ffffff; }
			.highway-unclassified-name              { stroke-width: 0px;     font-size: 1.0px; }  /* !!! zmenseni pisma */
			.highway-unclassified-ref               { stroke-width: 0px;     font-size: 1.25px; }  /* !!! zmenseni pisma */
			.highway-unclassified-turningcircle     { fill: #ffffff; stroke-width: 0.125px; stroke: #707070; }
			.highway-road-core                      { stroke-width: 1.25px;   stroke: #d0d0d0; }
			.highway-road-area                      { fill: #d0d0d0; }

			.highway-livingstreet-casing            { stroke-width: 1.5px;  stroke: #707070; }
			.highway-livingstreet-area-casing       { stroke-width: 0.15px; }
			.highway-livingstreet-core-1            { stroke-width: 1.35px; stroke: #ffffff; }
			.highway-livingstreet-core-2            { stroke-width: 1.35px; stroke: #e5e0c2; stroke-dasharray: 0.2,0.5; stroke-linecap: butt; }
			.highway-livingstreet-area-1            { fill: #ffffff; }
			.highway-livingstreet-area-2            { fill: url(#livingstreet-pattern); stroke: #e5e0c2; stroke-width: 0px; }

			.highway-cycleroad-casing               { stroke-width: 1.5px;  stroke: #707070; }
			.highway-cycleroad-area-casing          { stroke-width: 0.15px; }
			.highway-cycleroad-core-1               { stroke-width: 1.35px; stroke: #ffffff; }
			.highway-cycleroad-core-2               { stroke-width: 1.35px; stroke: #d1fad1; stroke-dasharray: 0.2,0.5; stroke-linecap: butt; }
			.highway-cycleroad-area-1               { fill: #ffffff; }
			.highway-cycleroad-area-2               { fill: url(#cycleroad-pattern); stroke: #d1fad1; stroke-width: 0px; }
			.highway-cycleroad-core-3               { stroke-width: 1.35px;   stroke: #d1fad1; }
			.highway-cycleroad-area-3               { fill: #d1fad1; }

			.highway-service-bridge-casing          { stroke-width: 1.6px; }
			.highway-service-bridge-core            { stroke-width: 1.4px; }
			.highway-service-casing                 { stroke-width: 1.0px;   stroke: #707070; }
			.highway-service-cy1-casing             { stroke-width: 1.8px;   stroke: #707070; }
			.highway-service-cy2-casing             { stroke-width: 1.65px;   stroke: #d1fad1; }
			.highway-service-area-casing            { stroke-width: 0.15px; }
			.highway-service-core                   { stroke-width: 0.85px;   stroke: #ffffff; }
			.highway-service-area                   { fill: #ffffff; }
			.highway-service-name                   { stroke-width: 0px;     font-size: 1.25px; }
			.highway-service-ref                    { stroke-width: 0px;     font-size: 1.25px; }

			.highway-aisle-bridge-casing            { stroke-width: 1.2px; }
			.highway-aisle-bridge-core              { stroke-width: 1.0px; }
			.highway-aisle-casing                   { stroke-width: 0.6px;   stroke: #707070; }
			.highway-aisle-area-casing              { stroke-width: 0.1px; }
			.highway-aisle-core                     { stroke-width: 0.5px;   stroke: #ffffff; }
			.highway-aisle-area                     { fill: #ffffff; }

			.highway-unsurfaced-bridge-casing       { stroke-width: 1.95px; }
			.highway-unsurfaced-bridge-core         { stroke-width: 1.65px; }
			.highway-unsurfaced-casing              { stroke-width: 1.25px;   stroke: #707070; stroke-dasharray: 1, 0.5; stroke-linecap: butt; }
			.highway-unsurfaced-cy1-casing          { stroke-width: 2.05px;   stroke: #707070; stroke-dasharray: 1, 0.5; stroke-linecap: butt; }
			.highway-unsurfaced-cy2-casing          { stroke-width: 1.8px;    stroke: #d1fad1;                           stroke-linecap: butt; }
			.highway-unsurfaced-area-casing         { stroke-width: 0.25px; }
			.highway-unsurfaced-core                { stroke-width: 1px;   stroke: #ffffff; }
			.highway-unsurfaced-area                { fill: #ffffff; }
			.highway-unsurfaced-name                { stroke-width: 0px;     font-size: 1.25px; }
			.highway-unsurfaced-ref                 { stroke-width: 0px;     font-size: 1.25px; }

			.highway-track-bridge-casing            { stroke-width: 1.6px; }
			.highway-track-bridge-core              { stroke-width: 1.4px; }
			.highway-track-back-casing              { stroke-width: 0.7px;  stroke: #ffffff; stroke-linecap: round; stroke-opacity: 0.7; }  /* !!! zuzeni */
			.highway-track-casing                   { stroke-width: 0.8px;   stroke: #d79331; }  /* !!! zuzeni */
			.highway-track-area-back-casing         { stroke-width: 0.4px;   stroke: #ffffff; }
			.highway-track-area-casing              { stroke-width: 0.275px; stroke: #d79331; }
			.highway-track-core                     { stroke-width: 0.45px;   }  /* !!! zuzeni */
			.highway-track-core2                    { stroke-width: 0.45px;  }  /* !!! zuzeni */
			.highway-track-area                     { fill: #ffffff; }
			.highway-track-name                     { stroke-width: 0px;     font-size: 1px; }   /* !!! zmenseni pisma */
			.highway-track-ref                      { stroke-width: 0px;     font-size: 1.25px; }

			.highway-track-gradex-casing            { stroke-dasharray: 1.8, 0.2; stroke-linecap: butt; }
			.highway-track-grade1-casing            { }
			.highway-track-grade2-casing            { stroke-dasharray: 1.8, 0.9; stroke-linecap: butt; }
			.highway-track-grade3-casing            { stroke-dasharray: 1.0, 1.3; stroke-linecap: butt; }
			.highway-track-grade4-casing            { stroke-dasharray: 0.5, 1.0, 0.3, 1.0; stroke-linecap: butt; }
			.highway-track-grade5-casing            { stroke-dasharray: 0.3, 1.0; stroke-linecap: butt; }

			.highway-track-gradex-core                     { stroke: #fff2de; }
			.highway-track-grade1-core                     { stroke: #fffaf2; }
			.highway-track-grade2-core                     { stroke: #fff2de; }
			.highway-track-grade3-core                     { stroke: #fff2de; }
			.highway-track-grade4-core                     { stroke: #fff2de; }
			.highway-track-grade5-core                     { stroke: #fff2de; }
			.highway-track-gradex-area                     { fill: #fff2de; }
			.highway-track-grade1-area                     { fill: #fffaf2; }
			.highway-track-grade2-area                     { fill: #fff2de; }
			.highway-track-grade3-area                     { fill: #fff2de; }
			.highway-track-grade4-area                     { fill: #fff2de; }
			.highway-track-grade5-area                     { fill: #fff2de; }

			.highway-byway-bridge-casing            { stroke-width: 1.6px; }
			.highway-byway-bridge-core              { stroke-width: 1.4px; }
			.highway-byway-1-casing                 { stroke-width: 1px;     stroke: #505050;  stroke-dasharray: 0.7, 0.2; stroke-linecap: butt;}
			.highway-byway-1-area-casing            { stroke-width: 0.2px;}
			.highway-byway-2-casing                 { stroke-width: 0.8px;   stroke: #efadaa; }
			.highway-byway-2-area-casing            { stroke-width: 0.0px; }
			.highway-byway-3-casing                 { stroke-width: 1.4px;   stroke: #505050;  stroke-dasharray: 0.1, 0.8; stroke-dashoffset: 0.6; stroke-linecap: butt; }
			.highway-byway-3-area-casing            { stroke-width: 0.7px; }
			.highway-byway-1-core                   { stroke-width: 0.4px;   stroke: #efadaa; }
			.highway-byway-area                     { fill: #efadaa; }
			.highway-byway-name                     { stroke-width: 0px;     font-size: 1.25px; }
			.highway-byway-ref                      { stroke-width: 0px;     font-size: 1.25px; }

			.highway-bridleway-bridge-casing        { stroke-width: 1.6px; }
			.highway-bridleway-bridge-core          { stroke-width: 1.4px; }
			.highway-bridleway-casing               { stroke-width: 1px;     stroke: #707070;  stroke-dasharray: 0.7, 0.2; stroke-linecap: butt; }
			.highway-bridleway-area-casing          { stroke-width: 0.15px; }
			.highway-bridleway-core                 { stroke-width: 0.85px;   stroke: #d3cb98; }
			.highway-bridleway-area                 { fill: #d3cb98; }
			.highway-bridleway-name                 { stroke-width: 0px;     font-size: 1.25px; }
			.highway-bridleway-ref                  { stroke-width: 0px;     font-size: 1.25px; }

			.highway-cycleway-bridge-casing         { stroke-width: 1.6px; }
			.highway-cycleway-bridge-core           { stroke-width: 1.4px; }
			.highway-cycleway-casing                { stroke-width: 0.8px;     stroke: #707070; /* !!! stroke-dasharray: 0.2, 0.2; stroke-linecap: butt; + zuzeni */ }
			.highway-cycleway-area-casing           { stroke-width: 0.15px; }
			.highway-cycleway-core                  { stroke-width: 0.7px;   stroke: #d1b1df; }  /* !!! ztmaveni */
			.highway-cycleway-area                  { fill: #d1e1ff; }
			.highway-cycleway-name                  { stroke-width: 0px;     font-size: 1.25px; }
			.highway-cycleway-ref                   { stroke-width: 0px;     font-size: 1.25px; }

			.highway-pedestrian-bridge-casing       { stroke-width: 2.35px; }
			.highway-pedestrian-bridge-core         { stroke-width: 2.05px; }
			.highway-pedestrian-casing              { stroke-width: 1px;   stroke: #707070; } /* !!! zuzit */
			.highway-pedestrian-cy1-casing          { stroke-width: 2.3px;   stroke: #707070; }
			.highway-pedestrian-cy2-casing          { stroke-width: 2.15px;   stroke: #d1fad1; }
			.highway-pedestrian-area-casing         { stroke-width: 0.15px; }
			.highway-pedestrian-core                { stroke-width: 0.9px; stroke: #e5e0d2; stroke-linecap: butt; } /* !!! ne tak oskliva barva + zuzit */
			.highway-pedestrian-area                { fill: #e5e0c2; }
			.highway-pedestrian-name                { stroke-width: 0px;     font-size: 1px; }
			.highway-pedestrian-ref                 { stroke-width: 0px;     font-size: 1.25px; }

			.highway-footway-bridge-casing          { stroke-width: 1.2px; }
			.highway-footway-bridge-core            { stroke-width: 1px; }
			.highway-footway-casing                 { stroke-width: 0.55px;   stroke: #707070; /* !!! stroke-dasharray: 0.2, 0.2; stroke-linecap: butt; + zuzeni okraje */ }
			.highway-footway-cy1-casing             { stroke-width: 1.4px;   stroke: #707070; stroke-dasharray: 0.2, 0.2; stroke-linecap: butt; }
			.highway-footway-cy2-casing             { stroke-width: 1.25px;  stroke: #d1fad1;                             stroke-linecap: butt; }
			.highway-footway-area-casing            { stroke-width: 0.15px;}
			.highway-footway-core                   { stroke-width: 0.45px;   stroke: #e5e0c2; }
			.highway-footway-area                   { fill: #e5e0c2; }
			.highway-footway-name                   { stroke-width: 0px;     font-size: 1.25px; }
			.highway-footway-ref                    { stroke-width: 0px;     font-size: 1.25px; }

			/* render unmarked paths in the same color as highway=road */
			.highway-path-core                      { stroke-width: 0.45px;   stroke: #d0d0d0; }
			.highway-path-area                      { fill: #d0d0d0; }

			.highway-steps-bridge-casing            { stroke-width: 1.2px; }
			.highway-steps-bridge-core              { stroke-width: 1.0px; }
			.highway-steps-casing                   { stroke-width: 0.6px;   stroke: #b0b0b0; }  /* !!! zesvetleni, aby byly nazvy lepe videt */
			.highway-steps-area-casing              { stroke-width: 0.15px; }
			.highway-steps-core                     { stroke-width: 0.45px;   stroke: #e5e0c2; stroke-dasharray: 0.3, 0.1; stroke-linecap: butt;}
			.highway-steps-name                     { stroke-width: 0px;     font-size: 1.25px; }
			.highway-steps-ref                      { stroke-width: 0px;     font-size: 1.25px; }

			.highway-scramble-core                  { stroke-width: 0.15px;  stroke: #707070; stroke-dasharray: 0.8, 0.2; stroke-linecap: butt;}
			.highway-scramble-name                  { stroke-width: 0.5px;   fill: black;  font-size: 1.25px; }

			/* Aeroways */
			.aeroway-aerodrome {
			stroke-width: 0.5px;
			stroke: #000000;
			fill: #d8dcce;
			}

			.aeroway-apron {
			stroke-width: 0.3px;
			stroke: none;
			fill: #f0f0f0;
			}

			.aeroway-taxiway-casing {
			stroke-width: 3px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #000000;
			fill: none;
			}

			.aeroway-taxiway-core {
			stroke-width: 2px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #d4dcbd;
			fill: none;
			}

			.aeroway-runway-core {
			stroke-width: 5px;
			stroke-linecap: square;
			stroke-linejoin: round;
			stroke: #d4dcbd;
			fill: none;
			}

			.aeroway-runway-casing {
			stroke-width: 7px;
			stroke-linecap: square;
			stroke-linejoin: round;
			stroke: #000000;
			fill: none;
			}

			.aeroway-aerodrome-caption {
			fill: black;
			stroke: white;
			stroke-width: 0.3px;
			font-family: "DejaVu Sans";
			font-size: 6px;
			font-weight: bold;
			}

			.aeroway-airport-caption {
			fill: black;
			stroke: white;
			stroke-width: 0.3px;
			font-family: "DejaVu Sans";
			font-size: 10px;
			font-weight: bold;
			}

			/* Waterways */
			.waterway-name-casing {
			stroke: #303030;
			fill: white;
			font-family: "DejaVu Sans";
			font-weight: bold;
			text-anchor: middle;
			stroke-miterlimit: 1.5;
			}

			.waterway-name-core {
			stroke: green;
			fill: white;
			stroke-width: 0px;
			font-family: "DejaVu Sans";
			font-weight: bold;
			text-anchor: middle;
			stroke-miterlimit: 1.5;
			}

			.waterway-casing {
			stroke-linecap: round;
			stroke-linejoin: round;
			stroke: #b0b0b0;
			fill: none;
			}

			.waterway-core {
			stroke-linecap: round;
			stroke-linejoin: round;
			stroke: #a5b6f1;   /* !!! zmodrani, ztmaveni */
			fill: none;
			}

			.waterway-riverbank {
			fill: #b5c6f1;   /* !!! zmodrani, ztmaveni */
			stroke: #b0b0b0;
			stroke-width: 0px;
			}

			.waterway-lock-casing                   { stroke: #000000; stroke-width: 2.0px; stroke-linecap: butt; }
			.waterway-lock-core                     { stroke: #f8f8f8; stroke-width: 1.5px; stroke-linecap: butt; }

			.waterway-river-casing                  { stroke-width: 1px; }
			.waterway-river-core                    { stroke-width: 1px; }
			.waterway-river-tunnel-core             { stroke-width: 0.8px; stroke-dasharray: 1.5, 1.5; }
			.waterway-river-name-casing             { font-size: 1.5px; stroke-width: 0.1px;}
			.waterway-river-name-core               { font-size: 1.5px; }

			.waterway-stream-casing                 { stroke-width: 0.275px; }
			.waterway-stream-core                   { stroke-width: 0.275px; }
			.waterway-stream-tunnel-core            { stroke-width: 0.2px; stroke-dasharray: 0.4, 0.4; }
			.waterway-stream-name-casing            { stroke-width: 0.1px; font-size: 1.5px; }
			.waterway-stream-name-core              { font-size: 1.5px; }

			.waterway-canal-casing                  { stroke-width: 1px; }
			.waterway-canal-core                    { stroke-width: 0.8px; }
			.waterway-canal-tunnel-core             { stroke-width: 0.8px; stroke-dasharray: 1.5, 1.5; }
			.waterway-canal-name-casing             { stroke-width: 0.1px; font-size: 1.5px; }
			.waterway-canal-name-core               { font-size: 1.5px; }

			.waterway-drain-casing                  { stroke-width: 1px; }
			.waterway-drain-core                    { stroke-width: 0.8px; }
			.waterway-drain-tunnel-core             { stroke-width: 0.8px; stroke-dasharray: 1.5, 1.5; }
			.waterway-drain-name-casing             { stroke-width: 0.1px; font-size: 1.5px; }
			.waterway-drain-name-core               { font-size: 1.5px; }

			.waterway-ditch-casing                  { stroke-width: 0.1px; }
			.waterway-ditch-core                    { stroke-width: 0.1px; }
			.waterway-ditch-tunnel-core             { stroke-width: 0.08px; stroke-dasharray: 0.4, 0.4; }
			.waterway-ditch-name-casing             { stroke-width: 0.08px; font-size: 1.5px; }
			.waterway-ditch-name-core               { font-size: 1.5px; }

			/* Generic under-construction style - makes any way dashed */
			.under-construction-1 { stroke-width: 0.1px; stroke: #707070; stroke-dasharray: 0.5, 0.5; stroke-linecap: butt; fill:none; }
			.under-construction-2 { stroke-dasharray: 4, 4; stroke-linecap: butt;}
			.wrong-under-construction { stroke-width: 1.5px; stroke: #ffffff; stroke-dasharray: 4, 4; fill:none; }

			/* Generic planned style - makes any way dashed */
			.planned { stroke-dasharray: 0.5, 3; stroke-linecap: butt;}

			/* Generic disused style - makes any way dashed */
			.disused-1 { stroke-dasharray: 1, 2; stroke-linecap: butt;}
			.disused-2 { stroke-width: 3px; stroke: #600000; stroke-dasharray: 0.1, 2.9; stroke-dashoffset: 2.55; stroke-linecap: butt; fill:none; }

			/* Generic abandoned style - makes any way dashed */
			.abandoned-1 { stroke-dasharray: 0.7, 5.8; stroke-linecap: butt; }
			.abandoned-2 { stroke-linecap: butt; stroke-width: 3px; stroke: #600000; stroke-dasharray: 0.3, 6.2; stroke-dashoffset: 6.2; fill:none; }

			/* Ferry */
			.route-ferry {
			stroke-width: 0.5px;
			stroke-dasharray: 3,2;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #707070;
			fill: none;
			}

			/* Place names */
			/* General style for captions */
			.place-caption {
			fill: black;
			stroke: none;
			font-family: "DejaVu Sans";
			font-weight: bold;
			text-anchor: middle;
			}

			.caption-casing {
			fill: white;
			stroke-opacity: 0.3;  /* !!! ne tak vyrazny okraj okolo nadpisu */
			stroke: white;
			font-family: "DejaVu Sans";
			font-weight: bold;
			text-anchor: middle;
			stroke-miterlimit: 1.5;
			}

			.caption-core {
			stroke: white;
			stroke-width: 0px;
			font-family: "DejaVu Sans";
			font-weight: bold;
			text-anchor: middle;
			stroke-miterlimit: 1.5;
			}

			.peak-caption           { font-size: 2px; }
			.pass-caption           { font-size: 2px; }
			.cave-caption           { font-size: 2px; }
			.islet-caption          { font-size: 3px; }
			.village-caption        { font-size: 3px; }
			.suburb-caption         { font-size: 3px; }
			.hamlet-caption         { font-size: 2px; }
			.locality-caption       { font-size: 2px; }
			.farm-caption           { font-size: 1.5px; }

			.housenumber-interpolation {
			fill: none;
			stroke: #b0b0b0;
			stroke-width: 0.125px;
			}

			.housenumber-interpolation-all {
			}

			.housenumber-interpolation-even {
			stroke-dasharray: 0.5 0.5;
			}

			.housenumber-interpolation-odd {
			stroke-dasharray: 0.2 0.2;
			}

			.housenumber-node {
			stroke: #b0b0b0;
			stroke-width: 0.005;
			fill-opacity: 0.5;
			fill: #ffffff;
			}
			
			.housenumber-left {
			text-anchor: start;
			}
			
			.housenumber-center {
			text-anchor: middle;
			}

			.housenumber-casing {
			stroke-width: 0.2px;
			fill: #ffffff;
			stroke: #ffffff;
			stroke-opacity: 0;  /* !!! zadny okraj okolo nadpisu */
			font-family: "DejaVu Sans";
			stroke-miterlimit: 1.5;
			font-size: 0.8px;
			}

			.housenumber-caption {
			stroke-width: 0px;
			fill: #000000;  /* !!! ztmavit pismo */
			font-family: "DejaVu Sans";
			stroke-miterlimit: 1.5;
			font-size: 0.8px;
			}

			/* Natural */
			.natural-water {
			fill: #b5d6f1;
			stroke: #b0b0b0;
			stroke-width: 0px;
			}

			.natural-water-marsh {
			fill: url(#marsh-pattern);
			stroke: #007fff;
			stroke-width: 0px;
			}

			.natural-coastline {
			fill: #b5d6f1;
			stroke: #b5d6f1;
			stroke-width: 0.4px;
			}

			.natural-glacier {
			fill: #fafaff;
			stroke: lightblue;
			stroke-width: 0.8px;
			}

			.natural-land {
			fill: #f8f8f8;
			stroke: #e0e0e0;
			stroke-width: 0.1px;
			}

			.natural-heath {
			fill: #ffffc0;
			stroke: #ffff90;
			stroke-width: 0.2px;
			}

			.wetland-bog {
			fill: #946e50;
			stroke: #3f1f06;
			stroke-width: 0.2px;
			}

			.natural-beach {
			fill: #eecc55;
			stroke: none;
			}

			.mountain_pass {
			fill: none;
			<!-- don't remove. otherwise the waymarker will get clipped -->
			stroke: red;
			stroke-opacity: 0;
			marker-mid: url(#mountain-pass);
			}

			.cliff {   /* !!! komplet nove */
			fill: none;
			stroke-width: 0.2px;
			stroke-linejoin: round;
			stroke-linecap: butt;
			stroke: #e0e0e0;
			stroke-dasharray: 0.2,0.2;
			}

			/* Landuse */
			.landuse-wood {
			fill: #6fc16e;   /* !!! zezelenani */
			stroke: #68c067;  /* !!! zezelenani, zesvetleni */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}

			.landuse-wood-coniferous {
			fill: url(#wood-coniferous-pattern);
			stroke: #68c067;  /* !!! zezelenani, zesvetleni */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}

			.landuse-wood-deciduous {
			fill: url(#wood-deciduous-pattern);
			stroke: #68c067;  /* !!! zezelenani, zesvetleni */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}

			.landuse-wood-mixed {
			fill: url(#wood-mixed-pattern);
			stroke: #68c067;  /* !!! zezelenani, zesvetleni */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}

			.landuse-cemetery {
			fill: url(#cemetery-pattern);
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-cemetery-christian {
			fill: url(#cemetery-christian-pattern);
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-vineyard {
			fill: url(#vineyard-pattern);
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-field {
			fill: #b5f08b;   /* !!! zezelenani */
			stroke: #bfe19d;   /* !!! nevyrazny okraj */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}
			.access-area-border-width-landuse-field {
			stroke-width: 0.3px;
			}

			.landuse-residential {
			stroke: none;
			fill: #e4e4e4;
			}

			.landuse-industrial {
			fill: #ecd8ff;
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-construction {
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			fill: #a47c41;
			}

			.landuse-commercial {
			fill: #ffffc0;
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-quarry {
			fill: #e9dd72;
			stroke: #556b2f;
			stroke-width: 0.2px;
			}

			.landuse-retail {
			fill: #ffebeb;
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			.landuse-runway {
			stroke-width: 0.3px;
			stroke: #808080;
			fill: #d4dcbd;
			}

			.landuse-runway-disused {
			stroke-width: 0.3px;
			stroke: #808080;
			fill: #d4dcbd;
			stroke-dasharray: 1, 1;
			}

			.landuse-runway-dismantled {
			stroke-width: 0.3px;
			stroke: #808080;
			fill: #fcffef;
			stroke-dasharray: 0.3, 1.7;
			opacity: 0.5;
			}

			.breakwater {
			fill: none;
			stroke-width: 0.8px;
			stroke: #707070;
			}

			.artificial-pier-area {
			stroke: #d0d0d0;
			stroke-width: 0.05px;
			fill: #e4e4e4;
			}

			.artificial-pier-core {
			stroke-width: 0.3px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #e4e4e4;
			fill: none;
			}

			.artificial-pier-casing {
			stroke-width: 0.4px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #d0d0d0;
			fill: none;
			}

			.landuse-conservation {
			fill: #cfeca8;
			stroke: #6fc18e;
			stroke-width: 0.2px
			}
			.access-area-border-width-landuse-conservation {
			stroke-width: 0.8px;
			}

			/* Leisure */
			.leisure-park {
			fill: #97f193;   /* !!! zezelenani a ztmaveni */
			stroke: #8fe19e;   /* !!! nevyrazny okraj */
			stroke-width: 0.1px;  /* !!! zuzeni */
			}
			.access-area-border-width-leisure-park {
			stroke-width: 0.8px;
			}

			.leisure-stadium {
			fill: #bde3cb;
			stroke: #6fc18e;
			stroke-width: 0.2px;
			}

			.leisure-track-area {
			fill: #bde3cb;
			stroke: #6fc18e;
			stroke-width: 0.025px;
			}

			.leisure-track-casing {
			fill: none;
			stroke: #6fc18e;
			stroke-width: 0.75px;
			}

			.leisure-track-core {
			fill: none;
			stroke: #bde3cb;
			stroke-width: 0.7px;
			}

			.leisure-swimming-pool {
			fill: #b5d6f1;
			stroke: #6060ff;
			stroke-width: 0.2px;
			}

			.leisure-nature_reserve {
			fill: #c7f1a3;
			stroke: #6fc18e;
			stroke-width: 0.2px;
			}

			.sport {
			fill: #bdcbcb;   /* !!! zmenena barva */
			stroke: #9fa1ae;   /* !!! zmenena barva, znevyraznen okraj */
			stroke-width: 0.2px;
			}

			.sport-swimming {
			fill: #b5d6f1;
			stroke: #6060ff;
			stroke-width: 0.2px;
			}

			.sport-tennis {
			fill: #d18a6a;
			stroke: #B36C4C;
			stroke-width: 0.2px;
			}

			.amenity-parking {
			fill: #ffffc0;
			stroke: #e9dd72;
			stroke-width: 0.2px;
			}

			.amenity-school {
			fill: #cdabde;
			stroke: #e9dd72;
			stroke-width: 0.2px;
			}

			/* Non-physical boundaries */
			.boundary {
			stroke-linecap: round;
			stroke-linejoin: round;
			fill: none;
			}

			.boundary-level-1-casing {
			stroke-width: 1.75px;
			stroke: #ffff00;
			opacity: 0.5;
			}

			.boundary-level-1-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 0.5, 0.5, 0.5;
			}

			.boundary-level-2-casing {
			stroke-width: 0.75px;
			stroke: #ffff00;
			opacity: 0.5;
			}

			.boundary-level-2-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 1.5;
			}

			.boundary-level-3-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			}

			.boundary-level-4-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 0.5, 0.5, 0.5;
			}

			.boundary-level-5-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 1.5;
			}

			.boundary-level-6-core {
			stroke-width: 0.25px;
			stroke: #f9574b;
			stroke-dasharray: 0.5, 2.5;
			}

			.boundary-level-7-core {
			stroke-width: 0.1px;
			stroke: #f9574b;
			}

			.boundary-level-8-core {
			stroke-width: 0.1px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 0.5, 0.5, 0.5;
			}

			.boundary-level-9-core {
			stroke-width: 0.1px;
			stroke: #f9574b;
			stroke-dasharray: 1.5, 1.5;
			}

			.boundary-level-10-core {
			stroke-width: 0.1px;
			stroke: #f9574b;
			stroke-dasharray: 0.5, 2.5;
			}

			.boundary-level-11-core {
			stroke-width: 0.1px;
			stroke: #f9574b;
			stroke-dasharray: 0.1, 0.65;
			}

			.boundary-nationalpark-core {
			stroke-width: 0.25px;
			stroke: #4ef94b;
			stroke-dasharray: 1.5, 0.5, 0.5, 0.5;
			}

			/* Racetracks */
			.highway-racetrack-core {
			stroke-width: 1.5px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #f0f0f0;
			}

			.highway-racetrack-casing-red {
			stroke-width: 1.7px;
			stroke-dasharray: 0.2, 0.2;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #ff0000;
			}

			.highway-racetrack-casing-white {
			stroke-width: 1.7px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #ffffff;
			}

			.highway-raceway-casing {
			stroke-width: 2px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #101010;
			}

			.highway-raceway-casing-disused {
			stroke-width: 2px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #808080;
			stroke-dasharray: 1, 1;
			}

			.highway-raceway-casing-dismantled {
			stroke-width: 2px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #808080;
			stroke-dasharray: 0.3, 1.7;
			opacity: 0.5;
			}

			.highway-raceway-core {
			stroke-width: 1.5px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #f0f0f0;
			}

			.highway-raceway-core-disused {
			stroke-width: 1.5px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke-dasharray: 1, 1;
			stroke: #f0f0f0;
			}

			.highway-raceway-core-dismantled {
			stroke-width: 1.5px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: none;
			stroke: #ffffff;
			stroke-dasharray: 0.3, 1.7;
			opacity: 0.5;
			}

			.landuse-raceway {
			stroke-width: 0.3px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: #f0f0f0;
			stroke: #101010;
			}

			.landuse-raceway-disused {
			stroke-width: 0.3px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: #f0f0f0;
			stroke: #808080;
			stroke-dasharray: 1, 1;
			}

			.landuse-raceway-dismantled {
			stroke-width: 0.3px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			fill: #ffffff;
			stroke: #808080;
			stroke-dasharray: 0.3, 1.7;
			opacity: 0.5;
			}

			.railway-station                        { fill: #ec2d2d;        stroke: #606060; stroke-width: 0.25px; }
			.railway-station-caption-casing         { stroke-width: 0.5px;  font-size: 1.5px; }
			.railway-station-caption-core           { fill: #ec2d2d;        font-size: 1.5px; }

			.railway-halt                           { fill: #ec2d2d;        stroke: #606060; stroke-width: 0.1px; }
			.railway-halt-caption-casing            { stroke-width: 0.4px;  font-size: 1.25px; }
			.railway-halt-caption-core              { fill: #ec2d2d;        font-size: 1.25px; }

			.highway-platform-area                  { stroke: none; fill: #9b9b79; }
			.highway-platform-area-casing           { stroke: #707070; stroke-width: 0.3px; fill: none; }
			.highway-platform-way-casing            { stroke: #707070; stroke-width: 0.6px; fill: none; stroke-linecap: square; }
			.highway-platform-way-core              { stroke: #9b9b79; stroke-width: 0.3px; fill: none; }
			.highway-platform-node                  { stroke: #707070; stroke-width: 0.15px; fill: #9b9b79; }
			.highway-platform-ref                   { font-family: "DejaVu Sans"; font-size: 0.8px; stroke: #707070; stroke-width: 0.005px; text-anchor: middle;}

			/* Tourism */
			.tourism-attraction {
			fill: #f2caea;
			stroke: #ff00ff;
			stroke-width: 0px;
			}
			.tourism-green-area {
			fill: #c7f1a3;
			stroke: #6fc18e;
			stroke-width: 0.2px;
			}
			.tourism-attraction-caption {
			fill: #ff00ff;
			stroke: white;
			stroke-width: 0px;
			font-family: "DejaVu Sans";
			font-size: 1px;
			font-weight: bold;
			text-anchor: middle;
			}

			.man_made-lighthouse-caption-casing  { stroke-width: .5px;   font-size: 1px; }
			.man_made-lighthouse-caption-core    { fill: #ec2d2d;        font-size: 1px; }

			.man_made-wastewater {
			fill: #e4e4e4;
			}

			.amenity-pub-caption-casing          { stroke-width: .5px;   font-size: 1px; }
			.amenity-pub-caption-core            { fill: #ec2d2d;        font-size: 1px; }

			.amenity-cinema-caption-casing       { stroke-width: .5px;   font-size: 1px; }
			.amenity-cinema-caption-core         { fill: #ff00ff;        font-size: 1px; }

			.amenity-theatre-caption-casing      { stroke-width: .5px;   font-size: 1px; }
			.amenity-theatre-caption-core        { fill: #ff00ff;        font-size: 1px; }

			.generic-caption-casing              { stroke-width: .28px;  font-size: 1px; }
			.generic-caption-core                { fill: #000080;        font-size: 1px; }   /* !!! mene modra, ztmaveni */

			.generic-poi {
			fill: #4040ff;
			stroke: #606060;
			stroke-width: 0.1px;
			}

			/* Building */
			.building {
			fill: #e0e0e0;
			stroke: #d0d0d0;
			stroke-width: 0.2px;
			}

			.building-block {
			fill: #C0C0C0;  /* !!! trosku ztmavit */
			stroke: #A0A0A0;  /* !!! okraj nemusi byt tak vyrazny */
			stroke-width: 0.1px;  /* !!! a je uzsi */
			}

			.building-residential {
			fill: #c95e2a;
			stroke: #800000;
			stroke-width: 0.2px;
			}

			/* Aerialway */
			.aerialway-line {
			fill: none;
			stroke: #202020;
			stroke-width: 0.4px;
			}

			.aerialway-cablecar-marker {
			marker-start:url(#marker-cablecar);
			}

			.aerialway-gondola-marker {
			marker-start:url(#marker-gondola);
			}

			.aerialway-chairlift2-marker {
			marker-start:url(#marker-chair-lift-2);
			}

			.aerialway-chairlift4-marker {
			marker-start:url(#marker-chair-lift-4);
			}

			.aerialway-mixedlift-marker {
			marker-start:url(#marker-mixed-lift);
			}

			.aerialway-struts {
			fill: none;
			stroke: #202020;
			stroke-width: 4px;
			stroke-dasharray: 0.2,20;
			}

			.aerialway-station {
			fill: #ec2d2d;
			stroke: #606060;
			stroke-width: 0.1px;
			}

			.aerialway-name {
			fill: #606060;
			font-family: "DejaVu Sans";
			font-weight: normal;
			font-size: 4px;
			stroke: none;
			text-anchor: middle;
			}

			.aerialway-elevation-text {
			fill: #606060;
			font-family: "DejaVu Sans";
			font-weight: normal;
			font-size: 3px;
			text-anchor: middle;
			}

			.military-area {
			fill: url(#military-pattern);
			stroke: #e4e4e4;
			stroke-width: 0.2px;
			}

			/* surface lifts */
			.piste-lift-t-bar-marker {
			marker-start:url(#marker-piste-lift-t-bar);
			}

			.piste-lift-rope-tow {
			fill: none;
			stroke: #a47c41;
			stroke-width: 0.5px;
			stroke-dasharray: 1,1;
			stroke-linecap: square;
			}

			.piste-lift-magic-carpet {
			fill: none;
			stroke: #101010;
			stroke-width: 0.8px;
			}

			/* Piste maps */
			.piste-core {
			fill: none;
			stroke-linecap: round;
			stroke-linejoin: round;
			stroke-width: 5px;
			opacity: 0.8;
			}

			.piste-difficulty-novice       { stroke: #40ff40; }
			.piste-difficulty-easy         { stroke: #4040ff; }
			.piste-difficulty-intermediate { stroke: #ff4040; }
			.piste-difficulty-advanced     { stroke: #000000; }
			.piste-difficulty-expert       { stroke: #f6800a; }
			.piste-difficulty-freeride     { stroke: #f6dd0a; }
			.piste-difficulty-other        { stroke: #505050; }

			.piste-downhill-name {
			fill: #ffffff;
			font-family: "DejaVu Sans";
			font-weight: normal;
			font-size: 5px;
			text-anchor: middle;
			}

			.piste-downhill-ref {
			fill: #000000;
			font-family: "DejaVu Sans";
			font-weight: normal;
			font-size: 5px;
			text-anchor: middle;
			}

			.piste-type-sled {
			fill: none;
			stroke: #cdabde;
			stroke-width: 2.5px;
			marker-start:url(#marker-piste-type-sled);
			}

			.piste-type-nordic {
			fill: none;
			stroke: #c00000;
			stroke-width: 1px;
			stroke-dasharray: 3,0.5;
			marker-start:url(#marker-piste-type-nordic);
			}

			.man-made-piste-halfpipe {
			fill: #a0f0ff;
			stroke: #00bcdf;
			stroke-width: 0.4px;
			}

			/* Power line and pipeline casing */
			.powerline-pipeline-casing {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #ffffff;
			stroke-opacity: 0.5;
			fill: none;
			}
			/* Power line */
			.power-line {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #808080;
			stroke-dasharray: 2 ,1;
			fill: none;
			}

			/* Power Generator */
			.power-wind {
			fill: url(#power-wind-pattern);
			stroke: #333333;
			stroke-width: 0.05px;
			}
			.power-hydro {
			fill: url(#power-hydro-pattern);
			stroke: #333333;
			stroke-width: 0.05px;
			}
			.power-photovoltaic {
			fill: url(#power-photovoltaic-pattern);
			stroke: #333333;
			stroke-width: 0.05px;
			}
			.power-generic {
			fill: url(#power-generic-pattern);
			stroke: #333333;
			stroke-width: 0.05px;
			}


			/* Pipelines */
			.pipeline-unknown {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #a0a0a0;
			stroke-dasharray: 0.5 ,0.5;
			fill: none;
			}

			.pipeline-water {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #4080f0;
			stroke-dasharray: 0.5 ,0.5;
			fill: none;
			}

			.pipeline-gas {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #e0f000;
			stroke-dasharray: 0.5 ,0.5;
			fill: none;
			}

			.pipeline-oil {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #40f040;
			stroke-dasharray: 0.5 ,0.5;
			fill: none;
			}

			.pipeline-sewage {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #908030;
			stroke-dasharray: 0.5 ,0.5;
			fill: none;
			}

			.pipeline-heat {
			stroke-width: 0.1px;
			stroke-linecap: butt;
			stroke-linejoin: round;
			stroke: #f03060;
			stroke-dasharray: 1 ,1;
			fill: none;
			}

			/* Area captions */
			.park-name {
			fill: #404040;
			font-family: "DejaVu Sans";
			font-weight: normal;
			stroke: white;
			font-size: 2.25px;
			stroke-width: 0.0px;
			}

			.landuse-reservoir-name {
			fill: #404040;
			font-family: "DejaVu Sans";
			font-weight: normal;
			stroke: white;
			font-size: 2.25px;
			stroke-width: 0.0px;
			}

			/* Oneway */
			.oneway-casing { fill: none; stroke-linecap: butt; stroke: #0000a0; }
			/*    stroke: #a2aee9; */
			.oneway-core { fill: none; stroke-linecap: butt; stroke: #ffffff; }
			.oneway-exclcycle-casing { fill: none; stroke-linecap: butt; stroke: #7070a0; }
			.oneway-exclcycle-core { fill: none; stroke-linecap: butt; stroke: #90ff70; }

			.oneway-casing-1 { stroke-width: 0.3px; stroke-dasharray: 2.1,27.9; stroke-dashoffset: 23.1; }   /* Pfeilstrich */
			.oneway-casing-2 { stroke-width: 0.575px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 21.7; } /* Pfeilspitzenbasis */
			.oneway-casing-3 { stroke-width: 0.5px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 21.6; }   /* weiter nach vorne */
			.oneway-casing-4 { stroke-width: 0.425px; stroke-dasharray: 0.4,29.6; stroke-dashoffset: 21.6; } /* ... */
			.oneway-casing-5 { stroke-width: 0.35px; stroke-dasharray: 0.5,29.5; stroke-dashoffset: 21.6; }
			.oneway-casing-6 { stroke-width: 0.275px; stroke-dasharray: 0.6,29.4; stroke-dashoffset: 21.6; }
			.oneway-casing-7 { stroke-width: 0.2px; stroke-dasharray: 0.7,29.3; stroke-dashoffset: 21.6; }
			.oneway-casing-8 { stroke-width: 0.1px; stroke-dasharray: 0.8,29.2; stroke-dashoffset: 21.6; }

			.oneway-core-1 { stroke-width: 0.1px; stroke-dasharray: 2,28; stroke-dashoffset: 23.05; }
			.oneway-core-2 { stroke-width: 0.425px; stroke-dasharray: 0.2,29.8; stroke-dashoffset: 21.65; }
			.oneway-core-3 { stroke-width: 0.35px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 21.65; }
			.oneway-core-4 { stroke-width: 0.275px; stroke-dasharray: 0.4,29.6; stroke-dashoffset: 21.65; }
			.oneway-core-5 { stroke-width: 0.2px; stroke-dasharray: 0.5,29.5; stroke-dashoffset: 21.65; }
			.oneway-core-6 { stroke-width: 0.125px; stroke-dasharray: 0.6,29.4; stroke-dashoffset: 21.65; }
			.oneway-core-7 { stroke-width: 0.05px; stroke-dasharray: 0.7,29.3; stroke-dashoffset: 21.65; }

			.oneway-casing-r1 { stroke-width: 0.3px; stroke-dasharray: 2.1,27.9; stroke-dashoffset: 23.1; }
			.oneway-casing-r2 { stroke-width: 0.575px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 23.3; }
			.oneway-casing-r3 { stroke-width: 0.5px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 23.4; }
			.oneway-casing-r4 { stroke-width: 0.425px; stroke-dasharray: 0.4,29.6; stroke-dashoffset: 23.5; }
			.oneway-casing-r5 { stroke-width: 0.35px; stroke-dasharray: 0.5,29.5; stroke-dashoffset: 23.6; }
			.oneway-casing-r6 { stroke-width: 0.275px; stroke-dasharray: 0.6,29.4; stroke-dashoffset: 23.7; }
			.oneway-casing-r7 { stroke-width: 0.2px; stroke-dasharray: 0.7,29.3; stroke-dashoffset: 23.8; }
			.oneway-casing-r8 { stroke-width: 0.1px; stroke-dasharray: 0.8,29.2; stroke-dashoffset: 23.9; }

			.oneway-core-r1 { stroke-width: 0.1px; stroke-dasharray: 2.05,27.95; stroke-dashoffset: 23.1; }
			.oneway-core-r2 { stroke-width: 0.425px; stroke-dasharray: 0.2,29.8; stroke-dashoffset: 23.25; }
			.oneway-core-r3 { stroke-width: 0.35px; stroke-dasharray: 0.3,29.7; stroke-dashoffset: 23.35; }
			.oneway-core-r4 { stroke-width: 0.275px; stroke-dasharray: 0.4,29.6; stroke-dashoffset: 23.45; }
			.oneway-core-r5 { stroke-width: 0.2px; stroke-dasharray: 0.5,29.5; stroke-dashoffset: 23.55; }
			.oneway-core-r6 { stroke-width: 0.125px; stroke-dasharray: 0.6,29.4; stroke-dashoffset: 23.65; }
			.oneway-core-r7 { stroke-width: 0.05px; stroke-dasharray: 0.7,29.3; stroke-dashoffset: 23.75; }

			.otherway {
			fill: none;
			stroke: red;
			stroke-width: 2px;
			stroke-opacity: 0;
			/* marker-start: url(#marker-otherway-start); */
			marker-end: url(#marker-otherway-end);
			}

			/* SAC scales for paths and footways
			colors taken from:
			http://www.sac-cas.ch/uploads/media/SAC_Wanderskala_Vergleich_01.pdf
			*/
			.sac-scale-t1 {
			stroke: red;
			stroke-width: 0.1px;
			fill: none;
			}

			.sac-scale-t2 {
			stroke-dasharray: 0.5, 0.5;
			stroke: red;
			stroke-width: 0.1px;
			fill: none;
			}

			.sac-scale-t3 {
			stroke-dasharray: 0.01, 0.15;
			stroke-linecap: round;
			stroke: red;
			stroke-width: 0.1px;
			fill: none;
			}

			.sac-scale-t4 {
			stroke: blue;
			stroke-width: 0.1px;
			fill: none;
			}

			.sac-scale-t5 {
			stroke-dasharray: 0.5, 0.5;
			stroke: blue;
			stroke-width: 0.1px;
			fill: none;
			}

			.sac-scale-t6 {
			stroke-dasharray: 0.01, 0.15;
			stroke-linecap: round;
			stroke: blue;
			stroke-width: 0.1px;
			fill: none;
			}

			/* Access restrictions */
			.access-private-line {
			fill: none;
			stroke: url(#access-private-pattern);
			stroke-width: 1.5px;
			}
			.access-private-area {
			fill: url(#access-private-pattern);
			stroke: url(#access-private-pattern);
			stroke-width: 1px;
			}
			.access-private-small-area {
			fill: url(#access-private-pattern);
			stroke: url(#access-private-pattern);
			stroke-width: 0.5px;
			}
			.access-private-area-border {
			stroke: #ff4040;
			}
			.access-permissive-line {
			fill: none;
			stroke: url(#access-permissive-pattern);
			stroke-width: 1.5px;
			}
			.access-permissive-area {
			fill: url(#access-permissive-pattern);
			stroke: url(#access-permissive-pattern);
			stroke-width: 1px;
			}
			.access-permissive-small-area {
			fill: url(#access-permissive-pattern);
			stroke: url(#access-permissive-pattern);
			stroke-width: 0.5px;
			}
			.access-permissive-area-border {
			stroke: #40ff40;
			}
			.access-destination-line {
			fill: none;
			stroke: url(#access-destination-pattern);
			stroke-width: 1.5px;
			}
			.access-destination-area {
			fill: url(#access-destination-pattern);
			stroke: url(#access-destination-pattern);
			stroke-width: 1px;
			}
			.access-destination-small-area {
			fill: url(#access-destination-pattern);
			stroke: url(#access-destination-pattern);
			stroke-width: 0.5px;
			}
			.access-destination-area-border {
			stroke: #4040ff;
			}
			.access-no-line {
			fill: none;
			stroke: url(#access-no-pattern);
			stroke-width: 1.5px;
			}
			.access-no-area {
			fill: url(#access-no-pattern);
			stroke: url(#access-no-pattern);
			stroke-width: 1px;
			}
			.access-no-small-area {
			fill: url(#access-no-pattern);
			stroke: url(#access-no-pattern);
			stroke-width: 0.5px;
			}
			.access-no-area-border {
			stroke: #ff4040;
			}

			/* Barriers */
			.barrier { stroke: #000000; stroke-linecap: butt; stroke-width: 0.05px; fill: none; }
			.barrier-bollard { stroke: #ff0000; stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.1px; }
			.barrier-hedge-1 { stroke: #00ff00; stroke-width: 0.1px; }
			.barrier-hedge-2 { stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.1px; }
			.barrier-fence-1 { stroke-width: 0.1px; }
			.barrier-fence-2 { stroke: #888888; stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.1px; }
			.barrier-wall { stroke-width: 0.1px; }
			.barrier-retaining-wall-1 { stroke: #888888; stroke-width: 0.1px; }
			.barrier-retaining-wall-2 { stroke: #888888; stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.2px; }
			.barrier-city-wall-ts-1 { stroke-width: 0.1px; }
			.barrier-city-wall-ts-2 { stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.2px; }
			.barrier-city-wall-1 { stroke-width: 0.1px; }
			.barrier-city-wall-2 { stroke-dasharray: 0.0001, 0.4999; stroke-linecap: round; stroke-width: 0.2px; }

			/* Map decoration */
			.map-grid-line {
			fill: none;
			stroke: #8080ff;
			stroke-width: 0.1px;
			stroke-opacity: 0.5;
			}

			.map-border-casing {
			fill: none;
			stroke: #8080ff;
			stroke-width: 3px;
			stroke-miterlimit: 4;
			stroke-dasharray: none;
			stroke-opacity: 1;
			stroke-linecap: round;
			}

			.map-border-core {
			fill: none;
			fill-opacity: 1;
			fill-rule: nonzero;
			stroke: #ffffff;
			stroke-width: 2px;
			stroke-miterlimit: 0;
			stroke-dashoffset: -0.5px;
			stroke-opacity: 1;
			}

			.map-scale-casing {
			fill: none;
			stroke: #8080ff;
			stroke-width: 4px;
			stroke-linecap: butt;
			}

			.map-scale-core {
			fill: none;
			stroke: #ffffff;
			stroke-width: 3px;
			stroke-linecap: butt;
			}

			.map-scale-bookend {
			fill: none;
			stroke: #8080ff;
			stroke-width: 1px;
			stroke-linecap: butt;
			}

			.map-scale-caption {
			font-family: "DejaVu Sans";
			font-size: 10px;
			fill: #8080ff;
			}

			<!-- map background must be the same for all zooms or else empty tile detection will fail -->
			.map-background {
			fill: #f8f8f8
			;
			stroke: none;
			}

			.map-title {
			font-family: "DejaVu Sans";
			font-size: 20px;
			text-anchor: middle;
			fill: black;
			}

			.map-title-background {
			fill: white;
			}

			.map-marginalia-background {
			fill: white;
			}

			.highway-tunnel-ends {
			stroke-opacity: 0;
			fill: none;
			marker-start: url(#marker-tunnel-start);
			marker-end: url(#marker-tunnel-end);
			}

			/* Osmarender built-in styles - do not remove */
			.osmarender-stroke-linecap-round { stroke-linecap: round; }
			.osmarender-stroke-linecap-butt { stroke-linecap: butt; }
			.osmarender-mask-black { stroke: black; }
			.osmarender-mask-white { stroke: white; }
			.osmarender-no-marker-start { marker-start: none; }
			.osmarender-no-marker-end { marker-end: none; }


		</style>

		<svg:pattern x="0" y="0" width="200" height="200" id="wood-deciduous-pattern" patternUnits="userSpaceOnUse" patternTransform="scale(0.05)">
			<svg:rect fill="#6fc16e" width="205" height="205" x="0" y="0"/>
			<svg:path fill="#2b743f" d="M 27,1 C 20,1 13,7 13,14 C 13,16 13,18 15,20 C 11,22 8,26 8,29 C 8,36 16,43 28,43 L 28,63 L 37,63 L 37,43 C 48,43 57,36 57,29 C 57,26 55,23 52,21 C 55,14 45,4 37,6 C 36,3 33,1 27,1"/>
			<svg:path fill="#2b743f" d="M 77,101 C 70,101 63,107 63,114 C 63,116 63,118 65,120 C 61,122 58,126 58,129 C 58,136 66,143 78,143 L 78,163 L 87,163 L 87,143 C 98,143 107,136 107,129 C 107,126 105,123 102,121 C 105,114 95,104 87,106 C 86,103 83,101 77,101"/>
		</svg:pattern>
		<svg:pattern x="0" y="0" width="200" height="200" id="wood-coniferous-pattern" patternUnits="userSpaceOnUse" patternTransform="scale(0.05)">
			<svg:rect fill="#6fc16e" width="205" height="205" x="0" y="0"/>
			<svg:path fill="#2b743f" d="M 15,24 L 25,24 L 10,39 L 25,39 L 5,54 L 25,54 L 25,64 L 35,64 L 35,54 L 55,54 L 35,39 L 50,39 L 35,24 L 45,24 L 30,4 L 15,24"/>
			<svg:path fill="#2b743f" d="M 65,124 L 75,124 L 60,139 L 75,139 L 55,154 L 75,154 L 75,164 L 85,164 L 85,154 L 105,154 L 85,139 L 100,139 L 85,124 L 95,124 L 80,104 L 65,124"/>
		</svg:pattern>
		<svg:pattern x="0" y="0" width="300" height="200" id="wood-mixed-pattern" patternUnits="userSpaceOnUse" patternTransform="scale(0.05)">
			<svg:rect fill="#6fc16e" width="305" height="205" x="0" y="0"/>
			<svg:path fill="#2b743f" d="M 27,1 C 20,1 13,7 13,14 C 13,16 13,18 15,20 C 11,22 8,26 8,29 C 8,36 16,43 28,43 L 28,63 L 37,63 L 37,43 C 48,43 57,36 57,29 C 57,26 55,23 52,21 C 55,14 45,4 37,6 C 36,3 33,1 27,1"/>
			<svg:path fill="#2b743f" d="M 65,54 L 75,54 L 60,69 L 75,69 L 55,84 L 75,84 L 75,94 L 85,94 L 85,84 L 105,84 L 85,69 L 100,69 L 85,54 L 95,54 L 80,34 L 65,54"/>
			<svg:path fill="#2b743f" d="M 165,104 L 175,104 L 160,119 L 175,119 L 155,134 L 175,134 L175,144 L 185,144 L 185,134 L 205,134 L 185,119 L 200,119 L 185,104 L 195,104 L 180,84 L 165,104"/>
			<svg:path fill="#2b743f" d="M 227,101 C 220,101 213,107 213,114 C 213,116 213,118 215,120 C 211,122 208,126 208,129 C 208,136 216,143 228,143 L 228,163 L 237,163 L 237,143 C 248,143 257,136 257,129 C 257,126 255,123 252,121 C 255,114 245,104 237,106 C 236,103 233,101 227,101"/>
		</svg:pattern>

		<svg:pattern id="marsh-pattern" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse" patternTransform="scale(0.3)">
			<svg:path stroke="#007fff" stroke-width="0.2" stroke-linecap="round" d="M 0,4 C 1.33,4 2.67,4 4,4 M 2,4 C 2,3 2,2 2,1 M 3,3 L 2,4 M 3,2 L 2,4 M 1,3 L 2,4 M 1,2 L 2,4 M 7,9 L 10,9 M 2,9 C 3,9 4,9 5,9 M 6,4 C 6.71,4 7.35,4 8,4 M 2,6 C 2.67,6 3.33,6 4,6 M 7,1 C 7.70,1 8.33,1 9,1 M 0,9 L 1,9 M 9,6 L 9,9 M 10,7 L 9,9 M 10,8 L 9,9 M 8,8 L 9,9 M 8,7 L 9,9"/>
		</svg:pattern>

		<svg:pattern id="military-pattern" x="0" y="0" width="500" height="500" patternUnits="userSpaceOnUse" patternTransform="scale(0.01)">
			<svg:rect width="510" height="510" x="0" y="0" fill="#d0d050"/>
			<svg:path fill="#808000" d="M 311.4875,112.4725 L 240.86574,112.4725 L 219.18975,100.81875 L 219.18975,67.95515 L 358.10253,55.13602 L 358.10253,98.02185 L 311.4875,107.11177 L 311.4875,112.4725 z "/>
			<svg:path fill="#808000" d="M 86.10386,157.81856 L 404.48447,158.3883 L 404.43115,99.18722 L 313.11903,119.23168 L 180.26621,119.23168 L 86.10386,144.40379 C 80.55682,146.64725 78.71816,157.81856 86.10386,157.81856 z "/>
			<svg:path fill="#808000" d="M 176.69134,184.53979 C 176.69131,195.84684 167.54017,205.02094 156.23316,205.04931 C 144.92615,205.07768 135.72909,195.94962 135.67232,184.64271 C 135.61555,173.33581 144.72048,164.11585 156.02721,164.03068 C 167.33393,163.94551 176.57673,173.02726 176.6903,184.33373"/>
			<svg:path fill="#808000" d="M 222.85374,184.53979 C 222.85371,195.84684 213.70257,205.02094 202.39556,205.04931 C 191.08855,205.07768 181.89149,195.94962 181.83472,184.64271 C 181.77795,173.33581 190.88288,164.11585 202.18961,164.03068 C 213.49633,163.94551 222.73913,173.02726 222.8527,184.33373"/>
			<svg:path fill="#808000" d="M 268.20674,184.53979 C 268.20671,195.84684 259.05557,205.02094 247.74856,205.04931 C 236.44155,205.07768 227.24449,195.94962 227.18772,184.64271 C 227.13095,173.33581 236.23588,164.11585 247.54261,164.03068 C 258.84933,163.94551 268.09213,173.02726 268.2057,184.33373"/>
			<svg:path fill="#808000" d="M 314.63974,184.53979 C 314.63971,195.84684 305.48857,205.02094 294.18156,205.04931 C 282.87455,205.07768 273.67749,195.94962 273.62072,184.64271 C 273.56395,173.33581 282.66888,164.11585 293.97561,164.03068 C 305.28233,163.94551 314.52513,173.02726 314.6387,184.33373"/>
			<svg:path fill="#808000" d="M 104.62906,164.30601 L 95.06656,164.74351 C 89.7409,177.99161 94.17664,190.11388 108.81656,199.08726 C 125.31404,209.1992 145.13754,218.93662 150.87906,219.08726 L 345.94156,219.14976 C 351.68308,218.99912 371.50659,209.26172 388.00406,199.14976 C 402.64398,190.17638 407.07972,178.02286 401.75406,164.77476 L 392.19156,164.36851 C 395.0692,176.76396 397.55281,185.1301 379.62906,193.61851 C 364.95912,200.56595 349.45269,208.83667 347.03531,209.33726 L 149.78531,209.30601 C 147.36794,208.8054 131.89275,200.50345 117.22281,193.55601 C 99.29906,185.06761 101.75142,176.70146 104.62906,164.30601 z M 81.325,74.26296 L 81.325,87.85048 L 214.52384,92.37965 L 214.52384,74.05709 L 81.325,74.26296 z "/>
			<svg:path fill="#808000" d="M 360.71264,185.61239 C 360.71261,196.91944 351.56147,206.09354 340.25446,206.12191 C 328.94745,206.15028 319.75039,197.02222 319.69362,185.71531 C 319.63685,174.40841 328.74178,165.18845 340.04851,165.10328 C 351.35523,165.01811 360.59803,174.09986 360.7116,185.40633"/>
			<svg:path fill="#808000" d="M 389.14837,176.08104 C 389.14835,182.52632 383.93199,187.75578 377.48672,187.77195 C 371.04145,187.78813 365.79891,182.58491 365.76655,176.1397 C 365.73419,169.6945 370.92422,164.4389 377.36932,164.39035 C 383.81443,164.3418 389.08304,169.51862 389.14778,175.96358"/>
			<svg:path fill="#808000" d="M 130.88767,176.08104 C 130.88765,182.52632 125.67129,187.75578 119.22602,187.77195 C 112.78075,187.78813 107.53821,182.58491 107.50585,176.1397 C 107.47349,169.6945 112.66352,164.4389 119.10862,164.39035 C 125.55373,164.3418 130.82234,169.51862 130.88708,175.96358"/>
		</svg:pattern>

		<svg:pattern id="cemetery-pattern" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:rect fill="#bde3cb" width="10" height="10" x="0" y="0"/>
			<svg:path fill="#b0b0b0" stroke-width="0.1" d="M 1.48,0.13 C 2.12,0.13 2.63,0.64 2.63,1.28 L 2.63,4.27 L 0.33,4.27 L 0.33,1.28 C 0.33,0.64 0.85,0.13 1.48,0.13 z "/>
			<svg:path fill="#b0b0b0" stroke-width="0.1" d="M 6.64,5.78 C 7.27,5.78 7.79,6.29 7.79,6.92 L 7.79,9.91 L 5.49,9.91 L 5.49,6.92 C 5.49,6.29 6.00,5.78 6.64,5.78 z "/>
		</svg:pattern>
		<svg:pattern id="cemetery-christian-pattern" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:rect fill="#bde3cb" width="11" height="11" x="0" y="0"/>
			<svg:path stroke="black" stroke-width="0.2" d="M1,1 L3,1 M2,0 L2,3 M6,6 L8,6 M7,5 L7,8"/>
		</svg:pattern>

		<svg:pattern patternUnits="userSpaceOnUse" width="104.8886" height="112.38862" patternTransform="scale(0.05,0.05)" id="vineyard-pattern">
			<svg:rect fill="#d1ead1" width="104.8886" height="112.38862" x="0" y="0"/>
			<svg:g transform="translate(-35,-59.111382)">
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="105" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5156324" height="2.3059964" x="104.54168" y="95.686478"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="120" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5156324" height="2.3059964" x="91.572838" y="95.066086"/>
				<svg:path style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#bf5bc3;stroke-width:1.79999995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 102.72166,94.632518 C 102.72166,94.632518 102.51202,95.733107 102.51202,86.247077 C 102.51202,84.082553 104.39875,79.905587 96.851849,75.974911"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-1.4674523,16.770883)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-4.6119891,6.2890801)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(10.27217,-2.7252699)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-6.7083494,-4.4023583)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(4.1927244,9.8528923)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(2.096364,0.6289069)"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="75" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="90" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="110" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="125" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="80" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="95" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="130" y="94"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="85" y="94"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="120" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="75" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="110" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="125" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="80" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="115" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="130" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="85" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="100" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="60" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5156324" height="2.3059964" x="59.541687" y="133.18648"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="75" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5156324" height="2.3059964" x="46.572845" y="132.56609"/>
				<svg:path style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#bf5bc3;stroke-width:1.79999995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 57.72166,132.13252 C 57.72166,132.13252 57.51202,133.23311 57.51202,123.74708 C 57.51202,121.58255 59.39875,117.40559 51.85185,113.47491"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-46.467452,54.270883)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-49.611989,43.78908)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-34.72783,34.77473)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-51.708349,33.097642)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-40.807276,47.352892)"/>
				<svg:path style="fill:#ffffff;fill-opacity:1;stroke:#bf5bc3;stroke-width:1.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 106.28547 97.357788 A 5.4505372 5.4505372 0 1 1  95.384393,97.357788 A 5.4505372 5.4505372 0 1 1  106.28547 97.357788 z" transform="translate(-42.903636,38.128907)"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="45" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="65" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="80" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="35" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="50" y="119"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="100" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="85" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="40" y="131.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="90" y="144"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="75" y="144"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="95" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="65" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="80" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="35" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="100" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="70" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="85" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="40" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="55" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="120" y="144"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="105" y="144"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="125" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="110" y="156.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="115" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="130" y="169"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="35" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="40" y="94"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="60" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="45" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="65" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="50" y="81.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="55" y="94"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="70" y="94"/>
				<svg:rect style="fill:none;fill-opacity:0.92941176;stroke:none;stroke-width:0.22276554;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="104.87722" height="112.37724" x="35.011383" y="59.111382"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="135" y="69"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="135" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="135" y="106.5"/>
				<svg:rect style="fill:#7ba274;fill-opacity:0.92941176;stroke:none;stroke-width:1.79999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="2.5" height="2.5" x="135" y="144"/>
			</svg:g>
		</svg:pattern>

		<svg:pattern id="livingstreet-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#e5e0c2" stroke-width="1" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="cycleroad-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#d1fad1" stroke-width="2" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="access-private-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#ff4040" stroke-width="0.1" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="access-permissive-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#40ff40" stroke-width="0.1" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="access-destination-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#4040ff" stroke-width="0.1" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="access-no-pattern" x="0" y="0" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
			<svg:path fill="none" stroke="#ff4040" stroke-width="0.1" d="M5,0 L0,5 M0,0 L5,5"/>
		</svg:pattern>
		<svg:pattern id="power-photovoltaic-pattern" x="4" y="4" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="scale(0.107)">
		<svg:pattern id="power-wind-pattern" x="4" y="4" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="scale(0.107)">
		<!-- power_wind.svg -->
			<svg:g style="fill:#000000">
				<rect width="0.77532399" height="8.1394444" x="8.3448029" y="7.860559" style="fill:#000000" />
				<path d="M 9.4685289,7.5398227 C 9.5951548,7.3769778 10.64679,8.1902804 11.817421,9.3563852 C 12.988052,10.52249 13.834385,11.599816 13.707759,11.762661 C 13.581133,11.925506 12.529499,11.112204 11.358868,9.9460989 C 10.188236,8.7799942 9.341903,7.7026676 9.4685289,7.5398227 z" />
				<path d="M 9.0179241,5.7934416 C 8.8242005,5.7429518 9.0001786,4.4242539 9.4109824,2.8480475 C 9.8217862,1.2718412 10.311853,0.03500359 10.505576,0.085493431 C 10.6993,0.13598327 10.523322,1.4546811 10.112518,3.0308874 C 9.7017142,4.6070939 9.2116477,5.8439315 9.0179241,5.7934416 z" />
				<path d="M 7.7057548,7.0801563 C 7.7567258,7.273754 6.5211097,7.7668916 4.9459289,8.1816099 C 3.3707482,8.5963282 2.0524917,8.7755817 2.0015207,8.5819841 C 1.9505497,8.3883865 3.1861658,7.8952488 4.7613465,7.4805306 C 6.3365273,7.0658123 7.6547838,6.8865587 7.7057548,7.0801563 z" />
				<path d="M 9.7448924,6.787931 C 9.7450023,7.3521951 9.2876067,7.8096797 8.7233428,7.8096797 C 8.1590787,7.8096797 7.7016831,7.3521951 7.701793,6.787931 C 7.7016831,6.2236669 8.1590787,5.7661823 8.7233428,5.7661823 C 9.2876067,5.7661823 9.7450023,6.2236669 9.7448924,6.787931 L 9.7448924,6.787931 z" />
			</svg:g>
		</svg:pattern>
		<svg:pattern id="power-hydro-pattern" x="4" y="4" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="scale(0.107)">
		<!-- power_hydro.svg -->
			<path d="M 8.5,12.8 L 11.9,6.5 L 7.1,7.6 L 10.8,1.5 L 8.2,0.17 L 4.1,10.1 L 9,8.6 L 7.4,12.3 L 7.1,11.6 L 6.65,15.7 L 9.3,12.5 L 8.5,12.8 z" style="fill:#00ccff;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;" />
		</svg:pattern>
		<!-- power_photovoltaic.svg -->
		<svg:g transform="matrix(1,0,-0.26,1,0.15,0)">
				<svg:rect x="3.4" y="3.4" width="13" height="8.9" style="fill:#ffffff;stroke:#000000;stroke-width:0.4"/>
				<svg:g style="stroke-width:0;fill:#000084" >
					<svg:rect x="3.9" y="8" width="3.8" height="3.8" />
					<svg:rect x="8" y="8" width="3.8" height="3.8" />
					<svg:rect x="12.1" y="8" width="3.8" height="3.8" />
					<svg:rect x="3.9" y="3.9" width="3.8" height="3.8" />
					<svg:rect x="8" y="3.9" width="3.8" height="3.8" />
					<svg:rect x="12.1" y="3.9" width="3.8" height="3.8" />
				</svg:g>
			</svg:g>
			<svg:path d="M 2.72 0.34 L 2.97 2.59 L 1.38 2.13 L 2.44 3.25 L 0.38 3.98 L 2.59 4.38 L 1.59 5.72 L 3.13 5.03 L 3.16 7.22 L 4.25 5.34 L 5.22 6.63 L 5.03 5 L 7.22 5.66 L 5.72 4.06 L 7.25 3.59 L 5.59 3.28 L 6.97 1.41 L 4.88 2.34 L 4.88 0.78 L 4.09 2.13 L 2.72 0.34 z" style="fill:#ffff00;stroke:#000000;stroke-width:0.1" />
		</svg:pattern>
		<svg:pattern id="power-generic-pattern" x="4" y="4" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="scale(0.107)">
		<!-- power_generic.svg -->
			<path d="M 8.5,12.8 L 11.9,6.5 L 7.1,7.6 L 10.8,1.5 L 8.2,0.17 L 4.1,10.1 L 9,8.6 L 7.4,12.3 L 7.1,11.6 L 6.65,15.7 L 9.3,12.5 L 8.5,12.8 z" style="fill:#ffff00;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;" />
		</svg:pattern>
		<svg:marker fill="none" id="bridge-casing-start" markerHeight="2" markerUnits="strokeWidth" markerWidth="2" orient="auto" refX="1" refY="1" stroke="#707070" stroke-width="0.06px" viewBox="0 0 2 2">
			<svg:path d="M 1.05,1.45 L 0.7,1.8 M 1.05,0.55 L 0.7, 0.2"/>
		</svg:marker>
		<svg:marker fill="none" id="bridge-casing-end" markerHeight="2" markerUnits="strokeWidth" markerWidth="2" orient="auto" refX="1" refY="1" stroke="#707070" stroke-width="0.06px" viewBox="0 0 2 2">
			<svg:path d="M 0.95,1.45 L 1.3,1.8 M 0.95,0.55 L 1.3,0.2"/>
		</svg:marker>
		<svg:marker fill="none" id="marker-gate-locked" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="2px" refY="5px" stroke="#707070" stroke-width="0.4px" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L 1,10 M 3,0 L 3,10"/>
		</svg:marker>
		<svg:marker fill="none" id="marker-gate-closed" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#707070" stroke-width="0.4px" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L 1,10"/>
		</svg:marker>
		<svg:marker fill="none" id="marker-gate-open" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#707070" stroke-width="0.4px" viewBox="0 0 11 11">
			<svg:path d="M1,0 L1,1 M1,2 L1,3 M1,4 L1,5 M1,6 L1,7 M1,8 L1,9 M1,10 L1,11"/>
		</svg:marker>
		<svg:marker fill="none" id="noexit-all" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#ff5555" stroke-width="2px" stroke-opacity="0.5" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L 1,10"/>
		</svg:marker>
		<svg:marker fill="none" id="noexit-veh" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#eeaa55" stroke-width="1.75px" stroke-opacity="0.6" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L 1,10"/>
		</svg:marker>
		<svg:marker fill="none" id="noexit-mot" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#dddd55" stroke-width="1.5px" stroke-opacity="0.7" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L 1,10"/>
		</svg:marker>
		<svg:marker fill="none" id="noexit-no" markerHeight="3px" markerUnits="userSpaceOnUse" markerWidth="3px" orient="auto" refX="1px" refY="5px" stroke="#55dd55" stroke-width="1.5px" stroke-opacity="0.7" viewBox="0 0 10 10">
			<svg:path d="M 1,2 L 1,8"/>
		</svg:marker>
		<svg:marker fill="none" id="canal-lock" markerHeight="2px" markerUnits="userSpaceOnUse" markerWidth="2px" orient="auto" refX="1px" refY="5px" stroke="#000000" stroke-width="1px" stroke-opacity="1" viewBox="0 0 10 10">
			<svg:path d="M 1,0 L -2,5 L 1,10"/>
		</svg:marker>
		<svg:marker fill="none" id="mountain-pass" markerHeight="12px" markerUnits="userSpaceOnUse" markerWidth="6px" orient="auto" refX="64px" refY="32px" stroke="#000000" stroke-width="0.66px" viewBox="0 0 64 128">
			<svg:path d="M 1,1 L 16,21 L 112,21 L 127,1"/>
			<svg:path d="M 1,63 L 16,43 L 112,43 L 127,63"/>
		</svg:marker>
	</defs>
</rules>

