@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #07040d;
  --bg-night: #10081c;
  --bg-glass: rgba(18, 10, 32, 0.9);
  --border-warm: rgba(255, 145, 48, 0.38);
  --border-gold: rgba(255, 209, 102, 0.68);
  --pumpkin: #ff6b00;
  --pumpkin-glow: #ff8c24;
  --gold: #ffd166;
  --purple-haunt: #9d4edd;
  --candy-teal: #00f5d4;
  --text-main: #fcfaff;
  --text-muted: #c9bedb;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.45;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pumpkin-glow);
  text-decoration: none;
}

/* ============================================================================
   1. TOP BAR + HERO BACKDROP (MATCHING REFERENCE MOCKUPS 1 & 2)
   ============================================================================ */
.hero-backdrop-wrapper {
  position: relative;
  width: 100%;
  background-color: #0b0514;
  background-image:
    linear-gradient(90deg, rgba(7, 4, 13, 0.92) 0%, rgba(11, 5, 22, 0.72) 55%, rgba(7, 4, 13, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 4, 13, 0.55) 0%, rgba(7, 4, 13, 0.95) 100%),
    url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: right 35%;
  border-bottom: 1px solid rgba(255, 140, 36, 0.3);
}

.top-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 1.32rem;
  color: #fff6e8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.brand-logo .pumpkin-icon {
  font-size: 1.55rem;
  filter: drop-shadow(0 0 10px rgba(255, 115, 0, 0.9));
}

.brand-logo .tld {
  color: var(--pumpkin-glow);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-orange {
  background: linear-gradient(180deg, #ff8c24 0%, #e85300 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 140, 36, 0.7);
}

.btn-candy {
  background: linear-gradient(180deg, #00f5d4 0%, #00bbf9 100%);
  color: #070312;
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.35);
}

.btn-glass {
  background: rgba(24, 14, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.menu-trigger-btn {
  background: rgba(22, 12, 38, 0.92);
  color: #fff5e4;
  border: 1px solid rgba(255, 190, 100, 0.45);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Main Content */
.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.hero-left {
  max-width: 740px;
}

.hero-headline {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
  line-height: 1.12;
  color: #ffe6c2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
  margin-bottom: 6px;
}

.hero-subline {
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  color: #e4d7f5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: 14px;
}

/* Single Unified Search Bar (Identical to Reference Mockups 1 & 2) */
.hero-search-bar {
  display: flex;
  align-items: center;
  background: rgba(14, 8, 26, 0.92);
  border: 1.5px solid rgba(255, 165, 80, 0.45);
  border-radius: 12px;
  padding: 5px 6px 5px 12px;
  max-width: 660px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  gap: 8px;
}

.search-pin-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hero-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.hero-search-bar input::placeholder {
  color: #b7a6cf;
}

.hero-search-bar .btn-orange {
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 9px;
  flex-shrink: 0;
}

/* Gold Trophy Prize Banner (Matching Reference Mockup 2) */
.hero-prize-card {
  background: linear-gradient(145deg, rgba(34, 18, 54, 0.94) 0%, rgba(16, 8, 28, 0.96) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(255, 209, 102, 0.22);
  cursor: pointer;
  max-width: 330px;
}

.trophy-glow-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.9));
  flex-shrink: 0;
}

.prize-card-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prize-card-eyebrow {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.prize-card-headline {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.prize-card-sub {
  font-size: 0.75rem;
  color: var(--pumpkin-glow);
  font-weight: 700;
}

/* ============================================================================
   2. THE INTERACTIVE MAP (CLEAN, UNCLUTTERED, ZERO WATERMARKS)
   ============================================================================ */
.map-stage-section {
  max-width: 1320px;
  margin: 14px auto 28px;
  padding: 0 16px;
}

.map-frame-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 145, 48, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
  background: #0b0614;
}

#halloween-map {
  width: 100%;
  height: 580px;
  z-index: 1;
  background: #0b0614;
}

/* Clean Dark-Mode Street Map Tile Filter (OpenStreetMap — Zero Watermarks Forever) */
.leaflet-tile-pane {
  filter: invert(100%) hue-rotate(195deg) brightness(88%) contrast(96%) saturate(110%);
}

/* Subtle Top-Right "📍 Find Me" Pill on Map */
.map-overlay-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
}

.find-me-btn {
  background: rgba(16, 9, 30, 0.92);
  color: #ffd166;
  border: 1.5px solid rgba(255, 209, 102, 0.65);
  padding: 8px 13px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75);
}

/* Lively Glowing Map Pins */
.mhh-pin-wrapper {
  background: transparent;
  border: none;
}

.mhh-pin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.mhh-pin:hover {
  transform: scale(1.2) translateY(-3px);
  z-index: 9999 !important;
}

.mhh-pin-kid {
  background: radial-gradient(circle, #ffb703 0%, #ff6b00 70%, #cc4400 100%);
  border: 2.5px solid #fff3b0;
  box-shadow: 0 0 18px rgba(255, 115, 0, 0.95);
}

.mhh-pin-haunt,
.mhh-pin-spooky {
  background: radial-gradient(circle, #c77dff 0%, #7b2cbf 70%, #3c096c 100%);
  border: 2.5px solid #f3d5ff;
  box-shadow: 0 0 18px rgba(157, 78, 221, 0.95);
}

.mhh-pin-featured {
  width: 48px;
  height: 48px;
  font-size: 23px;
  background: radial-gradient(circle, #fff8d6 0%, #ffb703 55%, #ff6b00 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 22px rgba(255, 209, 102, 1), 0 0 40px rgba(255, 107, 0, 0.8);
}

.mhh-pin-candy {
  width: 42px;
  height: 42px;
  font-size: 20px;
  background: radial-gradient(circle, #00f5d4 0%, #00bbf9 65%, #7209b7 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.95);
}

.pin-star-ribbon {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold);
  color: #140800;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
}

.user-here-pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00bbf9;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 7px rgba(0, 187, 249, 0.35), 0 0 20px #00bbf9;
}

/* ============================================================================
   3. SLEEK ANCHORED PIN POPUP CARD (MATCHING REFERENCE MOCKUPS 1 & 2)
   ============================================================================ */
.leaflet-popup-content-wrapper {
  background: rgba(18, 10, 32, 0.96) !important;
  color: var(--text-main) !important;
  border: 1.5px solid rgba(255, 155, 60, 0.65) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.92), 0 0 24px rgba(255, 107, 0, 0.25) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip {
  background: rgba(18, 10, 32, 0.96) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 310px !important;
}

.popup-card {
  display: flex;
  flex-direction: column;
}

.popup-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
}

.popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-featured-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ffd166 0%, #ff8c24 100%);
  color: #140800;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.popup-body {
  padding: 12px 14px 14px;
}

.popup-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 3px;
}

.popup-location {
  font-size: 0.78rem;
  color: #ffd166;
  font-weight: 600;
  margin-bottom: 3px;
}

.popup-hours {
  font-size: 0.75rem;
  color: #64dfdf;
  font-weight: 700;
  margin-bottom: 7px;
}

.popup-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-featured {
  background: var(--gold);
  color: #140800;
}

.badge-kid {
  background: rgba(255, 123, 0, 0.22);
  color: #ffa64d;
  border: 1px solid rgba(255, 140, 36, 0.5);
}

.badge-haunt {
  background: rgba(157, 78, 221, 0.28);
  color: #e0aaff;
  border: 1px solid rgba(199, 125, 255, 0.5);
}

.badge-candy {
  background: rgba(0, 245, 212, 0.2);
  color: var(--candy-teal);
  border: 1px solid rgba(0, 245, 212, 0.55);
}

/* Single Clean City / Postal Code Dropdown Inside Pin Card */
.popup-city-picker-wrap {
  margin-bottom: 9px;
}

.popup-city-picker-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 4px;
}

.popup-city-select {
  width: 100%;
  background: #140a26;
  color: #ffffff;
  border: 1px solid rgba(255, 165, 80, 0.55);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.popup-city-select option,
.popup-city-select optgroup {
  background: #140a26;
  color: #ffffff;
}

.popup-actions-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 7px;
}

.popup-route-btn {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ff8c24 0%, #e85300 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.45);
}

.popup-vote-btn {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ============================================================================
   4. FEATURED HALLOWEEN HOUSES PHOTO GRID BELOW THE MAP
   ============================================================================ */
.photos-showcase-section {
  max-width: 1320px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.showcase-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #fff5e4;
}

.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.house-photo-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.hpc-img-wrap {
  position: relative;
  height: 200px;
  cursor: pointer;
  overflow: hidden;
}

.hpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hpc-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hpc-votes-pill {
  background: rgba(14, 7, 26, 0.9);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.hpc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.hpc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.hpc-location {
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 600;
}

.hpc-hours {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hpc-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
}

/* ============================================================================
   5. MENU DRAWER & MODALS
   ============================================================================ */
.menu-drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 14, 0.84);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.menu-drawer-backdrop.open,
.modal-backdrop.open {
  display: flex;
}

.simple-menu-box,
.modal-box {
  background: linear-gradient(165deg, #1b0e33 0%, #10071f 100%);
  border: 1.5px solid var(--border-warm);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92);
  position: relative;
}

.modal-close {
  float: right;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.menu-big-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-big-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.menu-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.layer-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #e6dcf5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.layer-pill.active {
  background: linear-gradient(135deg, #ff8c24 0%, #e85300 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 4, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
}

.consent-box {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
}

.candy-toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.candy-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: #ffffff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tour-stop-pill {
  background: rgba(15, 7, 30, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 7px;
}

.tour-stop-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pumpkin);
  color: #0b0416;
  font-weight: 900;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #06030c;
  padding: 22px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ============================================================================
   6. MOBILE RESPONSIVE POLISH (COMPACT HERO SO MAP IS IMMEDIATELY VISIBLE)
   ============================================================================ */
@media (max-width: 768px) {
  .top-bar {
    padding: 9px 12px;
  }

  .brand-logo {
    font-size: 0.92rem;
    gap: 5px;
  }

  .brand-logo .pumpkin-icon {
    font-size: 1.15rem;
  }

  .top-bar-actions {
    gap: 5px;
  }

  .top-bar-actions .btn-orange {
    padding: 6px 10px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  .menu-trigger-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .hero-headline {
    font-size: 1.38rem;
    line-height: 1.14;
    margin-bottom: 4px;
  }

  .hero-subline {
    font-size: 0.82rem;
    margin-bottom: 9px;
  }

  .hero-search-bar {
    padding: 4px 5px 4px 10px;
    gap: 6px;
  }

  .hero-search-bar input {
    font-size: 0.82rem;
  }

  .hero-search-bar .btn-orange {
    padding: 8px 11px;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  .hero-prize-card {
    max-width: 100%;
    padding: 8px 12px;
    gap: 9px;
    border-radius: 11px;
  }

  .trophy-glow-icon {
    font-size: 1.55rem;
  }

  .prize-card-eyebrow {
    font-size: 0.78rem;
  }

  .prize-card-headline {
    font-size: 0.74rem;
  }

  .map-stage-section {
    margin: 8px auto 20px;
    padding: 0 10px;
  }

  #halloween-map {
    height: 460px;
  }

  .leaflet-popup-content {
    width: 256px !important;
  }

  .popup-img-wrap {
    height: 92px;
  }

  .popup-body {
    padding: 10px 12px 12px;
  }

  .photo-cards-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* === AUTOMATIC MULTI-STOP ROUTE PLANNER & STOP-COUNT PICKER === */
.route-count-select {
  background: rgba(255, 140, 36, 0.16);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 8px;
  padding: 8px 9px;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.route-count-select option {
  background: #140a26;
  color: #ffffff;
}

.route-custom-num {
  width: 62px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
}

/* Numbered Sequence Badge on Map Pins when a Route is Active */
.pin-seq-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  color: #06030f;
  font-size: 10px;
  font-weight: 900;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.85);
  z-index: 20;
}

.start-origin-pin {
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  color: #070312;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.95);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Below-Map Ordered Route Summary Strip (Hidden Until Route Built — Zero Clutter on Map) */
.generated-route-panel {
  max-width: 1320px;
  margin: -12px auto 26px;
  padding: 0 16px;
  display: none;
}

.generated-route-panel.active {
  display: block;
}

.grp-card {
  background: linear-gradient(160deg, rgba(26, 13, 46, 0.96) 0%, rgba(12, 6, 24, 0.98) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 140, 36, 0.2);
}

.grp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.grp-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grp-eyebrow {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--candy-teal);
}

.grp-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff5e4;
}

.grp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grp-legs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.grp-stops-scroller {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.grp-stop-chip {
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.grp-stop-chip:hover {
  border-color: var(--candy-teal);
  transform: translateY(-1px);
}

.grp-stop-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  color: #06030f;
  font-weight: 900;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .route-count-select {
    padding: 7px 6px;
    font-size: 0.74rem;
  }
  .route-custom-num {
    width: 48px;
    padding: 6px 5px;
    font-size: 0.74rem;
  }
  .generated-route-panel {
    padding: 0 10px;
    margin-top: -6px;
  }
  .grp-card {
    padding: 12px 12px;
  }
  .grp-title {
    font-size: 0.98rem;
  }
  .grp-stops-scroller {
    grid-template-columns: 1fr;
    max-height: 210px;
  }
}
