/**
 * AM Locations CSS
 */
 
 /* Single Template */
 .single-am-locations .location-page-row {padding-left: 20px !important;}
 
 
 /* Map Image */
 .mapimg {display:block; height:250px; width:auto;}

 /* -- Directions form - active only on single locations -- */
 .directions_form { float:left;display:block;border:1px solid #ddd; width:100%; }
 .directions_form>div { display:block;padding:10px; overflow:hidden; }
 .directions_form .saddr{ width:100% !important; padding:10px; clear:both; }
 .directions_form strong { display:block; }
 .directions_form .dbtn { width:100% !important; white-space: normal; margin-top: 10px; }

 
 /* Full width map image */
  .static-map, .static-map.fullwidth img { width:100%;}

 
 /* map details columns below am_map */
 .location-row {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   width: 100%;
 }
 
 .location-column {
   display: flex;
   flex-direction: column;
   flex-basis: 100%;
   flex: 1;
   min-width:250px;
   padding: 20px 20px 20px 0;
 }
 
 /* individual location page content */
 .location-page-row {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   width: 100%;
 }
 
 .location-page-row > * {
   flex: 1 100% !important;
 }
 
 .location-page-column {
   display: flex;
   flex-direction: column;
   flex-basis: 100%;
   flex: 1;
   min-width:50%;
   padding: 20px 20px 20px 0;
 }
 
 .location-page-column img{
   max-width: 100%;
 }
 

 
 /* Medium screens */
  @media all and (min-width: 600px) {
    /* We tell both sidebars to share a row */
    .location-info { flex: 2 auto !important; }
    .location-page-column.location-info {
       padding-left: 20px;
     }
  }
  
  /* Large screens */
  @media all and (min-width: 800px) {
    /* We invert order of first sidebar and main
     * And tell the main element to take twice as much width as the other two sidebars 
     */
    .location-map { flex: 2 0px !important; }
  }
 

   /* Header Blocks CSS */
 .locations-separator {

  margin-right: 20px;
  margin-left: 20px;
 }

 @media only screen and (max-width: 768px) {

  #ast-mobile-popup.content-flex-start .locations-block {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;

  }

  #ast-mobile-popup.content-align-center .locations-block {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  #ast-mobile-popup.content-align-flex-end .locations-block {
    text-align: right;
    padding-left: 20px;
    padding-right: 20px;
  }
 }

