.swal2-popup { font-family: Outfit, sans-serif; border-radius: 18px; }
.swal2-title { font-family: Fraunces, Outfit, serif; }

:root {
  --forest: #0b7a32;
  --forest-deep: #064e20;
  --leaf: #0b7a32;
  --gold: #f0c054;
  --gold-deep: #c8962e;
  --ember: #d4121a;
  --cream: #f3f6f4;
  --paper: #ffffff;
  --ink: #142018;
  --muted: #5c6b62;
  --line: #e3ebe5;
  --vacant: #0b7a32;
  --partial: #c8962e;
  --full: #d4121a;
  --shadow: 0 12px 32px rgba(6, 40, 18, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

img { max-width: 100%; }

button, input, select { font-family: inherit; }

.site-header {
  background: white;
  color: var(--ink);
  padding: 1.25rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.flyer-frame {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  line-height: 0;
  cursor: zoom-in;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.flyer-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 787 / 1024;
  object-fit: cover;
}

.intro-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-top: 0.75rem;
  color: var(--forest);
}

.intro-copy { text-align: center; }

.theme {
  margin: 0.9rem auto 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: center;
}

.theme::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin: 0 auto 0.8rem;
}

.brand-lockup {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}

.brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #111;
  border-radius: 12px;
  padding: 4px;
  flex: none;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin: 0;
  font-weight: 700;
}

.meaning {
  margin: 0;
  max-width: 28rem;
  text-align: left;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; }

h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; line-height: 0.95; }

.header-meta { color: rgba(255,255,255,0.88); margin: 0.35rem 0 0; }

.theme-line { color: #f6e7c3; margin-top: 0.75rem; max-width: 38rem; }

.search-wrap {
  position: relative;
  z-index: 5;
  margin-top: 1.25rem;
}

.search-lead {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.search-card, .panel, .plan-card, .map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-card { padding: 0.85rem; }

.search-card input {
  border: 0;
  background: transparent;
  color: #142018;
  -webkit-text-fill-color: #142018;
  font-size: 1.05rem;
  padding: 0.7rem 0.4rem;
  width: auto;
  flex: 1;
  min-width: 0;
  outline: none;
}

.search-card input::placeholder {
  color: rgba(20, 32, 24, 0.38);
  -webkit-text-fill-color: rgba(20, 32, 24, 0.38);
  opacity: 1;
}

.search-results {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: calc(100% - 0.4rem);
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
}

.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: #142018;
  -webkit-text-fill-color: #142018;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
}

.search-results button strong { color: #142018; }

.search-results button:hover,
.search-results button:focus { background: #fff6e4; }

.banner {
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: #fff4df;
  border: 1px solid #efd7a4;
  color: #6a4b12;
}

.building-switch { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.building-switch button,
.mode-switch button,
.ghost-btn, .solid-btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
}

.building-switch button.active,
.mode-switch button.active {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  font-weight: 650;
}

.back-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid #e2b043;
  background: var(--gold);
  color: #1a1408;
  padding: 0.55rem 1rem;
  min-height: 44px;
  font-weight: 700;
}

.back-search:hover,
.back-search:focus { background: #e2b043; }

.btn-icon { width: 18px; height: 18px; flex: none; }
.back-search .btn-icon { fill: currentColor; }
.solid-btn .btn-icon { fill: none; stroke: currentColor; }

.solid-btn:hover,
.solid-btn:focus { background: var(--forest-deep); border-color: var(--forest-deep); }

.gold-btn {
  border-radius: 999px;
  border: 1px solid #e2b043;
  background: var(--gold);
  color: #1a1408;
  padding: 0.55rem 1rem;
  min-height: 44px;
  font-weight: 700;
}

.gold-btn:hover,
.gold-btn:focus { background: #e2b043; }

.ghost-btn { background: transparent; }

.plan-card, .panel, .map-card { padding: 1rem; }

.plan-stage {
  position: relative;
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.plan-stage img { display: block; width: 100%; height: auto; }

.plan-stage svg,
#planBadges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#planBadges { pointer-events: none; }

.zone { cursor: pointer; fill: rgba(47, 107, 69, 0.04); stroke: transparent; stroke-width: 1.2; }
.zone:hover, .zone:focus { fill: rgba(47, 107, 69, 0.28); stroke: var(--forest); }
.zone.partial { fill: rgba(224, 161, 43, 0.38); }
.zone.full { fill: rgba(198, 83, 27, 0.42); }
.zone.selected { stroke: var(--gold-deep); stroke-width: 1.8; fill: rgba(213, 154, 43, 0.28); }
.zone.foyer { fill: rgba(36, 28, 20, 0.03); cursor: default; }

.badge-label {
  font-size: 3.1px;
  font-family: var(--sans);
  font-weight: 700;
  fill: #241c14;
  pointer-events: none;
}

#roomCanvas {
  width: 100%;
  height: min(68vw, 460px);
  border-radius: 16px;
  touch-action: none;
  background: #efe4cf;
  display: block;
}

.room-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.room-list button {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.45rem 0.7rem;
  min-height: 44px;
}

.room-list button.partial { border-color: var(--partial); background: #fff7e8; }
.room-list button.full { border-color: var(--full); background: #fff0e8; }
.room-list button.selected { outline: 2px solid var(--forest); }

.photo-btn {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  width: 100%;
}

.photo-btn img { width: 100%; height: 240px; object-fit: cover; display: block; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: #e7f3ea;
  color: var(--leaf);
}

.status-pill.partial { background: #fff1d2; color: #8a5a00; }
.status-pill.full { background: #ffe4d6; color: #8d3410; }

.guest-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.static-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d5d0c4;
}

.static-map img { display: block; width: 100%; height: auto; }

#pinLayer { position: absolute; inset: 0; }

.route-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.map-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 0;
  background: var(--forest);
  color: white;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.map-pin.selected { background: var(--gold); color: #1a1408; }
.map-pin.you {
  background: var(--ember);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  padding: 0;
  box-shadow: 0 0 0 7px rgba(212, 18, 26, 0.28);
}

#liveMap { height: 380px; margin-top: 0.85rem; border-radius: 16px; border: 1px solid var(--line); }

.you-tip {
  background: #d4121a;
  color: white;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
}

.compass {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 10px solid var(--forest);
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 46%, transparent 47%),
    conic-gradient(from 0deg, #f4efe6, #fff, #f4efe6);
}

.compass span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 52px solid var(--ember);
  transform-origin: 50% 62px;
}

.legend-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  display: inline-block;
}

.legend-dot.yellow { background: #f6e7a8; border: 1px solid #c9b56a; }
.legend-dot.green { background: #7dbe57; border: 1px solid #3d7a32; }
.legend-dot.partial { background: var(--partial); }
.legend-dot.full { background: var(--full); }

.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.15rem 0;
  margin-top: 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; }

.socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.socials span {
  margin-right: 0.25rem;
  font-size: 0.92rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.socials a:hover,
.socials a:focus { background: var(--gold); color: #1a1408; }

.socials svg { width: 18px; height: 18px; fill: currentColor; }

.hidden { display: none !important; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 1.5rem;
  background: #000;
  transition: opacity 0.45s ease;
}

.splash img {
  width: min(68vw, 380px);
  max-height: 54dvh;
  height: auto;
}

.splash-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: splash-spin 0.75s linear infinite;
}

@keyframes splash-spin { to { transform: rotate(360deg); } }

.splash.is-gone {
  opacity: 0;
  pointer-events: none;
}

html.welcome-open,
body.welcome-open {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.welcome-open {
  position: fixed;
  inset: 0;
  width: 100%;
}

body.welcome-open #camp {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: rgba(243, 246, 244, 0.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.welcome.is-hidden { display: none; }

.welcome .site-header {
  flex: 0 0 auto;
  padding: 0.85rem 0 0.7rem;
  background: rgba(255, 255, 255, 0.8);
}

.welcome .site-header .container,
.welcome .intro {
  min-height: 0;
  max-height: 100%;
}

.welcome .flyer-frame {
  max-height: 100%;
}

.welcome .flyer-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(28dvh, 240px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.welcome-main {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 0.35rem 0 0;
}

.welcome .search-wrap {
  width: 100%;
  margin-top: 0.45rem;
}

.welcome .search-lead { margin-bottom: 0.3rem; }

.welcome .search-card { padding: 0.4rem 0.5rem; }

.welcome .search-card input { padding: 0.35rem 0.3rem; }

.welcome .site-footer {
  flex: 0 0 auto;
  margin-top: 0;
}

.camp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.camp-bar strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

@media (max-width: 767px) {
  .site-header { padding: 1.1rem 0 1.25rem; }
  .intro {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.1rem;
  }
  .flyer-frame { width: min(68vw, 240px); }
  .intro-copy { width: 100%; }
  .brand-lockup img { width: 46px; height: 46px; }
  .footer-row { align-items: flex-start; }
  .socials { margin-left: 0; }
  .welcome .intro { gap: 0.7rem; }
  .welcome .flyer-frame { width: auto; }
  .welcome .flyer-frame img {
    max-height: min(24dvh, 180px);
    max-width: min(42vw, 160px);
  }
  .welcome .theme { font-size: 1.45rem; }
  .welcome .meaning { font-size: 0.78rem; }
  .welcome .site-footer { padding: 0.7rem 0; }
}

@media (max-height: 700px) {
  .welcome .flyer-frame img { max-height: min(20dvh, 140px); }
  .welcome .theme { font-size: 1.25rem; }
  .welcome .site-header { padding: 0.45rem 0 0.35rem; }
  .welcome .site-footer { padding: 0.55rem 0; }
}
