/*
 * Pickleball Now static site — website/ is the single source for local preview
 * (npx serve website) and Cloudflare Pages deploy. Use root-relative paths
 * (/assets/..., /styles.css). Phone mockup dimensions live in --phone-* below.
 */
:root {
  --navy: #0c1f3d;
  --navy-deep: #071428;
  --navy-soft: #152d52;
  --blue: #208aef;
  --blue-bright: #4da3ff;
  --lime: #b8f045;
  --lime-dark: #8bc927;
  --yellow: #ffd24a;
  --white: #ffffff;
  --gray-100: #f4f7fb;
  --gray-200: #e8edf4;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --shadow: 0 24px 60px rgba(7, 20, 40, 0.18);
  --shadow-soft: 0 12px 32px rgba(7, 20, 40, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --phone-screenshot-width: 310px;
  --phone-screenshot-aspect: 250 / 512;
  --phone-column-inset: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* --- SITE HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(12, 31, 61, 0.06);
  transition: background 0.3s ease;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--yellow));
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(184, 240, 69, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(184, 240, 69, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(32, 138, 239, 0.03);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  z-index: 1;
}

/* Glowing Mesh Orbs */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  mix-blend-mode: screen;
}

.orb-1 {
  background: var(--blue);
  top: -15%;
  left: 5%;
}

.orb-2 {
  background: var(--lime);
  bottom: 10%;
  right: -10%;
}

.orb-3 {
  background: var(--blue-bright);
  top: 35%;
  right: 5%;
  opacity: 0.12;
}

.orb-4 {
  background: var(--lime);
  top: 25%;
  left: 20%;
  opacity: 0.15;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--lime);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(184, 240, 69, 0.7);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(184, 240, 69, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(184, 240, 69, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(184, 240, 69, 0);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lime), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.availability-note {
  margin: 0 0 2rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  max-width: 28rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 130px;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.stat span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.phone-showcase,
.ai-phone-showcase,
.tour-device-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: min(100%, var(--phone-screenshot-width));
  margin-inline: auto;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 800;
  z-index: 10;
  animation: float 5s ease-in-out infinite;
}

.floating-card.one {
  top: 15%;
  left: -10%;
}

.floating-card.two {
  bottom: 18%;
  right: -5%;
  animation-delay: 2.5s;
}

.floating-card.three {
  bottom: 15%;
  left: -8%;
  animation-delay: 1.25s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* --- HIGH-FIDELITY CSS IPHONE FRAME --- */
.iphone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.iphone-frame {
  position: relative;
  width: min(100%, var(--phone-screenshot-width));
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--phone-screenshot-aspect);
  border: 9px solid #1c1e21;
  border-radius: 32px;
  background: #000;
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 0 2px #323539,
    0 0 0 3px #4f5358;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone-side-btn {
  position: absolute;
  background: #323539;
  border-radius: 2px;
  z-index: -1;
}

.iphone-side-btn.volume-up {
  width: 3px;
  height: 32px;
  top: 88px;
  left: -13px;
}

.iphone-side-btn.volume-down {
  width: 3px;
  height: 32px;
  top: 132px;
  left: -13px;
}

.iphone-side-btn.power {
  width: 3px;
  height: 52px;
  top: 105px;
  right: -13px;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.iphone-dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 15px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

.iphone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: 5;
}

.phone-screenshot,
.tour-screenshot {
  display: block;
  transition: opacity 0.25s ease-in-out;
}

.iphone-screen .phone-screenshot,
.iphone-screen .tour-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.phone-screenshot-fallback {
  object-fit: contain;
  padding: 1.25rem 0.85rem;
  background: linear-gradient(160deg, #102746, #0b1a31);
}

/* --- QR CODE SCAN POPUP --- */
.qr-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.qr-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.qr-trigger-wrapper {
  position: relative;
  display: inline-block;
}

.qr-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 100;
  display: none;
  width: 230px;
}

.qr-dropdown.show {
  display: block;
  animation: dropdown-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 12px) scale(1);
  }
}

.qr-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(12, 31, 61, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--navy);
}

.qr-card p {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.qr-code-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.85rem;
  background: #f4f7fb;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(12, 31, 61, 0.12);
  padding: 8px;
}

.qr-grid {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 4.5px solid var(--navy-deep);
  border-radius: 4px;
}

.qr-corner.top-left { top: 0; left: 0; }
.qr-corner.top-right { top: 0; right: 0; }
.qr-corner.bottom-left { bottom: 0; left: 0; }

.qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 2;
}

.qr-dot-cloud {
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(var(--navy-soft) 2px, transparent 0),
    radial-gradient(var(--navy-soft) 2px, transparent 0);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  opacity: 0.75;
}

.qr-card span {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.section-header p {
  margin: 0;
  color: var(--gray-500);
  font-size: 1.08rem;
  line-height: 1.55;
}

/* --- AI SECTION --- */
.ai-section {
  background: var(--white);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.ai-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  background:
    radial-gradient(circle at 95% 15%, rgba(77, 163, 255, 0.12), transparent 45%),
    radial-gradient(circle at 5% 85%, rgba(184, 240, 69, 0.12), transparent 40%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: 3rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.ai-eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(184, 240, 69, 0.15);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-panel-copy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
}

.ai-panel-copy > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.ai-prompt-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.ai-prompt-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
}

.ai-prompt-list li::before {
  content: "→";
  color: var(--lime);
  font-weight: 800;
  margin-top: 1px;
}

.ai-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.4;
}

/* --- AI CHAT SIMULATOR WIDGET --- */
.ai-chat-preview-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 430px;
  overflow: hidden;
}

.ai-chat-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-avatar-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--yellow));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(184, 240, 69, 0.2);
}

.ai-avatar-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.ai-avatar-status {
  display: block;
  font-size: 0.72rem;
  color: var(--lime);
  font-weight: 500;
}

.ai-chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(7, 20, 40, 0.25);
  scroll-behavior: smooth;
}

.chat-time {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

.ai-chat-bubble.coach {
  background: var(--white);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-bubble.user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-bubble.coach strong {
  color: var(--blue);
}

/* Animated Court Card in chat */
.chat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-top: 0.45rem;
  align-self: flex-start;
  width: 90%;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.chat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chat-card-header .badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.badge-open {
  background: rgba(139, 201, 39, 0.12);
  color: var(--lime-dark);
}

.badge-indoor {
  background: rgba(32, 138, 239, 0.12);
  color: var(--blue);
}

.chat-card-header .distance {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 700;
}

.chat-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.chat-card p {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.chat-card-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-btn {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--navy);
  border: 1px solid var(--gray-200);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.chat-btn.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.chat-btn:hover {
  transform: translateY(-1px);
}

/* Score Card inside chat */
.score-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.score-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy-deep);
  font-weight: 800;
}

.score-stat span {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.match-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.match-list li {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.match-win {
  background: rgba(184, 240, 69, 0.1);
  color: var(--navy-deep);
}

.match-loss {
  background: rgba(239, 32, 32, 0.05);
  color: #c92a2a;
}

/* Invite Card inside chat */
.invite-header {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.invite-body {
  font-size: 0.78rem;
  background: var(--gray-100);
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-style: italic;
  line-height: 1.4;
  color: var(--gray-700);
}

/* Input boxes & suggestions */
.ai-suggestion-box {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-suggestion {
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  background: rgba(184, 240, 69, 0.12);
  border: 1px solid rgba(184, 240, 69, 0.22);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-suggestion:hover:not([disabled]) {
  background: rgba(184, 240, 69, 0.2);
  transform: translateY(-1.5px);
  border-color: var(--lime);
}

.ai-suggestion[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-chat-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(7, 20, 40, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.input-placeholder {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.send-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

/* Typing indicator dot bounces */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--navy-soft);
  border-radius: 50%;
  animation: typing-indicator-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-indicator-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.animated-fade-in {
  animation: element-fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes element-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- APP TOUR CAROUSEL LAYOUT --- */
.tour-section {
  background: var(--white);
}

.tour-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 1.5rem;
}


.tour-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tour-card {
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-soft);
}

.tour-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.tour-card.active {
  border-color: var(--blue);
  background: linear-gradient(to right, rgba(32, 138, 239, 0.03), var(--white));
  box-shadow: var(--shadow);
}

.tour-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
}

.tour-icon-wrap.bg-green {
  background: linear-gradient(135deg, var(--lime-dark), var(--lime));
  color: var(--navy-deep);
}

.tour-icon-wrap.bg-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}

.tour-icon-wrap.bg-yellow {
  background: linear-gradient(135deg, #f59f00, var(--yellow));
}

.tour-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.tour-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* --- FEATURES GRID --- */
.features {
  background: var(--gray-100);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid rgba(12, 31, 61, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(32, 138, 239, 0.12);
}

.feature-card-highlight {
  border-color: rgba(32, 138, 239, 0.18);
  box-shadow: 0 16px 40px rgba(32, 138, 239, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: rgba(32, 138, 239, 0.08);
  color: var(--blue);
}

.bg-gradient-spark {
  background: linear-gradient(135deg, var(--lime), var(--yellow)) !important;
  color: var(--navy-deep) !important;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.feature-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* --- SPLIT / COMMUNITY SECTION --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* --- PLAYER PROFILE WIDGET --- */
.profile-card-showcase {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  width: 330px;
  font-family: var(--font);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.profile-user-info {
  flex-grow: 1;
}

.profile-user-info h4 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.profile-user-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
}

.dupr-badge {
  background: linear-gradient(135deg, var(--lime), var(--yellow));
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  text-align: center;
  color: var(--navy-deep);
}

.dupr-badge strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
}

.dupr-badge span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.profile-stat-box {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: center;
}

.profile-stat-box strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.profile-stat-box span {
  display: block;
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 700;
}

.profile-stat-box.font-green strong {
  color: var(--lime-dark);
}

.profile-recent-activity h5 {
  margin: 1rem 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  font-weight: 800;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.activity-item:not(:last-child) {
  border-bottom: 1px dashed var(--gray-200);
}

.activity-result {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.win .activity-result {
  background: rgba(139, 201, 39, 0.12);
  color: var(--lime-dark);
}

.activity-details {
  flex-grow: 1;
}

.activity-details strong {
  display: block;
  font-size: 0.78rem;
  color: var(--navy-deep);
}

.activity-details span {
  display: block;
  font-size: 0.68rem;
  color: var(--gray-500);
}

.activity-points {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lime-dark);
}

/* --- CALL TO ACTION --- */
.cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
}

.cta p {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* --- SITE FOOTER --- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.68);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* --- INNER PAGES (support, privacy, terms) --- */
body:has(.page-hero) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.page-hero) .page-content {
  flex: 1;
}

body:has(.page-hero) .site-footer {
  margin-top: auto;
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-content {
  padding: 3rem 0 4rem;
  background: var(--gray-100);
}

.support-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 31, 61, 0.06);
  max-width: 42rem;
}

.support-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.support-card p {
  margin: 0 0 1rem;
  color: var(--gray-700);
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.prose h2:first-of-type {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--gray-700);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.prose a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(32, 138, 239, 0.08);
  border: 1px solid rgba(32, 138, 239, 0.18);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.page-hero-lead {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
  color: var(--lime);
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 31, 61, 0.06);
  max-width: 52rem;
}

.guide-next {
  margin-top: 2rem;
  max-width: 52rem;
}

.guide-next h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.guide-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guide-next-links a {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.guide-next-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* --- LEARN HUB --- */
.learn-hero-lead {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  text-align: center;
}

.learn-hero .page-hero h1 {
  text-align: center;
}

.learn-featured-video {
  margin-bottom: 2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(12, 31, 61, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guide-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(32, 138, 239, 0.12);
}

.guide-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.guide-card p {
  margin: 0;
  flex: 1;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

.format-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.format-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: 1px solid rgba(12, 31, 61, 0.06);
}

.format-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.format-item p {
  margin: 0;
  font-size: 0.92rem;
}

.format-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(32, 138, 239, 0.12);
  color: var(--blue);
}

/* --- NAV DROPDOWN --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: default;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 13rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 120;
}

/* Invisible bridge so hover isn't lost in the gap below the toggle */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.65rem;
  height: 0.65rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.nav-dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--blue);
}

.home-learn-banner {
  background: var(--gray-100);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(12, 31, 61, 0.06);
}

.home-learn-banner .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.home-learn-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.home-learn-banner p {
  margin: 0;
  color: var(--gray-700);
  max-width: 36rem;
}

/* --- COURTS MAP EXPLORE (Google Maps–style) --- */
.courts-explore-body {
  overflow: hidden;
}

.courts-site-header {
  box-shadow: 0 1px 0 rgba(12, 31, 61, 0.06);
}

.courts-explore-page {
  padding: 0;
  margin: 0;
}

.courts-explore-shell {
  position: relative;
  height: calc(100dvh - 64px);
  min-height: 480px;
  --courts-ui-width: min(640px, calc(100% - 1.5rem));
  --courts-ui-inset-left: 50%;
  --courts-ui-inset-right: auto;
  --courts-ui-offset-x: -50%;
  --court-map-controls-bottom: calc(min(42dvh, 360px) + 1rem);
  --court-map-controls-right: 1rem;
  --court-map-locate-top: calc(0.85rem + 3.8rem + 0.5rem);
  --court-map-locate-right: var(--court-map-controls-right, 1rem);
}

.court-map-full {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.courts-gmaps-bar {
  position: absolute;
  top: 0.85rem;
  left: var(--courts-ui-inset-left);
  right: var(--courts-ui-inset-right);
  transform: translateX(var(--courts-ui-offset-x));
  z-index: 500;
  width: var(--courts-ui-width);
  pointer-events: none;
}

.courts-gmaps-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.12), 0 8px 28px rgba(12, 31, 61, 0.14);
  border: 1px solid rgba(12, 31, 61, 0.06);
}

.courts-gmaps-search-icon {
  font-size: 1.25rem;
  color: var(--gray-500);
  line-height: 1;
}

.courts-gmaps-search-wrap .court-search-input {
  flex: 1;
  min-height: 3.1rem;
  border: none;
  padding: 0.75rem 0.5rem 0.75rem 0;
  font-size: 1.05rem;
  background: transparent;
  box-shadow: none;
}

.courts-gmaps-search-wrap .court-search-input:focus {
  outline: none;
  border: none;
}

.courts-fab {
  position: absolute;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.15), 0 6px 20px rgba(12, 31, 61, 0.12);
}

/* Zoom controls bottom-right; locate FAB is top-right via .courts-fab-locate */
.court-map-full .leaflet-bottom.leaflet-right {
  bottom: var(--court-map-controls-bottom, 1rem);
  right: var(--court-map-controls-right, 1rem);
}

.court-map-full .leaflet-control-zoom {
  margin: 0 !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.15), 0 6px 20px rgba(12, 31, 61, 0.12);
}

.court-map-full .leaflet-control-zoom a {
  width: 2.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.court-map-full .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

.court-map-full .leaflet-control-zoom a:hover {
  background: var(--gray-100);
  color: var(--blue);
}

.courts-fab-locate {
  top: var(--court-map-locate-top, 0.85rem);
  right: var(--court-map-locate-right, 1rem);
}

.courts-suggest-promo {
  position: absolute;
  z-index: 500;
  top: 0.85rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(32, 138, 239, 0.35), 0 8px 24px rgba(12, 31, 61, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.courts-suggest-promo:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(32, 138, 239, 0.4), 0 10px 28px rgba(12, 31, 61, 0.2);
}

.courts-suggest-promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.court-sheet {
  position: absolute;
  z-index: 600;
  left: var(--courts-ui-inset-left);
  right: var(--courts-ui-inset-right);
  transform: translateX(var(--courts-ui-offset-x));
  width: var(--courts-ui-width);
  bottom: 0;
  max-height: min(42dvh, 360px);
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(12, 31, 61, 0.12), 0 -2px 8px rgba(12, 31, 61, 0.06);
  border-top: 1px solid rgba(12, 31, 61, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.court-sheet.is-expanded {
  max-height: min(72dvh, 620px);
}

.court-sheet-handle {
  width: 2.75rem;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-200);
  margin: 0.65rem auto 0;
  flex-shrink: 0;
}

.court-sheet-header {
  padding: 0.65rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.court-sheet-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.25;
}

.court-sheet-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1.4;
}

.court-sheet-sub.is-error {
  color: #c0392b;
}

.court-sheet-panel {
  overflow: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.court-sheet-panel .court-results {
  max-height: none;
  padding: 0.65rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.court-detail-panel {
  padding: 0.25rem 1.25rem 1.5rem;
}

.court-detail-panel h2 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.25;
  padding-right: 2.5rem;
}

.court-detail-panel .court-detail-address {
  margin: 0 0 0.5rem;
  font-size: 0.925rem;
  line-height: 1.45;
}

.court-detail-panel .court-detail-photo {
  margin-top: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.court-detail-panel .court-detail-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.court-detail-panel .court-detail-actions-top {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-top: 0;
  border-top: none;
}

.court-detail-panel .court-detail-actions .btn-secondary {
  background: var(--white);
  color: var(--navy-deep);
  border: 1.5px solid var(--gray-200);
}

.court-detail-panel .court-detail-actions .btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(32, 138, 239, 0.04);
}

.court-sheet-back {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy-deep);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.court-sheet-back:hover {
  background: var(--gray-100);
  border-color: rgba(32, 138, 239, 0.35);
}

.court-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.court-result:hover {
  background: rgba(32, 138, 239, 0.06);
  border-color: rgba(32, 138, 239, 0.12);
}

.court-result.is-active {
  background: rgba(32, 138, 239, 0.1);
  border-color: rgba(32, 138, 239, 0.28);
  box-shadow: 0 2px 8px rgba(32, 138, 239, 0.1);
}

.court-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.court-result-chevron {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-500);
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.7;
}

.court-result.is-active .court-result-chevron {
  color: var(--blue);
  opacity: 1;
}

.court-empty {
  color: var(--gray-700);
  margin: 0.5rem 0.25rem;
  padding: 1rem 1.1rem;
  font-size: 0.925rem;
  line-height: 1.5;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  text-align: center;
}

.court-empty a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.court-marker-icon-wrap {
  background: transparent;
  border: none;
}

.court-marker-pin {
  display: block;
  transform-origin: 50% 100%;
  transition: transform 0.15s ease, filter 0.15s ease;
  filter: drop-shadow(0 3px 6px rgba(12, 31, 61, 0.38));
}

.court-marker-pin-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.court-marker-pin-body {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
}

.court-marker-pin.is-active {
  transform: scale(1.16);
  filter: drop-shadow(0 4px 10px rgba(12, 31, 61, 0.48));
}

.court-marker-pin.is-active .court-marker-pin-body {
  fill: #1565c0;
  stroke-width: 2.5;
}

.court-marker-pin.is-suggest {
  animation: suggest-pin-pulse 2s ease-in-out infinite;
}

.court-marker-pin.is-suggest .court-marker-pin-body {
  stroke: #7dd3fc;
  stroke-width: 2.5;
}

@keyframes suggest-pin-pulse {
  0%,
  100% {
    filter: drop-shadow(0 3px 8px rgba(32, 138, 239, 0.45));
  }
  50% {
    filter: drop-shadow(0 5px 14px rgba(32, 138, 239, 0.7));
  }
}

@media (max-width: 600px) {
  .courts-explore-shell {
    --courts-ui-width: auto;
    --courts-ui-inset-left: 0.75rem;
    --courts-ui-inset-right: 4.25rem;
    --courts-ui-offset-x: 0;
    --court-map-locate-right: 0.75rem;
  }

  .courts-gmaps-bar {
    transform: none;
  }

  .courts-suggest-promo-label {
    display: none;
  }

  .courts-suggest-promo {
    padding: 0.65rem;
    top: 0.85rem;
    right: 0.75rem;
  }
}

@media (min-width: 901px) {
  .courts-explore-shell {
    --courts-ui-width: min(420px, calc(100% - 2rem));
    --courts-ui-inset-left: 1rem;
    --courts-ui-inset-right: auto;
    --courts-ui-offset-x: 0;
  }

  .courts-gmaps-bar {
    top: 1rem;
    transform: none;
  }

  .courts-explore-shell {
    --court-map-controls-bottom: 1.25rem;
    --court-map-controls-right: 1.25rem;
    --court-map-locate-top: calc(1rem + 2.3rem + 0.5rem);
    --court-map-locate-right: 1.25rem;
  }

  .courts-suggest-promo {
    top: 1rem;
    right: 1.25rem;
  }

  .court-sheet {
    top: 5.25rem;
    bottom: 1rem;
    max-height: none;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(12, 31, 61, 0.06);
    box-shadow: 0 4px 24px rgba(12, 31, 61, 0.14), 0 1px 4px rgba(12, 31, 61, 0.06);
  }

  .court-sheet.is-expanded {
    max-height: none;
  }

  .court-sheet-handle {
    display: none;
  }
}

/* --- VIDEO EMBEDS --- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.video-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* --- SHOP --- */
.shop-page {
  padding-bottom: 3rem;
}

.shop-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.shop-sidebar {
  min-width: 0;
}

.shop-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
}

.shop-filters-toggle-icon {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: transform 0.2s ease;
}

.shop-sidebar:not(.is-collapsed) .shop-filters-toggle-icon {
  transform: rotate(180deg);
}

.shop-sidebar.is-collapsed .shop-filters {
  display: none;
}

.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.shop-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.shop-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-filter-chips-wrap {
  max-height: 12rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.shop-chip {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.shop-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.shop-main {
  min-width: 0;
}

.shop-result-count {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .shop-layout {
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 2rem;
  }

  .shop-sidebar {
    position: sticky;
    top: 1.25rem;
  }

  .shop-filters-toggle {
    display: none;
  }

  .shop-sidebar.is-collapsed .shop-filters {
    display: flex;
  }

  .shop-sidebar .shop-filter-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-sidebar .shop-filter-chips-wrap {
    max-height: 10rem;
  }

  .shop-sidebar .shop-chip {
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
  }
}

.shop-empty {
  color: var(--gray-700);
  text-align: center;
  padding: 2rem;
}

.shop-category-block {
  margin-bottom: 2rem;
}

.shop-section-title {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-deep);
  border-bottom: 3px solid var(--blue);
}

.shop-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.shop-popular {
  margin-bottom: 2rem;
}

.shop-popular-block {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 55%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.shop-popular-header {
  margin-bottom: 1rem;
}

.shop-popular-lead {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.shop-popular-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.shop-popular-scroll .shop-card {
  scroll-snap-align: start;
}

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.shop-card-popular {
  border-color: #b8d4f5;
}

.shop-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.shop-card-image-wrap.is-missing {
  background: var(--gray-100);
}

.shop-card-image-wrap.is-missing::after {
  content: "No image";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.shop-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.shop-card-popular-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.shop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.shop-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(32, 138, 239, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.shop-card-brand {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.shop-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.shop-card-body p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--gray-700);
  flex: 1;
}

.shop-card-price {
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
}

.shop-card .btn {
  align-self: flex-start;
}


.courts-toolbar {
  margin-bottom: 1.5rem;
}

.court-search-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.45rem;
}

.court-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.court-search-input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--navy-deep);
  background: var(--white);
}

.court-search-input:focus {
  outline: 2px solid rgba(32, 138, 239, 0.35);
  border-color: var(--blue);
}

.court-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--gray-500);
}

.court-status.is-error {
  color: #c0392b;
}

.court-result-name {
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--navy-deep);
  line-height: 1.3;
}

.court-result-address {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.court-result-distance {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 0.1rem;
}

.court-map {
  width: 100%;
  height: 22rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  background: var(--gray-100);
}

.court-detail-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.court-detail-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.court-detail-address {
  color: var(--gray-700);
  margin: 0 0 0.75rem;
}

.court-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.court-detail-meta span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(32, 138, 239, 0.1);
  color: var(--blue);
}

.court-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.court-detail-loading {
  color: var(--gray-500);
  margin: 0;
}

.suggest-form {
  max-width: none;
}

/* --- COURTS SUGGEST (map + form panel) --- */
.courts-suggest-body {
  overflow: hidden;
}

.courts-suggest-page {
  padding: 0;
  margin: 0;
}

.courts-suggest-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 64px);
  min-height: 480px;
}

.courts-suggest-map-area {
  position: relative;
  flex: 0 0 min(46dvh, 400px);
  min-height: 260px;
  --court-map-controls-bottom: 1rem;
  --court-map-controls-right: 1rem;
  --court-map-locate-top: 0.85rem;
  --court-map-locate-right: var(--court-map-controls-right, 1rem);
}

.courts-suggest-map-area .court-map-full {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.courts-suggest-search-bar {
  z-index: 500;
}

.courts-suggest-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(12, 31, 61, 0.06);
}

.courts-suggest-panel-header {
  flex-shrink: 0;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}

.courts-suggest-breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
}

.courts-suggest-breadcrumb a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.courts-suggest-panel-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.2;
}

.courts-suggest-lead {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
}

.courts-suggest-map-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.courts-suggest-panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.25rem 1.5rem;
}

.courts-suggest-panel-body .suggest-form {
  margin: 0;
}

.suggest-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.suggest-btn-compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.suggest-success h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.suggest-success p {
  color: var(--gray-700);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .courts-suggest-map-area .courts-gmaps-bar {
    left: 0.75rem;
    right: 4.25rem;
    transform: none;
    width: auto;
  }

  .courts-suggest-map-area {
    --court-map-controls-bottom: 0.75rem;
    --court-map-controls-right: 0.75rem;
    --court-map-locate-right: 0.75rem;
  }
}

@media (min-width: 901px) {
  .courts-suggest-shell {
    flex-direction: row;
  }

  .courts-suggest-map-area {
    flex: 1;
    min-height: 0;
    min-width: 0;
  }

  .courts-suggest-map-area .courts-gmaps-bar {
    top: 1rem;
    left: 1rem;
    transform: none;
    width: min(420px, calc(100% - 2rem));
  }

  .courts-suggest-map-area {
    --court-map-controls-bottom: 1.25rem;
    --court-map-controls-right: 1.25rem;
    --court-map-locate-top: 1rem;
    --court-map-locate-right: 1.25rem;
  }

  .courts-suggest-panel {
    flex: 0 0 420px;
    width: 420px;
    border-top: none;
    border-left: 1px solid rgba(12, 31, 61, 0.08);
    box-shadow: -4px 0 24px rgba(12, 31, 61, 0.08);
  }

  .courts-suggest-panel-header {
    padding: 1.25rem 1.35rem 1rem;
  }

  .courts-suggest-panel-header h1 {
    font-size: 1.45rem;
  }

  .courts-suggest-panel-body {
    padding: 1.15rem 1.35rem 1.75rem;
  }
}

/* Legacy embedded map styles (unused on suggest page) */
.suggest-map-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.suggest-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  z-index: 1;
}

.suggest-map-search-bar {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 400;
  pointer-events: none;
}

.suggest-map-search {
  pointer-events: auto;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.14), 0 6px 20px rgba(12, 31, 61, 0.12);
}

.suggest-map-search .court-search-input {
  min-height: 2.5rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .suggest-map {
    height: 340px;
  }
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}

.form-field .required {
  color: #c0392b;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--navy-deep);
  background: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(32, 138, 239, 0.35);
  border-color: var(--blue);
}

.form-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.form-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.court-detail-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.suggest-photo-preview {
  margin-top: 0.75rem;
  max-height: 160px;
}

.court-detail-section {
  margin-top: 1.25rem;
}

.court-detail-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.court-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.court-feature {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}

.court-feature-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.court-feature-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.court-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.court-amenity {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--gray-100);
  color: var(--gray-500);
  opacity: 0.55;
}

.court-amenity.is-available,
.court-amenities-form .court-amenity.is-selected {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
  opacity: 1;
}

.court-amenities-form .court-amenity {
  cursor: pointer;
  opacity: 1;
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--gray-700);
}

.court-amenities-form .court-amenity.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.court-schedule-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
}

.court-schedule-list li + li {
  margin-top: 0.25rem;
}

.courts-security-note {
  margin-bottom: 1.5rem;
}

.form-section {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form-section legend {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--navy-deep);
  background: var(--white);
}


/* --- DESKTOP PHONE COLUMN ALIGNMENT (hero + AI) --- */
@media (min-width: 901px) {
  .hero-grid,
  .ai-panel {
    grid-template-columns: minmax(0, 1fr) var(--phone-screenshot-width);
  }

  .ai-panel {
    padding-right: 0;
  }

  .phone-showcase,
  .ai-phone-showcase {
    justify-self: end;
    justify-content: flex-end;
    margin-inline: 0;
    width: 100%;
    max-width: var(--phone-screenshot-width);
    padding-right: var(--phone-column-inset);
    padding-block: 0.75rem;
  }

  .phone-showcase .iphone-container,
  .ai-phone-showcase .iphone-container {
    margin-inline: 0;
  }
}

/* --- RESPONSIVE LAYOUTS --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--navy-deep);
  padding: 0;
}

@media (max-width: 900px) {
  :root {
    --phone-screenshot-width: min(42vw, 260px);
  }

  .hero-grid,
  .feature-grid,
  .split-section,
  .tour-layout,
  .ai-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tour-device-wrapper {
    order: 2;
  }

  .floating-card {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    gap: 1.25rem;
  }

  .site-header.nav-open .nav a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    margin-top: 0.35rem;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    cursor: pointer;
  }

  .courts-layout {
    grid-template-columns: 1fr;
  }

  .court-results {
    max-height: none;
  }

  .court-map {
    height: 18rem;
  }

  .court-feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --phone-screenshot-width: min(72vw, 280px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .iphone-frame {
    border-width: 7px;
    border-radius: 26px;
  }

  .iphone-screen {
    border-radius: 18px;
  }

  .iphone-dynamic-island {
    width: 48px;
    height: 12px;
    top: 7px;
    border-radius: 8px;
  }

  .iphone-side-btn.volume-up {
    height: 28px;
    top: 66px;
    left: -11px;
  }

  .iphone-side-btn.volume-down {
    height: 28px;
    top: 103px;
    left: -11px;
  }

  .iphone-side-btn.power {
    height: 43px;
    top: 79px;
    right: -11px;
  }

  .cta {
    padding: 3rem 1.5rem;
  }

  .ai-panel {
    padding: 1.75rem;
  }
}
