/* ================================================================ */
/*   BTR BC AQ LEADERBOARD — MATCHES sledmain.css                   */
/* ================================================================ */

/* Root container – no new panel, just sits under “Select a location” */
#bc-aq-leaderboard {
  background: transparent;       /* let #info-panel gradient show */
  margin-top: 8px;
}

/* Inner wrapper – no extra box shadow */
#bc-aq-leaderboard .resort-lb-panel {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ----------------------------------------------------------- */
/* HEADER: Title left, [Use My Location + tabs] on the right   */
/* ----------------------------------------------------------- */
#bc-aq-leaderboard .resort-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#bc-aq-leaderboard .resort-lb-header-left {
  flex: 1 1 auto;
}

#bc-aq-leaderboard .resort-lb-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  font-family: "Montserrat", sans-serif;
}

/* Right side: locate button + tabs in one row */
#bc-aq-leaderboard .resort-lb-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Small pill-style locate button (inherits .common-toggle-btn base) */
#bc-aq-leaderboard #bc-aq-locate-btn {
  width: auto;
  margin: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}

/* Tabs group on the right */
#bc-aq-leaderboard .resort-lb-tabs {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 2px;
}

#bc-aq-leaderboard .resort-lb-tab {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  border-radius: 999px;
  cursor: pointer;
  color: #6c757d;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#bc-aq-leaderboard .resort-lb-tab:hover {
  background-color: #f8f9fa;
  color: #343a40;
}

#bc-aq-leaderboard .resort-lb-tab.active {
  background-color: #4a5a6a;   /* same slate as your main buttons */
  color: #ffffff;
}

/* Message line under header */
#bc-aq-leaderboard .resort-lb-empty {
  font-size: 11px;
  color: #777;
  margin: 2px 0 4px 0;
  font-family: "Montserrat", sans-serif;
}

/* ----------------------------------------------------------- */
/* LIST + ROWS                                                 */
/* ----------------------------------------------------------- */

#bc-aq-leaderboard .resort-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Single row card */
#bc-aq-leaderboard .resort-lb-row {
  display: flex;                       /* LEFT main + RIGHT stats inline */
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;

  background: linear-gradient(145deg, #f7f7f7, #e6e6e6);
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  padding: 6px 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

#bc-aq-leaderboard .resort-lb-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
  border-color: #c0c4c8;
}

/* Left block */
#bc-aq-leaderboard .resort-lb-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Top line: name */
#bc-aq-leaderboard .resort-lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

#bc-aq-leaderboard .resort-lb-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Middle line: distance text */
#bc-aq-leaderboard .resort-lb-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #555;
  font-family: "Montserrat", sans-serif;
}

/* Right: 24h / 3d / 7d pills in a row (desktop) */
#bc-aq-leaderboard .resort-lb-stats {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
}

/* Desktop pill: label on top, bigger value bottom */
#bc-aq-leaderboard .resort-lb-stat {
  display: flex;
  flex-direction: column;           /* label on top, value below */
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 4px 6px;
  border-radius: 10px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

#bc-aq-leaderboard .resort-lb-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
  margin-bottom: 1px;
}

#bc-aq-leaderboard .resort-lb-stat-value {
  font-size: 11px;                 /* a bit bigger */
  font-weight: 700;
  color: #2c3e50;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
}

/* Always hide when btr-hidden is on */
#bc-aq-leaderboard.btr-hidden {
  display: none;
}

/* ----------------------------------------------------------- */
/* Mobile tweak: stack stats vertically on the RIGHT           */
/* ----------------------------------------------------------- */
@media (max-width: 960px) {
  #bc-aq-leaderboard .resort-lb-row {
    align-items: center;
  }

  #bc-aq-leaderboard .resort-lb-stats {
    flex-direction: column;     /* stack 24h / 3d / 7d */
    justify-content: center;
    align-items: flex-end;      /* keep to the right side */
    gap: 4px;
    margin-top: 0;
    margin-left: auto;          /* push entire block to the right */
  }

  #bc-aq-leaderboard .resort-lb-stat {
    min-width: auto;
    padding: 2px 6px;
  }

  #bc-aq-leaderboard .resort-lb-stat-label {
    font-size: 8px;
  }

  #bc-aq-leaderboard .resort-lb-stat-value {
    font-size: 10px;
  }
}
