/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* Layout */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
}

/* ================= HEADER ================= */
.site-header,
header {
  background-color: #000;
}

.site-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 1rem;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #fff;
}

/* Footer */
.site-footer {
  background: #e5e7eb;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
}

/* Headings */
h2 {
  margin-top: 0;
}

h3 {
  margin-top: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

/* Form */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

form textarea {
  resize: vertical;
}

/* Inline fields */
.inline {
  display: flex;
  gap: 1rem;
}

.inline input {
  flex: 1;
}

/* Buttons */
button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover {
  background: #1d4ed8;
}

button[type="button"] {
  background: #6b7280;
}

button[type="button"]:hover {
  background: #4b5563;
}

/* Errors */
ul {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
}

ul li {
  color: #991b1b;
}
/* =========================
   Community Comments (FORCED)
   ========================= */

.community-find-page .comment-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.community-find-page .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.community-find-page .comment-user {
  font-weight: 600;
  color: #111827;
}

.community-find-page .comment-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.community-find-page .comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
}

.community-find-page .comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.community-find-page .comment-form button {
  margin-top: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.community-find-page .comment-form button:hover {
  background: #1e40af;
}

.comment {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-header {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.replying-to {
  color: #6b7280;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.reply-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.8rem;
  cursor: pointer;
}
.comment-card.is-reply {
  margin-left: 2rem;
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
}


/* =========================
   Image upload preview
   ========================= */

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-preview-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* =========================
   Find image thumbnails
   ========================= */

.find-image-grid {
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.find-thumb {
  width: 100%;
  max-height: 300px;
  object-fit: contain;   /* show full image */
  background: #f3f4f6;   /* neutral background for letterboxing */
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

.find-thumb:hover {
  transform: scale(1.03);
}

/* =========================
   Gallery modal (NOT fullscreen)
   ========================= */

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  background: #fff;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

.gallery-nav:hover {
  background: rgba(0,0,0,0.7);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem;
}

/* Responsive fallbacks */
@media (max-width: 1400px) {
  .community-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.community-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.community-thumb {
  width: 100%;
  max-height: 300px;
  object-fit: contain;   /* show full image */
  background: #f3f4f6;   /* neutral background for letterboxing */
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

.community-content {
  padding: 1rem;
}

.community-content h3 {
  margin-top: 0;
}

.view-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

.community-meta {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

.comment-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}


.avatar-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 300px;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
}

.comment-avatar img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.comment-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.comment-user {
  font-weight: 600;
}

.comment-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: auto;
}


.comment-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.comment-profile-link:hover .comment-user {
  text-decoration: underline;
}

/* Profile page */
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.comment-reply {
  margin-left: 1.5rem;
  border-left: 2px solid #e5e7eb;
  padding-left: 0.75rem;
  margin-top: 0.5rem;
}

.reply-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  margin-top: 0.25rem;
}

.reply-btn:hover {
  text-decoration: underline;
}

.reply-form textarea {
  width: 100%;
  min-height: 60px;
}


.dashboard-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.dashboard-profile {
  width: 260px;
}

.dashboard-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.dashboard-chart {
  flex: 1;
  max-width: 520px;      /* limits width */
  max-height: 260px;     /* limits height */
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
}
.dashboard-chart canvas {
  max-height: 220px !important;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-profile {
    width: auto;
  }
}

.dashboard-chart h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.dashboard-chart canvas {
  width: 100% !important;
  height: 200px !important;
}

.detector-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.detector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detector-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
}

.detector-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.profile-avatar-preview {
  width: 80px;        /* change this */
  height: 80px;       /* change this */
  object-fit: cover;  /* prevents distortion */
  border-radius: 50%;
  margin-top: 0.5rem;
}

/* =========================
   DASHBOARD GRID – DESKTOP
   ========================= */
.dashboard-chart-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

/* Stats block */
.dashboard-stats {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.dashboard-stats h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Stats list */
.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.stats-list li:last-child {
  border-bottom: none;
}

.stat-label {
  color: #374151;
}

.stat-count {
  font-weight: 600;
  color: #111827;
}

/* Empty state */
.stats-empty {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Charts */
.dashboard-chart {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  height: 260px;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-chart-group {
    grid-template-columns: 1fr;
  }
}

.find-type-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.find-type-stats li {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.find-type-stats .stat-label {
  color: #374151;
}

.find-type-stats .stat-count {
  font-weight: 600;
  color: #111827;
}



/* Stack cards on smaller screens */
@media (max-width: 900px) {
  .dashboard-chart-group {
    grid-template-columns: 1fr;
  }
}

/* Individual cards */
.dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Card headings */
.dashboard-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Chart wrapper – REQUIRED for Chart.js */
.chart-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;   /* adjust to taste */
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .chart-wrap {
    max-width: 180px;
    height: 180px;
  }
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Find stats list */
.find-type-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.find-type-stats li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid #eee;
}

.find-type-stats li:last-child {
  border-bottom: none;
}

.stat-label {
  color: #374151;
}

.stat-count {
  font-weight: 600;
  color: #111827;
}

.stats-empty {
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================
   Find Stats card override
   ========================= */
.dashboard-stats-card {
  background-color: #ffffff !important;
}
.community-top-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.community-column {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
}

/* Mobile stack */
@media (max-width: 768px) {
  .community-top-columns {
    grid-template-columns: 1fr;
  }
}
.top-detectorist {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.rank {
  font-weight: bold;
  color: #9ca3af;
}

.detectorist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.detectorist-name {
  text-decoration: none;
  font-weight: 500;
}

.detectorist-count {
  font-weight: bold;
}
.reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  padding: 0.3rem 0.8rem;
  margin-top: 0.5rem;

  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;

  cursor: pointer;
  user-select: none;

  position: relative;
  z-index: 5;
}

.reply-btn::before {
  content: "↩";
  font-size: 0.75rem;
  opacity: 0.7;
  pointer-events: none;
}

/* ==================================================
   CLUB PAGE STYLES (FIXED & CLEAN)
   ================================================== */

/* Banner container */
.club-banner {
  position: relative;          /* anchor for logo */
  width: 100%;
  max-width: 1600px;
  height: 350px;

  margin: 0 auto 2rem auto;
  box-sizing: border-box;
}

/* Banner image */
.club-banner-img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;           /* crop image */
  object-position: top;        /* crop bottom */

  border-radius: 6px;
}

/* Logo overlay – bottom left ON the banner */
.club-logo {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 10;

  width: 80px;
  height: 80px;

  background: #ffffff;
  padding: 4px;
  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Club header spacing */
.club-header {
  padding-left: 1.5rem;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 768px) {
  .club-banner {
    height: 220px;
  }

  .club-logo {
    width: 64px;
    height: 64px;
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

/* =========================
   CLUB EVENTS GRID
   ========================= */

.club-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Event card */
.club-event {
  display: flex;
  flex-direction: column;

  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;

  padding: 1rem;
}

/* Event image */
.event-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* Event content */
.event-content h3 {
  margin: 0 0 0.25rem;
}

.event-date {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .club-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .club-events-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BUY TICKET BUTTON
   ========================= */

.buy-ticket-btn {
  margin-top: 0.75rem;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.buy-ticket-btn:hover {
  background: #15803d;
}

.sold-out {
  margin-top: 0.75rem;
  color: #dc2626;
  font-weight: 600;
}
.sales-closed {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* =========================
   COMMUNITY CLUBS
   ========================= */

.community-clubs {
  margin-bottom: 2rem;
}

.community-clubs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.community-club-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;

  text-decoration: none;
  color: inherit;
}

.community-club-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.club-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.club-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.club-next-event {
  font-size: 0.85rem;
  color: #374151;
}

.club-next-event.muted {
  color: #9ca3af;
}

/* Club card layout */
.community-club-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo */
.club-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Info block */
.club-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Name row */
.club-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.club-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Event text */
.club-next-event {
  font-size: 0.8rem;
  color: #374151;
}

.club-next-event.muted {
  color: #9ca3af;
}

.profile-socials {
  margin-top: 1.5rem;
}

.social-links {
  list-style: none;
  background: transparent !important;
  padding: 0;
  margin: 0.5rem 0 0;
}

.profile-socials {
  margin-top: 1.5rem;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.social-links li {
  margin-bottom: 0.5rem;
}

/* Social link pill */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.45rem 0.75rem;
  background: #f1f5f9;            /* 🔑 light background */
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 500;
  color: #2563eb;

  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  background: #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-decoration: none;
}

.social-icon {
  font-size: 1.1rem;
}

.social-label {
  font-size: 0.9rem;
}

.follow-form {
  margin-top: 0.5rem;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* =========================
   DASHBOARD GRID – 4 COLUMNS
   ========================= */

.dashboard-chart-group {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Dashboard cards */
.dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Chart container – MUST be square */
.chart-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* 🔑 keeps pie round */
}

/* Canvas fills square */
.chart-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile stack */
@media (max-width: 900px) {
  .dashboard-chart-group {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOLLOWING LIST
   ========================= */

.following-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.following-item {
  margin-bottom: 0.5rem;
}

.following-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;

  transition: background 0.15s ease;
}

.following-link:hover {
  background: #f1f5f9;
}

.following-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.following-name {
  font-size: 0.85rem;
  font-weight: 500;
}
/* ================= HEADER ================= */
.site-header {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  width: 60%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

@media (max-width: 1024px) {
  .header-inner {
    width: 90%;
  }
}

/* ================= NAV ================= */
.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* ================= HAMBURGER ================= */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.8rem 1.5rem;
    width: 100%;
  }
}
.dashboard-map {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.map-preview-link {
  display: block;
}
/* ==================================================
   DASHBOARD GRID – FINAL OVERRIDE (5 COLUMNS)
   ================================================== */

/* Force dashboard to ALWAYS use 5 equal-width columns */
.dashboard-chart-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Allow cards to shrink inside grid */
.dashboard-chart-group > .dashboard-card {
  min-width: 0;
}

/* Prevent internal content from forcing width */
.following-list,
.find-type-stats {
  width: 100%;
  overflow: hidden;
}

.following-link {
  min-width: 0;
}

.following-name,
.stat-label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile stack */
@media (max-width: 900px) {
  .dashboard-chart-group {
    grid-template-columns: 1fr;
  }
}

/* =========================
   IMAGE GALLERY MODAL
   ========================= */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0 1rem;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

/* Thumbnails */
.find-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.find-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
}

/* =========================
   HARD RESET FOR ADMIN IMAGE FORMS
   ========================= */

/* Kill the form box completely */
.club-image-actions form {
  display: inline-flex !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Kill label box completely */
.club-image-actions label {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex !important;
}

/* The actual visible button */
.club-image-btn {
  padding: 6px 10px !important;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.75);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

/* Logo button variant */
.club-image-btn--logo {
  background: rgba(30,102,208,0.85);
}

.club-image-btn:hover {
  background: rgba(0,0,0,0.9);
}

.club-image-btn--logo:hover {
  background: rgba(30,102,208,1);
}
