/* ===========================
   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 ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--primary-dark);
  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);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}


.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;
  font-size: 200px;
  opacity: 0.06;
  top: -40px;
  right: -40px;
  transform: rotate(15deg);
}
.hero::after {
  content: '🏓';
  position: absolute;
  font-size: 140px;
  opacity: 0.04;
  bottom: -30px;
  left: -30px;
  transform: rotate(-20deg);
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.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-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}
.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);
}

.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 */
.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 */
.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 */
.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 */
.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 */
.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 */
.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 Custom Popup */
.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 */
.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 */
.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);
}

.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 Modal Specifics */
.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;
}

/* Slot picker grid */
#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: not-allowed;
  text-decoration: line-through;
}

/* Pagination */
.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); }

.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
   =========================== */

/* Updated logo color accent */
/* Updated navbar gradient */
.navbar {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

/* About Mission Section */
.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;
}

/* Footer */
.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;
}

/* Updated popup header */
.popup-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

/* Updated modal header */
.modal-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

/* Court card header gradient */
.court-card-header {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
}

/* Page title branding */
.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
   =========================== */
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.15); opacity: 0.85; }
.share-fb { background: #1877f2; }
.share-x { background: #000; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-msg { background: #0099ff; }
.share-copy { background: #757575; }