#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  pointer-events: auto;
}

#modal-box {
  background: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  /* overflow-y: hidden; */ 
  font-family: "Trebuchet MS", sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
}

#modal-content {
  max-height: calc(90vh - 60px); /* subtract header/close button area */
  overflow-y: auto;
  padding-right: 10px;           /* avoids text touching scrollbar */
}


#modal-logo {
  position: absolute;
  top: -40px;              
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 350px;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,0.35));
  z-index: 10;
}



#modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}


#modal-close:hover { background: #f8f8f8; transform: scale(1.1); }

#map-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: sans-serif;
}

#map {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#logo-overlay {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 380px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.95;
}

/* JUSTIN + CONTAINER */
#mascot-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  z-index: 9999;
}

#mascot-img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.5))
          drop-shadow(0px 2px 2px rgba(0,0,0,0.3));
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

#mascot-img.wobble {
  animation: wobble 0.6s ease;
}

/* SPEECH BUBBLE — CONSISTENT ON ALL DEVICES */
#speech-bubble {
  position: fixed;
  bottom: 40px;      
  left: 140px;       
  right: 20px;       
  width: auto; 
  max-width: 320;
  background: #f2f2f2;
  padding: 10px 14px;
  border-radius: 12px;
  border: 3px solid #000; 
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 1rem;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;
}

#speech-bubble button {
  margin-top: 12px;
  margin-bottom: 4px;
}

button {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #6c4f3d;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 0 #3e2f24;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 0 #3e2f24;
}

#autocomplete-list {
  position: absolute;
  width: 90%;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.autocomplete-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: #f0f0f0;
}


button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 0 #3e2f24;
}

/* FOOTER BASE — MOBILE */
#site-footer {
  position: fixed;
  top: 10px;          /* move to top */
  right: 10px;        /* top-right corner */
  left: auto;
  bottom: auto;
  width: auto;
  padding: 0;
  background: none;
  border: none;
  z-index: 9999;
}

#menu-toggle {
  background: #fff;
  border: 3px solid #000;
  border-radius: 8px;
  padding: 8px 10px;
  width: 44px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 0 #000;
}

/* Hamburger */
#menu-toggle span {
  display: block;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

/* plus popup */
#footer-links {
  display: none;
  position: absolute;
  top: 50px;    
  right: 0;     
  left: auto;
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  flex-direction: column;
  gap: 10px;
}


.footer-item {
  background: #6c4f3d;
  color: #fff;
  border: 3px solid #000;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #000;
}



@media (min-width: 900px) {

  #map-wrapper {
    position: relative;
    width: 75vw;
    height: 75vh;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
  }

  #map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 8px solid #000;
    border-radius: 12px;
    overflow: hidden; /* only clips the map */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

  #map {
    width: 100%;
    height: 100%;
  }

  #logo-overlay {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 380px;
    z-index: 20;
  }

  #mascot-container {
    position: absolute;
    bottom: -20px;
    left: -20px;
    transform: none;
    z-index: 20;
  }
  
  #mascot-img { width: 180px; }

#speech-bubble {
  position: absolute;
  bottom: 20px;
  left: 160px; 
  right: auto; 
  width: max-content;
  max-width: 320px;  
  white-space: normal;
  transform: none;
  z-index: 20;
}

  #site-footer {
    position: absolute;
    top: calc(50% + 75vh/2 + 30px);
    left: 50%;
    bottom: auto;
    width: 75vw;
    margin: 0px auto 0 auto;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateX(-50%);
  }

  /* Hide hamburger on desktop */
  #menu-toggle {
    display: none;
  }

  /* Show nav horizontally */
  #footer-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 20px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }


.footer-item {
  padding: 8px 15px;
  font-size: 1.1rem;
  font-weight: bold;
  border: 3px solid #000;
  border-radius: 10px;
  background: #6c4f3d;       /* brown fill */
  color: #fff;             
  box-shadow: 0 5px 0 #000; 
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.footer-item:hover {
  transform: none;  /* tweak? */
}

.footer-item:active {
  transform: translateY(4px); 
  box-shadow: 0 1px 0 #000;   
}

}
