/* ───────────── GLOBAL ───────────── */
body {
  margin: 0;
  font-family: sans-serif;
  scroll-margin-top: 40px;
  background: #f9f5ef;
  color: #4d3b2a;
}

/* ───────────── NAVIGATION ───────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgb(146,73,37);
  display: flex;
  flex-wrap: wrap;           /* ✅ allow wrapping on mobile */
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  background: rgb(110,166,149);
  border-radius: 4px;
  font-weight: bold;
}
.site-nav a:hover {
  background: rgb(58,117,84);
}
.site-nav span {
  color: #fff;
}

/* ───────────── HELP MENU ───────────── */
.help-menu {
  position: relative;
  margin-left: auto; /* pushes hamburger to the far right */
}

.help-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
}


.help-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 999;
  min-width: 180px;
  flex-direction: column;
  border-radius: 6px;
}
.help-dropdown button {
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.help-dropdown button:hover {
  background-color: rgb(110,166,149);
  color: #fff;
}
.help-menu.open .help-dropdown {
  display: flex;
}

.nav-buttons-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}


/* ───────────── HELP PANEL ───────────── */
.help-panel {
  position: fixed;
  top: 48px;
  left: 0; right: 0;
  background: #fff;
  color: #333;
  border-bottom: 2px solid rgb(146,73,37);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 998;
}
.help-panel.open {
  max-height: 220px;
}
.help-panel p {
  margin: 12px 0 4px;
  font-weight: bold;
  color: rgb(146,73,37);
}
.help-panel ul {
  margin: 0 0 12px 20px;
  padding: 0;
  text-align: left;
}
.help-panel li {
  margin-bottom: 6px;
}
.help-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* ───────────── MAP AREA ───────────── */
.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
}
#map {
  width: 100%;
  height: auto;
  display: block;
}
#map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ───────────── SITE CIRCLES ───────────── */
.site-circle {
  position: absolute;
  width: 3vw; height: 3vw;
  min-width: 12px; min-height: 12px;
  max-width: 30px; max-height: 30px;
  border-radius: 50%;
  background: rgba(0,255,0,0.4);
  border: .3vw solid green;
  cursor: pointer;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.site-circle.pups {
  background: rgba(30,144,255,0.4);
  border-color: dodgerblue;
}

/* orange diamond for Oasis */
.site-circle.oasis {
  border-color: #ADD8E6;
  background: rgba(173,216,230,0.4);
  border-radius: 0;  
  transform: translate(-50%, -50%) rotate(58deg);
}



/* ───────────── POP-UP ───────────── */
.popup {
  display: none;
  position: fixed;
  max-width: 400px;
  width: 90%;
  background: rgb(244,239,220);
  border: 2px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.popup-header {
  background: rgb(146,73,37);
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  font-size: 18px;
}
#site-title {
  font-weight: bold;
  font-size: 20px;
  margin: 8px 0;
  color: rgb(146,73,37);
  text-align: center;
}
.popup-subtitle {
  display: block;
  font-size: 16px;
  font-weight: normal;
  margin-top: 4px;
}

/* ───────────── POP-UP CONTENT ───────────── */
.popup-content {
  padding: 20px;
  color: rgb(110,166,149);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-content p {
  width: 100%;
  margin: 4px 0;
  font-size: 15px;
  text-align: left;
}
.popup-content .guest-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin: 4px 0;
  font-size: 15px;
  font-weight: bold;
}
.popup-content a {
  color: rgb(236,128,56);
  text-decoration: underline;
  font-weight: bold;
}

/* ───────────── OPTIONAL PHOTO ───────────── */
#popup-photo-link {
  margin-top: 6px;
  margin-bottom: 10px;
}
#popup-photo-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 6px;
  border: 2px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: none;
}

/* ───────────── PUPS & KITTIES ───────────── */
#pets-line {
  display: flex;
  gap: 12px;
}
.label {
  color: rgb(146,73,37);
  font-weight: bold;
}
.value {
  color: rgb(110,166,149);
  font-weight: bold;
}

/* ───────────── SOCIAL ICONS ───────────── */
.popup-links {
  margin-top: 10px;
  text-align: center;
}
.popup-links img {
  width: 30px;
  height: 30px;
  margin: 0 10px;
}

/* ───────────── FOOTER ───────────── */
.popup-footer {
  text-align: center;
  padding: 20px 0 16px;
  border-top: 1px solid #ddd;
}
.popup-footer-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.popup-footer-logo {
  height: 48px;
  object-fit: contain;
}
.popup-footer button {
  background: rgb(146,73,37);
  color: #fff;
  border: 1px solid #333;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}
.popup-footer button:hover {
  background: #8b4513;
}

/* ───────────── POSITIONING FOR POPUPS ───────────── */
#popup {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
#request-modal {
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}


/* ───────────── SHOW MODELS TOGGLE ───────────── */
.toggle-models {
  display: flex;
  align-items: center;
  margin-left: 12px;       /* space from the hamburger */
  font-size: 14px;
  color: #fff;             /* white text to match your links */
  cursor: pointer;
}

.toggle-models input {
  margin: 0 6px 0 0;       /* space between box and label */
  width: 1em; height: 1em; /* make checkbox a comfortable size */
  accent-color: #fff;      /* modern browsers will color the checkmark white */
}



/* ───────────── DESKTOP FONT OVERRIDE ───────────── */
@media (min-width: 1024px) {
  .model-circle {
    font-size: 12px;
  }
}


/* ───────────── MOBILE CHECKBOX ACCENT RESET ───────────── */
@media (max-width: 1023px) {
  .toggle-models input {
    accent-color: initial !important;
  }
}


/* ───────────── MAP SETTINGS DROPDOWN ───────────── */
.overlay-settings {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}

.overlay-settings button#settings-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.settings-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  padding: 12px;
  background: #c6e5df;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  width: 420px;
  max-width: 95vw; /* ensures it's responsive */
  box-sizing: border-box;
  z-index: 1000;
}

.settings-menu h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #444;
}

.settings-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.settings-menu li {
  margin-bottom: 6px;
  width: 100%;
  display: block;
}

.settings-menu label {
  font-size: 14px;
  color: #333;
  width: 100%;
  display: block;
  line-height: 1.4;
  word-break: break-word; /* wraps long lines if needed */
}

/* ───────────── MODEL OVERLAY (CIRCLE) ───────────── */
.model-circle {
  position: absolute;
  width: 3vw; height: 3vw;
  min-width: 12px; min-height: 12px;
  max-width: 30px; max-height: 30px;
  border-radius: 50%;
  background: green;
  border: .3vw solid green;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  font-size: 0.8vw;
  font-weight: bold;
  color: #fff;
}
.model-circle.pups {
  background: blue;
  border-color: blue;
}

/* ───────────── CAMPER CRAWL OVERLAY (STAR) ───────────── */
.crawl-circle {
  position: absolute;
  width: 3vw;
  height: 3vw;
  min-width: 12px;
  min-height: 12px;
  max-width: 30px;
  max-height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}
.crawl-circle::before {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4vw;
  color: white;
  z-index: 1;
  line-height: 1;
}
.crawl-circle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.7vw;
  font-weight: bold;
  color: black;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* ───────────── WELCOME BAG OVERLAY (STAR) ───────────── */
.bag-circle {
  position: absolute;
  width: 3vw;
  height: 3vw;
  min-width: 12px;
  min-height: 12px;
  max-width: 30px;
  max-height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bag-circle::before {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4vw;
  color: black;
  z-index: 1;
  line-height: 1;
}
.bag-circle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.7vw;
  font-weight: bold;
  color: white;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* ───────────── STAR TEXT LABELS ───────────── */
.bag-circle span {
  position: absolute;
  font-size: 0.7vw;
  font-weight: bold;
  color: white;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  text-align: center;
  white-space: nowrap;
}

.crawl-circle span {
  position: absolute;
  font-size: 0.7vw;
  font-weight: bold;
  color: black;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  text-align: center;
  white-space: nowrap;
}

/* ───────────── RESPONSIVE MOBILE NAVIGATION FIX ───────────── */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-buttons-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
    order: 2;
  }

  .nav-buttons {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .help-menu {
    order: 1;
    margin-right: 16px; /* ← increased from 8px to give it breathing room */
  }

  .site-nav a {
    font-size: 14px;
    padding: 5px 8px;
  }
}
