:root {
  --bg: #111013;
  --bg-elev: #1c1a20;
  --bg-soft: #25222b;
  --text: #f2f1f4;
  --muted: #b8b4c2;
  --line: #3a3545;
  --brand: #fc9f5b;
  --brand-2: #42d4b4;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 700px at 10% -20%, #3f2f2b 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% -10%, #1e3a3a 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(circle at 20% 20%, #fff 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.age-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 8, 11, 0.86);
  z-index: 20;
  padding: 1rem;
}

.age-gate-open {
  display: flex;
}

.age-gate-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 26, 32, 0.95);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.container {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0 0.4rem;
}

.brand {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: var(--text);
}

.hero {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(252, 159, 91, 0.12), rgba(66, 212, 180, 0.08));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero p {
  color: var(--muted);
  max-width: 70ch;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(130deg, var(--brand), #ffbf80);
  color: #20160f;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.discover {
  margin-top: 1.2rem;
}

.filters-card,
.map-card,
.list-card,
.learn article,
.wholesale-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 26, 32, 0.85);
  backdrop-filter: blur(6px);
}

.filters-card {
  padding: 1.1rem;
}

.muted {
  margin-top: 0.35rem;
  color: var(--muted);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

label a {
  color: var(--brand-2);
}

select,
input[type="checkbox"] {
  accent-color: var(--brand);
}

select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.55rem 0.6rem;
  font-family: inherit;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  margin-top: 1.5rem;
}

.result-count {
  margin-top: 0.9rem;
  color: var(--brand-2);
  font-weight: 600;
}

.map-list-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.8rem;
}

.map-card,
.list-card {
  min-height: 430px;
  overflow: hidden;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.95rem 0;
}

.map-header span {
  color: var(--muted);
  font-size: 0.85rem;
}

.map-canvas {
  position: relative;
  margin: 0.8rem;
  height: 360px;
  border-radius: 14px;
  background: var(--bg-soft);
  overflow: hidden;
}

/* Mapbox Customizations */
.map-marker {
  width: 22px;
  height: 22px;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-marker:hover,
.map-marker.active {
  background: var(--brand-2);
  transform: scale(1.3);
  z-index: 5;
}

.map-popup h4 {
  margin: 0 0 4px 0;
  font-family: "Syne", sans-serif;
  color: #111013;
}

.map-popup p {
  margin: 0;
  font-size: 0.85rem;
  color: #444;
}

.mapboxgl-popup-content {
  border-radius: 12px !important;
  padding: 12px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

.venue-list {
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
  max-height: 430px;
  overflow: auto;
}

.venue-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(17, 16, 19, 0.75);
  cursor: pointer;
}

.venue-item:hover {
  border-color: var(--brand-2);
}

.venue-item.active {
  border-color: var(--brand);
}

.detail-card {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 26, 32, 0.85);
  padding: 1rem;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.detail-sub {
  color: var(--muted);
  margin-top: 0.35rem;
}

.detail-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.detail-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(17, 16, 19, 0.65);
}

.detail-col h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--brand-2);
}

.detail-col ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reviews {
  margin-top: 0.8rem;
}

.review-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.55rem 0;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  background: rgba(17, 16, 19, 0.65);
}

.review-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.review-form,
.rfq-form {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.6rem;
}

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.6rem;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.55rem 0.6rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.venue-meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  color: var(--muted);
}

.learn,
.wholesale,
.analytics,
.legal {
  margin-top: 1.2rem;
}

.section-heading {
  margin-bottom: 0.8rem;
}

.learn-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 26, 32, 0.85);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.learn-card h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.article-body h2 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
.article-body p { margin-bottom: 1rem; line-height: 1.6; color: var(--muted); }

.learn-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learn article,
.wholesale-card {
  padding: 1rem;
}

.learn p,
.wholesale p {
  color: var(--muted);
}

.rfq-form {
  margin-top: 0.8rem;
}

.kpi-grid,
.legal-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-item,
.legal article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 26, 32, 0.85);
  padding: 1rem;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.kpi-value {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  margin-top: 0.4rem;
}

.kpi-sub {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  margin: 1.4rem auto 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 500ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 100ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 180ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 260ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .map-list-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .hero {
    padding: 1.3rem;
  }

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

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

  .checkbox {
    margin-top: 0.2rem;
  }
}
