* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1f17;
  color: #e8f0ea;
  overflow: hidden;
}

#app {
  position: relative;
  height: 100%;
  width: 100%;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(26, 58, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(45, 90, 66, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-text {
  flex: 1;
  text-align: center;
  padding-right: 40px; /* balance the hamburger width */
}

.menu-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(45, 90, 66, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-btn:active {
  background: rgba(45, 90, 66, 0.7);
}

.menu-btn-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #e8f0ea;
  border-radius: 1px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.45);
}

.menu-backdrop.hidden {
  display: none;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 650;
  width: min(300px, 84vw);
  height: 100%;
  background: rgba(15, 31, 23, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 1px solid rgba(45, 90, 66, 0.6);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: 12px 0 20px;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 14px;
  border-bottom: 1px solid rgba(45, 90, 66, 0.5);
}

.side-menu-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dcea1;
}

.side-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #a8c4b4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.side-menu-close:active {
  color: #fff;
  background: rgba(45, 90, 66, 0.5);
}

.side-menu-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.side-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #e8f0ea;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 18px;
  cursor: pointer;
}

.side-menu-item:active,
.side-menu-item:hover {
  background: rgba(45, 90, 66, 0.4);
  color: #fff;
}

.content-page {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(15, 31, 23, 0.96);
  overflow: auto;
  padding: 24px 18px 40px;
}

.content-page.hidden {
  display: none;
}

.content-page-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-top: 12px;
}

.content-page-inner h2 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dcea1;
  margin-bottom: 12px;
}

.content-page-inner p {
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #e8f0ea;
}

.content-page-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #a8c4b4;
  font-size: 1.6rem;
  cursor: pointer;
}


.header h1 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2.subtitle,
.subtitle {
  font-family: "Barlow", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #e8f0ea;
  opacity: 0.9;
  margin-top: 2px;
}


#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #1a2e24;
}

.controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 500;
  width: calc(100% - 24px);
  max-width: 640px; /* slightly wider than the 600px button */
  background: rgba(26, 58, 42, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(45, 90, 66, 0.55);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn.primary {
  background: #2e7d4f;
  color: white;
}

.btn.primary:active {
  background: #246b42;
  transform: scale(0.98);
}

.btn.small {
  background: #2d5a42;
  color: #e8f0ea;
  padding: 8px 14px;
  font-size: 0.9rem;
  margin-top: 8px;
}

.layer-toggles {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  justify-content: center; flex-wrap: wrap;
}

.layer-toggles label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.status-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 600px;
  bottom: 160px;
  z-index: 1000;
  background: rgba(21, 35, 28, 0.92);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

.status-panel.hidden {
  display: none;
}

.status-field {
  margin-bottom: 18px;
}

.status-field:last-of-type {
  margin-bottom: 10px;
}

.status-label {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7dcea1;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.status-value {
  font-family: "Barlow", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
}

.status-coords {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.35;
  color: #c8d9ce;
}

/* Top-right X close button */
.status-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #a8c4b4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s, background 0.15s;
}

.status-close:hover,
.status-close:active {
  color: #ffffff;
  background: rgba(45, 90, 66, 0.6);
}

.info-bar {
  background: #0f1f17;
  font-size: 0.75rem;
  line-height: 1.4;
  border-top: 1px solid #2d5a42;
  flex-shrink: 0;
}

.info-bar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  color: #c8d9ce;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.info-bar-toggle:active {
  background: rgba(45, 90, 66, 0.35);
}

.info-bar-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.info-bar-chevron {
  color: #7dcea1;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.info-bar.collapsed .info-bar-chevron {
  transform: rotate(-90deg);
}

.info-bar-body {
  padding: 0 12px 12px;
}

.info-bar.collapsed .info-bar-body {
  display: none;
}

.info-bar a {
  color: #7dcea0;
  text-decoration: underline;
}

.disclaimer {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.7rem;
}

/* Leaflet tweaks for dark theme */
.leaflet-control-zoom a {
  background: #1a3a2a !important;
  color: #e8f0ea !important;
  border-color: #2d5a42 !important;
}

.leaflet-control-attribution {
  background: rgba(15,31,23,0.8) !important;
  color: #a0b8a8 !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #7dcea0 !important;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.3);
}
.swatch.gold {
  background: #ffc107;
}
.swatch.blue {
  background: #0d47a1;
}
.layer-toggles label {
  font-size: 0.82rem;
}

.swatch.green {
  background: #00c853;
}


#btn-locate {
  width: 100%;
  max-width: 600px;
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 1.2rem;
}

.controls {
  align-items: center;
}


.footer-sections {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: rgba(15, 31, 23, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(45, 90, 66, 0.55);
}

.footer-sections .info-bar {
  border-top: none;
  background: transparent;
}

.footer-sections .info-bar + .info-bar {
  border-top: 1px solid rgba(45, 90, 66, 0.5);
}

.official-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.official-links li {
  margin-bottom: 8px;
}

.official-links li:last-child {
  margin-bottom: 0;
}

.official-links a {
  color: #7dcea0;
  text-decoration: underline;
  line-height: 1.35;
}


.controls-disclaimer {
  margin: 2px 0 2px;
  max-width: 600px;
  text-align: center;
  opacity: 0.75;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #c8d9ce;
}

.footer-maps-links {
  margin: 0 0 10px;
}


/* Industry-like type hierarchy */
.btn,
.btn.primary,
#btn-locate {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subtitle {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.layer-toggles,
.controls-disclaimer,
.official-links,
.footer-maps-links,
.note {
  font-family: "Barlow", sans-serif;
}


/* Contact form */
.contact-intro {
  margin-bottom: 18px;
  opacity: 0.9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-site .contact-intro {
  text-align: left;
}

.page-site .site-article > h1 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dcea1;
  text-align: left;
  margin: 0 0 16px;
}

.page-site .site-brand {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}



.contact-label {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7dcea1;
  margin-top: 8px;
}

.contact-input {
  width: 100%;
  border: 1px solid rgba(45, 90, 66, 0.7);
  border-radius: 8px;
  background: rgba(26, 58, 42, 0.55);
  color: #e8f0ea;
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
}

.contact-input:focus {
  border-color: #7dcea1;
  box-shadow: 0 0 0 2px rgba(125, 206, 161, 0.2);
}

.contact-input::placeholder {
  color: rgba(232, 240, 234, 0.45);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.45;
}

.contact-submit {
  margin-top: 14px;
  width: 100%;
  max-width: none;
}

.contact-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #7dcea1;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}


.about-body p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.about-closer {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #7dcea1;
  margin-top: 0.5rem;
}


.about-section-title {
  margin-top: 1.75rem;
}


.guide-list {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.guide-list li {
  margin-bottom: 0.55rem;
}

.guide-list.numbered {
  list-style: decimal;
}

.guide-list:not(.numbered) {
  list-style: disc;
}


.guide-list a,
.content-page-inner a {
  color: #7dcea0;
  text-decoration: underline;
}


/* Multi-page site layout (101 / Behavior / About / Contact) */
html:has(body.page-site),
body.page-site {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-site {
  background: #0f1f17;
}

.page-site #app.site-page {
  position: relative;
  height: auto;
  min-height: 100vh;
  display: block;
  overflow: visible;
}

.page-site .site-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
}

.header-home {
  color: inherit;
  text-decoration: none;
}

.page-site .site-main {
  padding: 36px;
}

.page-site .site-article {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding: 36px;
}

.side-menu-item.is-active {
  background: rgba(45, 90, 66, 0.45);
  color: #fff;
}

a.side-menu-item {
  display: block;
  text-decoration: none;
}


.page-site {
  background-color: #0f1f17;
  background-image: none;
}

body.page-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0f1f17;
  background-image: url("topo-south-utah.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-site #app.site-page {
  position: relative;
  z-index: 1;
}

.page-site .site-header {
  position: sticky;
  top: 0;
  z-index: 500;
}

.page-site .side-menu {
  position: fixed;
  z-index: 650;
}

.page-site .menu-backdrop {
  position: fixed;
  z-index: 600;
}


.page-site .site-main {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 24px;
}

.page-site .site-article {
  background: rgba(15, 31, 23, 0.78);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.topo-credit {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 8px;
  font-size: 0.7rem;
  opacity: 0.45;
  text-align: center;
}


.header-logo {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 0;
}

.header-logo img {
  width: 40px;
  height: 40px;
  display: block;
}

@media (min-width: 768px) {
  .header-logo {
    display: block;
  }
}

.content-figure {
  margin: 0 0 1.25rem;
}
.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.map-tagline {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8f0ea;
  text-align: center;
  margin: 0 0 4px;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .page-site .site-main {
    padding: 12px 10px 28px !important;
  }
  .page-site .site-article {
    max-width: none;
    padding: 16px 14px 22px !important;
    border-radius: 12px;
  }
  .page-site .site-article > h1 {
    font-size: 1.85rem;
  }
  .content-page-inner p,
  .about-body p {
    max-width: none;
  }
}

.checkin-result { margin: 22px 0 8px; }
.checkin-result.hidden { display: none; }
.checkin-place { display: none; }
.checkin-address {
  font-family: "Barlow", sans-serif;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 700;
  color: #e8f0ea;
  margin: 0 0 12px 1.1rem;
  opacity: 1;
}
.checkin-meta {
  margin-bottom: 8px;
  opacity: 0.92;
}
.checkin-map {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  margin: 12px 0 8px;
  overflow: hidden;
}
#btn-find-checkin {
  width: 100%;
  max-width: 600px;
  margin: 8px 0 16px;
  font-size: 1.15rem;
}

.checkin-map-label {
  background: rgba(15, 31, 23, 0.88);
  border: 1px solid rgba(243, 195, 107, 0.7);
  color: #f3c36b;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: none;
}
.checkin-map-label::before { display: none; }
#checkin-finder .controls-disclaimer,
.checkin-result + .disclaimer { }
#btn-find-checkin + .controls-disclaimer {
  text-align: center;
  margin: 4px 0 12px;
}

.checkin-result .controls-disclaimer {
  text-align: left;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
