/* ~~~~ CONTENT OF ROADS ~~~~~

1.Z-INDEX ROADS
2.WORLD LEVEL ROAD 4-9 ZOOM
3.TRUNK & MOTORWAY 6-22 ZOOM
  3.1 Trunk & Motorway 6-22 ZOOM
  3.2 Trunk & Motorway tunnel 12-22 ZOOM
  3.3 Trunk & Motorway bridge 13-22 ZOOM
4.PRIMARY 8-22 ZOOM
  4.1 Primary 8-22 ZOOM
  4.2 Primary tunnel 14-22 ZOOM
  4.3 Primary bridge 14-22 ZOOM
5.SECONDARY 10-22 ZOOM
  5.1 Secondary 10-22 ZOOM
  5.2 Secondary tunnel 16-22 ZOOM
  5.3 Secondary bridge 14-22 ZOOM
6.TERTIARY & UNCLASSIFIED 11-22 ZOOM
  6.1 Tertiary & Unclassified 11-22 ZOOM
  6.2 Tertiary & Unclassified tunnel 16-22 ZOOM
  6.3 Tertiary & Unclassified bridge 14-22 ZOOM
7.RESIDENTAL, ROAD, STREETS & SERVICE 12-22 ZOOM
  7.1 Residential, Road, Street 12-22 ZOOM
  7.2 Residential, Road, Street tunnel 16-22 ZOOM
  7.3 Residential, Road, Street bridge 14-22 ZOOM
  7.4 Service 15-22 ZOOM
8.OTHERS ROADS 13-22 ZOOM
  8.1 Pedestrian & ford 13-22 ZOOM
  8.2 Pedestrian & ford tunnel 16-22 ZOOM
  8.3 Pedestrian & other brige 13-22 ZOOM
  8.4 Cycleway 13-22 ZOOM
  8.5 Construction 13-22 ZOOM
  8.6 Track & Path 14-22 ZOOM
  8.7 Footway 15-22 ZOOM
  8.8 Steps 15-22 ZOOM
  8.9 Bridleway 14-22 ZOOM
  8.11 Runway 12-22 ZOOM
9.RAIL 11-22 ZOOM
  9.1 RAIL 11-22 ZOOM
  9.2 Rail tunnel 14-22 ZOOM
  9.3 Rail bridge 14-22 ZOOM
  9.4 Monorail 14-22 ZOOM
  9.5 Tram line 13-22 ZOOM
  9.6 Funicular 12-22 ZOOM
10.PISTE 12-22 ZOOM
 10.1 Lift 12-22 ZOOM
 10.2 Aerialway 12-22 ZOOM
 10.3 Piste & Route 14-22 ZOOM
11.FERRY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/* 2.WORLD LEVEL ROAD 4-9 ZOOM */

line|z6-9[highway=world_towns_level],
line|z4-9[highway=world_level],
{color: @trunk1;opacity: 1;}

line|z4[highway=world_level]
{width: 0.5;}
line|z5-6[highway=world_level],
{width: 0.7;}
line|z6[highway=world_towns_level],
{width: 0.9;}
line|z7[highway=world_towns_level],
line|z7[highway=world_level]
{width: 0.7;}
line|z8[highway=world_towns_level],
line|z8[highway=world_level]
{width: 0.9;}
line|z9[highway=world_towns_level],
line|z9[highway=world_level]
{width: 0.8;}

/* 3.TRUNK & MOTORWAY 6-22 ZOOM */

line|z6[highway=trunk],
line|z6[highway=motorway],
{color: @trunk0; opacity: 0.3;}
line|z7-9[highway=trunk],
line|z7-9[highway=motorway],
{color: @trunk0; opacity: 0.7;}

line|z10-[highway=trunk],
line|z10-[highway=motorway],
{color: @trunk1; opacity: 0.7;}
line|z10-[highway=motorway_link],
line|z10-[highway=trunk_link],
{color: @primary0; opacity: 0.7;}
line|z13-14[highway=trunk],
line|z13-14[highway=motorway],
line|z14-15[highway=motorway_link],
line|z14-15[highway=trunk_link],
{opacity: 0.85;}
line|z15-[highway=trunk],
line|z15-[highway=motorway],
line|z16-[highway=motorway_link],
line|z16-[highway=trunk_link],
{opacity: 1;}

line|z13-[highway=motorway][bridge?]::bridgewhite,
line|z13-[highway=trunk][bridge?]::bridgewhite,
line|z14-[highway=motorway_link][bridge?]::bridgewhite,
line|z14-[highway=trunk_link][bridge?]::bridgewhite,
{casing-linecap: butt; casing-color: @bridge_background; casing-opacity: 0.8;}
line|z13-[highway=motorway][bridge?]::bridgeblack,
line|z13-[highway=trunk][bridge?]::bridgeblack,
line|z14-[highway=motorway_link][bridge?]::bridgeblack,
line|z14-[highway=trunk_link][bridge?]::bridgeblack,
{casing-linecap: butt; casing-color: @bridge_casing; casing-opacity: 0.7;}

/* 3.1 Trunk & Motorway 6-22 ZOOM */

line|z6[highway=trunk],
line|z6[highway=motorway],
{width: 0.8;}
line|z7[highway=trunk],
line|z7[highway=motorway]
{width: 0.9;}
line|z8[highway=trunk],
line|z8[highway=motorway]
{width: 1.1;}
line|z9[highway=trunk],
line|z9[highway=motorway]
{width: 1.2;}
line|z10[highway=trunk],
line|z10[highway=motorway]
{width: 1.5;}
line|z11[highway=trunk],
line|z11[highway=motorway]
{width: 1.7;}
line|z12[highway=trunk],
line|z12[highway=motorway]
{width: 1.9;}
line|z13[highway=trunk],
line|z13[highway=motorway],
{width: 2.8;}
line|z14[highway=trunk],
line|z14[highway=motorway],
{width: 3.8;}
line|z15[highway=trunk],
line|z15[highway=motorway],
{width: 4.4;}
line|z16[highway=trunk],
line|z16[highway=motorway],
{width: 6;}
line|z17[highway=trunk],
line|z17[highway=motorway],
{width: 8.2;}
line|z18[highway=trunk],
line|z18[highway=motorway],
{width: 11;}
line|z19-[highway=trunk],
line|z19-[highway=motorway],
{width: 13.5;}

line|z10[highway=motorway_link],
line|z10[highway=trunk_link]
{width: 0.8;}
line|z11[highway=motorway_link],
line|z11[highway=trunk_link]
{width: 1.0;}
line|z12[highway=motorway_link],
line|z12[highway=trunk_link]
{width: 1.3;}
line|z13[highway=motorway_link],
line|z13[highway=trunk_link]
{width: 1.8;}
line|z14[highway=motorway_link],
line|z14[highway=trunk_link]
{width: 2.6;}
line|z15[highway=motorway_link],
line|z15[highway=trunk_link]
{width: 3.6;}
line|z16[highway=motorway_link],
line|z16[highway=trunk_link]
{width: 5;}
line|z17[highway=motorway_link],
line|z17[highway=trunk_link]
{width: 6.6;}
line|z18[highway=motorway_link],
line|z18[highway=trunk_link]
{width: 9.4;}
line|z19-[highway=motorway_link],
line|z19-[highway=trunk_link]
{width: 11.6;}

/* 3.2 Trunk & Motorway tunnel 12-22 ZOOM */

line|z12-[highway=motorway][tunnel?],
line|z12-[highway=trunk][tunnel?],
line|z13-[highway=motorway_link][tunnel?],
line|z13-[highway=trunk_link][tunnel?],
{color: @trunk_tunnel; casing-linecap: butt; casing-color: @trunk_tunnel_casing; casing-opacity: 0.7;}

line|z12[highway=motorway][tunnel?],
line|z12[highway=trunk][tunnel?],
{opacity: 0.9; casing-width: 0.5; casing-dashes: 2,2;}
line|z13-14[highway=motorway][tunnel?],
line|z13-14[highway=trunk][tunnel?],
line|z13-14[highway=motorway_link][tunnel?],
line|z13-14[highway=trunk_link][tunnel?],
{opacity: 0.8; casing-width: 0.8; casing-dashes: 4,4;}
line|z15-[highway=motorway][tunnel?],
line|z15-[highway=trunk][tunnel?],
line|z15-[highway=motorway_link][tunnel?],
line|z15-[highway=trunk_link][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5;}

/* 3.3 Trunk & Motorway bridge 13-22 ZOOM */

line|z13[highway=motorway][bridge?]::bridgewhite,
line|z13[highway=trunk][bridge?]::bridgewhite
{casing-width-add: 0.2;}
line|z14-16[highway=motorway][bridge?]::bridgewhite,
line|z14-16[highway=trunk][bridge?]::bridgewhite,
line|z14-16[highway=motorway_link][bridge?]::bridgewhite,
line|z14-16[highway=trunk_link][bridge?]::bridgewhite,
{casing-width-add: 0;}
line|z17[highway=motorway][bridge?]::bridgewhite,
line|z17[highway=trunk][bridge?]::bridgewhite,
line|z17[highway=motorway_link][bridge?]::bridgewhite,
line|z17[highway=trunk_link][bridge?]::bridgewhite,
{casing-width-add: 0.8;}
line|z18-[highway=motorway][bridge?]::bridgewhite,
line|z18-[highway=trunk][bridge?]::bridgewhite,
line|z18-[highway=motorway_link][bridge?]::bridgewhite,
line|z18-[highway=trunk_link][bridge?]::bridgewhite,
{casing-width-add: 1;}

line|z13-16[highway=motorway][bridge?]::bridgeblack,
line|z13-16[highway=trunk][bridge?]::bridgeblack,
line|z14-16[highway=motorway_link][bridge?]::bridgeblack,
line|z14-16[highway=trunk_link][bridge?]::bridgeblack
{casing-width-add: 0.4;}
line|z17[highway=motorway][bridge?]::bridgeblack,
line|z17[highway=trunk][bridge?]::bridgeblack,
line|z17[highway=motorway_link][bridge?]::bridgeblack,
line|z17[highway=trunk_link][bridge?]::bridgeblack
{casing-width-add: 1.6;}
line|z18-[highway=motorway][bridge?]::bridgeblack,
line|z18-[highway=trunk][bridge?]::bridgeblack,
line|z18-[highway=motorway_link][bridge?]::bridgeblack,
line|z18-[highway=trunk_link][bridge?]::bridgeblack
{casing-width-add: 2;}

/* 4.PRIMARY 8-22 ZOOM */

line|z8-10[highway=primary],
{color: @primary0; opacity: 0.7;}

line|z11-12[highway=primary],
line|z11-12[highway=primary_link]
{color: @primary1; opacity: 0.7;}
line|z13-14[highway=primary],
line|z13-14[highway=primary_link],
{color: @primary1; opacity: 0.85;}
line|z15-[highway=primary],
line|z15-[highway=primary_link],
{color: @primary2; opacity: 1;}

line|z14-[highway=primary][bridge?]::bridgewhite,
line|z14-[highway=primary_link][bridge?]::bridgewhite,
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z14-[highway=primary][bridge?]::bridgeblack,
line|z14-[highway=primary_link][bridge?]::bridgeblack,
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}

/* 4.1 Primary 8-22 ZOOM */

line|z8[highway=primary],
{width: 0.7;}
line|z9[highway=primary],
{width: 0.8;}
line|z10[highway=primary],
{width: 1.2;}
line|z11[highway=primary],
{width: 1.5;}
line|z12[highway=primary],
{width: 1.7;}
line|z13[highway=primary],
{width: 2.3;}
line|z14[highway=primary],
{width: 3.2;}
line|z15[highway=primary],
{width: 3.8;}
line|z16[highway=primary],
{width: 5;}
line|z17[highway=primary],
{width: 6.6;}
line|z18[highway=primary],
{width: 9.4;}
line|z19-[highway=primary],
{width: 11.6;}

line|z11[highway=primary_link],
{width: 0.8;}
line|z12[highway=primary_link],
{width: 1.0;}
line|z13[highway=primary_link],
{width: 1.3;}
line|z14[highway=primary_link],
{width: 1.8;}
line|z15[highway=primary_link],
{width: 2.5;}
line|z16[highway=primary_link],
{width: 3.2;}
line|z17[highway=primary_link],
{width: 4.7;}
line|z18[highway=primary_link],
{width: 6.4;}
line|z19-[highway=primary_link],
{width: 8.2;}

/* 4.2 Primary tunnel 14-22 ZOOM */

line|z14-[highway=primary][tunnel?],
line|z14-[highway=primary_link][tunnel?],
{color: @primary_tunnel; casing-linecap: butt; casing-color: @primary_tunnel_casing; casing-opacity: 0.7;}

line|z14[highway=primary][tunnel?],
line|z14[highway=primary_link][tunnel?],
{opacity: 0.8; casing-width: 0.8; casing-dashes: 4,4;}
line|z15-[highway=primary][tunnel?],
line|z15-[highway=primary_link][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5;}

/* 4.3 Primary bridge 14-22 ZOOM */

line|z14-16[highway=primary][bridge?]::bridgewhite,
line|z14-16[highway=primary_link][bridge?]::bridgewhite,
{casing-width-add: 0;}
line|z17[highway=primary][bridge?]::bridgewhite,
line|z17[highway=primary_link][bridge?]::bridgewhite,
{casing-width-add: 0.8;}
line|z18-[highway=primary][bridge?]::bridgewhite,
line|z18-[highway=primary_link][bridge?]::bridgewhite,
{casing-width-add: 1;}

line|z14-16[highway=primary][bridge?]::bridgeblack,
line|z14-16[highway=primary_link][bridge?]::bridgeblack,
{casing-width-add: 0.4;}
line|z17[highway=primary][bridge?]::bridgeblack,
line|z17[highway=primary_link][bridge?]::bridgeblack,
{casing-width-add: 1.6;}
line|z18-[highway=primary][bridge?]::bridgeblack,
line|z18-[highway=primary_link][bridge?]::bridgeblack,
{casing-width-add: 2;}

/* 5.SECONDARY 10-22 ZOOM */

line|z10-12[highway=secondary],
{color: @secondary0; opacity: 0.8;}
line|z13-14[highway=secondary],
line|z13-14[highway=secondary_link],
{color: @secondary1; opacity: 0.9;}
line|z15-[highway=secondary],
line|z15-[highway=secondary_link],
{color: @secondary1; opacity: 1;}

line|z14-[highway=secondary][bridge?]::bridgewhite,
line|z14-[highway=secondary_link][bridge?]::bridgewhite,
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z14-[highway=secondary][bridge?]::bridgeblack,
line|z14-[highway=secondary_link][bridge?]::bridgeblack,
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}

/* 5.1 Secondary 10-22 ZOOM */

line|z10[highway=secondary],
{width: 1.2;}
line|z11[highway=secondary],
{width: 1.5;}
line|z12[highway=secondary],
{width: 1.7;}
line|z13[highway=secondary],
{width: 2.3;}
line|z14[highway=secondary],
{width: 3.2;}
line|z15[highway=secondary],
{width: 3.8;}
line|z16[highway=secondary],
{width: 5;}
line|z17[highway=secondary],
{width: 6.6;}
line|z18[highway=secondary],
{width: 9.4;}
line|z19-[highway=secondary],
{width: 11.6;}

line|z13[highway=secondary_link],
{width: 1.3;}
line|z14[highway=secondary_link],
{width: 1.8;}
line|z15[highway=secondary_link],
{width: 2.5;}
line|z16[highway=secondary_link],
{width: 3.2;}
line|z17[highway=secondary_link],
{width: 4.7;}
line|z18[highway=secondary_link],
{width: 6.4;}
line|z19-[highway=secondary_link],
{width: 8.2;}

/* 5.2 Secondary tunnel 16-22 ZOOM */

line|z16-[highway=secondary][tunnel?],
line|z16-[highway=secondary_link][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5; color: @secondary_tunnel; casing-linecap: butt; casing-color: @secondary_tunnel_casing; casing-opacity: 0.7;}

/* 5.3 Secondary bridge 14-22 ZOOM */

line|z14-16[highway=secondary][bridge?]::bridgewhite,
line|z14-16[highway=secondary_link][bridge?]::bridgewhite,
{casing-width-add: 0;}
line|z17[highway=secondary][bridge?]::bridgewhite,
line|z17[highway=secondary_link][bridge?]::bridgewhite,
{casing-width-add: 0.8;}
line|z18-[highway=secondary][bridge?]::bridgewhite,
line|z18-[highway=secondary_link][bridge?]::bridgewhite,
{casing-width-add: 1;}

line|z14-16[highway=secondary][bridge?]::bridgeblack,
line|z14-16[highway=secondary_link][bridge?]::bridgeblack,
{casing-width-add: 0.4;}
line|z17[highway=secondary][bridge?]::bridgeblack,
line|z17[highway=secondary_link][bridge?]::bridgeblack,
{casing-width-add: 1.6;}
line|z18-[highway=secondary][bridge?]::bridgeblack,
line|z18-[highway=secondary_link][bridge?]::bridgeblack
{casing-width-add: 2;}

/* 6.TERTIARY & UNCLASSIFIED 11-22 ZOOM */

line|z11-[highway=tertiary],
line|z11-[highway=unclassified],
line|z14-[highway=tertiary_link],
{color: @tertiary; opacity: 1;}

line|z14-[highway=tertiary][bridge?]::bridgewhite,
line|z14-[highway=tertiary_link][bridge?]::bridgewhite
line|z14-[highway=unclassified][bridge?]::bridgewhite,
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z14-[highway=tertiary][bridge?]::bridgeblack,
line|z14-[highway=tertiary_link][bridge?]::bridgeblack
line|z14-[highway=unclassified][bridge?]::bridgeblack,
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}

/* 6.1 Tertiary & Unclassified 11-22 ZOOM */

line|z11[highway=tertiary],
line|z11[highway=unclassified],
{width: 0.8;}
line|z12[highway=tertiary],
line|z12[highway=unclassified],
{width: 1.3;}
line|z13[highway=tertiary],
line|z13[highway=unclassified],
{width: 1.8;}
line|z14[highway=tertiary],
line|z14[highway=unclassified],
{width: 2.7;}
line|z15[highway=tertiary],
line|z15[highway=unclassified],
{width: 3.8;}
line|z16[highway=tertiary],
line|z16[highway=unclassified],
{width: 5;}
line|z17[highway=tertiary],
line|z17[highway=unclassified],
{width: 6.6;}
line|z18[highway=tertiary],
line|z18[highway=unclassified],
{width: 9.4;}
line|z19-[highway=tertiary],
line|z19-[highway=unclassified],
{width: 11.6;}

line|z14[highway=tertiary_link],
{width: 1.8;}
line|z15[highway=tertiary_link],
{width: 2.5;}
line|z16[highway=tertiary_link],
{width: 3.2;}
line|z17[highway=tertiary_link],
{width: 4.7;}
line|z18[highway=tertiary_link],
{width: 6.4;}
line|z19-[highway=tertiary_link],
{width: 8.2;}

/* 6.2 Tertiary & Unclassified tunnel 16-22 ZOOM */

line|z16-[highway=tertiary][tunnel?],
line|z16-[highway=tertiary_link][tunnel?],
line|z16-[highway=unclassified][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5; color: @tertiary_tunnel; casing-linecap: butt; casing-color: @tertiary_tunnel_casing; casing-opacity: 0.7;}

/* 6.3 Tertiary & Unclassified bridge 14-22 ZOOM */

line|z14-16[highway=tertiary][bridge?]::bridgewhite,
line|z14-16[highway=tertiary_link][bridge?]::bridgewhite,
line|z14-16[highway=unclassified][bridge?]::bridgewhite,
{casing-width-add: 0;}
line|z17[highway=tertiary][bridge?]::bridgewhite,
line|z17[highway=tertiary_link][bridge?]::bridgewhite,
line|z17[highway=unclassified][bridge?]::bridgewhite,
{casing-width-add: 0.8;}
line|z18-[highway=tertiary][bridge?]::bridgewhite,
line|z18-[highway=tertiary_link][bridge?]::bridgewhite,
line|z18-[highway=unclassified][bridge?]::bridgewhite,
{casing-width-add: 1;}

line|z14-16[highway=tertiary][bridge?]::bridgeblack,
line|z14-16[highway=tertiary_link][bridge?]::bridgeblack,
line|z14-16[highway=unclassified][bridge?]::bridgeblack,
{casing-width-add: 0.4;}
line|z17[highway=tertiary][bridge?]::bridgeblack,
line|z17[highway=tertiary_link][bridge?]::bridgeblack,
line|z17[highway=unclassified][bridge?]::bridgeblack,
{casing-width-add: 1.6;}
line|z18-[highway=tertiary][bridge?]::bridgeblack,
line|z18-[highway=tertiary_link][bridge?]::bridgeblack,
line|z18-[highway=unclassified][bridge?]::bridgeblack,
{casing-width-add: 2;}

/* 7.RESIDENTIAL, ROAD, STREETS & SERVICE 12-22 ZOOM */

line|z12-[highway=residential],
line|z12-[highway=road],
line|z12-[highway=living_street],
{color: @residential; opacity: 1;}

line|z14-[highway=residential][bridge?]::bridgewhite,
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z14-[highway=residential][bridge?]::bridgeblack,
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}

/* 7.1 Residential, Road, Street 12-22 ZOOM */

line|z12[highway=residential],
line|z12[highway=road],
line|z12[highway=living_street]
{width: 0.7;}
line|z13[highway=residential],
line|z13[highway=road],
line|z13[highway=living_street]
{width: 1;}
line|z14[highway=residential],
line|z14[highway=road],
line|z14[highway=living_street]
{width: 1.6;}
line|z15[highway=residential],
line|z15[highway=road],
line|z15[highway=living_street]
{width: 2.4;}
line|z16[highway=residential],
line|z16[highway=road],
line|z16[highway=living_street]
{width: 3.2;}
line|z17[highway=residential],
line|z17[highway=road],
line|z17[highway=living_street]
{width: 4.7;}
line|z18[highway=residential],
line|z18[highway=road],
line|z18[highway=living_street]
{width: 6.4;}
line|z19-[highway=residential],
line|z19-[highway=road],
line|z19-[highway=living_street]
{width: 8.2;}

/* 7.2 Residential, Road, Street tunnel 16-22 ZOOM */

line|z16-[highway=residential][tunnel?],
line|z16-[highway=living_street][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5; color: @residential_tunnel; casing-linecap: butt; casing-color: @residential_tunnel_casing; casing-opacity: 0.7;}

/* 7.3 Residential, Road, Street bridge 14-22 ZOOM */

line|z14-16[highway=residential][bridge?]::bridgewhite,
{casing-width-add: 0;}
line|z17[highway=residential][bridge?]::bridgewhite,
{casing-width-add: 0.8;}
line|z18-[highway=residential][bridge?]::bridgewhite,
{casing-width-add: 1;}

line|z14-16[highway=residential][bridge?]::bridgeblack,
{casing-width-add: 0.4;}
line|z17[highway=residential][bridge?]::bridgeblack,
{casing-width-add: 1.6;}
line|z18-[highway=residential][bridge?]::bridgeblack,
{casing-width-add: 2;}

/* 7.4 Service 15-22 ZOOM */

line|z15-[highway=service],
line|z15-[highway=service][service=busway],
line|z15-[highway=busway],
{color: @residential; opacity: 1;}

line|z15[highway=service],
line|z15[highway=service][service=busway],
line|z15[highway=busway],
{width: 1.2;}
line|z15[highway=service][service=driveway]
{width: 0;}
line|z16[highway=service],
line|z16[highway=service][service=busway],
line|z16[highway=busway],
{width: 1.6;}
line|z17[highway=service],
line|z17[highway=service][service=busway],
line|z17[highway=busway],
{width: 2;}
line|z18[highway=service],
line|z18[highway=service][service=busway],
line|z18[highway=busway],
{width: 3;}
line|z19-[highway=service],
line|z19-[highway=service][service=busway],
line|z19-[highway=busway],
{width: 4;}

/* 8.OTHERS ROADS 13-22 ZOOM */

line|z13-[highway=pedestrian],
line|z16-[highway=platform],
line|z13-[highway=ford]
{color: @pedestrian;opacity: 1;}
line|z13-[highway=cycleway],
line|z14-[highway=path][bicycle=designated]::cycleline,
line|z15-[highway=footway][bicycle=designated]::cycleline,
{color: @cycleway;}
line|z13-[highway=construction],
{color: @construction;opacity: 0.7;}
line|z13-[highway=pedestrian][bridge?]::bridgewhite,
line|z15-[highway=footway][bridge?]::bridgewhite,
line|z15-[highway=cycleway][bridge?]::bridgewhite,
line|z15-[highway=path][bridge?]::bridgewhite,
line|z15-[highway=track][bridge?]::bridgewhite,
line|z15-[highway=bridleway][bridge?]::bridgewhite,
line|z15-[highway=steps][bridge?]::bridgewhite,
line|z16-[highway=road][bridge?]::bridgewhite,
line|z16-[highway=service][bridge?]::bridgewhite
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z13-[highway=pedestrian][bridge?]::bridgeblack,
line|z17-[highway=footway][bridge?]::bridgeblack,
line|z17-[highway=cycleway][bridge?]::bridgeblack,
line|z17-[highway=path][bridge?]::bridgeblack,
line|z17-[highway=track][bridge?]::bridgeblack,
line|z17-[highway=bridleway][bridge?]::bridgeblack,
line|z17-[highway=steps][bridge?]::bridgeblack,
line|z16-[highway=road][bridge?]::bridgeblack,
line|z16-[highway=service][bridge?]::bridgeblack
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}
line|z14-[highway=track],
{color: @track;opacity: 0.6;}
line|z14-[highway=raceway],
{color: @track;opacity: 0.7;}
line|z15-[leisure=track][!area],
{color: @sport2;opacity: 0.7;}
line|z14-[highway=bridleway]
{color: @bridleway;opacity: 0.6;}
line|z15-[highway=footway],
{color: @footway;opacity: 1;}
line|z15-[highway=ladder],
line|z15-[highway=steps],
{color: @footway;opacity: 1;}
line|z14-[highway=path],
{color: @path;opacity: 0.6;}
line|z14-[highway=path][_path_grade=expert],
{color: @path_expert; opacity: 0.6;}
line|z14-[piste:type=hike],
{color: @piste; opacity: 0.4;}
line|z17-[highway=footway][tunnel?]::tunnelBackground,
line|z17-[highway=cycleway][tunnel?]::tunnelBackground,
line|z17-[highway=path][tunnel?]::tunnelBackground,
line|z17-[highway=track][tunnel?]::tunnelBackground,
line|z17-[highway=bridleway][tunnel?]::tunnelBackground,
line|z17-[highway=steps][tunnel?]::tunnelBackground,
{casing-color: @bridge_background;casing-opacity: 0.7;}
line|z17-[highway=footway][tunnel?]::tunnelCasing,
line|z17-[highway=cycleway][tunnel?]::tunnelCasing,
line|z17-[highway=path][tunnel?]::tunnelCasing,
line|z17-[highway=track][tunnel?]::tunnelCasing,
line|z17-[highway=bridleway][tunnel?]::tunnelCasing,
line|z17-[highway=steps][tunnel?]::tunnelCasing,
{
  casing-color: @bridge_casing;
  casing-dashes: 2,2;
  casing-opacity: 0.7;
}

/* 8.1 Pedestrian & ford 13-22 ZOOM */

line|z13[highway=pedestrian],
line|z13[highway=ford]
{width: 1;dashes: 2,1;}
line|z14[highway=pedestrian],
line|z14[highway=ford]
{width: 1.6;dashes: 3.6,1.6;}
line|z15[highway=pedestrian],
line|z15[highway=ford]
{width: 2;dashes: 5,2.2;}
line|z16[highway=pedestrian],
line|z16[highway=platform],
line|z16[highway=ford]
{width: 2.4;dashes: 5.4,2.7;}
line|z17[highway=pedestrian],
line|z17[highway=platform],
line|z17[highway=ford]
{width: 3;dashes: 5,2;}
line|z18[highway=pedestrian],
line|z18[highway=platform],
line|z18[highway=ford]
{width: 4;dashes: 7,3;opacity: 1;}
line|z19-[highway=pedestrian],
line|z19-[highway=platform],
line|z19-[highway=ford]
{width: 5;dashes: 16.2,8.1;opacity: 1;}

/* 8.2 Pedestrian & ford tunnel 16-22 ZOOM */

line|z16-[highway=pedestrian][tunnel?],
{opacity: 0.7; casing-width: 1; casing-dashes: 5,5; color: @residential_tunnel; casing-linecap: butt; casing-color: @residential_tunnel_casing; casing-opacity: 0.7;}

/* 8.3 Pedestrian & other brige 13-22 ZOOM */

line|z13[highway=pedestrian][bridge?]::bridgewhite,
{casing-width-add: -0.2;}
line|z14-[highway=pedestrian][bridge?]::bridgewhite,
line|z16-[highway=road][bridge?]::bridgewhite,
line|z16-[highway=service][bridge?]::bridgewhite
{casing-width-add: 0;}
line|z16-[highway=pedestrian][bridge?]::bridgewhite,
{casing-width-add: 0.2;}

line|z14-[highway=pedestrian][bridge?]::bridgeblack,
line|z16-[highway=road][bridge?]::bridgeblack,
line|z16-[highway=service][bridge?]::bridgeblack
{casing-width-add: 0.2;}
line|z16-[highway=pedestrian][bridge?]::bridgeblack,
{casing-width-add: 0.6;}

/* Do not draw highway-pedestrian-area like lines, but keep z13 lines so as not to break routing */
line|z14-[highway=pedestrian][area?],
{width: 0;}

/* 8.4 Cycleway 13-22 ZOOM */

line|z13[highway=cycleway],
{opacity: 0.3;}
line|z14[highway=cycleway],
line|z14[highway=path][bicycle=designated]::cycleline,
{opacity: 0.4;}
line|z15[highway=cycleway],
line|z15[highway=path][bicycle=designated]::cycleline,
{opacity: 0.5;}
line|z16-17[highway=cycleway],
line|z16-17[highway=path][bicycle=designated]::cycleline,
{opacity: 0.6;}
line|z18-[highway=cycleway],
line|z18-[highway=path][bicycle=designated]::cycleline,
{opacity: 0.8;}

line|z15-16[highway=footway][bicycle=designated]::cycleline,
{opacity: 0.4;}
line|z17-[highway=footway][bicycle=designated]::cycleline,
{opacity: 0.5;}

line|z13[highway=cycleway]
{width: 0.9;}
line|z14[highway=cycleway],
line|z14[highway=path][bicycle=designated]::cycleline,
{width: 1.1;}
line|z15[highway=cycleway]
line|z15[highway=footway][bicycle=designated]::cycleline,
line|z15[highway=path][bicycle=designated]::cycleline,
{width: 1.2;}
line|z16[highway=cycleway],
line|z16[highway=footway][bicycle=designated]::cycleline,
line|z16[highway=path][bicycle=designated]::cycleline,
{width: 1.3;}
line|z17[highway=cycleway],
line|z17[highway=footway][bicycle=designated]::cycleline,
line|z17[highway=path][bicycle=designated]::cycleline,
{width: 1.4;}
line|z18[highway=cycleway],
line|z18[highway=footway][bicycle=designated]::cycleline,
line|z18[highway=path][bicycle=designated]::cycleline,
{width: 1.6;}
line|z19-[highway=cycleway],
line|z19-[highway=footway][bicycle=designated]::cycleline,
line|z19-[highway=path][bicycle=designated]::cycleline,
{width: 1.8;}

line|z17[highway=cycleway][tunnel?]::tunnelBackground
{casing-width-add: 1;}
line|z18[highway=cycleway][tunnel?]::tunnelBackground
{casing-width-add: 2;}
line|z19-[highway=cycleway][tunnel?]::tunnelBackground
{casing-width-add: 2.5;}
line|z17[highway=cycleway][tunnel?]::tunnelCasing
{casing-width-add: 1.5;}
line|z18[highway=cycleway][tunnel?]::tunnelCasing
{casing-width-add: 2.5;}
line|z19-[highway=cycleway][tunnel?]::tunnelCasing
{casing-width-add: 3;}

line|z15-16[highway=cycleway][bridge?]::bridgewhite
{casing-width-add: 0.5;}
line|z17[highway=cycleway][bridge?]::bridgewhite
{casing-width-add: 1;}
line|z18[highway=cycleway][bridge?]::bridgewhite
{casing-width-add: 2;}
line|z19-[highway=cycleway][bridge?]::bridgewhite
{casing-width-add: 2.5;}
line|z17[highway=cycleway][bridge?]::bridgeblack
{casing-width-add: 1.5;}
line|z18[highway=cycleway][bridge?]::bridgeblack
{casing-width-add: 2.5;}
line|z19-[highway=cycleway][bridge?]::bridgeblack
{casing-width-add: 3;}

/* 8.5 Construction 13-22 ZOOM */

line|z13[highway=construction],
{width: 1.2;dashes: 3.6,1.8;}
line|z14[highway=construction],
{width: 1.4;dashes: 4.5,1.8;}
line|z15[highway=construction],
{width: 2;dashes: 7.2,2.7;}
line|z16[highway=construction],
{width: 2.6;dashes: 9,3.6;}
line|z17[highway=construction],
{width: 3;dashes: 10.8,4.5;}
line|z18[highway=construction],
{width: 4;dashes: 13.5,5.4;}
line|z19-[highway=construction],
{width: 6;dashes: 18,6.2;}

/* 8.6 Track & Path 14-22 ZOOM */

line|z14[highway=raceway],
{width: 1;}
line|z15[highway=raceway],
line|z15[leisure=track][!area]
{width: 1.5;}
line|z16[highway=raceway],
line|z16[leisure=track][!area]
{width: 1.8;}
line|z17-18[highway=raceway],
line|z17-18[leisure=track][!area]
{width:3; opacity: 0.8;}
line|z19-[highway=raceway],
line|z19-[leisure=track][!area]
{width:4; opacity: 0.8;}

line|z14[highway=track],
{width: 1.1; dashes: 6,2.5;}
line|z15[highway=track],
{width: 1.4; dashes: 6,2.5;}
line|z16[highway=track],
{width: 1.9; dashes: 7,3;}
line|z17[highway=track],
{width: 2.5; dashes: 7,3;}
line|z18[highway=track],
{width: 3.3; dashes: 9,3.5; opacity: 0.8;}
line|z19-[highway=track],
{width: 4.2; dashes: 12,3.5; opacity: 0.8;}

line|z14[highway=path],
line|z14[piste:type=hike],
{width: 0.9; dashes: 3.5,2;}
line|z15[highway=path],
line|z15[piste:type=hike],
{width: 1.1; dashes: 3.5,2;}
line|z16[highway=path],
line|z16[piste:type=hike],
{width: 1.5; dashes: 4,2.5;}
line|z17[highway=path],
line|z17-[piste:type=hike],
{width: 2; dashes: 4,2.5;}
line|z18[highway=path],
{width: 2.8; dashes: 6,3.5; opacity: 0.8;}
line|z19-[highway=path],
{width: 3.7; dashes: 8,4.5; opacity: 0.8;}

line|z14[highway=path][bicycle=designated],
{width: 0.9; dashes: 3.5,2.7;}
line|z15[highway=path][bicycle=designated],
{width: 1.1; dashes: 3.5,2.7;}
line|z16[highway=path][bicycle=designated],
{width: 1.5; dashes: 4,3.2;}
line|z17[highway=path][bicycle=designated],
{width: 2; dashes: 4,3.2;}
line|z18[highway=path][bicycle=designated],
{width: 2.8; dashes: 6,4.7; opacity: 0.8;}
line|z19-[highway=path][bicycle=designated],
{width: 3.7; dashes: 8,6.2; opacity: 0.8;}

line|z14[highway=path][_path_grade=difficult],
{width: 0.9; dashes: 1,2;}
line|z15[highway=path][_path_grade=difficult],
{width: 1.1; dashes: 1,2;}
line|z16[highway=path][_path_grade=difficult],
{width: 1.5; dashes: 1.8,2.5;}
line|z17[highway=path][_path_grade=difficult],
{width: 2; dashes: 1.8,2.5;}
line|z18-[highway=path][_path_grade=difficult],
{width: 2.8; dashes: 2.8,3.5;}

line|z14[highway=path][_path_grade=expert],
{width: 0.9; dashes: 1,4;}
line|z15[highway=path][_path_grade=expert],
{width: 1.1; dashes: 1,4;}
line|z16[highway=path][_path_grade=expert],
{width: 1.5; dashes: 1.6,6;}
line|z17[highway=path][_path_grade=expert],
{width: 2; dashes: 1.6,6;}
line|z18-[highway=path][_path_grade=expert],
{width: 2.8; dashes: 2.8,8;}

line|z17-[highway=path][tunnel?]::tunnelBackground
{casing-width-add: 0.5;}
line|z17-[highway=path][tunnel?]::tunnelCasing
{casing-width-add: 1;}

line|z17-[highway=track][tunnel?]::tunnelBackground
{casing-width-add: 0.5;}
line|z17-[highway=track][tunnel?]::tunnelCasing
{casing-width-add: 1;}

line|z15-[highway=path][bridge?]::bridgewhite
{casing-width-add: 0.5;}
line|z17-[highway=path][bridge?]::bridgeblack
{casing-width-add: 1;}

line|z15-[highway=track][bridge?]::bridgewhite
{casing-width-add: 0.5;}
line|z17-[highway=track][bridge?]::bridgeblack
{casing-width-add: 1;}


/* 8.7 Footway 15-22 ZOOM */

line|z15[highway=footway]
{width: 1.5; dashes: 5,2;}
line|z16[highway=footway]
{width: 2; dashes: 5,2;}
line|z17[highway=footway]
{width: 2.4; dashes: 6,2.5;}
line|z18[highway=footway]
{width: 3.2; dashes: 8,3; opacity: 1;}
line|z19-[highway=footway],
{width: 4.2; dashes: 10,3.5; opacity: 1;}

line|z15[highway=footway][bicycle=designated],
{width: 1.5; dashes: 5,3;}
line|z16[highway=footway][bicycle=designated],
{width: 2; dashes: 5,3;}
line|z17[highway=footway][bicycle=designated],
{width: 2.4; dashes: 6,4.2; opacity: 0.9;}
line|z18[highway=footway][bicycle=designated],
{width: 3.2; dashes: 8,5.5; opacity: 1;}
line|z19-[highway=footway][bicycle=designated],
{width: 4.2; dashes: 10,6.7; opacity: 1;}

/* Don't display sidewalks and pedestrian crossings on z15. */
line|z15[highway=footway][footway=sidewalk],
line|z15[highway=footway][footway=crossing],
{width: 0;}

line|z17-[highway=footway][tunnel?]::tunnelBackground
{casing-width-add: 0.5;}
line|z17-[highway=footway][tunnel?]::tunnelCasing
{casing-width-add: 1;}

line|z15-[highway=footway][bridge?]::bridgewhite
{casing-width-add: 0.5;}
line|z17-[highway=footway][bridge?]::bridgeblack
{casing-width-add: 1;}

/* Do not draw highway-footway-area like lines, but keep z13 lines so as not to break routing */
line|z13[highway=footway][area?],
{color: @pedestrian; opacity: 1; width: 1; dashes: 2,1;}
line|z14-[highway=footway][area?],
{width: 0;}

/* 8.8 Steps 15-22 ZOOM */

line|z15[highway=ladder],
line|z15[highway=steps],
{width: 2.4; dashes: 1.5,1.3;}
line|z16[highway=ladder],
line|z16[highway=steps],
{width: 4; dashes: 1.8,1.6;}
line|z17-[highway=ladder],
line|z17-[highway=steps],
{width: 6; dashes: 2.5,2.2; opacity: 1;}
line|z18[highway=ladder],
line|z18[highway=steps],
{width: 8; dashes: 3.2,2.8;}
line|z19-[highway=ladder],
line|z19-[highway=steps],
{width: 10; dashes: 4,3.5;}

line|z17-[highway=steps][tunnel?]::tunnelBackground
{casing-width: 0.5;}
line|z17-[highway=steps][tunnel?]::tunnelCasing
{casing-width: 1;}

line|z15-16[highway=steps][bridge?]::bridgewhite
{casing-width-add: -2;}
line|z17[highway=steps][bridge?]::bridgewhite
{casing-width-add: -2.5;}
line|z18[highway=steps][bridge?]::bridgewhite
{casing-width-add: -3;}
line|z19-[highway=steps][bridge?]::bridgewhite
{casing-width-add: -3.5;}
/*
line|z16[highway=steps][bridge?]::bridgeblack
{casing-width-add: -1.5;}
*/
line|z17[highway=steps][bridge?]::bridgeblack
{casing-width-add: -2;}
line|z18[highway=steps][bridge?]::bridgeblack
{casing-width-add: -2.5;}
line|z19-[highway=steps][bridge?]::bridgeblack
{casing-width-add: -3;}

/* 8.9 Bridleway 14-22 ZOOM */

line|z14[highway=bridleway]
{width: 0.9;dashes: 2.7,1.26;}
line|z15[highway=bridleway]
{width: 1.4;dashes: 2.7,1.26;}
line|z16[highway=bridleway]
{width: 1.8;dashes: 3.6,1.8;}
line|z17[highway=bridleway]
{width: 2;dashes: 4.5,1.8;}
line|z18[highway=bridleway]
{width: 3;dashes: 7.2,2.7;}
line|z19-[highway=bridleway]
{width: 4;dashes: 9,3.6;}

line|z17-[highway=bridleway][tunnel?]::tunnelBackground
{casing-width-add: 0.5;}
line|z17-[highway=bridleway][tunnel?]::tunnelCasing
{casing-width-add: 1;}

line|z15-[highway=bridleway][bridge?]::bridgewhite
{casing-width-add: 0.5;}
line|z17-[highway=bridleway][bridge?]::bridgeblack
{casing-width-add: 1;}

/* 8.11 Runway 12-22 ZOOM */

line|z12-[aeroway=runway],
line|z14-[aeroway=taxiway],
{color: @residential; opacity: 0.8;}

line|z12[aeroway=runway]
{width: 1; opacity: 0.4;}
line|z13[aeroway=runway]
{width: 1.5; opacity: 0.5;}
line|z14-15[aeroway=runway]
{width: 2.4; opacity: 0.7;}
line|z16-[aeroway=runway]
{width: 3.5;}

line|z14[aeroway=taxiway]
{width: 0.6; opacity: 0.4;}
line|z15-[aeroway=taxiway]
{width: 1.2; opacity: 0.5;}

/* 9.RAIL 11-22 ZOOM */

line|z11-[railway=rail],
{color: @railway_light; opacity: 0.7;}
line|z16-[railway=rail]::dash,
{color: @railway_dash; opacity: 1;}


line|z10-[railway=rail][highspeed?],
line|z10-[railway=rail][usage=main],
line|z11-[railway=rail][usage=branch],
{color: @railway; opacity: 0.7;}
line|z10-[railway=rail][usage=tourism],
{color: @railway_tourism; opacity: 0.7;}

line|z16-[railway=rail][highspeed?]::dash,
line|z16-[railway=rail][usage=main]::dash,
line|z16-[railway=rail][usage=tourism]::dash,
line|z16-[railway=rail][usage=branch]::dash,
{color: @railway_dash; opacity: 1;}

line|z13-[railway=rail][usage=utility],
line|z15-[railway=rail][service=spur],
line|z16-[railway=rail][service=service],
{color: @railway_light; opacity: 0.7;}
line|z17-[railway=rail][usage=utility]::dash,
line|z17-[railway=rail][service=spur]::dash,
line|z17-[railway=rail][service=service]::dash,
{color: @industrial; opacity: 1;}


line|z12-[railway=funicular],
line|z14-[railway=monorail],
line|z15-[railway=narrow_gauge],
line|z15-[railway=construction],
line|z15-[railway=preserved],
line|z15-[railway=miniature],
line|z16-[railway=disused],
line|z16-[railway=abandoned],
{color: @railway; opacity: 0.7;}

line|z13-[railway=light_rail][!tunnel],
line|z13-[railway=subway][!tunnel],
{color: @railway_light; opacity: 0.7;}

line|z13-[railway=tram]
{color: @tram;}

line|z16-[railway=subway][!tunnel]::dash,
line|z16-[railway=light_rail][!tunnel]::dash,
{color: @railway_dash; opacity: 1;}

line|z13-[railway=rail][bridge?]::bridgewhite,
line|z13-[railway=subway][bridge?]::bridgewhite,
line|z13-[railway=light_rail][bridge?]::bridgewhite,
line|z15-[railway=preserved][bridge?]::bridgewhite,
line|z15-[railway=miniature][bridge?]::bridgewhite,
line|z16-[railway=disused][bridge?]::bridgewhite,
{casing-linecap: butt;casing-color:@bridge_background;casing-opacity: 0.8;}
line|z16-[railway=rail][bridge?]::bridgeblack,
line|z16-[railway=subway][bridge?]::bridgeblack,
line|z16-[railway=light_rail][bridge?]::bridgeblack,
line|z16-[railway=preserved][bridge?]::bridgeblack,
line|z16-[railway=miniature][bridge?]::bridgeblack,
line|z16-[railway=disused][bridge?]::bridgeblack,
{casing-linecap: butt;casing-color:@bridge_casing;casing-opacity: 0.7;}

/* 9.1 RAIL 11-22 ZOOM */

line|z11-12[railway=rail],
{width: 0.6;}
line|z13[railway=rail],
{width: 0.8;}
line|z14[railway=rail],
{width: 1;}
line|z15[railway=rail],
{width: 1.2;}
line|z16[railway=rail],
{width: 2.6;}
line|z17-[railway=rail],
{width: 3; opacity: 1;}

line|z16[railway=rail]::dash,
{width: 1.3; dashes: 4.5,4.5;}
line|z17[railway=rail]::dash,
{width: 2; dashes: 6.3,6.3;}
line|z18-[railway=rail]::dash,
{width: 2; dashes: 8.1,8.1;}

/* Reset styling inherited from railway=rail. */
line|z11-12[railway=rail][usage=utility],
line|z11-14[railway=rail][service=spur],
line|z11-15[railway=rail][service=service],
{width: 0;}
line|z16[railway=rail][usage=utility]::dash,
line|z16[railway=rail][service=spur]::dash,
line|z16[railway=rail][service=service]::dash,
{width: 0;}


line|z10-11[railway=rail][usage=main],
line|z10-11[railway=rail][usage=tourism],
line|z11[railway=rail][usage=branch],
line|z13[railway=rail][usage=utility],
{width: 1;}
line|z12[railway=rail][usage=main],
line|z12[railway=rail][usage=tourism],
line|z12[railway=rail][usage=branch],
line|z14[railway=rail][usage=utility],
{width: 1.1;}
line|z10[railway=rail][highspeed?],
line|z13[railway=rail][usage=main],
line|z13[railway=rail][usage=tourism],
line|z13[railway=rail][usage=branch],
line|z15[railway=rail][usage=utility],
line|z15[railway=rail][service=spur],
{width: 1.2;}
line|z11[railway=rail][highspeed?],
line|z14[railway=rail][usage=main],
line|z14[railway=rail][usage=tourism],
line|z14[railway=rail][usage=branch],
line|z16[railway=rail][usage=utility],
line|z16[railway=rail][service=spur],
line|z16[railway=rail][service=service],
{width: 1.3;}
line|z12[railway=rail][highspeed?],
line|z15[railway=rail][usage=main],
line|z15[railway=rail][usage=tourism],
line|z15[railway=rail][usage=branch],
{width: 1.4;}
line|z13[railway=rail][highspeed?],
{width: 1.6;}
line|z14[railway=rail][highspeed?],
{width: 1.8;}
line|z15[railway=rail][highspeed?],
{width: 2;}
line|z16[railway=rail][highspeed?],
line|z16[railway=rail][usage=main],
line|z16[railway=rail][usage=tourism],
line|z16[railway=rail][usage=branch],
{width: 2.6;}
line|z17[railway=rail][highspeed?],
line|z17[railway=rail][usage=main],
line|z17[railway=rail][usage=tourism],
line|z17[railway=rail][usage=branch],
line|z17[railway=rail][usage=utility],
line|z17[railway=rail][service=spur],
line|z17[railway=rail][service=service],
{width: 2.9; opacity: 1;}
line|z18-[railway=rail][highspeed?],
line|z18-[railway=rail][usage=main],
line|z18-[railway=rail][usage=tourism],
line|z18-[railway=rail][usage=branch],
line|z18-[railway=rail][usage=utility],
line|z18-[railway=rail][service=spur],
line|z18-[railway=rail][service=service],
{width: 3.4; opacity: 1;}


line|z16[railway=rail][highspeed?]::dash,
{width: 1.1; dashes: 10,10;}
line|z17[railway=rail][highspeed?]::dash,
{width: 1.5; dashes: 13,13;}
line|z18-[railway=rail][highspeed?]::dash,
{width: 1.7; dashes: 16,16;}

line|z16[railway=rail][usage=main]::dash,
line|z16[railway=rail][usage=tourism]::dash,
line|z16[railway=rail][usage=branch]::dash,
{width: 1.4; dashes: 4.5,4.5;}
line|z17[railway=rail][usage=main]::dash,
line|z17[railway=rail][usage=tourism]::dash,
line|z17[railway=rail][usage=branch]::dash,
line|z17[railway=rail][usage=utility]::dash,
line|z17[railway=rail][service=spur]::dash,
line|z17[railway=rail][service=service]::dash,
{width: 1.8; dashes: 6.3,6.3;}
line|z18-[railway=rail][usage=main]::dash,
line|z18-[railway=rail][usage=tourism]::dash,
line|z18-[railway=rail][usage=branch]::dash,
line|z18-[railway=rail][usage=utility]::dash,
line|z18-[railway=rail][service=spur]::dash,
line|z18-[railway=rail][service=service]::dash,
{width: 2; dashes: 8.1,8.1;}


line|z13-[railway=subway][!tunnel],
line|z13-[railway=light_rail][!tunnel],
{width: 0.8;}
line|z14[railway=subway][!tunnel],
line|z14[railway=light_rail][!tunnel],
{width: 1;}
line|z15[railway=subway][!tunnel],
line|z15[railway=light_rail][!tunnel],
{width: 1.2;}
line|z16[railway=subway][!tunnel],
line|z16[railway=light_rail][!tunnel],
{width: 2.6;}
line|z17-[railway=subway][!tunnel],
line|z17-[railway=light_rail][!tunnel],
{width: 2.9; opacity: 1;}

line|z16[railway=subway][!tunnel]::dash,
line|z16[railway=light_rail][!tunnel]::dash,
{width: 1.3;dashes: 4.5,4.5;}
line|z17[railway=subway][!tunnel]::dash,
line|z17[railway=light_rail][!tunnel]::dash,
{width: 2;dashes: 6.3,6.3;}
line|z18-[railway=subway][!tunnel]::dash,
line|z18-[railway=light_rail][!tunnel]::dash,
{width: 2;dashes: 8.1,8.1;}


line|z15-[railway=preserved],
line|z15-[railway=miniature],
line|z16-[railway=disused],
{width: 1.6;dashes: 6.3,6.3;}

line|z15-[railway=construction],
line|z16-[railway=abandoned],
{width: 1;dashes: 1.8,5.4;}

/* 9.2 Rail tunnel 14-22 ZOOM */

line|z14-[railway=rail][tunnel?],
{casing-width: 1;casing-linecap: butt;casing-color: @railway_tunnel;casing-dashes: 5,5;casing-opacity: 0.7;}

/* 9.3 Rail bridge 14-22 ZOOM */

/* TODO
Replacment of eval()s with casing-width-add (https://github.com/organicmaps/kothic/pull/5)
led to addition of a few "new" (and incomplete, e.g. w/o color defined) bridge rules into the compiled style,
e.g. monorail lines widths were defined after the bridge section and hence they were not processed previously but are processed now.

This definition is just a plug to keep these styles "disabled" for now, because a proper addition of them is a separate work:
 - remove following definition
 - add casing-color and z-index definitions to new bridges
 - test visually
*/
line|z14-[railway=tram][bridge?]::bridgewhite,
line|z14-[railway=monorail][bridge?]::bridgewhite,
line|z14-[railway=funicular][bridge?]::bridgewhite,
line|z14-[railway=narrow_gauge][bridge?]::bridgewhite,
line|z14-[railway=tram][bridge?]::bridgeblack,
line|z14-[railway=monorail][bridge?]::bridgeblack,
line|z14-[railway=funicular][bridge?]::bridgeblack,
line|z14-[railway=narrow_gauge][bridge?]::bridgeblack,
{casing-linecap: round;}


line|z13-15[railway=rail][bridge?]::bridgewhite,
line|z13-15[railway=subway][bridge?]::bridgewhite,
line|z13-15[railway=light_rail][bridge?]::bridgewhite,
line|z15[railway=preserved][bridge?]::bridgewhite,
line|z15[railway=miniature][bridge?]::bridgewhite,
{casing-width-add: 1.2;}
line|z16[railway=rail][bridge?]::bridgewhite,
line|z16[railway=subway][bridge?]::bridgewhite,
line|z16[railway=light_rail][bridge?]::bridgewhite,
line|z16[railway=preserved][bridge?]::bridgewhite,
line|z16[railway=miniature][bridge?]::bridgewhite,
line|z16[railway=disused][bridge?]::bridgewhite,
{casing-width-add: 1.6;}
line|z17[railway=rail][bridge?]::bridgewhite,
line|z17[railway=subway][bridge?]::bridgewhite,
line|z17[railway=light_rail][bridge?]::bridgewhite,
line|z17[railway=preserved][bridge?]::bridgewhite,
line|z17[railway=miniature][bridge?]::bridgewhite,
line|z17[railway=disused][bridge?]::bridgewhite,
{casing-width-add: 2.3;}
line|z18-[railway=rail][bridge?]::bridgewhite,
line|z18-[railway=subway][bridge?]::bridgewhite,
line|z18-[railway=light_rail][bridge?]::bridgewhite,
line|z18-[railway=preserved][bridge?]::bridgewhite,
line|z18-[railway=miniature][bridge?]::bridgewhite,
line|z18-[railway=disused][bridge?]::bridgewhite,
{casing-width-add: 3.5;}

line|z16[railway=rail][bridge?]::bridgeblack,
line|z16[railway=subway][bridge?]::bridgeblack,
line|z16[railway=light_rail][bridge?]::bridgeblack,
line|z16[railway=preserved][bridge?]::bridgeblack,
line|z16[railway=miniature][bridge?]::bridgeblack,
line|z16[railway=disused][bridge?]::bridgeblack,
{casing-width-add: 2.2;}
line|z17[railway=rail][bridge?]::bridgeblack,
line|z17[railway=subway][bridge?]::bridgeblack,
line|z17[railway=light_rail][bridge?]::bridgeblack,
line|z17[railway=preserved][bridge?]::bridgeblack,
line|z17[railway=miniature][bridge?]::bridgeblack,
line|z17[railway=disused][bridge?]::bridgeblack,
{casing-width-add: 3;}
line|z18-[railway=rail][bridge?]::bridgeblack,
line|z18-[railway=subway][bridge?]::bridgeblack,
line|z18-[railway=light_rail][bridge?]::bridgeblack,
line|z18-[railway=preserved][bridge?]::bridgeblack,
line|z18-[railway=miniature][bridge?]::bridgeblack,
line|z18-[railway=disused][bridge?]::bridgeblack,
{casing-width-add: 4.4;}

/* 9.4 Monorail 14-22 ZOOM */

line|z14[railway=monorail]
{color: @railway_light;width: 1;}
line|z15-16[railway=monorail],
line|z15-16[railway=narrow_gauge]
{width: 1.2;}
line|z17-[railway=monorail],
line|z17-[railway=narrow_gauge]
{width: 2; opacity: 1;}

/* 9.5 Tram line 13-22 ZOOM */

line|z13-14[railway=tram]
{width: 0.6; opacity: 0.5;}
line|z15[railway=tram]
{width: 0.7; opacity: 0.7;}
line|z16[railway=tram]
{width: 0.8; opacity: 0.8;}
line|z17-[railway=tram]
{width: 1; opacity: 1;}

/* 9.6 Funicular 12-22 ZOOM */

line|z12[railway=funicular],
{width: 1.4;}
line|z13-14[railway=funicular],
{width: 2;}
line|z15-[railway=funicular],
{width: 3;}
line|z17-[railway=funicular],
{opacity: 1;}

/* 10.PISTE 12-22 ZOOM */

line|z12-[aerialway=cable_car],
line|z12-[aerialway=gondola],
line|z12-[aerialway=mixed_lift],
line|z13-[aerialway=chair_lift],
line|z13-[aerialway=drag_lift],
line|z13-[aerialway=j-bar],
line|z13-[aerialway=t-bar],
line|z13-[aerialway=magic_carpet],
line|z13-[aerialway=platter],
line|z13-[aerialway=rope_tow],
line|z13-[aerialway=zip_line],
{color: @aerialway; opacity: 0.7;}

line|z12-[aerialway=cable_car]::dash,
line|z12-[aerialway=gondola]::dash,
line|z12-[aerialway=mixed_lift]::dash,
line|z13-[aerialway=chair_lift]::dash,
line|z13-[aerialway=drag_lift]::dash,
line|z13-[aerialway=j-bar]::dash,
line|z13-[aerialway=t-bar]::dash,
line|z13-[aerialway=magic_carpet]::dash,
line|z13-[aerialway=platter]::dash,
line|z13-[aerialway=rope_tow]::dash,
line|z13-[aerialway=zip_line]::dash,
{color: @aerialway; opacity: 0.7;}

/* 10.2 Aerialway 12-22 ZOOM */

line|z12-15[aerialway=cable_car],
line|z12-15[aerialway=gondola],
line|z12-15[aerialway=mixed_lift],
{width: 0.5;}
line|z16-[aerialway=cable_car],
line|z16-[aerialway=gondola],
line|z16-[aerialway=mixed_lift],
{width: 1;}

line|z12-13[aerialway=cable_car]::dash,
line|z12-13[aerialway=gondola]::dash,
line|z12-13[aerialway=mixed_lift]::dash,
{width: 2.5; dashes: 2.5,15;}
line|z14-15[aerialway=cable_car]::dash,
line|z14-15[aerialway=gondola]::dash,
line|z14-15[aerialway=mixed_lift]::dash,
{width: 3; dashes: 3,30;}
line|z16-[aerialway=cable_car]::dash,
line|z16-[aerialway=gondola]::dash,
line|z16-[aerialway=mixed_lift]::dash,
{width: 4; dashes: 4,45; opacity: 0.7;}

line|z13-15[aerialway=chair_lift],
line|z13-15[aerialway=drag_lift],
line|z13-15[aerialway=j-bar],
line|z13-15[aerialway=t-bar],
line|z13-15[aerialway=magic_carpet],
line|z13-15[aerialway=platter],
line|z13-15[aerialway=rope_tow],
line|z13-15[aerialway=zip_line],
{width: 0.5;}
line|z16-[aerialway=chair_lift],
line|z16-[aerialway=drag_lift],
line|z16-[aerialway=j-bar],
line|z16-[aerialway=t-bar],
line|z16-[aerialway=magic_carpet],
line|z16-[aerialway=platter],
line|z16-[aerialway=rope_tow],
line|z16-[aerialway=zip_line],
{width: 1;}

line|z13-14[aerialway=chair_lift]::dash,
line|z13-14[aerialway=drag_lift]::dash,
line|z13-14[aerialway=j-bar]::dash,
line|z13-14[aerialway=t-bar]::dash,
line|z13-14[aerialway=magic_carpet]::dash,
line|z13-14[aerialway=platter]::dash,
line|z13-14[aerialway=rope_tow]::dash,
line|z13-14[aerialway=zip_line]::dash,
{width: 2.5; dashes: 1,10; opacity: 0.5;}
line|z15-16[aerialway=chair_lift]::dash,
line|z15-16[aerialway=drag_lift]::dash,
line|z15-16[aerialway=j-bar]::dash,
line|z15-16[aerialway=t-bar]::dash,
line|z15-16[aerialway=magic_carpet]::dash,
line|z15-16[aerialway=platter]::dash,
line|z15-16[aerialway=rope_tow]::dash,
line|z15-16[aerialway=zip_line]::dash,
{width: 3; dashes: 1,15;}
line|z17-[aerialway=chair_lift]::dash,
line|z17-[aerialway=drag_lift]::dash,
line|z17-[aerialway=j-bar]::dash,
line|z17-[aerialway=t-bar]::dash,
line|z17-[aerialway=magic_carpet]::dash,
line|z17-[aerialway=platter]::dash,
line|z17-[aerialway=rope_tow]::dash,
line|z17-[aerialway=zip_line]::dash,
{width: 4; dashes: 1,22; opacity: 1;}

line|z18-[power=line],
{color: @powerline; width: 1; opacity: 0.4;}
line|z18-[power=line]::dash,
{color: @powerline; width: 4; opacity: 0.5; dashes: 1,80;}

/* 10.3 Piste & Route 14-22 ZOOM */

line|z14-[piste:type=nordic],
line|z14-[piste:type=skitour],
line|z15-[piste:type=connection],
{color: @piste; opacity: 0.6;}

line|z14[piste:type=nordic],
line|z14[piste:type=skitour],
{width: 0.8;}
line|z15-[piste:type=nordic],
line|z15-[piste:type=skitour],
line|z15-[piste:type=connection],
{width: 1.1;}
line|z17-[piste:type=nordic],
line|z17-[piste:type=skitour],
line|z17-[piste:type=connection],
{width: 1.5;}

line|z14-[piste:type=downhill],
line|z14-[piste:type=sled],
{color: @piste; opacity: 0.5;}

line|z14-[piste:type=downhill][piste:difficulty=novice]
{color: @piste_novice; opacity: 0.7;}
line|z14-[piste:type=downhill][piste:difficulty=easy]
{color: @piste_easy;}
line|z14-[piste:type=downhill][piste:difficulty=intermediate]
{color: @piste_intermediate;}
line|z14-[piste:type=downhill][piste:difficulty=advanced]
{color: @piste_advanced;}
line|z14-[piste:type=downhill][piste:difficulty=expert],
{color: @piste_expert;}
line|z14-[piste:type=downhill][piste:difficulty=freeride],
{color: @piste_freeride;}


line|z14[piste:type=downhill],
line|z14[piste:type=sled],
{width: 1; opacity: 0.4;}
line|z15-[piste:type=downhill],
line|z15-[piste:type=sled],
{width: 1.6;}
line|z17-[piste:type=downhill],
line|z17-[piste:type=sled],
{width: 1.8;}

area|z14-[piste:type=downhill][area],
area|z14-[piste:type=sled][area],
{width: 0;}

/* 11. FERRY */

line|z7-[route=ferry],
{color: @ferry;width: 1;opacity: 0.6;dashes: 5.4,2.7;}
