Map {
  background-color: #b8dee6; 
} 
#bdortho[zoom>16]{   
 raster-opacity:1; 
   raster-scaling:bilinear; 
}    
 
#route_ign[IMPORTANCE='1'] , 
#route_ign[IMPORTANCE='2']{  
    
  line-smooth:1;   
  ::case{
    line-width:6;
    line-color:rgb(48,48,48); 
    [IMPORTANCE='2']{line-color:rgb(139,99,102); }
    [zoom>14]{line-width:8;}
    [zoom>16]{line-width:10;}
       
  } 
  ::fill{
    line-width:4; 
    line-color:#839AC6; 
     [IMPORTANCE='2']{line-color:rgb(239,154,156); }
     
    [zoom>14]{line-width:6;}
    [zoom>16]{line-width:8;}
  } 
  ::Labels{
    	text-name:[NUMERO];
    	[NUMERO = 'NC']{text-name:[NOM_VOIE_G];}
    	text-face-name:"Arial Regular";
    	text-placement : line;
        text-halo-radius: 2;
        text-halo-fill: #fff;
     
    } 
   
}
#route_ign[IMPORTANCE='3'] [zoom>9]{
   
  line-smooth:1;   
  ::case{ 
    line-color:rgb(255,188,106);  
    line-width:5; 
    [zoom>14]{line-width:7;}  
    [zoom>16]{line-width:9;}  
  }
  ::fill{
    line-width:3;
    [zoom>14]{line-width:5;}
    [zoom>16]{line-width:7;}
    line-color:rgb(255,215,165); 
  } 
  [zoom>12]{
    ::Labels{
          text-name:[NOM_VOIE_G];
    	  text-face-name:"Arial Regular";
          text-placement : line;
          text-halo-radius: 2;
          text-halo-fill: #fff;
      }
    }
   
}

#route_ign[IMPORTANCE='4'] [zoom>11]{
   
  line-smooth:1;   
  ::case{ 
    line-color:rgb(208,208,208);  
    line-width:4;
    [zoom>14]{line-width:6;}
    [zoom>16]{line-width:8;}  
  }
  ::fill{
    line-width:2;
    [zoom>14]{line-width:4;}
    [zoom>16]{line-width:6;}
  	line-color:rgb(249,255,91) ;
  } 
  
  [zoom>14]{
    ::Labels{
      	  text-name:[NOM_VOIE_G]; 
    	  text-face-name:"Arial Regular";
          text-placement : line;
          text-halo-radius: 2;
          text-halo-fill: #fff;
      }
    } 
}

#route_ign[IMPORTANCE='NC'] [zoom>12],
#route_ign[IMPORTANCE='NR'] [zoom>12],
#route_ign[IMPORTANCE='5'] [zoom>12]{
  ::case{ 
    line-color:rgb(255,255,255);  
    line-width:3;
    [zoom>14]{line-width:5;}
    [zoom>16]{line-width:7;}    
  line-smooth:1;    
  } 
  ::fill{
    line-width:1;
    [zoom>14]{line-width:3;}
    [zoom>16]{line-width:5;}
    line-color:rgb(208,208,208);
  line-smooth:1;   
  } 
  [zoom>14]{  
    ::Labels{
          text-name:[NOM_VOIE_G];
    	  text-face-name:"Arial Regular";
          text-placement : line;
          text-halo-radius: 2;
          text-halo-fill: #fff;
      }
    } 
} 
#batiment [zoom>13][zoom<17]{
  line-color:#594; 
  line-width:0.5;
  polygon-opacity:0.8;
  polygon-fill:darken(#dedede,20%);
}

#vegetation [zoom>13][zoom<17]{
  line-color:#594;
  line-width:0.5;
  polygon-opacity:0.8;
  polygon-fill:#ae8;
}
 
#commune {
  line-smooth:1;     
  line-color: #000;  
  line-width: 1; 
  polygon-fill:rgb(224,224,224);
  [departement='SAONE ET LOIRE']{polygon-fill:rgb(250, 242, 242); }
  
  line-join: round; 
} 

#commune[zoom > 16]{
  polygon-fill:transparent;
  }
#commune_label[zoom>10][zoom < 16] { /*force label on top*/
    	text-name:[nom];
    	text-face-name:"Arial Bold"; 
        text-size: 9;
  		[zoom > 11]{text-size:10}
  		[zoom > 12]{text-size:11}
  		[zoom > 13]{text-size:12}
  		[zoom > 14]{text-size:14}
        text-fill: #839AC6;  
        text-halo-radius: 2;
        text-halo-fill: #fff;
        text-placement-type: simple; 
} 




#hydro_surface {
  line-color:#839AC6;
  line-width:0.5;
  polygon-opacity:1;
  polygon-fill:#b8dee6;
  line-smooth:1;   
}


#reseau_ferre {  
  
  ::case1{ 
    line-color:#000;  
    line-width:4; 
  [zoom>16]{line-width:9}   
  } 
  ::case{ 
    line-color:#dedede;  
    line-width:3;    
  [zoom>16]{line-width:7}   
  } 
  line-cap:square; // round 
  line-join:round; 
  line-dasharray: 4,12; //display as railway line 
  line-color:#333;
  line-width: 3; 
  [zoom>16]{line-width:7}   
}


#poteau_incendie [zoom>13]{
  marker-width:6;
  [zoom>16]{marker-width:10}
  marker-fill:#839AC6;
  marker-line-color:#b8dee6;
  marker-allow-overlap:true;
}

 
