/*
 * PickleNow 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;
  --site-header-height: calc(4.25rem + env(safe-area-inset-top, 0px));
  --phone-screenshot-width: 310px;
  --phone-screenshot-aspect: 250 / 512;
  --phone-column-inset: 1.5rem;
  --touch-min: 2.75rem;
  --nav-overlay-z: 900;
  --nav-header-open-z: 910;
  --nav-drawer-z: 920;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::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, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(12, 31, 61, 0.1);
  box-shadow: 0 4px 24px rgba(12, 31, 61, 0.08);
}

.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: 0.75rem;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(12, 31, 61, 0.045);
  border: 1px solid rgba(12, 31, 61, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nav-actions {
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(12, 31, 61, 0.1);
}

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

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

.nav-cta {
  margin-left: 0;
  padding: 0.52rem 1.05rem;
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(184, 240, 69, 0.28);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nav-dropdown-toggle {
    padding: 0.42rem 0.72rem;
    font-size: 0.86rem;
  }

  .nav-cta {
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* --- 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 {
  position: relative;
  z-index: 25;
  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.25rem;
  padding: 0.48rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.05rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(12, 31, 61, 0.08);
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
  opacity: 0.75;
}

.nav-dropdown.is-active > .nav-dropdown-toggle {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(32, 138, 239, 0.22), 0 1px 4px rgba(32, 138, 239, 0.12);
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-pill-link:hover,
.nav-pill-link:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(12, 31, 61, 0.08);
}

.nav-pill-link.is-active {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(32, 138, 239, 0.22), 0 1px 4px rgba(32, 138, 239, 0.12);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 15.5rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(12, 31, 61, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(12, 31, 61, 0.14), 0 2px 8px rgba(12, 31, 61, 0.06);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown--learn .nav-dropdown-menu {
  left: 0;
  transform: translateY(4px);
}

.nav-dropdown-menu--mega {
  min-width: 24rem;
  padding: 0.65rem;
}

.nav-dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.85rem;
}

.nav-dropdown-column {
  min-width: 0;
}

.nav-dropdown-label {
  margin: 0.1rem 0.55rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* 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 {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown--learn:hover .nav-dropdown-menu {
  transform: translateY(0);
}

.nav-menu-link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.5rem;
  background: rgba(12, 31, 61, 0.05);
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}

.nav-menu-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.nav-menu-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.nav-menu-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
}

.nav-menu-desc {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1.25;
}

.nav-menu-link[aria-current="page"] {
  background: rgba(32, 138, 239, 0.1);
  box-shadow: inset 2px 0 0 var(--blue);
}

.nav-menu-link[aria-current="page"] .nav-menu-title {
  color: var(--blue);
}

.nav-menu-link:hover {
  background: rgba(32, 138, 239, 0.07);
  transform: translateX(1px);
}

.nav-menu-link:hover .nav-menu-title {
  color: var(--blue);
}

/* Legacy plain links inside dropdown (fallback) */
.nav-dropdown-menu a:not(.nav-menu-link) {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}

.nav-dropdown-menu a:not(.nav-menu-link)[aria-current="page"] {
  background: rgba(32, 138, 239, 0.1);
  color: var(--blue);
}

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

.hero-hub-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 138, 239, 0.35);
  box-shadow: 0 16px 36px rgba(7, 20, 40, 0.12);
}

.hero-hub-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hero-hub-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  color: var(--gray-700);
}

.hero-hub-text strong {
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.city-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.city-landing-prose .city-links-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}

.city-landing-prose .city-links-list a {
  color: var(--blue);
  font-weight: 600;
}

.city-landing-prose .city-links-list a:hover {
  color: var(--blue-bright);
}

.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;
}

.home-learn-banner .btn-secondary,
.home-learn-compact .btn-secondary,
.home-app-teaser .btn-secondary {
  background: var(--white);
  color: var(--navy-deep);
  border: 1.5px solid var(--gray-200);
}

.home-learn-banner .btn-secondary:hover,
.home-learn-compact .btn-secondary:hover,
.home-app-teaser .btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(32, 138, 239, 0.04);
}

.home-hub-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 48rem;
}

.home-hub-hero .hero-left-content {
  max-width: none;
}

/* --- HOME SEARCH HERO (Zillow / Airbnb style) --- */
.home-search-hero {
  position: relative;
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
}

.home-search-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(7, 20, 40, 0.84) 0%,
      rgba(12, 31, 61, 0.62) 40%,
      rgba(12, 31, 61, 0.35) 100%
    ),
    url("/assets/home-hero-pickleball.jpg") center 35% / cover no-repeat;
  z-index: 0;
}

.home-search-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.home-search-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
}

.home-search-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.home-search-module {
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  padding: 1.15rem 1.15rem 1rem;
}

.home-search-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.35rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.home-search-tab {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-search-tab:hover {
  color: var(--navy-deep);
}

.home-search-tab.is-active {
  color: var(--navy-deep);
  border-bottom-color: var(--blue);
}

.home-search-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.home-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-search-field-wrap {
  position: relative;
}

.home-search-field-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.home-search-input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--navy-deep);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-search-input:focus {
  outline: none;
  border-color: rgba(32, 138, 239, 0.55);
  box-shadow: 0 0 0 3px rgba(32, 138, 239, 0.15);
}

.home-search-submit {
  flex-shrink: 0;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-search-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.88rem;
}

.home-search-panel-footer a {
  font-weight: 700;
  color: var(--blue);
}

.home-search-panel-footer a:hover {
  color: var(--blue-bright);
}

.home-search-panel-footer span {
  color: var(--gray-400);
}

.home-shop-quick {
  display: grid;
  gap: 0.65rem;
}

.home-shop-quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-shop-quick-link:hover {
  border-color: rgba(32, 138, 239, 0.35);
  background: rgba(32, 138, 239, 0.04);
}

.home-shop-quick-link strong {
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.home-shop-quick-link span {
  font-size: 0.86rem;
  color: var(--gray-600);
}

.home-trending {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.home-trending-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.35rem;
}

.home-trending a {
  display: inline-block;
  margin: 0.15rem 0.5rem 0.15rem 0;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}

.home-trending a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-popular-section {
  padding-top: 2.5rem;
  background: var(--gray-100);
}

.home-popular-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  padding-bottom: 0.35rem;
}

.home-popular-grid::-webkit-scrollbar {
  height: 6px;
}

.home-popular-grid::-webkit-scrollbar-thumb {
  background: rgba(12, 31, 61, 0.18);
  border-radius: 999px;
}

.home-popular-court-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 min(19rem, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 1rem 1.05rem 1.1rem;
}

.home-popular-court-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.home-popular-court-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(32, 138, 239, 0.1);
  color: var(--blue);
}

.home-popular-court-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-popular-court-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  padding: 0;
}

.home-popular-court-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.25;
}

.home-popular-court-address {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.home-popular-court-features {
  margin-top: 0;
}

.home-popular-court-features.court-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-popular-court-features .court-feature {
  padding: 0.5rem 0.6rem;
}

.home-popular-court-features .court-feature-label {
  font-size: 0.66rem;
}

.home-popular-court-features .court-feature-value {
  font-size: 0.84rem;
}

.home-popular-court-amenities {
  margin-top: -0.15rem;
}

.home-popular-court-open-play {
  font-size: 0.84rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.home-popular-court-open-play p {
  margin: 0;
}

.home-popular-court-open-play p + p {
  margin-top: 0.35rem;
}

.home-popular-court-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.88rem;
}

.home-map-banner-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
  background: var(--gray-100);
}

.home-map-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 52%, var(--navy-soft) 100%);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-map-banner-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
}

.home-map-banner-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

.home-map-banner-copy p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.home-map-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.home-map-banner-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.home-map-banner-outline:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.home-cities-section {
  padding-top: 2rem;
  background: var(--white);
}

.home-city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: 0.65rem;
}

.home-city-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-city-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 138, 239, 0.28);
  box-shadow: 0 12px 28px rgba(12, 31, 61, 0.1);
}

.home-city-card span {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.home-city-card em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
}

.home-shop-section {
  background: var(--gray-100);
  border-top: 1px solid rgba(12, 31, 61, 0.06);
}

.home-court-search {
  margin: 1.5rem 0 1.25rem;
  max-width: 40rem;
}

.home-court-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(12, 31, 61, 0.1);
  border-radius: 999px;
  box-shadow: 0 4px 28px rgba(12, 31, 61, 0.14);
}

.home-court-search-wrap .courts-gmaps-search-icon {
  flex-shrink: 0;
}

.home-court-search-wrap .court-search-input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  border: none;
  padding: 0.5rem 0.35rem;
  font-size: 1.05rem;
  background: transparent;
}

.home-court-search-wrap .court-search-input:focus {
  outline: none;
}

.home-court-search-btn {
  flex-shrink: 0;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.home-court-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.home-court-search-meta a {
  font-weight: 700;
  color: var(--blue);
}

.home-court-search-meta a:hover {
  color: var(--blue-bright);
}

.home-hero-cities {
  margin-top: 1.25rem;
}

.home-hero-cities-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.home-shop-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 138, 239, 0.3);
  box-shadow: 0 14px 32px rgba(12, 31, 61, 0.1);
}

.home-shop-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(32, 138, 239, 0.1);
  color: var(--blue);
}

.home-shop-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.home-shop-card strong {
  font-size: 1rem;
  color: var(--navy-deep);
}

.home-shop-card span {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.45;
}

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

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

.home-learn-compact h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-deep);
}

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

.home-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-section-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.home-section-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.home-section-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.home-section-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.home-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.home-city-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.1);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-deep);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.home-city-chip:hover {
  border-color: rgba(32, 138, 239, 0.35);
  color: var(--blue);
  background: rgba(32, 138, 239, 0.06);
}

.home-app-teaser {
  background: linear-gradient(135deg, rgba(32, 138, 239, 0.08) 0%, rgba(184, 240, 69, 0.12) 100%);
  border-top: 1px solid rgba(12, 31, 61, 0.06);
  border-bottom: 1px solid rgba(12, 31, 61, 0.06);
}

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

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

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

/* --- COURTS MAP EXPLORE (Google Maps–style) --- */
.courts-explore-body,
.courts-suggest-body {
  --site-header-height: 4rem;
  --courts-legal-bar-height: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  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 - var(--site-header-height) - var(--courts-legal-bar-height, 2.25rem));
  min-height: 320px;
  --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-sheet-peek: 7.5rem;
  --court-sheet-list-expanded: min(55dvh, 480px);
  --court-sheet-detail-expanded: min(80dvh, 640px);
  --courts-bar-section-gap: 0.75rem;
  --court-map-controls-bottom: calc(var(--court-sheet-peek) + var(--courts-legal-bar-height, 2.25rem) + 0.75rem);
  --court-map-controls-right: 1rem;
}

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

.courts-legal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 450;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 31, 61, 0.92);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.courts-legal-bar a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.courts-legal-bar a:hover {
  color: var(--white);
}

.courts-legal-bar span {
  opacity: 0.45;
}

.courts-gmaps-bar {
  position: absolute;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  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-bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--courts-bar-section-gap);
  pointer-events: none;
  position: relative;
}

.courts-gmaps-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.courts-gmaps-bar-row--primary .courts-gmaps-search-wrap {
  flex: 1;
  min-width: 0;
}

.courts-gmaps-bar-row--actions .courts-bar-promos {
  flex: 1;
  width: 100%;
}

.courts-gmaps-bar-row--actions .courts-gear-promo,
.courts-gmaps-bar-row--actions .courts-suggest-promo {
  flex: 1;
  min-height: var(--touch-min);
}

.courts-gmaps-bar-row--primary:has(.court-search-input[aria-expanded="true"])
  ~ .court-filter-bar,
.courts-gmaps-bar-row--primary:has(.court-search-input[aria-expanded="true"])
  ~ .courts-gmaps-bar-row--actions {
  opacity: 0;
  pointer-events: none;
  height: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.courts-gmaps-bar-inner:has(.court-search-input[aria-expanded="true"]) {
  gap: 0;
}

.court-filters-panel.courts-gmaps-bar-inner {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  max-width: none;
  align-items: stretch;
  z-index: auto;
}

.courts-gmaps-bar-row--primary .court-filters-toggle {
  flex-shrink: 0;
}

.court-filters-toggle,
.court-filter-bar {
  pointer-events: auto;
}

.court-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch-min);
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(12, 31, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(12, 31, 61, 0.1), 0 6px 24px rgba(12, 31, 61, 0.12);
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.court-filters-toggle.is-active {
  border-color: rgba(32, 138, 239, 0.35);
  background: rgba(32, 138, 239, 0.08);
}

.court-filters-toggle.has-pending {
  border-color: rgba(32, 138, 239, 0.45);
  box-shadow: 0 0 0 2px rgba(32, 138, 239, 0.15);
}

.court-filters-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.court-filters-toggle-label {
  white-space: nowrap;
}

.court-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.court-filter-bar {
  width: 100%;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(12, 31, 61, 0.06);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(12, 31, 61, 0.1), 0 6px 24px rgba(12, 31, 61, 0.12);
  max-height: min(55dvh, 22rem);
  overflow: hidden;
  z-index: 2;
}

.court-filters-panel.is-expanded .court-filter-bar:not(.is-collapsed):not([hidden]) {
  display: flex;
}

.court-filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  overflow-anchor: none;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.court-filter-bar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.98);
  flex-shrink: 0;
}

.court-filters-clear-draft {
  min-height: var(--touch-min);
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-500);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.court-filters-clear-draft:hover {
  color: var(--navy-deep);
  background: rgba(12, 31, 61, 0.05);
}

.court-filters-apply {
  min-height: var(--touch-min);
  margin-left: auto;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(32, 138, 239, 0.35);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.court-filters-apply.has-pending:not(:disabled) {
  box-shadow: 0 2px 8px rgba(32, 138, 239, 0.45);
}

.court-filters-apply:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.court-filters-apply:not(:disabled):hover {
  transform: translateY(-1px);
}

.court-filters-apply:not(:disabled):active {
  transform: scale(0.98);
}

.court-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.court-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.court-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.court-chip {
  border: 1px solid rgba(12, 31, 61, 0.1);
  background: rgba(12, 31, 61, 0.04);
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.court-chip:hover {
  border-color: rgba(32, 138, 239, 0.35);
  background: rgba(32, 138, 239, 0.08);
}

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

.courts-gmaps-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  box-shadow: 0 1px 3px rgba(12, 31, 61, 0.1), 0 6px 24px rgba(12, 31, 61, 0.12);
  border: 1px solid rgba(12, 31, 61, 0.06);
}

.courts-gmaps-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gray-500);
  line-height: 1;
}

.courts-gmaps-search-icon svg {
  width: 100%;
  height: 100%;
}

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

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

.map-search-suggestions {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 700;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: 0 8px 28px rgba(12, 31, 61, 0.14);
  max-height: 16rem;
  overflow: auto;
}

.map-search-suggestion {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
  cursor: pointer;
  line-height: 1.35;
}

.map-search-suggestion.is-active,
.map-search-suggestion:hover {
  background: rgba(32, 138, 239, 0.08);
}

.map-search-suggestion.is-muted {
  color: var(--gray-500);
  cursor: default;
}

.map-search-suggestion.is-muted:hover {
  background: transparent;
}

/* Map type, locate, and zoom controls — stacked bottom-right */
.court-map-full .leaflet-bottom.leaflet-right {
  bottom: var(--court-map-controls-bottom, 1rem);
  right: var(--court-map-controls-right, 1rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.court-map-full .leaflet-bottom.leaflet-left {
  bottom: var(--court-map-controls-bottom, 1rem);
  left: var(--court-map-controls-left, 0.65rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.court-map-full .leaflet-control {
  margin: 0 !important;
}

.court-map-full .leaflet-control-zoom {
  border: none !important;
  border-radius: 10px;
  overflow: hidden;
  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);
}

.court-map-locate-control.leaflet-bar {
  border: none !important;
  background: transparent;
}

.court-map-locate-control {
  border: none !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.15), 0 6px 20px rgba(12, 31, 61, 0.12);
}

.court-map-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: var(--white);
  color: var(--navy-deep);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.court-map-locate-btn:hover {
  background: var(--gray-100);
  color: var(--blue);
}

.court-map-locate-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.court-map-full .leaflet-control-attribution {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--gray-500);
  border-radius: 6px 0 0 0;
  padding: 0.15rem 0.45rem;
  backdrop-filter: blur(6px);
}

.court-map-layer-control {
  position: relative;
  z-index: 760;
}

.court-map-layer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 755;
  background: rgba(7, 20, 40, 0.32);
  border: none;
  margin: 0;
  padding: 0;
}

.court-map-layer-control--compact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.court-map-layer-compact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 2.125rem;
  min-height: 2.125rem;
  padding: 0.2rem 0.1rem;
  border: 1px solid rgba(12, 31, 61, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(12, 31, 61, 0.12);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.court-map-layer-compact-btn.is-active,
.court-map-layer-compact-btn[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.court-map-layer-compact-thumb {
  display: block;
  width: 1.2rem;
  height: 0.55rem;
  border-radius: 3px;
  border: 1px solid rgba(12, 31, 61, 0.1);
}

.court-map-layer-compact-label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-deep);
  line-height: 1;
}

@media (min-width: 901px) {
  .court-map-full .leaflet-bottom.leaflet-right .court-map-layer-control--compact {
    order: -1;
    margin-bottom: 0.15rem;
  }
}

.court-map-layer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-deep);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.15), 0 6px 20px rgba(12, 31, 61, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}

.court-map-layer-toggle:hover,
.court-map-layer-toggle[aria-expanded="true"] {
  background: var(--gray-100);
  color: var(--blue);
}

.court-map-layer-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.court-map-layer-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 760;
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: 0 4px 20px rgba(12, 31, 61, 0.16);
}

.courts-view-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: 0 1px 3px rgba(12, 31, 61, 0.1);
  pointer-events: auto;
}

.courts-view-toggle-btn {
  min-width: 3.25rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-500);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.courts-view-toggle-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.court-detail-compact h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.court-detail-photo--compact {
  max-height: 120px;
  margin-bottom: 0.75rem;
}

.court-detail-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}

.court-summary-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(32, 138, 239, 0.1);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.court-detail-actions-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.court-detail-actions-primary .btn {
  flex: 1 1 8rem;
  min-height: var(--touch-min);
}

.court-detail-more {
  margin-top: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.court-detail-more summary {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
  background: var(--gray-100);
}

.court-detail-more summary::-webkit-details-marker {
  display: none;
}

.court-detail-more-body {
  padding: 0.85rem 1rem 1rem;
}

.court-feature-grid--compact {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.court-map-layer-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 4.25rem;
  padding: 0.35rem 0.25rem 0.4rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.court-map-layer-option:hover {
  background: rgba(32, 138, 239, 0.06);
}

.court-map-layer-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: rgba(32, 138, 239, 0.08);
}

.court-map-layer-thumb {
  display: block;
  width: 100%;
  height: 2.5rem;
  border-radius: 6px;
  border: 1px solid rgba(12, 31, 61, 0.12);
}

.court-map-layer-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.1;
}


.courts-bar-promos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.courts-gear-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.4rem;
  min-height: 3.45rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-deep);
  border: 1px solid rgba(12, 31, 61, 0.12);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  pointer-events: auto;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.courts-gear-promo:hover {
  color: var(--navy-deep);
  transform: translateY(-1px);
  border-color: rgba(32, 138, 239, 0.35);
  box-shadow: 0 8px 20px rgba(12, 31, 61, 0.1);
}

.courts-gear-promo:active {
  transform: scale(0.96);
}

.courts-gear-promo-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--blue);
}

.courts-suggest-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.4rem;
  min-height: 3.45rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  pointer-events: auto;
  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:active {
  transform: scale(0.96);
}

.courts-suggest-promo-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.courts-ai-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 61, 0.12);
  background: linear-gradient(135deg, rgba(184, 240, 69, 0.18), rgba(255, 255, 255, 0.95));
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.courts-ai-promo:hover {
  box-shadow: 0 6px 18px rgba(12, 31, 61, 0.12);
}

.courts-ai-promo-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.courts-ai-panel {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: calc(var(--courts-legal-bar-height, 2.25rem) + 0.75rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(12, 31, 61, 0.18);
  overflow: hidden;
}

.courts-ai-panel--site {
  position: fixed;
  z-index: 900;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  border: 1px solid rgba(12, 31, 61, 0.1);
  box-shadow: 0 18px 48px rgba(12, 31, 61, 0.18);
  overflow: hidden;
  right: auto;
  bottom: auto;
  width: 100%;
  max-height: none;
  border-radius: 0;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.courts-ai-panel.courts-ai-panel--site {
  max-height: none;
  bottom: auto;
  right: auto;
}

.courts-ai-panel--site.is-open {
  transform: translateY(0);
}

.copilot-backdrop {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(7, 20, 40, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  border: none;
  padding: 0;
  margin: 0;
}

.copilot-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.copilot-backdrop[hidden] {
  display: none !important;
}

body.copilot-open {
  overflow: hidden;
}

.copilot-launcher {
  position: fixed;
  z-index: 850;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.copilot-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 61, 0.1);
  background: linear-gradient(135deg, rgba(184, 240, 69, 0.35), rgba(255, 255, 255, 0.98));
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(12, 31, 61, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.copilot-launcher-btn:hover {
  box-shadow: 0 14px 32px rgba(12, 31, 61, 0.22);
  transform: translateY(-1px);
}

.copilot-launcher-btn.is-open {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.copilot-launcher-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.courts-ai-dots {
  display: inline-block;
  width: 1rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  vertical-align: middle;
  background: radial-gradient(circle, var(--gray-400) 35%, transparent 36%) 0 50% / 33% 100% repeat-x;
  animation: courts-ai-dots-pulse 1s steps(3) infinite;
}

@keyframes courts-ai-dots-pulse {
  from { background-position: 0 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 900px) {
  .copilot-launcher-label {
    display: none;
  }

  .copilot-launcher-btn {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }

  .courts-ai-panel--site {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: min(92dvh, calc(100dvh - var(--site-header-height)));
    max-height: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .courts-ai-panel--site .courts-ai-panel-header {
    padding: 1rem 1rem 0.75rem;
  }

  .courts-ai-panel--site .courts-ai-panel-header h2 {
    font-size: 1.1rem;
  }

  .courts-ai-panel--site .courts-ai-messages {
    min-height: 0;
    flex: 1;
    padding: 1rem;
  }

  .courts-ai-panel--site .courts-ai-bubble {
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    max-width: 92%;
  }

  .courts-ai-panel--site .courts-ai-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 1rem 0.75rem;
    gap: 0.5rem;
  }

  .courts-ai-panel--site .courts-ai-chips::-webkit-scrollbar {
    display: none;
  }

  .courts-ai-panel--site .courts-ai-chip {
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
    min-height: 2.5rem;
  }

  .courts-ai-panel--site .courts-ai-form {
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
  }

  .courts-ai-panel--site .courts-ai-input {
    font-size: 1rem;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
  }

  .courts-ai-panel--site .courts-ai-send {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
  }

  .courts-ai-panel--site .courts-ai-close {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .courts-ai-panel.courts-ai-panel--site {
    top: var(--site-header-height);
    right: 0;
    left: auto;
    bottom: 0;
    width: min(28rem, 38vw);
    min-width: 22rem;
    height: calc(100dvh - var(--site-header-height));
    min-height: calc(100dvh - var(--site-header-height));
    max-height: none;
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    box-shadow: -10px 0 40px rgba(12, 31, 61, 0.14);
    transform: translateX(100%);
  }

  .courts-ai-panel.courts-ai-panel--site.is-open {
    transform: translateX(0);
  }

  .courts-ai-panel--site .courts-ai-panel-header {
    flex-shrink: 0;
    padding: 1.15rem 1.25rem 0.9rem;
  }

  .courts-ai-panel--site .courts-ai-panel-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .courts-ai-panel--site .courts-ai-panel-header p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .courts-ai-panel--site .courts-ai-messages {
    min-height: 0;
    flex: 1 1 auto;
    padding: 1rem 1.15rem;
  }

  .courts-ai-panel--site .courts-ai-bubble {
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
  }

  .courts-ai-panel--site .courts-ai-message--assistant .courts-ai-bubble {
    max-width: 100%;
  }

  .courts-ai-panel--site .courts-ai-chips {
    flex-shrink: 0;
    padding: 0 1.15rem 0.75rem;
  }

  .courts-ai-panel--site .courts-ai-chip {
    font-size: 0.8125rem;
    font-weight: 600;
  }

  .courts-ai-panel--site .courts-ai-form {
    flex-shrink: 0;
    padding: 0.85rem 1.15rem 1.15rem;
  }

  .courts-ai-panel--site .courts-ai-input {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  body.copilot-open .copilot-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
  }
}

@media (max-width: 520px) {
  .copilot-launcher-label {
    display: none;
  }

  .copilot-launcher-btn {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .courts-ai-panel--site,
  .copilot-backdrop {
    transition: none;
  }
}

.courts-ai-panel[hidden] {
  display: none !important;
}

.courts-ai-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(248, 250, 252, 0.95);
}

.courts-ai-panel-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.courts-ai-panel-header p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
}

.courts-ai-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.courts-ai-consent {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 249, 219, 0.55);
}

.courts-ai-consent[hidden] {
  display: none !important;
}

.courts-ai-consent p {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-700);
}

.courts-ai-consent .btn {
  width: 100%;
}

.courts-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 8rem;
}

.courts-ai-message {
  display: flex;
}

.courts-ai-message--user {
  justify-content: flex-end;
}

.courts-ai-bubble {
  max-width: 92%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.courts-ai-message--assistant .courts-ai-bubble {
  background: var(--gray-100);
  color: var(--navy-deep);
  white-space: normal;
  word-break: break-word;
}

.courts-ai-bubble .courts-ai-court-link {
  display: inline;
  font-weight: 700;
}

.courts-ai-bubble br + .courts-ai-court-link,
.courts-ai-bubble .courts-ai-court-link {
  margin-top: 0.15rem;
}

.courts-ai-message--user .courts-ai-bubble {
  background: var(--navy-deep);
  color: var(--white);
}

.courts-ai-bubble--thinking {
  color: var(--gray-500);
  font-weight: 600;
}

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

.courts-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.65rem;
}

.courts-ai-chip {
  border: 1px solid rgba(12, 31, 61, 0.12);
  background: rgba(184, 240, 69, 0.12);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.courts-ai-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.courts-ai-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--gray-200);
}

.courts-ai-input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
}

.courts-ai-input:disabled {
  opacity: 0.55;
}

.courts-ai-send {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.courts-ai-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .courts-ai-panel:not(.courts-ai-panel--site) {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: calc(var(--courts-legal-bar-height, 2.25rem) + 0.5rem);
  }
}

.court-map-floating-card {
  position: absolute;
  z-index: 650;
  left: 1rem;
  right: 1rem;
  bottom: calc(var(--courts-legal-bar-height, 2.25rem) + 0.65rem);
  pointer-events: auto;
}

.court-map-floating-card[hidden] {
  display: none !important;
}

.court-map-floating-card-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 4px 24px rgba(12, 31, 61, 0.18), 0 1px 4px rgba(12, 31, 61, 0.08);
  border: 1px solid rgba(12, 31, 61, 0.06);
}

.court-map-floating-card-inner.is-loading {
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.court-map-floating-main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.court-map-floating-thumb {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(32, 138, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-map-floating-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-map-floating-thumb-icon {
  display: flex;
  color: var(--blue);
}

.court-map-floating-thumb-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.court-map-floating-info {
  flex: 1;
  min-width: 0;
}

.court-map-floating-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.court-map-floating-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.court-map-floating-close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.court-map-floating-address {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.court-map-floating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.court-map-floating-badge {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-700);
}

.court-map-floating-badge.is-highlight {
  background: rgba(32, 138, 239, 0.12);
  color: var(--blue);
}

.court-map-floating-actions {
  margin-top: 0.65rem;
}

.court-map-floating-actions .btn {
  width: 100%;
  min-height: 2.35rem;
}

.court-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(12, 31, 61, 0.06);
}

.court-list-card-main {
  align-items: flex-start;
}

.court-list-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.court-list-card-title-row .court-map-floating-title {
  flex: 1;
  min-width: 0;
}

.court-list-card-distance {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  padding-top: 0.1rem;
}

.court-map-floating-address--wrap {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.court-list-card-directions {
  width: 100%;
  min-height: 2.35rem;
}

.court-list-card-badges-pending {
  min-height: 1.25rem;
}

.court-list-card-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(32, 138, 239, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-list-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.court-list-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.court-list-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.court-list-card-address {
  font-size: 0.78rem;
  color: var(--gray-700);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.court-list-card-distance {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
}

.court-list-card-chevron {
  flex-shrink: 0;
  color: var(--gray-500);
  opacity: 0.55;
}

.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: var(--courts-legal-bar-height, 2.25rem);
  max-height: var(--court-sheet-peek, 7.5rem);
  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.38s var(--ease-out-expo), box-shadow 0.32s ease;
  touch-action: pan-y;
  will-change: max-height;
}

.court-sheet.is-expanded:not(.is-detail) {
  max-height: var(--court-sheet-list-expanded, min(55dvh, 480px));
  box-shadow: 0 -12px 40px rgba(12, 31, 61, 0.16), 0 -4px 12px rgba(12, 31, 61, 0.08);
}

.court-sheet.is-detail.is-expanded {
  max-height: var(--court-sheet-detail-expanded, min(80dvh, 640px));
}

.court-sheet-handle {
  display: block;
  width: 2.75rem;
  height: 5px;
  border-radius: 999px;
  background: var(--gray-200);
  margin: 0.7rem auto 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, width 0.28s var(--ease-out-expo);
}

.court-sheet.is-expanded .court-sheet-handle {
  width: 3.25rem;
  background: rgba(12, 31, 61, 0.18);
}

.court-sheet-handle::before {
  content: "";
  position: absolute;
  inset: -0.85rem -2rem;
}

.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-sub.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.4rem;
  border: 2px solid rgba(32, 138, 239, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: spin 0.7s linear infinite;
}

.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-gear-note,
.court-map-floating-gear {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gray-500);
}

.court-detail-gear-note a,
.court-map-floating-gear a {
  font-weight: 700;
  color: var(--blue);
}

.court-map-floating-gear {
  padding: 0 0.15rem 0.1rem;
}

.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 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.35rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-top: 0;
  padding-left: 2.75rem;
  border-top: none;
}

.court-detail-panel .court-detail-loading {
  min-height: 8rem;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.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%;
  min-height: var(--touch-min);
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 3px rgba(12, 31, 61, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s var(--ease-out-expo);
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gray-500);
  opacity: 0.65;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

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

.court-result--mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.65rem;
  box-shadow: none;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
}

.court-result--mini .court-result-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.court-result--mini .court-result-distance-badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
}

.court-results--mini.court-results--strip {
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.court-results--mini.court-results--strip::-webkit-scrollbar {
  display: none;
}

.court-results--mini.court-results--strip .court-result--mini {
  flex: 0 0 auto;
  min-width: 7.5rem;
  max-width: 10rem;
}

.court-results--mini:not(.court-results--strip) {
  gap: 0.35rem;
}

.court-results--mini:not(.court-results--strip) .court-result--mini {
  width: 100%;
}

.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.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
  filter: drop-shadow(0 2px 4px rgba(12, 31, 61, 0.28));
}

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

.court-marker-pin-ground {
  fill: rgba(12, 31, 61, 0.18);
}

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

.court-marker-pin-hole {
  fill: #fff;
}

.court-marker-pin-core {
  fill: var(--lime-dark);
}

.court-marker-pin.is-active {
  transform: scale(1.14) translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(12, 31, 61, 0.42));
  z-index: 1000;
}

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

.court-marker-pin.is-active .court-marker-pin-core {
  fill: var(--lime);
}


.court-user-location-wrap {
  background: transparent;
  border: none;
}

.court-user-location {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.court-user-location-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(12, 31, 61, 0.35);
}

.court-user-location-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(32, 138, 239, 0.28);
  animation: user-location-pulse 2s ease-out infinite;
}

@keyframes user-location-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }
  70%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .court-filters-toggle-label {
    display: none;
  }

  .court-filters-toggle {
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 380px) {
  .court-map-layer-option {
    width: 4rem;
  }
}

@media (max-width: 900px) {
  .courts-gmaps-bar-row--primary {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .courts-gmaps-bar-row--primary .courts-gmaps-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .courts-gmaps-bar-row--primary .court-filters-toggle {
    align-self: center;
    padding: 0.45rem 0.75rem;
  }

  .courts-gmaps-bar-row--primary .courts-view-toggle {
    align-self: center;
  }

  .court-filter-bar {
    max-height: min(50dvh, 24rem);
  }

  .courts-view-toggle {
    display: flex;
  }

  .courts-gmaps-bar {
    z-index: 650;
  }

  .courts-view-toggle-btn {
    min-height: var(--touch-min);
    min-width: 3.35rem;
    padding: 0.45rem 0.75rem;
  }

  .courts-explore-shell.is-map-view {
    --court-map-controls-bottom: calc(var(--courts-legal-bar-height) + 0.75rem);
    --court-map-controls-left: 0.65rem;
  }

  .courts-explore-shell.is-map-view.has-map-card {
    --court-map-controls-bottom: calc(7.75rem + var(--courts-legal-bar-height) + 0.75rem);
  }

  .courts-explore-shell.is-map-view .court-sheet:not(.is-detail) {
    display: none !important;
  }

  .courts-explore-shell.is-map-view .court-sheet.is-detail {
    display: flex;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    max-height: var(--court-sheet-detail-expanded, min(52dvh, 440px));
  }

  .court-map-layer-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(var(--court-map-controls-bottom) + 3.25rem);
    transform: translateX(-50%);
  }

  .courts-explore-shell {
    --court-sheet-detail-expanded: min(52dvh, 440px);
  }

  .courts-explore-shell.is-list-view {
    display: flex;
    flex-direction: column;
    gap: var(--courts-bar-section-gap);
    background: var(--gray-100);
    min-height: calc(100dvh - var(--site-header-height, 4rem));
  }

  .courts-explore-shell.is-list-view .court-map-full {
    display: none !important;
  }

  .courts-explore-shell.is-list-view .court-detail-panel,
  .courts-explore-shell.is-list-view .court-sheet-back {
    display: none !important;
  }

  .courts-explore-shell.is-list-view .court-results {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem 1rem;
    background: var(--gray-100);
  }

  .courts-explore-shell.is-list-view .court-map-floating-card {
    display: none !important;
  }

  .courts-explore-shell.is-list-view .courts-gmaps-bar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 0.55rem max(0.75rem, env(safe-area-inset-right)) 0.65rem
      max(0.75rem, env(safe-area-inset-left));
    flex-shrink: 0;
  }

  .courts-explore-shell.is-list-view .court-sheet {
    position: relative;
    flex: 1;
    min-height: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    bottom: auto;
    max-height: none;
    margin-top: 0;
    border-radius: 16px 16px 0 0;
    background: var(--gray-100);
    box-shadow: none;
  }

  .courts-explore-shell.is-list-view .court-sheet-handle {
    display: none;
  }

  .courts-explore-shell.is-list-view .court-map-full::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .courts-explore-body,
  .courts-suggest-body {
    --site-header-height: calc(4.25rem + env(safe-area-inset-top, 0px));
  }

  .courts-explore-shell:has(.court-sheet.is-expanded:not(.is-detail)) {
    --court-map-controls-bottom: calc(var(--court-sheet-list-expanded) + var(--courts-legal-bar-height, 2.25rem) + 0.75rem);
  }

  .courts-explore-shell.is-map-view:has(.court-sheet.is-expanded:not(.is-detail)),
  .courts-explore-shell.is-map-view:has(.court-sheet:not(.is-detail)) {
    --court-map-controls-bottom: calc(var(--courts-legal-bar-height) + 0.75rem);
  }

  .courts-explore-shell.is-map-view.has-map-card {
    --court-map-controls-bottom: calc(7.75rem + var(--courts-legal-bar-height) + 0.75rem);
  }

  .courts-explore-shell:has(.court-sheet.is-detail.is-expanded) {
    --court-map-controls-bottom: calc(var(--court-sheet-detail-expanded) + var(--courts-legal-bar-height, 2.25rem) + 0.75rem);
  }

  .court-sheet-header {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .court-map-full .leaflet-control-zoom a,
  .court-map-locate-btn,
  .court-map-layer-toggle {
    width: 2.75rem;
    height: 2.75rem;
    line-height: 2.75rem;
  }
}

@media (max-width: 600px) {
  .courts-explore-shell {
    --courts-ui-width: auto;
    --courts-ui-inset-left: max(0.75rem, env(safe-area-inset-left));
    --courts-ui-inset-right: max(0.75rem, env(safe-area-inset-right));
    --courts-ui-offset-x: 0;
  }

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

  .courts-gmaps-bar-row--actions .courts-bar-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .courts-gear-promo,
  .courts-suggest-promo {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: var(--touch-min);
    padding: 0 0.55rem;
    gap: 0.35rem;
  }

  .courts-gear-promo-label,
  .courts-suggest-promo-label {
    display: inline;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 7.5rem;
  }

  .courts-gear-promo-icon,
  .courts-suggest-promo-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
  }

  .map-search-suggestions {
    max-height: min(14rem, 42dvh);
  }
}

@media (min-width: 601px) {
  .courts-gear-promo-label,
  .courts-suggest-promo-label {
    display: inline;
  }
}

@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;
    --court-filters-inset-right: 1.25rem;
    /* Bottom edge of search/promo bar from shell top; set in courts.js */
    --courts-gmaps-bar-stack-height: 9.5rem;
  }

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

  .courts-explore-shell {
    --court-map-controls-bottom: calc(var(--courts-legal-bar-height, 2.25rem) + 1.25rem);
    --court-map-controls-right: 1.25rem;
  }

  .court-sheet {
    top: calc(var(--courts-gmaps-bar-stack-height) + var(--courts-bar-section-gap));
    bottom: calc(var(--courts-legal-bar-height, 2.25rem) + 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);
}

html:has(.equipment-toc) {
  scroll-padding-top: calc(4.75rem + 5rem);
}

.equipment-category {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(12, 31, 61, 0.08);
  scroll-margin-top: 5rem;
}

.equipment-category:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.equipment-toc {
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.75rem 0.65rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 31, 61, 0.1);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .equipment-toc {
    position: sticky;
    top: 4.75rem;
    z-index: 20;
  }

  .equipment-category {
    scroll-margin-top: calc(4.75rem + 5rem);
  }
}

.equipment-toc-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.equipment-toc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.equipment-toc-card {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 61, 0.1);
  background: var(--gray-100);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.equipment-toc-card:hover {
  border-color: rgba(32, 138, 239, 0.45);
  background: rgba(32, 138, 239, 0.08);
  color: var(--navy-deep);
  transform: none;
}

.equipment-toc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: rgba(12, 31, 61, 0.05);
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}

.equipment-toc-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.equipment-toc-name {
  line-height: 1.1;
}

.equipment-affiliate-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(32, 138, 239, 0.08);
  border: 1px solid rgba(32, 138, 239, 0.18);
  font-size: 0.92rem;
  color: var(--gray-700);
}

.equipment-top-list li {
  margin-bottom: 0.75rem;
}

.equipment-top-list strong {
  color: var(--navy);
}

.equipment-buy-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(32, 138, 239, 0.12);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.equipment-buy-link:hover {
  background: var(--blue);
  color: #fff;
}

/* --- SHOP --- */
.shop-page {
  --shop-card-width: 260px;
  --shop-card-image-size: 260px;
  --shop-toolbar-sticky-height: 4.25rem;
  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-affiliate-disclosure {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-500);
}

.shop-result-count {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
  scroll-margin-top: calc(var(--site-header-height) + var(--shop-toolbar-sticky-height) + 0.5rem);
}

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

  .shop-sidebar {
    position: sticky;
    top: calc(var(--site-header-height) + var(--shop-toolbar-sticky-height) + 0.35rem);
    align-self: start;
    z-index: 20;
    max-height: calc(
      100vh - var(--site-header-height) - var(--shop-toolbar-sticky-height) - 1rem
    );
    overflow-y: auto;
  }

  .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: 2.5rem;
}

.shop-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.shop-category-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}

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

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--shop-card-width)), 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.shop-product-grid .shop-card {
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.shop-popular-block {
  padding: 1.35rem 1.25rem 1.1rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 55%);
  border: 1px solid #d8e8fb;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 45, 82, 0.06);
}

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

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

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

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 45, 82, 0.06);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: #c8ddf5;
  box-shadow: 0 14px 30px rgba(15, 45, 82, 0.1);
}

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

.shop-card-image-wrap {
  position: relative;
  flex: 0 0 var(--shop-card-image-size);
  width: 100%;
  height: var(--shop-card-image-size);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

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

.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: 1rem 1.1rem 1.15rem;
}

.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.02rem;
  line-height: 1.3;
  color: var(--navy-deep);
}

.shop-card-desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--gray-700);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.shop-card-cta {
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

.shop-intro {
  margin-bottom: 1.35rem;
}

.shop-intro .shop-gear-crosslink {
  margin-bottom: 1rem;
}

.shop-quick-nav.home-city-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .shop-quick-nav.home-city-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shop-page.page-content {
  padding-top: 2rem;
}

.shop-toolbar-sticky {
  position: sticky;
  top: var(--site-header-height);
  z-index: 40;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  background: var(--gray-100);
  border-bottom: 1px solid rgba(12, 31, 61, 0.08);
  box-shadow: 0 4px 16px rgba(12, 31, 61, 0.06);
}

#shop-toolbar {
  scroll-margin-top: var(--site-header-height);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0;
}

.shop-search-wrap {
  flex: 1 1 14rem;
  min-width: 0;
}

.shop-search-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.92rem;
  color: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}

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

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.shop-sort-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}

.shop-sort-select {
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.shop-trust-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}

.shop-gear-crosslink {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
  border: 1px solid #d8e8fb;
}

.shop-gear-crosslink p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-700);
}

.shop-gear-crosslink a {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.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-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.court-result-distance-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--blue);
  background: rgba(32, 138, 239, 0.1);
  white-space: nowrap;
}

.court-result-name {
  font-weight: 800;
  font-size: 0.975rem;
  color: var(--navy-deep);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.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 - var(--site-header-height, 4rem) - var(--courts-legal-bar-height, 2.25rem));
  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;
}

.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;
}

.court-schedule-editor {
  margin-top: 0.35rem;
}

.court-schedule-draft {
  padding: 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50, #f8fafc);
}

.court-schedule-entries {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.court-schedule-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(12, 31, 61, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.court-schedule-entry-body {
  flex: 1;
  min-width: 0;
}

.court-schedule-entry-days {
  margin: 0;
  font-weight: 800;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.court-schedule-entry-time {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 600;
}

.court-schedule-entry-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.35;
}

.court-schedule-entry-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.court-schedule-entry-remove:hover {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.court-schedule-empty {
  margin: 0.35rem 0 0;
}

.court-schedule-conflict {
  margin: 0.55rem 0 0;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}

.court-schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.court-schedule-row {
  padding: 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50, #f8fafc);
}

.court-schedule-days {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.court-schedule-day {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0;
}

.court-schedule-day.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.court-schedule-times,
.court-schedule-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.court-schedule-meta {
  margin-top: 0.55rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .court-schedule-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

.court-schedule-select,
.court-schedule-fee {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.court-schedule-select span,
.court-schedule-fee span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.court-schedule-select select,
.court-schedule-fee input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
}

.court-schedule-remove {
  margin-top: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.court-schedule-add {
  margin-top: 0.65rem;
  width: 100%;
}

.court-schedule-add.is-ready {
  border-color: rgba(32, 138, 239, 0.45);
  background: rgba(32, 138, 239, 0.08);
  color: var(--blue);
}

@media (max-width: 900px) {
  .courts-suggest-body {
    overflow: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .courts-suggest-shell {
    height: auto;
    min-height: 0;
  }

  .courts-suggest-map-area {
    flex: none;
    height: clamp(300px, 55dvh, 480px);
    min-height: 300px;
    --court-map-controls-bottom: 1rem;
    --court-map-controls-right: 0.75rem;
  }

  .courts-suggest-map-area .courts-gmaps-bar {
    left: max(0.75rem, env(safe-area-inset-left));
    right: calc(4.25rem + env(safe-area-inset-right, 0px));
    transform: none;
    width: auto;
    top: calc(0.65rem + env(safe-area-inset-top, 0px));
  }

  .courts-suggest-panel {
    flex: none;
    min-height: auto;
    border-radius: 18px 18px 0 0;
  }

  .courts-suggest-panel-header {
    padding: 0.9rem 1rem 0.75rem;
  }

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

  .courts-suggest-map-hint {
    margin-top: 0.4rem;
  }

  .courts-suggest-panel-body {
    overflow: visible;
    flex: none;
    min-height: auto;
    padding: 0.85rem 1rem calc(1.25rem + var(--courts-legal-bar-height, 2.25rem));
  }
}

@media (max-width: 600px) {
  .courts-suggest-map-area {
    height: clamp(280px, 52dvh, 440px);
    min-height: 280px;
  }

  .courts-suggest-map-area .courts-gmaps-bar {
    left: max(0.75rem, env(safe-area-inset-left));
    right: calc(4.25rem + env(safe-area-inset-right, 0px));
    transform: none;
    width: auto;
  }

  .courts-suggest-map-area {
    --court-map-controls-bottom: 0.75rem;
    --court-map-controls-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;
  }

  .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,
.form-field .form-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;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 61, 0.1);
  background: rgba(12, 31, 61, 0.04);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy-deep);
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out-expo);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle:hover {
  background: rgba(32, 138, 239, 0.08);
  border-color: rgba(32, 138, 239, 0.22);
}

.site-header.nav-open .menu-toggle {
  background: rgba(32, 138, 239, 0.12);
  border-color: rgba(32, 138, 239, 0.25);
}

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

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .menu-toggle {
    position: relative;
    z-index: calc(var(--nav-drawer-z) + 1);
  }

  body.nav-open .courts-gmaps-bar,
  body.nav-open .court-filters-panel,
  body.nav-open .court-map-floating-card,
  body.nav-open .court-map-layer-panel,
  body.nav-open .court-sheet,
  body.nav-open .shop-toolbar-sticky {
    z-index: 1 !important;
  }

  body.nav-open .courts-legal-bar {
    z-index: 80;
  }

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

  .hero-hub-cards {
    grid-template-columns: 1fr;
  }

  .home-section-grid {
    grid-template-columns: 1fr;
  }

  .home-shop-strip {
    grid-template-columns: 1fr;
  }

  .home-city-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-submit {
    width: 100%;
  }

  .city-landing-prose .city-links-list {
    columns: 1;
  }

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

  .floating-card {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.nav-open .nav,
  body.nav-open #site-nav.is-mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(22rem, 88vw);
    max-height: none;
    margin: 0;
    padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-bottom: none;
    border-left: 1px solid rgba(12, 31, 61, 0.08);
    box-shadow: -8px 0 40px rgba(12, 31, 61, 0.14);
    gap: 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: var(--nav-drawer-z);
    animation: nav-slide-in 0.32s var(--ease-out-expo);
  }

  .site-header.nav-open .nav-pills,
  body.nav-open #site-nav.is-mobile-open .nav-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 14px;
  }

  .site-header.nav-open .nav-actions,
  body.nav-open #site-nav.is-mobile-open .nav-actions {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(12, 31, 61, 0.08);
    padding-top: 0.65rem;
  }

  .site-header.nav-open .nav a,
  body.nav-open #site-nav.is-mobile-open a {
    width: 100%;
    text-align: left;
  }

  .site-header.nav-open .nav-cta,
  body.nav-open #site-nav.is-mobile-open .nav-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    opacity: 1;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    padding: 0.15rem 0 0.35rem 0.35rem;
    margin-top: 0;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown-menu--mega {
    min-width: 0;
    padding: 0.15rem 0 0.35rem 0.35rem;
  }

  .nav-dropdown-columns {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

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

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

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

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    min-height: var(--touch-min);
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-dropdown.is-open .nav-dropdown-toggle {
    background: rgba(32, 138, 239, 0.1);
  }

  .nav-menu-link:hover {
    transform: none;
  }

  .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;
  }
}

/* --- MOBILE POLISH (touch, motion, safe areas) --- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nav-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes sheet-detail-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.tap-press:active {
  transform: scale(0.98);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--nav-overlay-z);
  background: rgba(7, 20, 40, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  margin: 0;
  animation: nav-backdrop-in 0.28s ease;
}

@keyframes nav-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.nav-open {
  overflow: hidden;
}

.site-header.nav-open {
  z-index: var(--nav-header-open-z);
}

.court-map-loading {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.court-map-loading.is-active {
  opacity: 1;
}

.court-map-loading-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(32, 138, 239, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.court-result--skeleton {
  pointer-events: none;
  cursor: default;
  background: var(--gray-100);
  box-shadow: none;
}

.court-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.court-skeleton-line {
  height: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-200) 0%, rgba(255, 255, 255, 0.9) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.court-skeleton-line--title {
  width: 68%;
  height: 0.9rem;
}

.court-skeleton-line--address {
  width: 92%;
}

.court-skeleton-line--meta {
  width: 38%;
  height: 0.65rem;
}

.court-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem 2.25rem;
}

.court-empty-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.55;
}

.court-empty-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.court-empty-desc {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.45;
  max-width: 16rem;
}

.court-empty-cta {
  margin-top: 0.25rem;
}

.court-detail-panel.is-entering {
  animation: sheet-detail-in 0.32s var(--ease-out-expo);
}

.court-detail-loading-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2.5px solid rgba(32, 138, 239, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.court-sheet-back {
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
}

.court-sheet-back:active {
  transform: scale(0.94);
}

.home-popular-court-card--skeleton {
  pointer-events: none;
  gap: 0.65rem;
}

.home-popular-skeleton-line {
  height: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-200) 0%, rgba(255, 255, 255, 0.9) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.home-popular-skeleton-line--title {
  width: 72%;
  height: 1rem;
}

.home-popular-skeleton-line--address {
  width: 90%;
}

.home-popular-skeleton-line--btn {
  width: 45%;
  height: 2.25rem;
  margin-top: 0.5rem;
  border-radius: 999px;
}

.home-popular-court-card {
  transition: transform 0.15s var(--ease-out-expo), box-shadow 0.2s ease;
}

.home-popular-court-card:active {
  transform: scale(0.98);
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .courts-explore-shell:has(.court-sheet.is-expanded) .court-map-full::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 40, 0.12);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.32s ease;
    opacity: 1;
  }

  .home-search-hero {
    padding: calc(2.5rem + env(safe-area-inset-top, 0px)) 0 2.25rem;
  }

  .home-search-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .home-search-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .home-search-module {
    padding: 1rem;
    border-radius: 16px;
  }

  .home-search-input,
  .home-search-submit {
    min-height: var(--touch-min);
  }

  .home-trending {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .home-trending::-webkit-scrollbar {
    display: none;
  }

  .home-trending-label {
    flex-shrink: 0;
    margin-right: 0;
  }

  .home-trending a {
    flex-shrink: 0;
    margin: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    transition: background 0.15s ease, transform 0.12s var(--ease-out-expo);
  }

  .home-trending a:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.2);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.55rem, 5.5vw, 2rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .home-popular-grid {
    gap: 0.85rem;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .home-popular-court-card {
    flex: 0 0 min(17.5rem, 84vw);
  }

  .home-city-cards {
    gap: 0.65rem;
  }

  .site-footer {
    padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    gap: 0.65rem 1.15rem;
  }

  .footer-links a {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
  }

  .site-header .inner {
    padding: calc(0.65rem + env(safe-area-inset-top, 0px) * 0.25) 0 0.65rem;
  }

  .site-header.nav-open .nav-pill-link,
  body.nav-open #site-nav.is-mobile-open .nav-pill-link {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
  }

  .nav-menu-link {
    min-height: var(--touch-min);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .courts-explore-shell {
    --court-sheet-peek: 5rem;
    --court-sheet-list-expanded: min(58dvh, 520px);
  }

  .courts-gmaps-search-wrap .court-search-input {
    min-height: var(--touch-min);
    font-size: 1rem;
  }

  .courts-gear-promo,
  .courts-suggest-promo {
    min-height: var(--touch-min);
  }

  .court-sheet-panel .court-results {
    padding: 0.35rem 0.65rem 0.85rem;
    gap: 0.35rem;
  }

  .court-result:not(.court-result--mini) {
    padding: 0.85rem 0.9rem;
  }

  .home-learn-compact .inner,
  .home-app-teaser .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home-city-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand span {
    font-size: 1.05rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .home-search-hero h1 {
    font-size: 1.55rem;
  }

  .home-popular-court-card {
    flex: 0 0 min(16rem, 88vw);
  }

  .courts-explore-shell {
    --courts-ui-inset-left: max(0.65rem, env(safe-area-inset-left));
    --courts-ui-inset-right: max(0.65rem, env(safe-area-inset-right));
  }

  .court-sheet-header {
    padding: 0.6rem 1rem 0.75rem;
  }

  .court-sheet-header h2 {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .court-sheet {
    will-change: auto;
  }

  .tap-press:active,
  .home-popular-court-card:active,
  .menu-toggle:active,
  .court-sheet-back:active,
  .home-trending a:active {
    transform: none;
  }
}
