@featureId: [name]+[subclass];

//river styling
#waterway{
	[brunnel=tunnel][zoom>=12] {
		casing/line-color: @tunnel-casing;
		casing/line-width: @canal_width + linear([view::zoom], (12, 0.5), (15, 2));
	}
	inner/line-color: @waterway;
	inner/line-dasharray: @waterway-dasharray;
	[class=river][zoom>=3],
	[class=riverbank][zoom>=13]{
		inner/line-color: @river;
		inner/line-width: @river-width;
		inner/line-dasharray: @river-dasharray;
    
    when ([nuti::selected_id] ='' + [name] + [class])::selected {
        inner/line-color: @river-selected;
        inner/line-width: @river-width-selected;
        inner/line-dasharray: @river-dasharray-selected;
    }
	}
  
	[class=stream][zoom>=12]{
		inner/line-width: @stream-width;
	}
	[class=canal][zoom>=12]{
		inner/line-width: @canal_width;
	}
	[class=ditch][zoom>=13],
	[class=drain][zoom>=13]{
		inner/line-width: 1.4;
	}
	[intermittent=1] {
		inner/line-dasharray: @waterway_inter_dasharray;
	}
}
#water {
	polygon-fill: @water;
	[class=river] {
		polygon-fill: @river_polygon;
	}
	[class=ice_shelf]::ice {
		polygon-fill: @iceshelf;
	}
	[class!=ice_shelf][zoom >= $water_pattern_zoom] {
		polygon-pattern-fill:$water_pattern_fill;
		polygon-pattern-file:$water_pattern;
		polygon-pattern-opacity:$water_pattern_opacity;
	}
	// [class!=ocean]{
		// outer/polygon-fill: @water_stroke; 
		// [zoom>=12]{
			// outer/polygon-geometry-transform: translate(-1.0, -1.0);
		// }
	// }
}
