 .map-main{
	display:block;
	position:relative;
	margin:0;
	padding:0;
}
 .map-sidebar {
	position: absolute;
	left: 40px;
	top: 40px;
	z-index: 999;
	background-color: #17345b;
	padding: 40px;
	max-width: 340px;
	width: 100%;
}
.map-sidebar h3.map-title{
	color:#fff;
	font-size: 1.5rem;
	margin-bottom: 10px;
}
.mlm-map{
	display:block;
	width:100%;
	height:600px;
}
.mlm-button {
	display:block;
	background: 0 0;
	outline: 0;
	font-size: 16px;
	line-height: 1.3125;
	display: inline-block;
	color:#F2F4F7;
	text-transform: uppercase;
	font-weight: 700;
	padding:0px;
	border: none;
	border-radius: 0px;
	cursor: pointer;
	margin-bottom: 20px;
	transition: background-color 0.3s ease;
}

.mlm-button:hover {
	 background: 0 0;
	 color:#fff;
}

.toggle-outer {
  float: left;
  width: 100%;
}

.map-sidebar .map-dropdown-toggle {
  font-size: 15px;
  line-height: 50px;
  width: 100%;
  max-width: none;
  display: block;
  background-color: #fff;
  color: #333;
  padding: 0 60px 0 20px;
  height: 50px;
  font-weight: 500;
  text-transform: none;
  text-align: left;
  position: relative;
  white-space: nowrap;
  text-decoration: underline;
}

.map-sidebar .map-dropdown-toggle .caret {
  position: absolute;
  height: 50px;
  width: 50px;
  right: 0;
  top: 0;
  background-color: #F2F4F7;
  color: #17345b;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.map-sidebar .map-dropdown-toggle .caret .arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}
.map-sidebar .map-dropdown-toggle .caret .down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.map-sidebar .map-dropdown-toggle.open .caret .down {
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}

.map-sidebar .map-dropdown-list {
  
  background-color: #fff;
  font-size: 15px;
  line-height: 1.4;
  padding: 0px;
  text-decoration: none;
  color: #333;
  cursor:pointer;
  margin-bottom: 0;
  list-style: none;
  min-height: 0 !important;
  max-height: 260px !important;
  width: 260px;
  overflow: auto !important;
  position: absolute;
  left: auto;
  top: auto;
}

.map-sidebar .map-dropdown-list .mlm-location-item {
	display: block;
	color: #1f2021;
	padding: 10px 20px;
}

.map-sidebar .map-dropdown-list .mlm-location-item:hover{
  background-color: #f3f4f5;
  color: #3179b4;
  text-decoration: none;
}

.map-sidebar .map-sub-list{
	list-style: none;
	overflow: auto;
	margin-top: 20px;
	background-color: transparent;
	padding: 0;
	max-height: 260px;
    padding-right: 15px;
}
.map-sidebar .map-sub-list .mlm-location-item{
	padding: 10px 0;
	color: #F2F4F7;
	font-weight: 600;
	font-size: 16px;
}
.map-sidebar .map-sub-list .sub-location-item{
	min-width: 0;
	border: none;
	background: 0 0;
	text-align: left;
	transition: color .4s cubic-bezier(.165,.84,.44,1);
	line-height: 20px;
	width: 100%;
	padding: 10px 0;
	color: #F2F4F7;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.map-sidebar .map-sub-list .sub-location-item:hover{
	text-decoration: underline;
}

.map-sidebar .map-sub-list .sub-location-item:not(:last-child) {
	border-bottom: 1px solid rgba(255,255,255,.25);
 }

 .map-container {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.leaflet-popup-content-wrapper{
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 5px 6px rgba(0,0,0,.3);
  border-radius: 0;
}
.leaflet-popup-content {
   margin: 0;
 }
 .leaflet-container a.leaflet-popup-close-button {
	font: 24px/24px Tahoma, Verdana, sans-serif;
  }
h4.location-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.map-info-box address {
  margin-bottom: 0.5rem;
}

.map-info-box .website-link {
  display: block;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2rem;
  text-align: center;
  font-weight: 600;
  border-radius: 0;
  font-size: 0.9rem;
}

.map-info-box .location-phone{
	display: block;
	margin-bottom: 0.2rem;
}
.map-info-box .location-email{
	display: block;
	margin-bottom: 1rem;
}

.map-info-box .location-phone a,
.map-info-box .location-email a{
	color:#000;
    font-weight:600;
}

.map-info-box .location-phone a:hover,
.map-info-box .location-email a:hover{
	text-decoration:underline;
}

.leaflet-control-attribution {
  display: none;
}

.leaflet-left {
  right: 40px;
  top: 40px;
  left: unset;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  border: 0px solid rgba(0,0,0,0.2);
  display: flex;
  margin: 0;
  gap: 10px;
}
.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  order: 1;
}
.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.leaflet-touch .leaflet-bar a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #0a2d74;
  color: #fff;
}

.leaflet-bar a:hover, .leaflet-bar a:focus {
  background-color: #000;
}

#units-list{
	margin-top:-70px;
	padding-top: 150px;
}

.mlm-location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px auto;
    max-width: 1420px;
	padding: 0 50px;
	margin-top:-120px;
	padding-top:180px;
	width: 100%;
    box-sizing: border-box;
}

.mlm-location-grid .flex-column {
	flex: 1 1 22%; /* Adjusts to 4 columns with gap */
	padding: 0px;
	box-sizing: border-box;
	min-width: 200px;
}

.mlm-location-box {
    width: auto;
    border: 1px solid #ccc;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
	/*justify-content: space-between;*/
}
.mlm-location-image{
	overflow: hidden;
	height:180px;
}

.mlm-location-image img {
    transition: transform .5s;
    aspect-ratio: 16/9;
    -o-object-fit: cover;
    object-fit: cover;
    background: #eee;
	width: 100%;
}

.mlm-location-box:hover .mlm-location-image img {
    transform: scale(1.05);
  }
.mlm-location-details {
    padding: 15px;
    font-size: 14px;
}
.mlm-location-details h3{
  font-size: 1.5em;
  margin-bottom:10px;
  color: #00173c;
}
.mlm-location-details h3 a{
  color: #00173c;
}

.mlm-location-details h3 a:hover{
  text-decoration:underline;
}

.mlm-location-details p {
  margin-bottom: 10px;
}
.mlm-location-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
	margin-top: auto;
	gap:10px;
}
.mlm-location-buttons a{
	flex: 1;
	padding: 10px;
	font-size: .9rem;
    font-weight: 600;
	color: #fff !important;
}
.mlm-btn {
    padding: 8px 12px;
    border: none;
    text-decoration: none;
    font-size: .9rem;
    border-radius: 5px;
    text-align: center;
    color: #fff;
}
.browse-btn {
    background-color: #0A2D74;
}
.website-btn {
    background-color: #0A2D74;
    padding: .5rem 0.7rem;
    font-size: .9rem;
    font-weight: 500;
}

.website-btn:hover {
  color: #fff;
  background: #00173C;
  border-color: #00173C;
}

.page-template-location-full-width .container{
  width: 100%;
  padding: 0 !important;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
}

.page-template-location-full-width .container .row .col{
	padding: 0 !important;
}

.map-dropdown-toggle.disabled {
    pointer-events: none;
    cursor: default;
}


body.tax-mlm_state .announcement-address{
	display: none !important;
}

@media (max-width: 1479px) {
	.mlm-location-grid {
	  grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
	}
}

@media (max-width: 1440px) {
	body.page-template-location-full-width .map-main,
	body.tax-mlm_state .map-main{
	  display:none;
	}
}

@media (max-width: 1200px) {
	.mlm-location-grid {
	  grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
	}
}

@media (max-width: 767px) {
	.mlm-location-grid {
	  grid-template-columns: 1fr; /* 1 column on mobile */
	  padding: 0 40px;
	  padding-top: 150px;
	  box-sizing: border-box;
	}
	.leaflet-left {
	  right: 40px;
	  top: auto;
	  bottom: 40px;
	  left: unset;
	}
}

@media (max-width: 600px) {
	
	.map-sidebar {
	  position:relative;
	  left: 0px;
	  top: 15px;
	  padding: 20px;
      max-width: 100%;
	  float:left;
	  width:100%;
	 }

	 .map-container {
	  overflow: hidden;
	  position: relative;
	  z-index: 1;
	  float:left;
	  width:100%;
	}

	.leaflet-left {
	  right: 15px;
	  top: auto;
	  bottom: 15px;
	  left: unset;
	}
}