@charset "utf-8";

/* CSS Document */
#nav-conveyor aside h3 {
  font-size: .8em;
  text-align: center
}

#nav-conveyor aside p {
  font-size: .8em;
}

@media (min-width: 768px) {

  #nav-conveyor aside h3 {
    font-size: 1em;
    text-align: center
  }

  #nav-conveyor aside p {
    font-size: .8em;
  }

}

img {
  max-width: 100%;
  height: auto;
}

.map {
  position: relative;
  max-width: 1100px;
  margin: auto;
  /* background-color: #e9ecef; */
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  /* overflow: hidden; */
  transition: all 0.3s ease;
}

/* .map:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
} */

.map img.main-conveyor-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.popup-title {
  font-weight: 600;
  font-size: 1.1rem;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
  color: #2c3e50;
  /* Crisp text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.map-popup .col-7 {
  line-height: 1.5;
  font-size: 0.95rem;
  color: #343a40;
  /* Improved text clarity */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.map-popup .col-5 img {
  width: 100%;
  height: auto;
  max-width: 120px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Ensure crisp image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  transition: none; /* Remove transform to prevent blurriness */
}

.map-popup .btn-block {
  margin: 15px 0 5px 0;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--mp-green);
  border: none;
  transition: all 0.2s ease;
}

.map-popup .btn-block:hover {
  background-color: var(--mp-dk-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.popup-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.popup-close:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  opacity: 1;
  transform: scale(1.1);
}

.popup-close:active {
  transform: scale(0.95);
}

.map-popup {
  position: relative;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: min(90vw, 400px);
  max-width: 400px;
  padding: 1.5rem;
  background-color: #fff;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%) scale(0.95);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Remove blur and add anti-aliasing for crisp text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.map-popup>*:first-child {
  margin-top: 0;
}

.map-popup>*:last-child {
  margin-bottom: 0;
}

.map-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  /* Ensure crisp rendering when open */
  will-change: auto;
}

.marker {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  background-color: var(--mp-green);
  border: 1px solid #fff;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.marker:hover,
.marker:focus {
  transform: scale(1.15);
  background-color: var(--mp-dk-green);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
  outline: none;
  /* z-index: -1; */
}

/* Hide ALL markers when ANY popup is open */
.map:has(.map-popup.open) .marker {
  opacity: 0.1;
  /* z-index: -1; */
  pointer-events: none;
}

/* But keep the clicked marker visible */
.map-item:has(.map-popup.open) .marker {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.marker:active {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .marker {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-width: 3px;
  }
}

@media (min-width: 1024px) {
  .marker {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* REMOVED: Unused marker anchor styles (markers are not anchor tags) */

.map-item {
  position: absolute;
  width: 28px;
  height: 28px;
  /* transform: translate(-50%, -50%); */
}

.map-item .marker {
  top: 0;
  left: 0;
  position: relative;
}

/* Improved responsive positioning */
.map-item1 { top: 38%; left: 8%; }
.map-item2 { top: 60%; left: 13%; }
.map-item3 { top: 47%; left: 18%; }
.map-item4 { top: 54%; left: 28%; }
.map-item5 { top: 91%; left: 42%; }
.map-item6 { top: 84%; left: 41%; }
.map-item7 { top: 59%; left: 42%; }
.map-item8 { top: 46%; left: 42%; }
.map-item9 { top: 25%; left: 21%; }
.map-item10 { top: 34%; left: 41%; }
.map-item11 { top: 29%; left: 54%; }
.map-item12 { top: 20%; left: 47%; }
.map-item13 { top: 17%; left: 56%; }
.map-item14 { top: 20%; left: 66%; }
.map-item15 { top: 23%; left: 80%; }
.map-item16 { top: 58%; left: 77%; }

/* Responsive adjustments for tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .map-item {
    width: 32px;
    height: 32px;
  }
}

/* Responsive adjustments for desktop */
@media (min-width: 1024px) {
  .map-item {
    width: 36px;
    height: 36px;
  }
}



/* REMOVED: Duplicate .map-popup definition that was causing conflicts */

/* Mobile optimizations */
@media (max-width: 767px) {
  .map-popup {
    position: fixed;  /* Change from relative to fixed */
    left: 50%;
    top: 50%;
    z-index: 1000;
    transform: translate(-50%, -50%);  /* Add this for proper centering */
    width: 95vw;
    max-width: 350px;
    padding: 1rem;
    font-size: 1rem;
    /* Enhanced mobile text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  .map-popup.open {
    transform: translate(-50%, -50%) scale(1);  /* Maintain centering when open */
  }

  .popup-title {
    font-size: 1.05rem;
    font-weight: 600;
  }
  
  .map-popup .col-7 {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .map-popup .col-5 img {
    max-width: 100px;
    /* Mobile-specific image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .map-popup .btn-block {
    font-size: 0.95rem;
    padding: 12px 24px;
    font-weight: 600;
  }
  
  .popup-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 8px;
    right: 8px;
  }
  
  .marker {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-width: 2px;
  }
  
  .map-item {
    width: 24px;
    height: 24px;
  }
}

/* REMOVED: Unused loading animations for non-existent elements */