:root {
  --bg-main: #11130E;
  --bg-card: #1A1C15;
  --bg-card-hover: #22251D;

  --accentMain: #379392;
  --accentGold: #D8B67F;

  --textWhite: rgba(255, 255, 255, 0.90);
  --textMuted: rgba(255, 255, 255, 0.55);
  --borderDim: rgba(255, 255, 255, 0.08);
  --borderHighlight: #379392;
}

html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background-color: var(--bg-main); color: var(--textWhite); }

@keyframes pulse-border {
  0%, 100% { border-color: rgba(55, 147, 146, 0.6); }
  50%      { border-color: rgba(55, 147, 146, 0.1); }
}
.construction-banner { animation: pulse-border 2s infinite; }

.accent-bar { width: 40px; height: 4px; background: var(--accentMain); margin-bottom: 8px; }

.navlink {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--textMuted);
  transition: color 140ms ease;
  text-decoration: none;
}
.navlink:hover { color: var(--textWhite); }
.navlink--active { color: var(--textWhite); }

.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 12px;
  align-items: start;
  border: 1px solid var(--borderDim);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
}

.controls__left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.controls__right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.control-input,
.control-select {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-main);
  color: var(--textWhite);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: all 140ms ease;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.control-input { width: 100%; }

.control-input::placeholder {
  color: var(--textMuted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
}

.control-input:focus,
.control-select:focus {
  border-color: var(--accentMain);
  background-color: var(--bg-card-hover);
  box-shadow: 0 0 15px rgba(55, 147, 146, 0.15);
}

.control-select {
  min-width: 220px;
  width: 220px;
  height: 42px;
  padding: 0 14px;
  line-height: 42px;
  white-space: nowrap;
}

.controls__location {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.control-input--zip {
  width: 140px;
  min-width: 140px;
}

.control-select--radius {
  min-width: 110px;
  width: 110px;
}

.nearby-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--borderDim);
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--textMuted);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nearby-toggle input {
  margin: 0;
  accent-color: var(--accentMain);
}

.chip-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  max-width: 100%;
}

.chip {
  border: 1px solid var(--borderDim);
  background: var(--bg-main);
  color: var(--textMuted);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 140ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { color: var(--textWhite); border-color: rgba(255, 255, 255, 0.2); }
.chip--active,
.chip[aria-selected="true"] {
  background: rgba(55, 147, 146, 0.15);
  border-color: var(--accentMain);
  color: var(--textWhite);
}

.meta-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.meta-row__left, .meta-row__right { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.meta-text {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--textMuted);
}

@media (max-width: 720px) {
  .controls { grid-template-columns: 1fr; }

  .controls__right {
    grid-column: 1;
    grid-row: 2;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .chip-row {
    grid-column: 1;
    grid-row: 3;
  }

  .control-select,
  .control-input--zip,
  .control-select--radius {
    width: 100%;
    min-width: 0;
  }

  .controls__location > .load-more,
  .controls__location > .nearby-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* Nearby Paleo Places — distinct visual system */
.nearby-places-shell {
  margin-bottom: 20px;
}

.nearby-places-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 147, 146, 0.45);
  background:
    radial-gradient(circle at top right, rgba(55, 147, 146, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(55, 147, 146, 0.10), rgba(0, 0, 0, 0.08)),
    #141812;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(55, 147, 146, 0.08) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.nearby-places-panel__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(55,147,146,0.0) 0%, rgba(55,147,146,0.08) 20%, rgba(216,182,127,0.08) 100%);
  opacity: 0.9;
}

.nearby-places-panel__header {
  position: relative;
  padding: 20px 22px 16px 22px;
  border-bottom: 1px solid rgba(55, 147, 146, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
}

.nearby-places-panel__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.nearby-signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accentMain);
  box-shadow: 0 0 0 6px rgba(55, 147, 146, 0.14);
}

.nearby-kicker-text {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.nearby-places-panel__title {
  margin: 0 0 8px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.05;
  color: var(--textWhite);
}

.nearby-places-panel__sub {
  margin: 0;
  max-width: 72ch;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.6;
  font-family: "Roboto Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nearby-places-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

@media (min-width: 900px) {
  .nearby-places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nearby-places-panel .card {
  border-color: rgba(55, 147, 146, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0)),
    #171B15;
}

.nearby-places-panel .card:hover {
  border-color: rgba(55, 147, 146, 0.55);
  background:
    linear-gradient(180deg, rgba(55,147,146,0.06), rgba(0,0,0,0)),
    #1C211A;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.28),
    0 0 0 1px rgba(55,147,146,0.08) inset;
}

.nearby-places-panel .card__stub {
  background:
    linear-gradient(180deg, rgba(55,147,146,0.18), rgba(0,0,0,0.10)),
    rgba(0,0,0,0.16);
  border-right: 2px dashed rgba(55, 147, 146, 0.22);
}

.nearby-places-panel .stub-month {
  color: #8ED8D6;
}

.nearby-places-panel .badge--event {
  background: rgba(216, 182, 127, 0.12);
  border-color: rgba(216, 182, 127, 0.42);
  color: #FFE0B2;
}

.featured-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.featured-card {
  border: 1px solid rgba(216, 182, 127, 0.25);
  background: linear-gradient(180deg, rgba(216,182,127,0.08), rgba(0,0,0,0));
  border-radius: 14px;
  overflow: hidden;
}
.featured-card__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px;
  position: relative;
}
.featured-rail {
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: var(--accentGold);
  opacity: 0.9;
}
.featured-topline {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.featured-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
}
.featured-sub {
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.6;
}
.featured-meta {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 6px;
}
.kv {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.kv strong { color: var(--textWhite); font-weight: 700; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 900px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--borderDim);
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--borderHighlight);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card__stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 96px;
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 2px dashed rgba(255, 255, 255, 0.15);
  text-align: center;
}

.stub-month {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accentMain);
  text-transform: uppercase;
  font-weight: 700;
}
.stub-day {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: var(--textWhite);
  margin: 4px 0;
}
.stub-year {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--textMuted);
  margin-bottom: 12px;
}

.badge {
  display:inline-flex;
  align-items:center;
  font-family:"Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--borderDim);
  font-weight: 700;
}
.badge--exhibit    { background: rgba(55, 147, 146, 0.10); border-color: rgba(55, 147, 146, 0.4); color: #80CBC4; }
.badge--event      { background: rgba(90, 120, 255, 0.10); border-color: rgba(90, 120, 255, 0.35); color: #B3C6FF; }
.badge--tour       { background: rgba(93, 156, 89, 0.10); border-color: rgba(93, 156, 89, 0.4); color: #A5D6A7; }
.badge--opening    { background: rgba(216, 182, 127, 0.10); border-color: rgba(216, 182, 127, 0.4); color: #FFE0B2; }
.badge--traveling  { background: rgba(156, 39, 176, 0.10); border-color: rgba(156, 39, 176, 0.4); color: #CE93D8; }
.badge--lecture    { background: rgba(255, 193, 7, 0.08); border-color: rgba(255, 193, 7, 0.25); color: #FFE082; }
.badge--closing    { background: rgba(210, 102, 102, 0.10); border-color: rgba(210, 102, 102, 0.4); color: #EF9A9A; }

.card__body {
  padding: 16px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--textWhite);
}

.venue-line {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 10px;
}
.venue-line span { color: var(--textMuted); }

.desc {
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.card__links { display:flex; gap:16px; flex-wrap:wrap; margin-top: auto; }
.link {
  font-family:"Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accentMain);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 140ms ease, color 140ms ease;
}
.link:hover { opacity: 0.8; color: var(--textWhite); }
.link--muted { color: var(--textMuted); }
.link--muted:hover { color: var(--accentMain); }

.load-more {
  border: 1px solid var(--borderDim);
  background: var(--bg-card);
  color: var(--textWhite);
  border-radius: 12px;
  padding: 12px 16px;
  font-family:"Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 140ms ease;
  cursor: pointer;
}
.load-more:hover:not(:disabled) { border-color: var(--accentMain); background: var(--bg-card-hover); }
.load-more:disabled { cursor: not-allowed; opacity: 0.4; border-color: var(--borderDim); background: transparent; }

.detail-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--borderDim);
  border-radius: 12px;
  padding: 40px;
}

@media (max-width: 720px) {
  .detail-card {
    padding: 24px 16px;
  }

  .nearby-places-panel__title {
    font-size: 24px;
  }

  .nearby-places-panel__header {
    padding: 18px 16px 14px 16px;
  }

  .nearby-places-grid {
    padding: 14px;
  }
}
