@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
}
body { 
    font-family: 'Roboto', sans-serif; 
  }

/* Heartbeat Animation */
.heartbeat-line path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: heartbeatDraw 4s linear infinite;
    filter: drop-shadow(0 0 4px #16a94c); /* Glow effect */
}

  @keyframes heartbeatDraw {
    0% {
      stroke-dashoffset: 1200;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }

/* Watermark Styling */
#pdf-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('../img/logo/mvh_logo.png') no-repeat center;
    background-size: 300px;
    opacity: 0.05;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#pdf-content > * {
    position: relative;
    z-index: 10;
}

/* Watermark effect for background */
#tos-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('../img/logo/mvh_logo.png') no-repeat center;
    background-size: 300px;
    opacity: 0.05;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  #tos-content > * { 
    position: relative; 
    z-index: 10; 
}

.curve-header {
    clip-path: ellipse(160% 100% at 50% 0%);
  }
  .curve-footer {
    clip-path: ellipse(160% 100% at 50% 100%);
  }

body.modal-open {
  overflow: hidden;
}
    .modal {
      display: none;
    }
    .modal.active {
      display: flex;
    }

#floorContainer {
    position: relative;
    width: 100%;
    max-width: 1000px; /* optional, control size */
    margin: 0 auto;
  }

    /* Modal Styles */
    #facilityModal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      overflow-y: auto;
      padding: 1rem;
      transition: opacity 0.3s ease-in-out;
    }
    #facilityModal.hidden { display: none; }
  
    .modal-content {
      position: relative;
      background: white;
      border-radius: 8px;
      max-width: 90%;
      width: 400px;
      text-align: center;
      padding: 20px;
    }
  
    .modal-images {
      position: relative;
    }
  
    .modal-images img {
      width: 100%;
      max-height: 300px;
      object-fit: cover;
      border-radius: 6px;
      display: none;
    }
    .modal-images img.active { display: block; }
  
    .image-nav {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
    }
    .image-nav button {
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      font-size: 20px;
      padding: 5px 10px;
      cursor: pointer;
      border-radius: 4px;
    }

    .hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
  }
  
  .tooltip {
    visibility: hidden;
    transition: opacity 0.2s;
    white-space: nowrap;
  }
  .hotspot:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

  #facilityModal .bg-white {
  max-width: 900px; /* Bigger modal width */
}

#modalImageWrapper img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

#prevImage, #nextImage {
  cursor: pointer;
  transition: background 0.2s ease;
}
#prevImage:hover, #nextImage:hover {
  background: rgba(0,0,0,0.7);
}

/* Responsive scaling */
.circle-pulse {
  font-size: clamp(20px, 4vw, 36px); /* min 20px, scales with viewport, max 36px */
  animation: pulse 1.5s infinite;
  text-shadow: 0 0 6px rgba(22, 163, 74, 0.6); /* subtle glow */
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Pulsing circle */
.circle-pulse {
  font-size: clamp(20px, 4vw, 36px);
  color: #16a34a;
  line-height: 1;
  animation: pulse 1.5s infinite;
  text-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
  cursor: pointer;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tooltip styling */
.circle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle-tooltip {
  position: absolute;
  bottom: 100%; /* Default: above */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 8px;
  font-size: clamp(10px, 2.5vw, 12px);
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.circle-wrapper:hover .circle-tooltip {
  opacity: 1;
}

/* Tooltip arrow */
.circle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}
