/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --accent: #ff6f00;
  --accent-light: #ffa726;
  --text: #212121;
  --text-muted: #757575;
  --bg: #f5f5f5;
  --white: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.1);
  --radius: 12px;
  --navbar-height: 60px;
  --sidebar-width: 320px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-bg: #ffffff;
  --nav-text: #ffffff;
  --border-color: #e0e0e0;
  --input-bg: #ffffff;
}

[data-theme="dark"] {
  --primary: #4caf50;
  --primary-light: #66bb6a;
  --primary-dark: #2e7d32;
  --accent: #ffa726;
  --accent-light: #ffcc80;
  --text: #e0e0e0;
  --text-muted: #9e9e9e;
  --bg: #121212;
  --white: #1e1e1e;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.5);
  --card-bg: #1e1e1e;
  --nav-text: #e0e0e0;
  --border-color: #333333;
  --input-bg: #2a2a2a;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-weight: 700;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(27,94,32,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .navbar {
  background: rgba(18,18,18,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-logo .logo-img {
  height: 32px;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  margin-top: var(--navbar-height);
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #388e3c 100%);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 250px;
  top: -40px;
  right: -40px;
  opacity: 0.07;
  transform: rotate(15deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Crect x='32' y='62' width='16' height='28' rx='3' fill='%23fff'/%3E%3Cellipse cx='40' cy='38' rx='26' ry='32' fill='%23fff'/%3E%3Ccircle cx='40' cy='38' r='18' fill='none' stroke='%23fff' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='40' cy='38' r='12' fill='none' stroke='%23fff' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 175px;
  bottom: -30px;
  left: -30px;
  opacity: 0.05;
  transform: rotate(-20deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Crect x='32' y='62' width='16' height='28' rx='3' fill='%23fff'/%3E%3Cellipse cx='40' cy='38' rx='26' ry='32' fill='%23fff'/%3E%3Ccircle cx='40' cy='38' r='18' fill='none' stroke='%23fff' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='40' cy='38' r='12' fill='none' stroke='%23fff' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-pb {
  position: absolute;
  height: auto;
  z-index: 0;
  pointer-events: none;
  animation: pbSpin 20s linear infinite;
}
#pb1 { width: 45%; max-width: 550px; right: 5%; top: 50%; transform: translateY(-50%); opacity: 0.4; animation-duration: 22s; }
#pb2 { width: 22%; max-width: 260px; left: 3%; top: 8%; opacity: 0.3; animation-duration: 30s; animation-direction: reverse; }
#pb3 { width: 18%; max-width: 200px; left: 18%; bottom: 5%; opacity: 0.25; animation-duration: 18s; }
#pb4 { width: 20%; max-width: 240px; right: 2%; bottom: 3%; opacity: 0.2; animation-duration: 25s; animation-direction: reverse; }
#pb5 { width: 14%; max-width: 160px; left: 40%; top: 3%; opacity: 0.18; animation-duration: 15s; }
@keyframes pbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .hero-pb { display: none; }
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-logo-wrap .hero-logo {
  background: rgba(255,255,255,0.95);
  padding: 12px 30px;
  border-radius: 16px;
  height: 90px;
  width: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #fff, #a5d6a7, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes pulseSubBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}
.hero-sub-badge {
  display: inline-block;
  background: linear-gradient(135deg,#fff8e1,#fff3e0);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  border: 1px solid var(--accent);
  animation: pulseSubBadge 2.5s ease-in-out infinite;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


.ticker-wrap {
  display: flex;
  align-items: center;
  background: #1b5e20;
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-label {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker-content {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
  font-size: 14px;
}
.ticker-item {
  display: inline-block;
  margin-right: 60px;
}
.ticker-item .date {
  font-weight: 600;
  margin-right: 4px;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.recent-section {
  max-width: 1200px;
  margin: -20px auto 0;
  padding: 24px 20px;
}
.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.recent-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}
.recent-header h2 i {
  color: var(--accent);
  margin-right: 6px;
}
.recent-header a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.recent-header a:hover {
  text-decoration: underline;
}
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.carousel-track {
  display: flex;
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 4px 0;
  flex: 1;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  z-index: 2;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.carousel-prev { margin-right: 10px; }
.carousel-next { margin-left: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.recent-card {
  flex: 0 0 240px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #f0f0f0;
  position: relative;
}
.recent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.recent-card .rc-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 4px;
}
.recent-card .rc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-card .rc-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.recent-card .rc-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.recent-card .rc-meta i {
  margin-right: 3px;
}


.hero-launch-notice {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 12px 18px;
  margin: 0 auto 24px;
  max-width: 600px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  text-align: left;
}
.hero-launch-notice i {
  font-size: 18px;
  color: #FFD700;
  margin-top: 2px;
  flex-shrink: 0;
}
.hero-launch-notice a {
  color: #FFD700;
  font-weight: 600;
  text-decoration: underline;
}
.hero-launch-notice a:hover {
  color: #fff;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,111,0,0.35);
}
.btn-hero-primary:hover {
  background: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,111,0,0.45);
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 20px; }
  .btn-hero { padding: 10px 20px; font-size: 13px; }
}

.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-add-court {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.btn-add-court:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-dark-mode {
  background: transparent;
  color: var(--nav-text);
  border: 1px solid rgba(255,255,255,0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}
.btn-dark-mode:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 10px 0;
  z-index: 999;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.mobile-link:hover,
.mobile-link.add {
  background: rgba(255,255,255,0.1);
}

.mobile-link.add {
  color: var(--accent-light);
  font-weight: 600;
}

/* ===========================
   APP CONTAINER
   =========================== */
.app-container {
  display: flex;
  height: calc(100vh - var(--navbar-height));
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: var(--transition);
  z-index: 100;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.2);
}


.search-box {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.clear-search {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
}


.filters {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.filter-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: var(--primary-light);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-group.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-reset-filters {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-reset-filters:hover {
  background: #f5f5f5;
  color: var(--text);
}


.results-info {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid #eee;
}

#resultsCount {
  font-weight: 700;
  color: var(--primary);
}


.sidebar-court-list {
  flex: 1;
  overflow-y: auto;
}

.sidebar-court-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-court-item:hover {
  background: #f9f9f9;
}

.sidebar-court-item.active {
  background: #e8f5e9;
  border-left: 3px solid var(--primary);
}

.court-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.court-item-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.court-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-indoor { background: #e3f2fd; color: #1565c0; }
.tag-outdoor { background: #e8f5e9; color: #2e7d32; }
.tag-covered { background: #fff3e0; color: #e65100; }
.tag-free { background: #e8f5e9; color: #2e7d32; }
.tag-paid { background: #fff3e0; color: #e65100; }
.tag-members { background: #f3e5f5; color: #7b1fa2; }

/* ===========================
   MAP
   =========================== */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}


.map-controls {
  position: absolute;
  bottom: 80px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
}

.map-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-btn:hover {
  background: var(--primary);
  color: var(--white);
}


.stats-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 24px;
  display: flex;
  gap: 32px;
  box-shadow: var(--card-shadow);
  z-index: 500;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px;
}

.popup-header {
  background: var(--primary);
  color: var(--white);
  padding: 12px 14px;
}

.popup-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.popup-location {
  font-size: 11px;
  opacity: 0.85;
}

.popup-body {
  padding: 10px 14px;
}

.popup-detail {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.popup-detail i {
  color: var(--primary);
  width: 14px;
}

.popup-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.popup-btn {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  margin-top: 8px;
}

.popup-btn:hover {
  background: var(--primary-dark);
}


.custom-marker {
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.custom-marker:hover {
  transform: scale(1.3);
}

/* ===========================
   LIST VIEW
   =========================== */
.list-view {
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
  padding: 40px 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--navbar-height) + 20px);
}

.list-header {
  text-align: center;
  margin-bottom: 30px;
}

.list-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.list-header p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.list-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto 16px;
}

.list-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.list-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: var(--transition);
}

.list-search input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.list-sort {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.list-sort select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}


.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.court-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.court-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.court-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 20px;
  color: var(--white);
  position: relative;
}

.court-number {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.court-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.court-card-location {
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}

.court-card-body {
  padding: 16px;
}

.court-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.court-detail-row i {
  color: var(--primary);
  width: 16px;
  font-size: 12px;
}

.court-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.court-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.amenity-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.amenity-badge i {
  color: var(--primary-light);
}

.court-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
}

.btn-view-map,
.btn-directions {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-map {
  background: var(--primary);
  color: var(--white);
}

.btn-view-map:hover {
  background: var(--primary-dark);
}

.btn-directions {
  background: #f5f5f5;
  color: var(--text);
}

.btn-directions:hover {
  background: #eee;
}

/* ===========================
   ABOUT VIEW
   =========================== */
.about-view {
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
  background: var(--bg);
}


.heart-btn {
  position: absolute;
  top: 12px;
  right: 48px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  color: white;
  font-size: 14px;
}
.heart-btn:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }
.heart-btn.hearted { color: #e74c3c; }
.heart-btn.hearted i { animation: heartPop 0.3s ease; }
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.recent-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 13px;
  z-index: 2;
  transition: var(--transition);
}
.recent-heart:hover { background: rgba(0,0,0,0.5); transform: scale(1.1); }
.recent-heart.hearted { color: #e74c3c; }


.btn-saved {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  margin-left: 8px;
  white-space: nowrap;
}
.btn-saved:hover { border-color: var(--primary); color: var(--primary); }
.btn-saved.active { background: #fce4ec; border-color: #e74c3c; color: #e74c3c; }
.btn-saved.active i { color: #e74c3c; }

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.about-emoji {
  font-size: 60px;
  display: block;
  margin-bottom: 16px;
}

.about-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.about-hero p {
  font-size: 16px;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.about-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-contact {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.about-contact h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.about-contact p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===========================
   MODALS
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

.modal-lg {
  max-width: 700px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0,0,0,0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 24px;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 13px;
  opacity: 0.85;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 0 24px 24px;
}


.court-detail-section {
  margin-bottom: 20px;
}

.court-detail-section h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.detail-item i {
  color: var(--primary);
  width: 18px;
  margin-top: 2px;
  font-size: 13px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-chip {
  background: #e8f5e9;
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-action-btns {
  display: flex;
  gap: 10px;
}

.btn-modal-map,
.btn-modal-directions {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-modal-map {
  background: var(--primary);
  color: var(--white);
}

.btn-modal-map:hover { background: var(--primary-dark); }

.btn-modal-directions {
  background: var(--accent);
  color: var(--white);
}

.btn-modal-directions:hover { background: #e65100; }

/* ===========================
   PLANS MODAL / PRICING GRID
   =========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.pricing-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { border-color: var(--primary-light); }
.pricing-card.pro { border-color: var(--accent); }
.pricing-card h3 {
  font-size: 18px;
  margin: 8px 0 4px;
}
.pricing-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 16px;
}
.pricing-card .price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.pricing-card ul li {
  font-size: 13px;
  padding: 6px 0;
  color: var(--text);
}
.pricing-card ul li i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}
.pricing-card ul li .fa-check { color: var(--primary); }
.pricing-card ul li .fa-times { color: #e53935; }
.popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.plan-cta {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}
.plan-cta:hover { background: var(--primary); color: var(--white); }
.plan-cta-pro {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.plan-cta-pro:hover { background: #e65100; border-color: #e65100; }

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===========================
   ADD COURT FORM
   =========================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: var(--transition);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.form-group textarea {
  resize: vertical;
}


.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.calendar-nav button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  line-height: 1;
}
.calendar-nav button:hover {
  background: #f5f5f5;
  border-color: var(--primary);
}
.calendar-nav span {
  font-weight: 600;
  font-size: 15px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  margin-bottom: 4px;
}
.calendar-day-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
  text-transform: uppercase;
}
.calendar-cell {
  padding: 7px 2px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
}
.calendar-cell:hover:not(.cal-disabled) {
  border-color: var(--primary);
  background: #f0f7ff;
}
.calendar-cell.cal-today {
  font-weight: 700;
  color: var(--primary);
}
.calendar-cell.cal-today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.calendar-cell.cal-selected {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.calendar-cell.cal-selected.cal-today::after {
  background: white;
}
.calendar-cell.cal-disabled {
  color: #ccc;
  cursor: not-allowed;
}


#slotPickerGroup { display: none; }
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.slot-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  transition: var(--transition);
  user-select: none;
}
.slot-btn:hover:not(.taken) { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }
.slot-btn.taken {
  background: #f5f5f5;
  color: #bbb;
  border-color: #eee;
  cursor: pointer;
  text-decoration: line-through;
}
.slot-btn.taken:hover { background: #ffe0e0; border-color: #ff9999; }

.slot-taken-popover {
  position: fixed;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fadeIn 0.15s ease;
}
.slot-taken-popover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
}


.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  grid-column: 1 / -1;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===========================
   NEW BOOKING UI (Multi-Court)
   =========================== */
.b-day-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.b-day-nav button {
  background: var(--card-bg, #f5f5f5);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
}
.b-day-nav button:hover { border-color: var(--primary); color: var(--primary); }
#bDayLabel {
  font-weight: 600;
  font-size: 15px;
  min-width: 200px;
  text-align: center;
  color: var(--text);
}

.b-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.b-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.b-legend-dot.avail { background: var(--white); border: 1px solid var(--primary); }
.b-legend-dot.selected { background: var(--primary); }
.b-legend-dot.booked { background: #eee; border: 1px solid #ddd; }

.b-courts-scroll-wrap {
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.b-courts-scroll {
  display: flex;
  gap: 12px;
  min-width: min-content;
}

.b-court-card {
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  background: var(--card-bg, #fafafa);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  padding: 12px;
}
.b-court-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b-court-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.b-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.b-slot {
  padding: 6px 4px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}
.b-slot:hover { border-color: var(--primary); color: var(--primary); }
.b-slot.b-sel { background: var(--primary); color: var(--white); border-color: var(--primary); }
.b-slot.b-taken {
  background: #f5f5f5;
  color: #ccc;
  border-color: #eee;
  cursor: pointer;
  text-decoration: line-through;
  font-weight: 400;
}
.b-slot.b-taken:hover { background: #ffe0e0; border-color: #ff9999; }
.b-no-slots {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  text-align: center;
}

.b-summary {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.b-summary-header {
  font-weight: 700;
  font-size: 13px;
  color: #2e7d32;
  margin-bottom: 6px;
}
.b-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #c8e6c9;
}
.b-summary-item:last-child { border-bottom: none; }
.b-summary-court { font-weight: 600; color: var(--text); flex: 1; }
.b-summary-time { color: var(--text-muted); white-space: nowrap; }
.b-summary-rm {
  color: #e53935;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  padding: 0 4px;
}
.b-summary-rm:hover { color: #b71c1c; }

.b-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.btn-cancel:hover { background: #eee; }

.btn-submit {
  flex: 2;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-submit:hover { background: var(--primary-dark); }

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .sidebar.mobile-open {
    height: 60vh;
    overflow-y: auto;
  }

  .sidebar.mobile-open + .main-content {
    height: 40vh !important;
    flex: none !important;
  }

  .main-content {
    height: calc(100vh - var(--navbar-height));
  }

  .stats-bar {
    gap: 20px;
    padding: 8px 16px;
    bottom: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    max-height: 95vh;
  }

  .courts-grid {
    grid-template-columns: 1fr;
  }

  .list-view {
    padding: 20px 16px;
  }

  .list-header h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    gap: 16px;
    padding: 8px 12px;
  }

  .stat-number {
    font-size: 16px;
  }

  .modal-action-btns {
    flex-direction: column;
  }
}

/* ===========================
   PICKLESPOT PH - BRAND UPDATES
   =========================== */



.navbar {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}


.about-mission {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.about-mission h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-mission p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-team {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.about-team h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}


.site-footer {
  background: #1b5e20;
  color: white;
  text-align: center;
  padding: 24px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-logo {
  font-weight: 700;
  font-size: 20px;
}

.footer-logo span {
  color: #FFD700;
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.6;
}


.popup-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}


.modal-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}


.court-card-header {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
}


.list-header h1 {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   ANALYTICS
   =========================== */
.analytics-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.analytics-total-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.analytics-total-card .analytics-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}
.analytics-total-card .analytics-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.analytics-card {
  background: var(--white);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}
.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.analytics-card-header strong {
  font-size: 14px;
}
.analytics-stats {
  display: flex;
  gap: 24px;
}
.analytics-stat {
  text-align: center;
  min-width: 80px;
}
.analytics-stat .analytics-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.analytics-stat .analytics-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.analytics-stat .analytics-label i {
  margin-right: 4px;
}

/* ===========================
   SHARE BUTTONS (footer only)
   =========================== */
.site-footer .share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer .share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: transform 0.2s, opacity 0.2s;
}
.site-footer .share-btn:hover { transform: scale(1.15); opacity: 0.85; }
.site-footer .share-fb { background: #1877f2; }
.site-footer .share-x { background: #000; }
.site-footer .share-wa { background: #25d366; }
.site-footer .share-tg { background: #0088cc; }
.site-footer .share-msg { background: #0099ff; }
.site-footer .share-copy { background: #757575; }

/* ===========================
   DARK MODE OVERRIDES
   =========================== */
[data-theme="dark"] .navbar { background: #1a1a1a; }
[data-theme="dark"] .sidebar { background: #1a1a1a; border-color: var(--border-color); }
[data-theme="dark"] .sidebar-court-item { border-color: var(--border-color); }
[data-theme="dark"] .sidebar-court-item:hover { background: #2a2a2a; }
[data-theme="dark"] .court-card { background: var(--card-bg); }
[data-theme="dark"] .modal-content { background: #1e1e1e; }
[data-theme="dark"] .modal { background: rgba(0,0,0,0.8); }
[data-theme="dark"] .mobile-menu { background: #1a1a1a; }
[data-theme="dark"] .mobile-link { color: var(--text); }
[data-theme="dark"] .mobile-link:hover { background: #2a2a2a; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
[data-theme="dark"] .hero-launch-notice { background: linear-gradient(135deg, #2a2a2a, #333) !important; color: var(--text) !important; }
[data-theme="dark"] .hero-launch-notice a { color: var(--primary-light); }
[data-theme="dark"] .hero-stat-num { color: var(--primary-light); }
[data-theme="dark"] .hero-sub-badge { background: linear-gradient(135deg,#3d2b1b,#4a3320); border-color: var(--accent); }
[data-theme="dark"] .hero-sub { color: var(--text-muted); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--input-bg); color: var(--text); border-color: var(--border-color); }
[data-theme="dark"] .recent-card { background: var(--card-bg); }
[data-theme="dark"] .pricing-card { background: var(--card-bg); }
[data-theme="dark"] .pricing-card ul li { color: var(--text); }
[data-theme="dark"] .filter-group { background: var(--card-bg); }
[data-theme="dark"] .billboard { background: #1a1a1a; }
[data-theme="dark"] .about-hero { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
[data-theme="dark"] .about-section { background: var(--bg); }
[data-theme="dark"] .founder-card { background: var(--card-bg); }
[data-theme="dark"] .site-footer { background: #1a1a1a; border-color: var(--border-color); }
[data-theme="dark"] .btn-view-map { background: #2a2a2a; color: var(--text); border-color: var(--border-color); }
[data-theme="dark"] .btn-view-map:hover { background: #333; }
[data-theme="dark"] .btn-directions { background: #2a2a2a; color: var(--text); border-color: var(--border-color); }
[data-theme="dark"] .btn-directions:hover { background: #333; }
[data-theme="dark"] .chat-message-right { background: var(--primary-dark); color: #fff; }
[data-theme="dark"] .chat-message-left { background: #2a2a2a; color: var(--text); }
[data-theme="dark"] .slot-btn { background: #2a2a2a; color: var(--text); border-color: var(--border-color); }
[data-theme="dark"] .slot-btn:hover { background: #333; }
[data-theme="dark"] .slot-btn.taken { background: #1a1a1a; color: #555; cursor: pointer; }
[data-theme="dark"] .slot-btn.taken:hover { background: #2a1515; border-color: #993333; }
[data-theme="dark"] .slot-taken-popover { background: #555; color: #fff; }
[data-theme="dark"] .slot-taken-popover::after { border-top-color: #555; }
[data-theme="dark"] .slot-btn.selected { background: var(--primary); color: #fff; }
[data-theme="dark"] .calendar-cell { color: var(--text); }
[data-theme="dark"] .calendar-cell:hover { background: #2a2a2a; }
[data-theme="dark"] .stats-grid .stat-card { background: var(--card-bg); }
[data-theme="dark"] .analytics-chart { background: var(--card-bg); }
[data-theme="dark"] table { background: var(--card-bg); }
[data-theme="dark"] table td { color: var(--text); border-color: var(--border-color); }
[data-theme="dark"] table th { background: #2a2a2a; color: var(--text); }
[data-theme="dark"] .tag { color: var(--text); }
[data-theme="dark"] .b-day-nav button { background: #2a2a2a; border-color: #444; }
[data-theme="dark"] .b-court-card { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .b-slot { background: #2a2a2a; border-color: #444; color: var(--text); }
[data-theme="dark"] .b-slot.b-taken { background: #1a1a1a; color: #555; border-color: #333; }
[data-theme="dark"] .b-slot.b-taken:hover { background: #2a1515; border-color: #993333; }
[data-theme="dark"] .b-legend-dot.avail { background: #2a2a2a; border-color: var(--primary); }
[data-theme="dark"] .b-legend-dot.booked { background: #1a1a1a; border-color: #444; }
[data-theme="dark"] .b-summary { background: #1b3d1b; border-color: #2e7d32; }
[data-theme="dark"] .b-summary-item { border-color: #2e5a2e; }