:root {
  --accent: #d4af37;
  --accent-secondary: #e63946;
}

body {

  margin: 0;

  font-family: Arial, sans-serif;

  background: #0b0b0f;

  color: #ffffff;

}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 11, 15, 0.95);
  border-bottom: 1px solid #222;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  text-align: left;
  margin-bottom: 0;
}

.site-bar__home {
  display: inline-block;
  line-height: 0;
}

.site-bar__home:hover {
  opacity: 0.85;
}

.site-bar__logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0;
}





.container {

  max-width: 900px;

  margin: 0 auto;

  padding: 40px 20px;

}







header:not(.site-bar) {

  text-align: center;

  margin-bottom: 40px;

}







.logo {

  width: min(480px, 95%);

  max-width: 95%;

  display: block;

  margin: 0 auto 25px auto;

}

/* Prevent landing-page logo styles from affecting the top bar */
.site-bar .logo,
.site-bar__logo {
  width: auto;
  max-width: 280px;
  height: 72px;
  max-height: 72px;
  margin: 0;
}







h1 {

  font-size: 42px;

  letter-spacing: 2px;

  margin-bottom: 10px;

}







.tagline {

  color: #aaaaaa;

  font-size: 18px;

}



.slogan {

  color: #ffffff;

  font-weight: bold;

  letter-spacing: 2px;

}







.card {


  background: #15151d;


  padding: 25px;


  margin-bottom: 20px;


  border-radius: 10px;


}







.highlight {


  border-left: 4px solid var(--accent, #ff2d2d);


}







.button {


  display: inline-block;


  margin-top: 10px;


  padding: 12px 20px;


  background: #5865F2;


  color: white;


  text-decoration: none;


  border-radius: 6px;


  font-weight: bold;


}







.button:hover {


  opacity: 0.85;


}







.button.secondary {
  background: var(--accent, #ff2d2d);


}







footer {


  text-align: center;


  margin-top: 40px;


  color: #666;


  font-size: 12px;


}

.logo-small {
  width: 240px;
}

.join-card {
  padding: 30px;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.join-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.hint {
  color: #aaaaaa;
  line-height: 1.5;
}

.hint-small {
  font-size: 13px;
  margin-top: 12px;
}

.join-button {
  margin-top: 16px;
  font-size: 16px;
  padding: 14px 24px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.link-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #cccccc;
  word-break: break-all;
}

.button-copy {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.button-copy:hover {
  background: #333;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0 12px;
}

.qr-image {
  display: block;
  width: 256px;
  height: 256px;
}

.download-qr {
  margin-top: 0;
}

.join-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.back-link {
  text-align: center;
  margin: 24px 0;
}

.back-link a {
  color: #5865F2;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

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

  .qr-panel {
    order: -1;
  }
}

/* ——— Calendar ——— */

.container--wide {
  max-width: 1200px;
}

.cal-page-header {
  text-align: center;
  margin-bottom: 24px;
}

.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cal-nav__label {
  min-width: 160px;
  font-size: 18px;
}

.cal-nav__btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: bold;
}

.cal-nav__btn:hover {
  background: #333;
}

.cal-nav__btn--today {
  background: #5865F2;
  border-color: #5865F2;
}

.cal-nav__btn--today:hover {
  background: #4752c4;
}

.cal-status {
  text-align: center;
  opacity: 0.7;
  font-size: 13px;
  margin-top: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.cal-head {
  background: #222;
  text-align: center;
  font-weight: bold;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px;
}

.cal-day {
  background: #15151d;
  border-radius: 8px;
  min-height: 130px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  border: 1px solid #222;
}

.cal-day--empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.cal-day--today {
  border-color: #5865F2;
  box-shadow: inset 0 0 0 1px #5865F2;
}

.cal-day__num {
  font-weight: bold;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cal-day__count {
  background: #5865F2;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}

.cal-day__events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 220px;
}

.event-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 68px;
  flex-shrink: 0;
}

.event-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.event-card--ride .event-card__overlay {
  background: linear-gradient(to bottom, rgba(80, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card--event .event-card__overlay {
  background: linear-gradient(to bottom, rgba(30, 35, 100, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card__content {
  position: relative;
  z-index: 1;
  padding: 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1.35;
  min-height: 68px;
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__sponsor {
  opacity: 0.9;
  font-size: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__details {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.event-card__details:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-panel {
  position: relative;
  background: #15151d;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-badge--ride {
  background: #ff2d2d;
  color: #fff;
}

.modal-badge--event {
  background: #5865F2;
  color: #fff;
}

.modal-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.modal-sponsor {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.modal-flyer {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.detail-row dt {
  color: #888;
  font-weight: bold;
}

.detail-row dd {
  margin: 0;
  word-break: break-word;
}

.detail-row a {
  color: #5865F2;
}

@media (max-width: 900px) {
  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    min-height: 100px;
  }

  .cal-day__events {
    max-height: 160px;
  }

  .event-card {
    min-height: 58px;
  }

  .event-card__content {
    min-height: 58px;
  }
}

@media (max-width: 600px) {
  .cal-head {
    font-size: 11px;
    padding: 8px 2px;
  }

  .cal-day__num {
    font-size: 11px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Legal & policy pages */
.legal-nav {
  margin: 20px 0;
  padding: 16px;
  background: #15151c;
  border-radius: 8px;
  border: 1px solid #333;
}

.legal-nav a {
  display: block;
  color: #e63946;
  margin: 8px 0;
  text-decoration: underline;
}

.legal-hub-section {
  margin-bottom: 28px;
}

.legal-hub-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.doc-link {
  display: block;
  margin: 10px 0;
  padding: 12px 16px;
  background: #15151c;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.doc-link:hover {
  border-color: #e63946;
}

.doc-link small {
  display: block;
  color: #aaa;
  margin-top: 4px;
  font-size: 13px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #333;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

/* ——— Destinations map ——— */

.container--map {
  max-width: 1200px;
}

#destinationsMap {
  height: min(70vh, 640px);
  width: 100%;
  border-radius: 10px;
  border: 1px solid #333;
  z-index: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 16px 0;
  font-size: 14px;
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-pin__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #2ecc71;
  border: 2px solid #fff;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.map-pin__inner--gold {
  background: linear-gradient(135deg, #ffd700, #c9a227);
  color: #111;
  font-weight: bold;
  transform: rotate(-45deg);
}

.map-pin--rider .map-pin__inner span,
.map-pin--rider .map-pin__inner {
  transform: rotate(-45deg);
}

.map-pin__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.map-popup__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.map-popup__badge--rider { color: #2ecc71; }
.map-popup__badge--sponsored { color: #ffd700; }

.map-popup__meta {
  color: #888;
  font-size: 12px;
}

.map-status {
  color: #aaa;
  font-size: 14px;
  margin-top: 8px;
}

/* ——— Brand portal ——— */

.portal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.portal-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #15151c;
  color: #ccc;
  cursor: pointer;
  font-weight: 600;
}

.portal-tab.is-active {
  border-color: #c9a227;
  color: #ffd700;
  background: #1a1810;
}

.portal-panel[hidden] {
  display: none !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

.data-table th,
.data-table td {
  border: 1px solid #333;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #16161c;
  color: #c9a227;
}

.status-active { color: #2ecc71; font-weight: 600; }
.status-expired { color: #e74c3c; }
.status-pending { color: #f1c40f; }

.template-block {
  background: #0f0f14;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.template-block label {
  display: block;
  font-weight: 600;
  color: #c9a227;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-block textarea {
  width: 100%;
  min-height: 72px;
  background: #15151c;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #222;
  color: #eee;
  cursor: pointer;
  font-size: 13px;
}

.btn-sm--gold {
  background: #c9a227;
  color: #111;
  border-color: #c9a227;
  font-weight: 600;
}

.poc-card {
  background: #0f0f14;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
}

.poc-card h4 {
  margin: 0 0 4px;
  color: #ffd700;
}

.poc-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #bbb;
}

.access-box {
  border: 1px dashed #555;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.access-box .button {
  margin-top: 12px;
}

.admin-hint {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}


.legal-table th {
  background: #15151c;
}