
/* Hero container */
.hero-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

/* Map wrapper - this is what moves */
.map-wrapper {
    position: absolute;
    width: 300%; /* Map is 3x wider than viewport */
    height: 150%; /* Map is 1.5x taller than viewport */
    animation: panMap 15s ease-in-out infinite; /* Adjust duration for longer/shorter pauses */
    transform-origin: left top;
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,.2);
    z-index: 2;
}

/* The map image */
.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

/* Pin markers */
.pin {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -100%);
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

/* Pin SVG styling */
.pin svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.pin:hover svg {
    transform: scale(1.1);
}

/* Position pins on the map */
.pin-1 {
    left: 16.66%; /* 1/6 of total width */
    top: 25%;
}

.pin-2 {
    left: 50%; /* Center of total width */
    top: 70%;
}

.pin-3 {
    left: 83.33%; /* 5/6 of total width */
    top: 55%;
}

/* Pin bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -100%) translateY(0);
    }
    50% {
        transform: translate(-50%, -100%) translateY(-10px);
    }
}

/* Pin glow effect when in focus */
@keyframes pinGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8)) drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    }
}

/* Apply glow to pins based on animation timing */
.pin-1 svg {
    animation: pinGlow 15s ease-in-out infinite;
    animation-delay: 0s;
}

.pin-2 svg {
    animation: pinGlow 15s ease-in-out infinite;
    animation-delay: -4.5s; /* Start glowing when map reaches pin 2 */
}

.pin-3 svg {
    animation: pinGlow 15s ease-in-out infinite;
    animation-delay: -9s; /* Start glowing when map reaches pin 3 */
}

/* Map panning animation with pauses */
@keyframes panMap {
    /* Pin 1 - Hold for first 25% (3.75s of 15s) */
    0%, 25% {
        transform: translate(0, -10%);
    }
    /* Transition to Pin 2 - 25% to 30% (0.75s) */
    30% {
        transform: translate(-33.33%, -20%);
    }
    /* Pin 2 - Hold from 30% to 55% (3.75s) */
    55% {
        transform: translate(-33.33%, -20%);
    }
    /* Transition to Pin 3 - 55% to 60% (0.75s) */
    60% {
        transform: translate(-66.66%, -5%);
    }
    /* Pin 3 - Hold from 60% to 85% (3.75s) */
    85% {
        transform: translate(-66.66%, -5%);
    }
    /* Transition back to Pin 1 - 85% to 90% (0.75s) */
    90%, 100% {
        transform: translate(0, -10%);
    }
}

/* Optional: Overlay content */
.hero-content {
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 20;
    background: #2C2C2C;
    padding: 2rem 3rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    width: 24rem;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.75);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    padding-top: 0.8em;
    font-family: 'Roboto', sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.hero-content button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-content button:hover {
    background: #2563eb;
}

/* Map container */
.demo-map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Dark overlay on the map */
.demo-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Adjust opacity: 0.3 for lighter, 0.7 for darker */

    pointer-events: none; /* Allows clicks to pass through to elements below */
    z-index: 1;
}

.heroImage {
  border-radius: 300px;
  position: absolute;
  bottom: 85%;
  overflow: hidden;
  background: #95b356;
  height: 128px;
  width: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.75);
}

.heroImage img {
  width: 75%;
  height: 75%;
}

.navbar .navbar-brand {
  font-weight: bold;
  font-size: 25px;
  color: #FFFFFF;
}

.navbar-collapse.in {
  overflow-y: hidden;
}

.navbar-header .navbar-icon-container {
  margin-right: 15px;
}

.navbar-header .navbar-icon {
  line-height: 50px;
  height: 50px;
}

.navbar-header a.navbar-icon {
  margin-left: 25px;
}

@media (max-width: 992px) {
  .navbar .navbar-brand {
    font-size: 18px;
  }
}

/* Print Handling */
@media print {
  .navbar {
    display: none !important;
  }
  .leaflet-control-container {
    display: none !important;
  }
}

.navbar-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
