/* ============================================
   MY CLUB VAULT — Global Design System
   Brand Palette: Gold #dcc88d / Bronze #9e6e3d / Black
   ============================================ */

:root {
  --gold: #dcc88d;
  --gold-light: #e8d9a8;
  --bronze: #9e6e3d;
  --bronze-dark: #7a5530;
  --amber: #f7a100;
  --bg-deep: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #1a1a1a;
  --bg-elevated: #222222;
  --border-subtle: rgba(220, 200, 141, 0.12);
  --border-gold: rgba(220, 200, 141, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-muted: #666666;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(220, 200, 141, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-nav {
  padding-bottom: calc(var(--nav-height) + 16px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.text-gold { color: var(--gold); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-secondary); }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 20px 16px 8px;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(17, 17, 17, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.site-header .logo {
  height: 48px;
  width: auto;
}

.site-header .tagline {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---- Bottom Navigation ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.bottom-nav a i {
  font-size: 1.25rem;
  transition: transform var(--transition);
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--gold);
}

.bottom-nav a.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.bottom-nav a:hover i {
  transform: scale(1.1);
}

.bottom-nav .nav-center {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(220, 200, 141, 0.3);
  padding: 0;
}

.bottom-nav .nav-center i {
  font-size: 1.4rem;
  color: var(--bg-deep);
}

.bottom-nav .nav-center span {
  display: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 16px rgba(158, 110, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 200, 141, 0.4);
  color: var(--bg-deep);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(220, 200, 141, 0.1);
  color: var(--gold-light);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.card-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
}

/* ---- Club Cards ---- */
.club-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 0;
}

.club-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all var(--transition);
}

.club-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.club-card .club-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
}

.club-card .club-info {
  flex: 1;
  min-width: 0;
}

.club-card .club-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-card .club-address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.club-card .club-distance {
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 600;
}

.club-card .club-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220, 200, 141, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ---- Auth Pages (Login/Signup/Welcome) ---- */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  background: radial-gradient(ellipse at top, #1a1510 0%, var(--bg-deep) 60%);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-card .logo {
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
}

.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card .subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-card .error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.auth-card .error-msg a {
  color: var(--gold);
  font-weight: 600;
}

.auth-card .link-text {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-card .link-text a {
  color: var(--gold);
  font-weight: 600;
}

/* ---- Promo Carousel ---- */
.promo-carousel {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.promo-slide.active {
  opacity: 1;
}

.promo-slide img,
.promo-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.promo-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
}

.promo-dots .dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* ---- Map Page ---- */
.map-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
}

.map-wrapper #map {
  width: 100%;
  height: 100%;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
}

.map-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.map-btn:hover {
  background: rgba(220, 200, 141, 0.15);
  border-color: var(--gold);
}

.map-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* Directions Panel - Redesigned */
.directions-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 800;
  display: none;
  transition: transform 0.4s ease, opacity 0.3s ease;
  max-height: 55vh;
  overflow: hidden;
}

.directions-panel.visible {
  display: block;
}

.directions-panel .handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 10px auto 0;
}

.directions-header {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directions-header .route-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.directions-header .route-summary .route-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.directions-header .route-summary .route-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.mode-buttons {
  display: flex;
  gap: 8px;
}

.mode-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mode-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.mode-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.mode-btn.active-drive {
  background: #ffc107;
  color: #000;
  border-color: #ffc107;
}

.mode-btn.active-walk {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.mode-btn.active-bike {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.directions-actions {
  display: flex;
  gap: 8px;
}

.directions-actions button {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.directions-actions button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.directions-content {
  padding: 0 16px 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.directions-content,
.directions-content * {
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-size: 0.8rem;
}

.directions-content table {
  width: 100%;
}

/* Club List Toggle */
.club-list-toggle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
}

.club-list-toggle button {
  width: 100%;
  padding: 12px;
  background: var(--bg-surface);
  border: none;
  border-top: 1px solid var(--border-subtle);
  color: var(--gold);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
}

.club-list-toggle button:hover {
  background: var(--bg-elevated);
}

.club-list-panel {
  background: var(--bg-surface);
  max-height: 40vh;
  overflow-y: auto;
  display: none;
}

.club-list-panel .club-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.club-list-panel .club-list-item:hover {
  background: var(--bg-elevated);
}

.club-list-panel .club-list-item strong {
  color: var(--gold);
  font-size: 0.9rem;
}

.club-list-panel .club-list-item span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* ---- Locate Page Map ---- */
.locate-map {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.locate-map #map {
  width: 100%;
  height: 100%;
}

/* ---- Loading / Splash ---- */
.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at center, #1a1510 0%, var(--bg-deep) 70%);
}

.splash-screen .logo {
  width: 120px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.splash-screen .tagline {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s 0.4s ease forwards;
  opacity: 0;
}

.splash-loader {
  margin-top: 32px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite, fadeInUp 1s 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Profile Page ---- */
.profile-section {
  padding: 16px 0;
}

.profile-header {
  text-align: center;
  padding: 24px 16px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
  color: var(--bg-deep);
  font-weight: 700;
}

.profile-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-family: var(--font);
}

.settings-item:hover {
  background: rgba(220, 200, 141, 0.05);
}

.settings-item i {
  width: 24px;
  color: var(--gold);
  font-size: 1rem;
  text-align: center;
}

.settings-item .arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.settings-item.danger {
  color: var(--red);
}

.settings-item.danger i {
  color: var(--red);
}

/* ---- Modals ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.modal-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.modal-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-box .modal-actions {
  display: flex;
  gap: 10px;
}

.modal-box .modal-actions button,
.modal-box .modal-actions a {
  flex: 1;
}

/* ---- Search ---- */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220, 200, 141, 0.1);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 8px 0;
}

/* ---- Favorite Button ---- */
.fav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.fav-label:hover {
  background: rgba(220, 200, 141, 0.1);
  color: var(--gold);
}

.fav-label input {
  accent-color: var(--red);
}

/* ---- Utility ---- */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  background: rgba(220, 200, 141, 0.15);
  color: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--border-gold);
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ---- Show More ---- */
.show-more-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 16px auto 80px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
}

.show-more-btn:hover {
  background: rgba(220, 200, 141, 0.1);
}

.show-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- Admin Dashboard ---- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.admin-card i {
  font-size: 1.5rem;
  color: var(--gold);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 200, 141, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.admin-card .admin-card-text {
  text-align: left;
}

.admin-card .admin-card-text h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.admin-card .admin-card-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ---- Terms Page ---- */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin: 16px auto;
  max-width: 700px;
  text-align: left;
}

.legal-content h1 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.legal-content h2 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content h3 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-content a {
  color: var(--gold);
  font-weight: 500;
}

/* ---- InfoWindow Override ---- */
.gm-style .gm-style-iw-c {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-tc::after {
  background: var(--bg-card) !important;
}

.gm-style button[aria-label="Close"] {
  filter: invert(1);
}

.info-window {
  padding: 16px;
  text-align: center;
  min-width: 220px;
  max-width: 260px;
  color: var(--text-primary);
  background: var(--bg-card);
}

.info-window img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.info-window h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.info-window .iw-address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: pointer;
}

.info-window .iw-address:hover {
  color: var(--gold);
}

.info-window .iw-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

/* ---- Loader Spinner ---- */
.map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 2000;
  display: none;
}

/* ---- Responsive ---- */
@media (min-width: 480px) {
  .club-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .search-results {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 24px;
  }

  .site-header .logo {
    height: 56px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .auth-card {
    padding: 48px 36px;
  }

  .directions-panel {
    max-width: 400px;
    left: 12px;
    right: auto;
    bottom: 12px;
    border-radius: var(--radius-xl);
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---- Safe area padding for notch devices ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.has-nav {
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
  }
}
