/* Keep here changes of the base map style file only. */
@import("../../default/include/Basemap.mapcss");


/* 6.WATER */

line|z10-[waterway=river],
line|z11-[natural=strait],
line|z12-[waterway=canal],
line|z12-[waterway=stream],
line|z13-[waterway=fish_pass],
line|z15-[waterway=ditch],
line|z15-[waterway=drain],
{opacity: 1; color: @river;}

/* 6.2 Line water(river,canal etc.) */

line|z10-[waterway=river],
line|z11-[natural=strait],
line|z12-[waterway=stream],
line|z12-[waterway=canal],
line|z13-[waterway=fish_pass],
{text-color: @water_label; text-halo-opacity: 0.5; text-halo-radius: 1; text-halo-color: @label_halo_light;}

line|z10[waterway=river],
{width: 1.4; opacity: 0.7;}

line|z11-12[waterway=river],
line|z11-12[natural=strait],
{width: 2; opacity: 0.7;}
line|z12[waterway=stream],
line|z12[waterway=canal],
{width: 1; opacity: 0.5;}

line|z13[waterway=river],
line|z13[natural=strait],
{width: 2.7;}
line|z13[waterway=stream],
line|z13[waterway=canal],
line|z13[waterway=fish_pass],
{width: 1.3; opacity: 0.7;}
line|z11-12[waterway=stream][intermittent],
{width: 0; text: none;}
line|z13[waterway=stream][intermittent],
{width: 1; dashes: 2.7,2.7; opacity: 0.7;}

line|z14[waterway=river],
line|z14[natural=strait],
{width: 3.5;}
line|z14[waterway=stream],
line|z14[waterway=canal],
line|z14[waterway=fish_pass],
{width: 1.8;}
line|z14[waterway=stream][intermittent],
{width: 1.4; dashes: 3.5,3.5;}

line|z15-[waterway=river],
line|z15-[natural=strait],
{width: 4.6;}
line|z15-[waterway=stream],
line|z15-[waterway=canal],
line|z15-[waterway=fish_pass],
{width: 2.4;}
line|z15-[waterway=stream][intermittent],
{width: 2; dashes: 5,5;}

line|z13-[waterway=ditch],
line|z13-[waterway=drain],
{opacity: 1; color: @water_bad;}

/* Do not draw tunnel waterways */
line[waterway][tunnel]
{width: 0;}


/* 7.LANDUSE */

/* 7.1 Industrial */

area|z13-[landuse=industrial],
area|z13-[landuse=construction],
area|z13-[landuse=landfill],
area|z13-[landuse=railway],
area|z13-[landuse=quarry],
area|z13-[landuse=garages],
{fill-color: @industrial; fill-opacity: 1;}

/* 7.5 Pedestrian areas */

area|z13-[tourism=camp_site],
{fill-opacity: 1; fill-color: @leisure;}


/* 8.BUILDINGS */

/* 8.1 Pier, dam, areal bridge, cutline */

line|z13-[man_made=cutline],
{width: 1.7; color: @green0; opacity: 0.6;}
line|z14[man_made=cutline],
{width: 2.2;}
line|z15[man_made=cutline],
{width: 3;}
line|z16[man_made=cutline],
{width: 4.5;}
line|z17[man_made=cutline],
{width: 6;}
line|z18-[man_made=cutline],
{width: 8;}

/* 8.3 Barriers, cliffs */

line|z15-[barrier=fence],
line|z15-[barrier=wall],
{color: @fence; width: 1; opacity: 0.7;}
line|z17[barrier=fence],
line|z17[barrier=wall],
{width: 1.3; opacity: 0.8;}
line|z18-[barrier=fence],
line|z18-[barrier=wall],
{width: 1.5; opacity: 1;}

line|z15-[barrier=guard_rail],
line|z15-[barrier=jersey_barrier],
{color: @fence; width: 1; opacity: 0.5;}
line|z17[barrier=guard_rail],
line|z17[barrier=jersey_barrier],
{width: 1.3; opacity: 0.6;}
line|z18-[barrier=guard_rail],
line|z18-[barrier=jersey_barrier],
{width: 1.5; opacity: 0.8;}

line|z15-[barrier=ditch],
{width: 1.8; opacity: 0.8; color: @cliff; dashes: 0.9,0.9;}

/*
  The triangles pattern uses "dashes: " parameter as a 4 values tuple:
  dash length (===), triangle base (tb), triangle height, base height / dash width.
  ===\tb /===  - base height / dash width
      \ /    | - triangle height

  Set width = triangle height + base height.
*/

line|z12-13[natural=cliff],
line|z12-13[natural=earth_bank],
{color: @cliff; width: 2; dashes: 1.4,1.4; opacity: 0.5;}
line|z14[natural=cliff],
line|z14[natural=earth_bank],
{width: 3; dashes: 1.5,1.5; opacity: 0.6;}
line|z15[natural=cliff],
line|z15[natural=earth_bank],
{width: 6.2; dashes: 3,3.5,4.5,1.2; opacity: 0.6;}
line|z16[natural=cliff],
line|z16[natural=earth_bank],
{width: 7.4; dashes: 3.5,5,6,1.4; opacity: 0.7;}
line|z17[natural=cliff],
line|z17[natural=earth_bank],
{width: 9.5; dashes: 4,6,8,1.5; opacity: 0.8;}
line|z18[natural=cliff],
line|z18[natural=earth_bank],
{width: 11.9; dashes: 5,7,10,1.9; opacity: 0.8;}
line|z19-[natural=cliff],
line|z19-[natural=earth_bank],
{width: 14.3; dashes: 6,8.5,12,2.3; opacity: 0.8;}


/* Ski pistes */

area|z13-[piste:type=downhill][area],
area|z13-[piste:type=sled][area],
area|z13-[piste:type=snow_park],
{fill-color: @piste; fill-opacity: 0.15;}

area|z13-[piste:type=downhill][piste:difficulty=novice][area],
{fill-color: @piste_novice; fill-opacity: 0.25;}
area|z13-[piste:type=downhill][piste:difficulty=easy][area],
{fill-color: @piste_easy;}
area|z13-[piste:type=downhill][piste:difficulty=intermediate][area],
{fill-color: @piste_intermediate;}
area|z13-[piste:type=downhill][piste:difficulty=advanced][area],
{fill-color: @piste_advanced;}
area|z13-[piste:type=downhill][piste:difficulty=expert][area],
{fill-color: @piste_expert;}

/* 9. ISOLINES */

line|z10-[isoline=step_1000],
{color: @isoline1000;}
line|z10-[isoline=step_500],
{color: @isoline500;}

line|z11-[isoline=step_100],
{color: @isoline100;}

line|z13-[isoline=step_50],
line|z15-[isoline=zero],
{color: @isoline50;}

line|z15-[isoline=step_10],
{color: @isoline10;}

line|z10-11[isoline=step_1000],
{width: 0.8; opacity: 0.45;}
line|z10-11[isoline=step_500],
{width: 0.8; opacity: 0.25;}
line|z11[isoline=step_100],
{width: 0.6; opacity: 0.15;}

line|z12-13[isoline=step_1000],
{width: 1.0; opacity: 0.45;}
line|z12-13[isoline=step_500],
{width: 0.8; opacity: 0.35;}
line|z12-13[isoline=step_100],
{width: 0.8; opacity: 0.25;}
line|z13[isoline=step_50],
{width: 0.6; opacity: 0.15;}

line|z14-[isoline=step_1000],
{width: 1.2; opacity: 0.5;}
line|z14-15[isoline=step_500],
{width: 1.0; opacity: 0.45;}
line|z14-15[isoline=step_100],
{width: 0.8; opacity: 0.35;}
line|z14-15[isoline=step_50],
{width: 0.8; opacity: 0.25;}

line|z15[isoline=zero],
line|z15[isoline=step_10],
{width: 0.8; opacity: 0.25;}

line|z16-[isoline=step_500],
{width: 1.2; opacity: 0.5;}
line|z16-[isoline=step_100],
{width: 1.0; opacity: 0.45;}
line|z16-17[isoline=step_50],
{width: 0.8; opacity: 0.35;}
line|z16-17[isoline=zero],
line|z16-17[isoline=step_10],
{width: 0.8; opacity: 0.35;}

line|z18-[isoline=step_50],
{width: 1.0; opacity: 0.45;}
line|z18-[isoline=zero],
line|z18-[isoline=step_10],
{width: 0.8; opacity: 0.45;}
