/* Pickleball Directory & Micro Website Builder Design System */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&family=Barlow+Condensed:wght@500;600&display=swap');

:root {
  --bg-main: #f2f2f3;
  --bg-surface: #e9e9ea;
  --text-main: #1d1f20;
  --text-muted: rgba(29, 31, 32, 0.6);
  --steel-accent: #5980a6;
  --steel-hover: #416180;
  --border-line: rgba(29, 31, 32, 0.16);
  --border-light: rgba(29, 31, 32, 0.08);
  /* Dynamic Primary Button & Accent Color (Configurable by Admin) */
  --primary-button-color: #79A659;
  --on-primary-text: #f2f2f3;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

section[id] {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(89, 128, 166, 0.3);
}

a {
  color: var(--steel-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--steel-hover);
}

.page-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.site-section {
  padding: 32px 0;
}

/* Top Announcement Banner */
.announcement-banner {
  background-color: var(--text-main);
  color: #ffffff;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Sticky Header Wrapper */
.header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(242, 242, 243, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 0;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
  margin-left: auto;
  border-radius: 4px;
}

.mobile-nav-toggle:hover {
  background: rgba(29, 31, 32, 0.05);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-line);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
  padding: 0 8px;
}

.mobile-nav-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  overflow-y: auto;
}

.mobile-nav-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-main);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s ease;
}

.mobile-nav-item:hover {
  color: var(--steel-accent);
}

.brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  margin-right: auto;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: var(--text-main);
  font-size: 14px;
}

.nav-cta, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--primary-button-color);
  color: var(--on-primary-text) !important;
  border: 1px solid var(--primary-button-color);
  border-radius: 4px;
  padding: 9px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-primary:hover, .nav-cta:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-line);
  border-radius: 4px;
  padding: 9px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(29,31,32,0.05);
}

.btn-danger {
  background-color: #dc2626;
  color: #fff !important;
  border: 1px solid #dc2626;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Reusable Pagination Styles */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--border-line, #e2e8f0);
  background: #ffffff;
  color: var(--text-main, #1d1f20);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-box:hover:not(.disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-box.active {
  background: var(--primary-button-color, #79A659);
  color: #ffffff !important;
  border-color: var(--primary-button-color, #79A659);
  font-weight: 600;
}

.page-box.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Public Card & Badge Design Tokens */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.pill-badge-accent {
  background: var(--steel-accent, #79A659);
  color: #ffffff;
  border-color: var(--steel-accent, #79A659);
  font-weight: 600;
}

.pill-badge-more {
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
  border-color: #cbd5e1;
}

.card-footer-socials {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-line, #e2e8f0);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Section & Carousel (Fixed 1150x270 Dimension) */
.hero-slider-container {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin: 20px auto 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: #0f172a;
  width: 100%;
  max-width: 1150px;
  aspect-ratio: 1150 / 270;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
}

.hero-slide-item {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  overflow: hidden;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 5;
  background: rgba(14, 18, 22, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 6px;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(14, 18, 22, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-slider-container:hover .hero-nav-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-nav-arrow:hover {
  background: rgba(14, 18, 22, 0.85);
  border-color: #ffffff;
}

.hero-nav-arrow.prev { left: 16px; }
.hero-nav-arrow.next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero-slider-container:hover .hero-dots {
  opacity: 1;
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: #a3e635;
  transform: scale(1.25);
}

/* Hero Section (Original 2-Column Handoff Layout) */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 16px 0 36px;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-accent);
  margin-bottom: 14px;
}

.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--text-main);
}

.hero-body {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.8;
  color: var(--text-main);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-image-card {
  position: relative;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: var(--bg-main);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.corner-plus {
  position: absolute;
  width: 11px;
  height: 11px;
}
.corner-plus::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(29,31,32,0.55);
}
.corner-plus::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(29,31,32,0.55);
}

.stat-box-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 12px;
  color: rgba(29, 31, 32, 0.6);
  margin-top: 2px;
}

/* Directory Section Header & Segmented Filters */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0;
}

.segmented-filter {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: 4px;
}

.segmented-btn {
  padding: 8px 16px;
  font-size: 13px;
  background: transparent;
  color: var(--text-main);
  border: none;
  cursor: pointer;
  border-left: 1px solid var(--border-line);
}

.segmented-btn:first-child {
  border-left: none;
}

.segmented-btn.active {
  background-color: var(--primary-button-color);
  color: var(--on-primary-text);
}

/* Open Play Filter Bar & Day Pills */
.openplay-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.openplay-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.day-pills-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.day-pill {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 16px;
  border: 1px solid var(--border-line);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.day-pill:hover {
  border-color: var(--primary-button-color);
  color: var(--primary-button-color);
}

.day-pill.active {
  background: var(--primary-button-color);
  color: var(--on-primary-text);
  border-color: var(--primary-button-color);
  font-weight: 600;
}

/* Mobile responsive horizontal swipe container */
@media (max-width: 768px) {
  .openplay-controls-wrapper {
    align-items: stretch;
    width: 100%;
  }
  .segmented-filter {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .segmented-filter::-webkit-scrollbar {
    display: none;
  }
  .segmented-btn {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
  }
  .day-pills-bar {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 6px;
  }
  .day-pills-bar::-webkit-scrollbar {
    display: none;
  }
}

/* Card Grids (5 Cards Per Row Desktop) */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}

.card-item {
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-item:hover {
  border-color: var(--steel-accent);
}

.card-img-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-city {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-address {
  font-size: 13px;
  opacity: 0.75;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.popover-wrapper {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.popover-content {
  display: none;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 0 !important;
  transform: none !important;
  background: #ffffff;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  font-size: 12px;
  width: max-content;
  max-width: 220px;
  z-index: 99999 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

.popover-wrapper:hover .popover-content,
.popover-wrapper:focus-within .popover-content {
  display: block !important;
  opacity: 1 !important;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  display: inline-flex;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
}

.tag-info {
  background: #eef6ff;
  color: #2c455d;
}

.tag-neutral {
  background: #f5f5f8;
  color: #424244;
}

.amenities-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(29, 31, 32, 0.55);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.amenity-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.amenity-off {
  display: none !important;
}

/* Tables for Open Play & Tournaments */
.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.directory-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(29,31,32,0.6);
  padding: 10px;
  border-bottom: 1px solid var(--border-line);
}

.directory-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-light);
}

.tbl-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

/* Coaches Grid (5 Cards Per Row Desktop) */
.grid-4col-hairline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: transparent;
  border: none;
}

.coach-cell {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.coach-cell:hover {
  border-color: var(--steel-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.coach-avatar-box {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coach-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sponsor Strip */
.grid-5col-sponsors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sponsor-cell {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-line);
  background: repeating-linear-gradient(135deg, rgba(89,128,166,0.06) 0px, rgba(89,128,166,0.06) 2px, transparent 2px, transparent 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  color: rgba(29,31,32,0.45);
  text-decoration: none;
  overflow: hidden;
}

.sponsor-logo-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Pagination */
.pagination-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-line);
  font-size: 13px;
  color: var(--text-main);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-box.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.page-box.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-box.active {
  background: var(--primary-button-color);
  border-color: var(--primary-button-color);
  color: var(--on-primary-text);
}

/* Dashboard & Form Layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 32px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 4px;
  color: var(--text-main);
  border: 1px solid transparent;
}

.sidebar-item:hover, .sidebar-item.active {
  background: #ffffff;
  border-color: var(--border-line);
  font-weight: 600;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  padding: 24px;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background: var(--bg-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--steel-accent);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Infinite Sponsor Ticker Carousel (Shared Component) */
.sponsor-ticker-section {
  background: #ffffff;
  border: 1px solid var(--border-line, #e2e8f0);
  border-radius: 12px;
  padding: 8px 0;
  margin: 16px auto;
  max-width: 1140px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

#sponsors.site-section {
  padding: 8px 0;
}

/* Shared Dashboard Pop-Up Modal Component Overlay */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Image Upload & Live Preview Component */
.img-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed var(--border-line, #cbd5e1);
  border-radius: 6px;
}

.img-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border-line, #cbd5e1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.img-preview-meta {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  word-break: break-all;
}

.img-preview-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.sponsor-ticker-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.sponsor-ticker-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.sponsor-marquee-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sponsor-marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: sponsorMarquee 35s linear infinite;
}

.sponsor-marquee-track:hover {
  animation-play-state: paused;
}

.sponsor-ticker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sponsor-ticker-item img {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 200px !important;
  object-fit: contain !important;
  opacity: 1;
  transition: transform 0.2s ease;
}

.sponsor-ticker-item:hover img {
  transform: scale(1.08);
}

@keyframes sponsorMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border-line);
  margin-top: 32px;
  font-size: 13px;
  opacity: 0.7;
}

/* Medium Screen / Laptop Responsive Grid Adapter */
@media (max-width: 1150px) and (min-width: 769px) {
  .grid-3col,
  .grid-4col-hairline {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}

/* Mobile & Small Screen Media Queries */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px !important;
  }

  section[id] {
    scroll-margin-top: 70px !important;
  }

  .desktop-nav-links {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
  }

  .page-container {
    padding: 0 14px 48px !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 0 16px !important;
  }

  .hero-slider-container {
    margin: 14px 0 10px !important;
    border-radius: 6px !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: calc(100vw - 28px) !important;
  }

  .hero-slide-item {
    height: 100% !important;
    min-height: 100% !important;
  }

  .hero-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .hero-h1 {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }

  .hero-body {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-nav-arrow {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .hero-nav-arrow.prev { left: 8px !important; }
  .hero-nav-arrow.next { right: 8px !important; }

  .hero-dots {
    bottom: 12px !important;
    right: 14px !important;
  }

  .btn-hero-secondary {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  .stat-box-row {
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-top: 20px !important;
    padding-top: 14px !important;
  }

  /* 2 Cards Per Row on Mobile for ALL Card Sections */
  .grid-3col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .card-item {
    position: relative !important;
    overflow: visible !important;
  }

  .card-body {
    padding: 10px !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .card-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-city {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-address {
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .tag-badge {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  .amenities-row {
    font-size: 9.5px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .grid-4col-hairline {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .grid-5col-sponsors {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .service-card-item span {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  /* Fixed Segmented Filter UI (No 100% width stretch) */
  .segmented-filter {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    margin-top: 2px !important;
  }

  .segmented-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex: 0 0 auto !important;
  }

  .directory-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================
   Dashboard Executive Vertical Sidebar Layout
   ========================================== */
.dashboard-layout-body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  width: 260px;
  background: #111827;
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.brand-title-wrap {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sidebar-brand-logo {
  max-height: 150px;
  max-width: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sidebar-brand .brand-title {
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  line-height: 1.15;
}

.sidebar-brand .role-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: rgba(121, 166, 89, 0.25);
  color: #a7f3d0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  font-weight: 600;
}

.sidebar-user {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5980a6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 16px 10px 6px;
}

.nav-group-title:first-child {
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #ffffff;
}

.nav-item.active {
  background: #79A659;
  color: #ffffff;
  font-weight: 600;
}

.nav-badge-pending {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0,0,0,0.25);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.sidebar-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.main-dashboard-content {
  margin-left: 260px;
  flex: 1;
  padding: 36px 40px;
  min-width: 0;
  box-sizing: border-box;
}

/* Dashboard Summary Stat Cards */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-accent, #5980a6);
  flex-shrink: 0;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Live Feed / Quick Updates Table */
.dashboard-widget-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.widget-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 900px) {
  .dashboard-layout-body {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-dashboard-content {
    margin-left: 0;
    padding: 20px;
    max-width: 100%;
    width: 100%;
  }
}

/* Container Auto-Fit & Responsive Image Utilities */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.img-container, .card-image-wrapper, .avatar-wrapper, .logo-wrapper, .slider-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-container img, .card-image-wrapper img, .slider-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.logo-wrapper img, .sponsor-logo img, .vendor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.avatar-wrapper img, .coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

