/**
 * AM Locations CSS
 */

 /* Single Template */
 .single-ma-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;
  }
 }

/* Location Template Styles */
.location-details {
    margin-bottom: 2em;
}

.location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.location-address,
.location-contact {
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.location-address h2,
.location-contact h2 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.5em;
    color: #333;
}

.location-phone,
.location-fax,
.location-email {
    margin-bottom: 1em;
}

.location-phone strong,
.location-fax strong,
.location-email strong {
    display: inline-block;
    min-width: 60px;
    margin-right: 0.5em;
}

.location-directions {
    margin-top: 1.5em;
}

.location-extra {
    margin: 1em 0;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

/* Responsive Map Container */
.location-map {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 4px;
}

.location-map img,
.location-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-am-location-details .ma-media-object-icon i {
  width: 36px;
  height: 36px;
  text-align: center;
  background: #fff;
  line-height: 36px;
  border-radius: 50%;
}
.ma-single-location-map-s2 .single-am-location-details .ma-media-object-icon i {
  background: #464646;
  color: #fff;
}
.single-am-location-address {
  margin-bottom: 20px;
}
.wp-block-column.ma-single-location-details-col {
  padding: 20px 20px 20px 50px;
  align-content: center;
  border-radius: 4px;
}
.wp-block-column.ma-single-location-map-col {
  margin: 30px 0 30px -50px;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

/* Location Template Styles 2 - Single Location */
.ma-single-location-details-s2 .pc-form-widget,
.ma-custom-location-style .pc-form-widget {
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}
.ma-single-location-details-s2 .pc-form-widget .form-loaded .form-content .form-field .field-label,
.ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-field .field-label {
  display: block;
  margin-bottom: 8px;
}
.ma-single-location-details-s2 .pc-form-widget .form-loaded .form-content .form-field,
.ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-field {
  margin-bottom: 20px;
}
.ma-single-location-details-s2 .pc-form-widget .form-field input, .ma-single-location-details-s2 .pc-form-widget .form-field select,
.ma-custom-location-style .pc-form-widget .form-field input, .ma-custom-location-style .pc-form-widget .form-field select  {
  height: 44px;
  padding: 0 15px;
  border: solid 1px #f1f1f1;
  border-radius: 4px;
}
.ma-single-location-details-s2 .pc-form-widget .form-loaded .form-content .form-button,
.ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-button {
  margin-top: 20px;
  cursor: pointer;
  color: #fff;
  min-width: 120px;
  background-color: #343a40;
  border-color: #343a40;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.wp-block-column.ma-single-location-details-s2 .wp-block-heading,
.ma-custom-location-style .wp-block-heading {
  margin-bottom: 34px;
}
.wp-block-column.ma-single-location-details-s2,
.wp-block-column.ma-single-location-details-s3 {
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}
.wp-block-column.ma-single-location-map-s2 {
  padding-left: 40px;
}
.wp-block-column.ma-single-location-map-s2 .single-am-location-map {
  margin-top: 40px;
}

/* Location Template Styles 3 - Single Location */
.wp-block-column.ma-single-location-map-s3 {
  align-content: center;
  padding: 40px;
  border-radius: 4px;
}
.wp-block-column.ma-single-location-details-s3 .single-am-location-map {
  margin-top: 40px;
}
.ma-single-location-details-s3 .pc-form-widget .form-field input, .ma-single-location-details-s3 .pc-form-widget .form-field select, .ma-custom-location-style .pc-form-widget .form-field input, .ma-custom-location-style .pc-form-widget .form-field select {
  border: solid 1px rgb(255 255 255 / 29%);
  outline: none;
}
.ma-single-location-details-s3 .pc-form-widget .form-loaded .form-content .form-field .field-label, .ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-field .field-label {
  color: #fff;
}
.ma-single-location-map-s3 .pc-form-widget .form-loaded .form-content .form-field .field-label {
  color:#000;
}
.ma-single-location-details-s3 .pc-form-widget .form-loaded .form-content .form-button, .ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-button {
  background-color: #fff;
  color: #343a40;
  border-color: #fff;
}

/* Location Template Styles 4 - Single Location */
.wp-block-column.ma-single-location-details-s4 {
  padding: 40px;
  border-radius: 4px;
}
.ma-single-location-details-s4 .pc-form-widget .form-loaded .form-content .form-field .field-label {
  color: #333;
}
.ma-single-location-details-s3 .pc-form-widget .form-loaded .form-content .form-button, .ma-custom-location-style .pc-form-widget .form-loaded .form-content .form-button {
  background-color: #111;
  color: #fff;
  border-color: #111;
}
.wp-block-column.ma-single-location-map-s4 {
  border-radius: 4px;
  padding: 50px 20px;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}
.wp-block-column.ma-single-location-map-s4 .single-am-location-details {
  display: flex;
}
.wp-block-column.ma-single-location-map-s4 .single-am-location-details > div {
  width: 50%;
}

/* Locations Archive (custom-archive opt-in) ---------------------------- */
/*
 * Minimal chrome around the ma-location-finder block when it is
 * rendered via the archive template loader. The block itself owns
 * its full visual style (panel, cards, map, search) — these rules
 * only handle the outer wrapper, the optional <h1> header, and
 * sensible content-width caps so the archive matches generic page
 * gutters in non-Astra themes. Astra inherits its own container
 * widths via astra_primary_class() so the wrapper here just adds a
 * light margin reset.
 */
.ma-archive-locations-wrapper {
  margin: 0 auto;
  padding: 24px 16px 48px;
  max-width: 1280px;
  box-sizing: border-box;
}

.ma-archive-locations-header {
  margin: 0 0 24px;
}

.ma-archive-locations-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.2;
}

.ma-archive-locations-description {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: inherit;
}

.ma-archive-locations-description p {
  margin: 0 0 0.75em;
}

.ma-archive-locations-description p:last-child {
  margin-bottom: 0;
}

/* Astra already handles container width via astra_primary_class(),
 * so when our wrapper sits inside that we drop the redundant
 * horizontal padding to avoid double gutters. */
.ast-container .ma-archive-locations-wrapper,
.ast-container-fluid .ma-archive-locations-wrapper {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}