Map {
  background-color: @background;
}

/* WATER */
#ocean, #water-polygons {
  polygon-fill:@water;
  polygon-gamma:0.8;
}

#water-lines-low[zoom>=8][zoom<=12] {
  line-color: @water;
  [zoom>7][zoom<10] { line-width: 0.2; }
  [zoom=10]{ line-width: 0.4; }
  [zoom=11]{ line-width: 0.6; }
  [zoom=12]{ line-width: 0.8; }
}

#water-lines-medium[zoom>=13][zoom<=14] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    line-cap: round;
    line-join: round;
    [zoom=13]{ line-width: 1; }
    [zoom=14]{ line-width: 1.5; }
  }
  [type='stream'] { 
    [zoom=13]{ line-width: 0.2; }
    [zoom=14]{ line-width: 0.4; }
  }
}
  
#water-lines-high[zoom>=15] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    line-cap: round;
    line-join: round;
    [zoom=15]{ line-width: 2; }
  }
  [type='stream'] {
    [zoom=15]{ line-width: 0.6; }
  }
  [type='ditch'],
  [type='drain'] {
    [zoom=15]{ line-width: 0.1; }
  }
}

//#county-borders[zoom=8] {
// line-color:red; 
//}

/* LAND USE */
#landuse {
  [type='arena'] { polygon-fill: @stadium; }
  [type='allotments'] { polygon-fill: @park; }
  [type='beach'] { polygon-fill: @beach; }
  [type='cemetery'] { polygon-fill: @park; }
  [type='college'] { polygon-fill: @school; }
  [type='commercial'] { polygon-fill: @commercial; }
  [type='dog_park'] { polygon-fill: @park; }
  [type='common'] { polygon-fill: @park; }
  [type='forest'] { polygon-fill: @forest; }
  [type='garden'] { polygon-fill: @park; }
  [type='golf_course'] { polygon-fill: @park; }
  [type='grass'] { polygon-fill: @grass; }
  [type='hospital'] { polygon-fill: @hospital; }
  [type='industrial'] { polygon-fill: @industrial; }
  [type='recreation_ground'] { polygon-fill: @park; }
  [type='kindergarten'] { polygon-fill: @school; }
  [type='military'] { polygon-fill: @military; }
  [type='park'] { polygon-fill: @park; }
  [type='parking'] { polygon-fill: @parking; }
  [type='pedestrian'] { polygon-fill: @pedestrian_fill; }
  [type='playground'] { polygon-fill: @park; }
  [type='pitch'] { polygon-fill: @park; }
  [type='place_of_worship'] { polygon-fill: @place_of_worship; }
  [type='recreation_ground'] { polygon-fill: @park; }
  [type='residential'] { polygon-fill: @residential; }
  [type='school'] { polygon-fill: @school; }
  [type='sports_center'] { polygon-fill: @stadium; }
  [type='swimming pool'] { polygon-fill: @water; }
  [type='stadium'] { polygon-fill: @stadium; }
  [type='university'] { polygon-fill: @school; }
  [type='village_green'] { polygon-fill: @park; }
}

/* BUILDINGS */
/* Transparent buildings account for situations where routes go
   in or under them */
.building[zoom>11][zoom<17] {
  polygon-fill:@building;
  [zoom=12] { polygon-opacity:0.2; }
  [zoom=13] { polygon-opacity:0.3; }
  [zoom>13] {
    polygon-opacity:0.4;
    line-color:darken(@building,5);
    line-width:0.2;
  }
}
.building[zoom>=17] {
  building-fill:lighten(@building,4);
  building-fill-opacity: 0.8;
  building-height:1.2;
}
