/* Map container */
.map-select {
  position: relative;
}

.map-container {
  position: relative;
  width: 100%;
  background: linear-gradient(45deg, #007DB0, #00A6FF);
  overflow: hidden;
  border-radius: 15px;
}

.map-image {
  margin-left: -28rem;
  width: auto;
  z-index: 1;
  position: relative;
}

/* Map marker pins */
.map-marker {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -100%); /* Center marker correctly */
  margin-left: -28rem;
  height: 50px;
  z-index: 2;
}

/* Marker icons */
.map-marker-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 36px;
  height: 47px;
  transition: opacity 0s ease-in-out;
  transform: translateX(-50%);
}

/* Default marker (always present but hidden when active) */
.default-marker {
  opacity: 1;
  visibility: visible;
}

/* Active marker (starts hidden) */
.active-marker {
  opacity: 0;
  visibility: hidden;
}

/* Toggle active state */
.map-marker.active .default-marker {
  opacity: 0; /* Hide default marker */
  visibility: hidden;
}

.map-marker.active .active-marker {
  opacity: 1; /* Show active marker */
  visibility: visible;
  z-index: 3; /* Make active marker appear above other markers */
}

/* Location info cards */
.location-info-container {
  margin-top: 20px;
}

.location-info-card {
  background-color: #fff;
  border-radius: 10px;
  position: absolute;
  top: 42%;
  right: 5%;
  transform: translateY(-50%);
  max-width: 380px;
  width: 100%;
  z-index: 10; /* Ensure info card appears above everything */
  color: black;
  border: 2px solid black;
}

.location-info-card h2 {
  background: black;
  color: white;
  padding: 2rem;
  margin: 0;
  text-align: center;
  font-size: var(--step-4);
  margin-bottom: 1.5rem;
  border-radius: 5px 5px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem 0;
}

.location-info-card > p {
  padding: 0rem 2rem;
  margin: 0;
  color: black;
}

.location-info-card .hours-title {
  font-size: var(--step-1);
  font-weight: 600;
}

.location-info-card .phone {
  font-size: var(--step-1);
  font-weight: 600;
  color: black;
  padding: 0rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
}
.location-info-card .email {
  font-size: var(--step-0);
  font-weight: 500;
  padding: .5rem 4rem 1rem 4rem;
  color: black;
  display: block;
  line-height: 1.5;
  text-align: center;
  display: flex;
  justify-content: center;
}

.location-info-card .address {
  font-size: var(--step-0);
  font-weight: 500;
  padding: 0rem 4rem .5rem 4rem;
  color: black;
  display: block;
  line-height: 1.5;
  text-align: center;
  display: flex;
  justify-content: center;
}

.location-info-card ol {
  margin: 0;
  list-style-type: none;
  padding: 0rem 2rem 2rem 2rem;
}

.location-info-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.location-info-card .button {
  background: none;
  border: 2px solid #FFD800;
  color: black;
  margin: auto;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.location-info-card .button:hover {
  background: #FFD800;
  border: 2px solid #FFD800;
  color: black;
  text-decoration: none;
}

.location-info-card-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.location-info-card-social-icon {
  width: 28px;
  color: black;
}

.location-info-card-social-icon svg {
  max-width: 28px;
  max-height: 24px;
}

/* Hours container */
.hours {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.hours-group {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.hours-day {
  margin: 0;
  order: 1;
}

.hours-time {
  text-align: right;
  margin: 0;
  order: 3;
}

.hours-group:after {
  border-bottom: 2px dotted black;
  content: "";
  flex: 1;
  margin: 0 0.75rem 9px;
  order: 2;
}

@media screen and (max-width: 768px) {
.map-zoom {
    transform: scale(.8);
}
  .map-marker {
    scale(1.2) translateX(-28px) translateY(-30px);
  }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .map-container {
    border-radius: 15px 15px 0 0;
  }

  .location-info-card {
    background-color: #fff;
    border-radius: 10px;
    max-width: none;
    width: 100%;
    position: static;
    right: 0;
    top: 100%;
    transform: translateY(0%);
    z-index: 2;
    padding-bottom: 1rem;
  }

  .map-image {
    margin-left: 0rem;
    z-index: 1;
    position: relative;
  }

  .map-marker {
    margin-left: 0rem;
  }

  .location-info-container {
    margin-top: 0;
  }
}

/* Location name under marker */
.location-name {
  position: relative; /* Relative to its parent: .map-marker */
  top: 100%; /* Adjust spacing directly below the pin */
  display: block; /* Ensures it stacks under the marker */
  text-align: center;
  font-size: var(--step-0);
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1160px) {
  
  
  
.location-info-card h2 {
  font-size: var(--step-8);
}
}

.map-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: soft-light;
  background-image: url('https://www.elev8fun.com/hubfs/map-bg-texture.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1; /* Adjust opacity for blending */
  z-index: 0;
  pointer-events: none;
}

.coming-soon {
  font-size: 16px;
  letter-spacing: 1px;
  opacity: 0.7;
  font-weight: 500;
  width: 100%;
}