* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #03142f;
  --panel: rgba(3, 42, 88, 0.82);
  --panel-strong: rgba(2, 26, 61, 0.96);
  --border: rgba(45, 151, 234, 0.5);
  --border-soft: rgba(52, 142, 215, 0.3);
  --text: #f5f9ff;
  --muted: #adc9e8;
  --cyan: #08dff0;
  --blue: #126fff;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Only body clips sideways (see profile.css: on both, Android Chrome will
   not scroll the page with one finger). */
body {
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 112, 236, 0.42), transparent 25rem),
    radial-gradient(circle at 100% 27%, rgba(0, 175, 221, 0.14), transparent 23rem),
    linear-gradient(160deg, #061a3c 0%, #032552 50%, #03162f 100%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Line icons. Not QR codes: a stroke hides their modules. */
svg:not(.qr-code) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(132deg, transparent 0 54%, rgba(12, 118, 225, 0.07) 54% 72%, transparent 72%),
    repeating-linear-gradient(145deg, transparent 0 90px, rgba(255, 255, 255, 0.012) 92px, transparent 94px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(56, 148, 227, 0.34);
  background: rgba(2, 20, 48, 0.9);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  gap: 7px;
}

.topbar-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
}

.topbar-button svg {
  width: 21px;
  height: 21px;
}

.brand {
  min-width: 0;
}

.brand img {
  display: block;
  width: min(100%, 170px);
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.topbar-actions {
  display: flex;
  align-items: center;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid #071a3c;
  border-radius: 50%;
  background: #ff2d55;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(9, 223, 242, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #086bd8, #1649f8);
  font-size: 10px;
  font-weight: 800;
}

.venues-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100dvh - 58px);
  padding: 10px max(12px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.play-heading {
  padding: 2px 3px 0;
}

.play-heading h1 {
  margin: 0;
  font-size: clamp(40px, 11vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.play-heading p {
  margin: 10px 0 0;
  color: #5bb5ff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.29em;
}

.entity-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.entity-choice {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(45, 142, 224, 0.38);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(3, 39, 84, 0.58);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.entity-choice svg {
  width: 21px;
  height: 21px;
}

.entity-choice.is-active {
  border-color: var(--cyan);
  color: white;
  background: linear-gradient(120deg, rgba(0, 174, 225, 0.78), rgba(20, 82, 255, 0.9));
  box-shadow: 0 0 15px rgba(9, 223, 242, 0.34), inset 0 1px rgba(255, 255, 255, 0.18);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: 13px;
}

.search-box {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(47, 151, 232, 0.56);
  border-radius: 15px;
  background: rgba(3, 38, 81, 0.7);
}

.search-box svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #c3dcf9;
}

.search-box input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #91add0;
}

.filter-button {
  display: grid;
  width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(47, 151, 232, 0.56);
  border-radius: 15px;
  color: #dceeff;
  background: rgba(3, 38, 81, 0.76);
}

.filter-button svg {
  width: 22px;
  height: 22px;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.collection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 12px;
}

.collection-tabs {
  display: flex;
  min-width: 0;
  gap: 5px;
}

.collection-tab,
.near-me {
  min-height: 38px;
  border: 1px solid rgba(40, 132, 210, 0.37);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(2, 30, 69, 0.7);
}

.collection-tab {
  padding: 7px 11px;
  font-size: 11px;
}

.collection-tab.is-active {
  border-color: var(--cyan);
  color: white;
  background: linear-gradient(120deg, rgba(0, 174, 225, 0.78), rgba(20, 82, 255, 0.9));
  box-shadow: 0 0 12px rgba(9, 223, 242, 0.27);
}

.near-me {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 700;
}

.near-me svg {
  width: 18px;
  height: 18px;
}

.near-me[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.venue-results {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.venue-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  background: linear-gradient(140deg, rgba(4, 45, 94, 0.9), rgba(2, 27, 64, 0.82));
  text-decoration: none;
}

.venue-visual {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background: linear-gradient(155deg, #2596d2, #1269a6 52%, #155088);
}

.venue-visual.tone-2 {
  background: linear-gradient(155deg, #42556d, #157ab0 52%, #124e7c);
}

.venue-visual.tone-3 {
  background: linear-gradient(155deg, #bf714e, #3c5c91 48%, #10517d);
}

.venue-visual.tone-4 {
  background: linear-gradient(155deg, #394951, #09719f 52%, #164d74);
}

.venue-visual::before {
  content: "";
  position: absolute;
  inset: 15px 12px;
  border: 2px solid rgba(231, 248, 255, 0.64);
  border-radius: 5px;
  transform: perspective(90px) rotateX(12deg);
}

.venue-visual::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 18%;
  left: 18%;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -17px rgba(255, 255, 255, 0.31), 0 17px rgba(255, 255, 255, 0.27);
}

.venue-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 9px 10px;
}

.venue-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.venue-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.13;
  letter-spacing: -0.015em;
}

.save-button {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: -3px -2px 0 0;
  padding: 0;
  border: 1px solid rgba(56, 150, 230, 0.42);
  border-radius: 50%;
  color: #c8e2ff;
  background: rgba(5, 54, 103, 0.72);
}

.save-button svg {
  width: 17px;
  height: 17px;
}

.save-button.is-saved {
  border-color: var(--cyan);
  color: var(--cyan);
}

.venue-location {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.venue-location svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.venue-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #bfd7f3;
  font-size: 10.5px;
}

.member-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.member-count svg {
  width: 16px;
  height: 16px;
}

.court-note {
  color: #739ac4;
  font-size: 8.5px;
}

.loading-state,
.empty-state {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px dashed rgba(67, 159, 229, 0.45);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(2, 28, 65, 0.42);
  text-align: center;
  font-size: 12px;
}

.spinner {
  width: 21px;
  height: 21px;
  border: 3px solid rgba(83, 172, 238, 0.24);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 58px;
  padding: 4px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  border-top: 1px solid rgba(46, 138, 220, 0.48);
  border-radius: 18px 18px 0 0;
  background: rgba(2, 21, 49, 0.96);
  backdrop-filter: blur(22px);
}

.nav-item,
.nav-add {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}

.nav-item {
  flex-direction: column;
  gap: 2px;
  font-size: 9.5px;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.is-active {
  color: var(--cyan);
}

.nav-add {
  flex-direction: column;
  gap: 3px;
  font-size: 9px;
}

.nav-add svg {
  width: 44px;
  height: 44px;
  margin-top: -20px;
  padding: 10px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #09b9dc, #1553ff);
  box-shadow: 0 0 15px rgba(9, 223, 242, 0.28);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 389px) {
  .venues-page {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .play-heading h1 {
    font-size: 38px;
  }

  .venue-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .venue-title {
    font-size: 14px;
  }

  .collection-tab {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .near-me {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }
}

@media (min-width: 760px) {
  .topbar-inner,
  .venues-page {
    width: min(100%, 1180px);
    margin-right: auto;
    margin-left: auto;
  }

  .venues-page {
    padding-top: 20px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .venue-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    right: 20px;
    bottom: 16px;
    left: 20px;
    width: min(calc(100% - 40px), 760px);
    margin: 0 auto;
    border: 1px solid rgba(46, 138, 220, 0.48);
    border-radius: 22px;
  }
}

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


.sport-filter {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.sport-chip {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(48, 142, 220, 0.42);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 38, 81, 0.64);
  font-size: 11px;
  font-weight: 700;
}

.sport-chip.is-active {
  border-color: var(--cyan);
  color: #ffffff;
  background: linear-gradient(
    120deg,
    rgba(0, 174, 225, 0.74),
    rgba(20, 82, 255, 0.82)
  );
  box-shadow: 0 0 11px rgba(9, 223, 242, 0.22);
}


.venue-sports {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.venue-sports span {
  padding: 3px 6px;
  border: 1px solid rgba(8, 223, 240, 0.3);
  border-radius: 999px;
  color: #9eeaf4;
  background: rgba(5, 82, 121, 0.38);
  font-size: 8.5px;
  font-weight: 700;
}


.venue-category {
  margin-top: 5px;
  color: #86a9cb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dfeeff;
  font-size: 9.5px;
}

.venue-rating strong {
  color: #ffd25f;
  font-weight: 800;
}

.venue-rating span {
  color: #8dabca;
}

.venue-review-muted {
  color: #718eac;
  font-size: 9px;
}

.venue-hours {
  color: #98b6d4;
  font-size: 9px;
}

.venue-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #d3e5f6;
  font-size: 9px;
}

.venue-contact-label {
  color: #7295b8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.venue-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.venue-source-badge,
.venue-courtcast-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  border: 1px solid rgba(111, 171, 227, 0.18);
  border-radius: 999px;
  background: rgba(38, 91, 141, 0.16);
  color: #83add4;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venue-courtcast-badge {
  color: #8fd9c4;
  border-color: rgba(93, 210, 175, 0.2);
  background: rgba(36, 123, 98, 0.13);
}

.venue-external-note {
  color: #627f9c;
  font-size: 7.5px;
}


/* courtcast-app-navigation-v1 */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

::view-transition-old(root) {
  animation-name: courtcast-old-page;
}

::view-transition-new(root) {
  animation-name: courtcast-new-page;
}

@keyframes courtcast-old-page {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes courtcast-new-page {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html[data-nav-direction="back"]::view-transition-old(root) {
  animation-name: courtcast-old-page-back;
}

html[data-nav-direction="back"]::view-transition-new(root) {
  animation-name: courtcast-new-page-back;
}

@keyframes courtcast-old-page-back {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes courtcast-new-page-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html.courtcast-navigation-leaving body {
  pointer-events: none;
}

html.courtcast-navigation-leaving[data-nav-direction="forward"] body {
  animation: courtcast-fallback-forward 130ms ease both;
}

html.courtcast-navigation-leaving[data-nav-direction="back"] body {
  animation: courtcast-fallback-back 130ms ease both;
}

@keyframes courtcast-fallback-forward {
  to {
    opacity: .72;
    transform: translateX(-12px);
  }
}

@keyframes courtcast-fallback-back {
  to {
    opacity: .72;
    transform: translateX(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  html.courtcast-navigation-leaving body {
    animation-duration: 1ms !important;
    animation-name: none !important;
  }
}

:root {
  --venues-light-ui-p: 1;
  --venue-navy: #07185e;
  --venue-blue: #087df5;
  --venue-cyan: #0fc6ff;
  --venue-ice: #eef8ff;
  --venue-card: #ffffff;
  --venue-border: #d9e8f5;
  --venue-muted: #58739e;
  color-scheme: light;
}

html,
body {
  background: #eaf6ff;
  color: var(--venue-navy);
}

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(55,173,255,.14), transparent 29rem),
    radial-gradient(circle at 93% 43%, rgba(27,183,255,.08), transparent 25rem),
    linear-gradient(180deg, #f7fcff 0%, #ecf7ff 47%, #e6f4ff 100%);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
}

.page-atmosphere {
  background:
    radial-gradient(circle at 14% 18%, rgba(40,168,255,.07), transparent 26%),
    radial-gradient(circle at 89% 60%, rgba(20,187,255,.055), transparent 25%);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline-color: #087df5;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(68,174,255,.27);
  background:
    radial-gradient(circle at 83% 0%, rgba(0,177,255,.19), transparent 34%),
    linear-gradient(135deg, #073f75 0%, #032b5b 52%, #021d46 100%);
  box-shadow:
    0 7px 24px rgba(4,42,89,.14),
    inset 0 -1px 0 rgba(255,255,255,.07);
  backdrop-filter: none;
}

.topbar-inner {
  width: min(100%, 900px);
  min-height: 72px;
  margin-inline: auto;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 11px;
  padding:
    8px max(16px, env(safe-area-inset-right))
    8px max(16px, env(safe-area-inset-left));
}

.topbar-button {
  width: 44px;
  min-height: 48px;
  color: #ffffff;
}

.topbar-button svg {
  width: 25px;
  height: 25px;
}

.brand img {
  width: min(100%, 250px);
  height: 47px;
}

.topbar-actions {
  gap: 3px;
}

.account-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid #19cbff;
  background: linear-gradient(145deg, #118eff, #0953eb);
  color: #ffffff;
  font-size: 13px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.17),
    0 6px 18px rgba(0,130,255,.25);
}

.notification-dot {
  top: 8px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-color: #04305f;
}

.venues-page {
  width: min(100%, 900px);
  min-height: calc(100dvh - 72px);
  margin-inline: auto;
  padding:
    24px max(20px, env(safe-area-inset-right))
    calc(128px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 92% 9%, rgba(112,206,255,.10), transparent 27%),
    rgba(248,252,255,.96);
  box-shadow:
    0 -2px 0 rgba(255,255,255,.88),
    0 12px 36px rgba(58,114,160,.07);
}

.play-heading {
  padding: 0;
}

.play-heading h1 {
  color: var(--venue-navy);
  font-size: clamp(48px, 10vw, 62px);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.055em;
}

.play-heading p {
  margin-top: 11px;
  color: #5069a0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .31em;
}

.entity-switch {
  gap: 12px;
  margin-top: 23px;
}

.entity-choice {
  min-height: 74px;
  gap: 13px;
  padding: 10px 18px;
  border: 1px solid #d1e4f4;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f9fcff);
  color: #45618e;
  font-size: 17px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 5px 15px rgba(68,118,156,.05);
}

.entity-choice svg {
  width: 30px;
  height: 30px;
}

.entity-choice.is-active {
  border-color: #55ccff;
  background:
    linear-gradient(135deg, #1498ff 0%, #0675f3 55%, #0ebdff 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 7px 17px rgba(0,136,244,.21);
}

.sport-filter {
  display: none;
}

.search-row {
  grid-template-columns: minmax(0,1fr) 66px;
  gap: 13px;
  margin-top: 27px;
}

.search-box {
  min-height: 66px;
  gap: 16px;
  padding-inline: 20px;
  border: 1px solid #cee0f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 5px 15px rgba(66,111,151,.04);
}

.search-box svg {
  width: 31px;
  height: 31px;
  color: var(--venue-navy);
}

.search-box input {
  color: var(--venue-navy);
  font-size: 17px;
  font-weight: 450;
}

.search-box input::placeholder {
  color: #7890b5;
}

.filter-button {
  width: 66px;
  min-height: 66px;
  border: 1px solid #d0e2f2;
  border-radius: 18px;
  background: #ffffff;
  color: var(--venue-navy);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 5px 15px rgba(66,111,151,.04);
}

.filter-button svg {
  width: 28px;
  height: 28px;
}

.filter-button[aria-pressed="true"] {
  border-color: #3dbfff;
  background: #e9f8ff;
  color: #087df5;
}

.collection-row {
  gap: 12px;
  margin-top: 22px;
}

.collection-tabs {
  gap: 10px;
}

.collection-tab,
.near-me {
  min-height: 52px;
  border: 1px solid #d2e3f2;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  color: #365789;
  box-shadow:
    inset 0 1px 0 #ffffff;
}

.collection-tab {
  min-width: 108px;
  padding: 9px 18px;
  font-size: 14px;
}

.collection-tab.is-active {
  border-color: #25c9ff;
  background:
    linear-gradient(135deg, #0f96ff, #0878f4 63%, #12bfff);
  color: #ffffff;
  box-shadow:
    0 7px 18px rgba(4,136,245,.21),
    inset 0 1px 0 rgba(255,255,255,.26);
}

.near-me {
  gap: 8px;
  padding-inline: 17px;
  color: #096bed;
  font-size: 14px;
  font-weight: 750;
}

.near-me svg {
  width: 23px;
  height: 23px;
}

.near-me[aria-pressed="true"] {
  border-color: #32bcff;
  background: #e7f8ff;
  color: #087df5;
}

.venue-results {
  gap: 14px;
  margin-top: 27px;
}

.venue-card {
  grid-template-columns: 36% minmax(0,1fr);
  min-height: 158px;
  overflow: hidden;
  border: 1px solid #e0ebf5;
  border-radius: 20px;
  background: #ffffff;
  color: var(--venue-navy);
  box-shadow:
    0 9px 24px rgba(48,103,148,.07),
    inset 0 1px 0 #ffffff;
}

.venue-visual {
  min-height: 158px;
  background:
    linear-gradient(145deg, #43a3dd, #1679ba 50%, #0c558c);
}

.venue-photo {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-visual:has(.venue-photo)::before,
.venue-visual:has(.venue-photo)::after {
  display: none;
}

.venue-card-body {
  padding: 15px 16px 14px 19px;
}

.venue-title-row {
  gap: 9px;
}

.venue-title {
  color: var(--venue-navy);
  font-size: 20px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.save-button {
  width: 44px;
  height: 44px;
  margin: -3px -3px 0 0;
  border: 1px solid #d3e4f3;
  background: #ffffff;
  color: var(--venue-navy);
  box-shadow: inset 0 1px 0 #ffffff;
}

.save-button svg {
  width: 23px;
  height: 23px;
}

.save-button.is-saved {
  border-color: #47c6ff;
  background: #eaf9ff;
  color: #087df5;
}

.venue-location {
  gap: 9px;
  margin-top: 8px;
  color: #5875a2;
  font-size: 14px;
}

.venue-location svg {
  width: 19px;
  height: 19px;
  color: #5874a1;
}

.venue-sports,
.venue-category,
.venue-contact-row,
.venue-card-footer {
  display: none;
}

.venue-meta {
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: #527099;
  font-size: 12px;
}

.venue-rating {
  gap: 6px;
  color: #496991;
  font-size: 12px;
}

.venue-rating strong {
  color: #0b63de;
}

.venue-rating span,
.venue-hours,
.venue-review-muted {
  color: #6782a6;
  font-size: 11px;
}

.loading-state,
.empty-state {
  min-height: 150px;
  padding: 24px;
  border: 1px solid #d7e7f4;
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  color: #6580a5;
  font-size: 14px;
  box-shadow:
    0 8px 22px rgba(48,103,148,.06);
}

.spinner {
  border-color: rgba(19,126,237,.15);
  border-top-color: #087df5;
}

.bottom-nav {
  right: auto;
  bottom: max(9px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 16px), 840px);
  min-height: 88px;
  margin: 0;
  padding: 8px 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(82,183,255,.68);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(15,137,255,.25), transparent 29%),
    linear-gradient(145deg, #08447e 0%, #042f60 49%, #031e46 100%);
  box-shadow:
    0 16px 36px rgba(0,43,91,.25),
    inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(22px);
}

.nav-item,
.nav-add {
  min-height: 68px;
  color: #bed6ec;
}

.nav-item {
  gap: 5px;
  border-radius: 23px;
  font-size: 11px;
}

.nav-item svg {
  width: 27px;
  height: 27px;
}

.nav-item.is-active {
  background:
    radial-gradient(circle, rgba(0,174,255,.22), transparent 68%);
  color: #16d2ff;
  text-shadow: 0 0 11px rgba(0,190,255,.34);
}

.nav-add {
  gap: 4px;
  font-size: 10px;
}

.nav-add svg {
  width: 58px;
  height: 58px;
  margin-top: -31px;
  padding: 14px;
  border: 1px solid #48dbff;
  background:
    linear-gradient(145deg, #0d89ff, #086ff1);
  box-shadow:
    0 0 0 5px rgba(15,163,255,.12),
    0 0 19px rgba(0,193,255,.56),
    inset 0 1px 0 rgba(255,255,255,.44);
}

@media (max-width: 759px) {
  .topbar-inner {
    min-height: 68px;
    padding:
      7px max(12px, env(safe-area-inset-right))
      7px max(12px, env(safe-area-inset-left));
  }

  .brand img {
    width: min(100%, 196px);
    height: 40px;
  }

  .topbar-button {
    width: 42px;
    min-height: 46px;
  }

  .account-avatar {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .venues-page {
    min-height: calc(100dvh - 68px);
    padding:
      20px max(14px, env(safe-area-inset-right))
      calc(116px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    border-radius: 27px 27px 0 0;
  }

  .play-heading h1 {
    font-size: clamp(44px, 12vw, 56px);
  }

  .play-heading p {
    margin-top: 9px;
    font-size: 9px;
  }

  .entity-switch {
    gap: 8px;
    margin-top: 19px;
  }

  .entity-choice {
    min-height: 58px;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 15px;
    font-size: 14px;
  }

  .entity-choice svg {
    width: 24px;
    height: 24px;
  }

  .search-row {
    grid-template-columns: minmax(0,1fr) 55px;
    gap: 8px;
    margin-top: 18px;
  }

  .search-box,
  .filter-button {
    min-height: 55px;
    border-radius: 15px;
  }

  .filter-button {
    width: 55px;
  }

  .search-box {
    gap: 11px;
    padding-inline: 14px;
  }

  .search-box svg {
    width: 25px;
    height: 25px;
  }

  .search-box input {
    font-size: 14px;
  }

  .filter-button svg {
    width: 23px;
    height: 23px;
  }

  .collection-row {
    gap: 7px;
    margin-top: 15px;
  }

  .collection-tabs {
    min-width: 0;
    gap: 5px;
  }

  .collection-tab,
  .near-me {
    min-height: 44px;
    border-radius: 13px;
  }

  .collection-tab {
    min-width: 0;
    padding-inline: 12px;
    font-size: 11px;
  }

  .near-me {
    gap: 5px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .near-me svg {
    width: 19px;
    height: 19px;
  }

  .venue-results {
    gap: 11px;
    margin-top: 19px;
  }

  .venue-card {
    grid-template-columns: 37% minmax(0,1fr);
    min-height: 126px;
    border-radius: 17px;
  }

  .venue-visual {
    min-height: 126px;
  }

  .venue-card-body {
    padding: 11px 10px 10px 12px;
  }

  .venue-title {
    font-size: 16px;
  }

  .save-button {
    width: 37px;
    height: 37px;
  }

  .save-button svg {
    width: 19px;
    height: 19px;
  }

  .venue-location {
    gap: 6px;
    margin-top: 5px;
    font-size: 11px;
  }

  .venue-location svg {
    width: 15px;
    height: 15px;
  }

  .venue-meta {
    gap: 6px 10px;
    margin-top: 9px;
  }

  .venue-rating,
  .venue-rating span,
  .venue-hours,
  .venue-review-muted {
    font-size: 9px;
  }

  .bottom-nav {
    width: calc(100% - 12px);
    min-height: 80px;
    padding: 6px 7px;
    border-radius: 30px;
  }

  .nav-item,
  .nav-add {
    min-height: 64px;
  }

  .nav-item {
    gap: 4px;
    font-size: 10px;
  }

  .nav-item svg {
    width: 25px;
    height: 25px;
  }

  .nav-add {
    font-size: 9px;
  }

  .nav-add svg {
    width: 54px;
    height: 54px;
    margin-top: -27px;
    padding: 13px;
  }
}

@media (max-width: 390px) {
  .venues-page {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .collection-tab {
    padding-inline: 8px;
    font-size: 10px;
  }

  .near-me {
    padding-inline: 8px;
    font-size: 10px;
  }

  .venue-card {
    grid-template-columns: 36% minmax(0,1fr);
  }

  .venue-title {
    font-size: 15px;
  }
}

@media (min-width: 760px) {
  .topbar-inner,
  .venues-page {
    width: min(100%, 900px);
  }

  .venue-results {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    right: auto;
    bottom: 16px;
    left: 50%;
    width: min(calc(100% - 32px), 820px);
    margin: 0;
  }
}

:root {
  --venues-club-alignment-s2: 1;
}

body:has(.venues-page) {
  --play-navy: #071b5d;
  --play-blue: #087ff5;
  --play-cyan: #13bfff;
  --play-ice: #eef8ff;
  --play-border: #d7e8f7;
  --play-muted: #58749e;
  color: var(--play-navy);
  background:
    radial-gradient(circle at 12% 4%, rgba(91, 190, 255, 0.16), transparent 28rem),
    var(--play-ice);
}

body:has(.venues-page) .venues-page {
  width: min(100%, 1180px);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding:
    14px
    max(12px, env(safe-area-inset-right))
    calc(112px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  color: var(--play-navy);
}

body:has(.venues-page) .play-heading {
  margin: 0 0 12px;
  padding: 18px 16px 16px;
  border: 1px solid var(--play-border);
  border-radius: 22px;
  background: rgba(255,255,255,0.97);
  box-shadow:
    0 14px 34px rgba(23,74,122,0.07),
    0 2px 8px rgba(12,55,99,0.025);
}

body:has(.venues-page) .play-heading h1 {
  margin: 0;
  color: var(--play-navy);
  font-size: clamp(36px, 9vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

body:has(.venues-page) .play-heading > p {
  margin: 8px 0 15px;
  color: #5270a0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.31em;
}

body:has(.venues-page) .entity-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body:has(.venues-page) .entity-choice {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--play-border);
  border-radius: 15px;
  color: #3f5e92;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20,74,126,0.035);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

body:has(.venues-page) .entity-choice svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.venues-page) .entity-choice.is-active {
  border-color: rgba(9,158,255,0.72);
  color: #fff;
  background: linear-gradient(135deg,#138df8 0%,#087bf4 46%,#12bdf3 100%);
  box-shadow:
    0 8px 22px rgba(10,128,239,0.2),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

body:has(.venues-page) .sport-filter {
  display: none;
}

body:has(.venues-page) .search-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 8px;
  margin: 0 0 10px;
}

body:has(.venues-page) .search-box,
body:has(.venues-page) .filter-button {
  border: 1px solid var(--play-border);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 14px rgba(20,74,126,0.035);
}

body:has(.venues-page) .search-box {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 15px;
}

body:has(.venues-page) .search-box svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--play-navy);
}

body:has(.venues-page) .search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--play-navy);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

body:has(.venues-page) .search-box input::placeholder {
  color: #7790ad;
  opacity: 1;
}

body:has(.venues-page) .filter-button {
  display: grid;
  width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 15px;
  color: var(--play-navy);
}

body:has(.venues-page) .collection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 0 0 10px;
}

body:has(.venues-page) .collection-tabs {
  display: flex;
  min-width: 0;
  gap: 6px;
}

body:has(.venues-page) .collection-tab,
body:has(.venues-page) .near-me {
  min-height: 40px;
  border: 1px solid var(--play-border);
  border-radius: 13px;
  color: #44628d;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20,74,126,0.025);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

body:has(.venues-page) .collection-tab {
  padding: 0 12px;
}

body:has(.venues-page) .collection-tab.is-active {
  border-color: rgba(12,155,250,0.54);
  color: #fff;
  background: linear-gradient(135deg,#138df8 0%,#087bf4 52%,#12bdf3 100%);
  box-shadow: 0 7px 18px rgba(11,126,235,0.18);
}

body:has(.venues-page) .near-me {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  color: #086ce5;
}

body:has(.venues-page) .venue-results {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

body:has(.venues-page) .venue-card {
  display: grid;
  grid-template-columns: clamp(112px,30vw,172px) minmax(0,1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--play-border);
  border-radius: 18px;
  color: var(--play-navy);
  background: #fff;
  box-shadow:
    0 10px 28px rgba(28,76,122,0.065),
    0 2px 7px rgba(20,66,111,0.025);
}

body:has(.venues-page) .venue-visual {
  position: relative;
  min-height: 122px;
  overflow: hidden;
}

body:has(.venues-page) .venue-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
}

body:has(.venues-page) .venue-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
}

body:has(.venues-page) .venue-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--play-navy);
  font-size: clamp(14px,3.8vw,17px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body:has(.venues-page) .save-button {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: -2px -2px 0 0;
  padding: 0;
  border: 1px solid var(--play-border);
  border-radius: 50%;
  color: #092a68;
  background: #fff;
}

body:has(.venues-page) .venue-location {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
  margin-top: 5px;
  color: var(--play-muted);
  font-size: 10px;
  line-height: 1.3;
}

body:has(.venues-page) .venue-sports {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

body:has(.venues-page) .venue-sports span,
body:has(.venues-page) .venue-category {
  padding: 3px 6px;
  border: 1px solid #e1edf7;
  border-radius: 999px;
  color: #547196;
  background: #f8fbfe;
  font-size: 8px;
  font-weight: 750;
}

body:has(.venues-page) .venue-category {
  width: fit-content;
  margin-top: 4px;
}

body:has(.venues-page) .venue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 6px;
  color: #66809f;
  font-size: 9px;
}

body:has(.venues-page) .venue-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body:has(.venues-page) .venue-rating strong {
  color: #0874e8;
}

body:has(.venues-page) .venue-contact-row,
body:has(.venues-page) .venue-card-footer {
  display: none;
}

body:has(.venues-page) .empty-state,
body:has(.venues-page) .loading-state {
  border: 1px solid var(--play-border);
  border-radius: 18px;
  background: #fff;
  color: var(--play-muted);
  box-shadow: 0 10px 26px rgba(28,76,122,0.05);
}

body:has(.venues-page) .bottom-nav {
  position: fixed;
  z-index: 80;
  right: max(12px,env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(12px,env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 1fr 1fr;
  width: auto;
  max-width: 760px;
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 8px 7px;
  border: 1px solid rgba(22,133,221,0.55);
  border-radius: 27px;
  background: linear-gradient(145deg,rgba(5,54,105,0.98),rgba(2,38,78,0.99));
  box-shadow:
    0 17px 38px rgba(4,34,70,0.24),
    inset 0 1px 0 rgba(142,218,255,0.16);
  backdrop-filter: blur(18px);
}

body:has(.venues-page) .nav-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 18px;
  color: #a9c7e9;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

body:has(.venues-page) .nav-item.is-active {
  color: #12c8ff;
  background: rgba(5,116,205,0.2);
  box-shadow: inset 0 0 22px rgba(3,159,255,0.13);
}

body:has(.venues-page) .nav-add {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: -24px;
  color: #a9c7e9;
  font-size: 8px;
  text-decoration: none;
}

body:has(.venues-page) .nav-add svg {
  width: 47px;
  height: 47px;
  padding: 12px;
  border: 1px solid rgba(63,225,255,0.92);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#08bdf4 0%,#0772f1 72%);
  box-shadow:
    0 0 0 5px rgba(4,91,173,0.72),
    0 0 24px rgba(7,189,246,0.55);
}

@media (max-width: 520px) {
  body:has(.venues-page) .play-heading {
    padding: 15px 13px 14px;
    border-radius: 20px;
  }

  body:has(.venues-page) .entity-choice {
    min-height: 50px;
    font-size: 12px;
  }

  body:has(.venues-page) .collection-tabs {
    flex: 1 1 auto;
  }

  body:has(.venues-page) .collection-tab {
    flex: 1 1 auto;
    padding-inline: 7px;
  }

  body:has(.venues-page) .venue-card {
    grid-template-columns: 34% minmax(0,1fr);
  }

  body:has(.venues-page) .venue-card-body {
    padding: 9px 10px;
  }

  body:has(.venues-page) .venue-sports,
  body:has(.venues-page) .venue-category {
    display: none;
  }
}

:root {
  --exact-shared-header-w: 1;
}

html {
  background: #073d72 !important;
}

.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(77, 174, 255, 0.28) !important;
  background-color: #032958 !important;
  background-image:
    radial-gradient(
      circle at 83% 0%,
      rgba(0, 179, 255, 0.18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #073d72 0%,
      #032958 52%,
      #021c46 100%
    ) !important;
  box-shadow:
    0 6px 22px rgba(4, 43, 92, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: min(100%, 920px) !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding:
    10px
    max(18px, env(safe-area-inset-right))
    10px
    max(18px, env(safe-area-inset-left)) !important;
  gap: 12px !important;
}

.brand img {
  display: block !important;
  width: min(100%, 245px) !important;
  height: 46px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.topbar-button,
.menu-button {
  width: 44px !important;
  min-height: 44px !important;
  color: #ffffff !important;
  background: transparent !important;
}

.topbar-button svg,
.menu-button svg {
  width: 26px !important;
  height: 26px !important;
}

.notification-dot {
  border-color: #05305f !important;
  background: #ff334f !important;
}

@media (max-width: 759px) {
  .topbar-inner {
    min-height: 64px !important;
    padding:
      8px
      max(14px, env(safe-area-inset-right))
      8px
      max(14px, env(safe-area-inset-left)) !important;
    gap: 8px !important;
  }

  .brand img {
    width: min(100%, 176px) !important;
    height: 36px !important;
  }

  .topbar-button,
  .menu-button {
    width: 40px !important;
    min-height: 40px !important;
  }

  .topbar-button svg,
  .menu-button svg {
    width: 23px !important;
    height: 23px !important;
  }
}

/* ==========================================================================
   COURTCAST VENUES — CLUB DESIGN REPLICATION 2026-09-24
   ========================================================================== */

/*
 * The Clubs list is the visual source of truth for Venue discovery.
 * Shared application header and bottom navigation are intentionally untouched.
 */

html body:has(.venues-page) {
  --venue-club-navy: #0b2a66;
  --venue-club-ink: #13244a;
  --venue-club-muted: #5b6b86;
  --venue-club-blue: #1c7cf4;
  --venue-club-blue-soft: #e7f1ff;
  --venue-club-line: #dfe7f3;

  color-scheme: light;

  background: #eef3fa;
  color: var(--venue-club-ink);
}


/* --------------------------------------------------------------------------
   PAGE
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venues-page {
  position: relative;

  z-index: 1;

  width: min(100%, 720px);
  min-height: calc(100dvh - 68px);

  margin: 0 auto;

  padding:
    0
    0
    calc(110px + env(safe-area-inset-bottom));

  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(106, 198, 255, 0.10),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f5fbff 0%,
      #eef6fd 56%,
      #f5fbff 100%
    );

  color: var(--venue-club-ink);
}


/* --------------------------------------------------------------------------
   HERO — same family as Clubs
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venues-hero {
  display: grid;

  gap: 9px;

  padding:
    11px
    max(15px, env(safe-area-inset-right))
    11px
    max(15px, env(safe-area-inset-left));

  border-radius: 0 0 23px 23px;

  color: #fff;

  background:
    radial-gradient(
      95% 125% at 89% -8%,
      rgba(36,164,255,0.60),
      transparent 60%
    ),
    radial-gradient(
      70% 100% at 4% 100%,
      rgba(24,118,240,0.42),
      transparent 70%
    ),
    linear-gradient(
      145deg,
      #073a83 0%,
      #075bbd 52%,
      #2188ee 100%
    );

  box-shadow:
    0 10px 26px rgba(4,50,112,0.17),
    inset 0 -1px 0 rgba(255,255,255,0.13);
}

html body:has(.venues-page) .venues-hero-top {
  display: flex;

  min-height: 48px;

  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

html body:has(.venues-page) .venues-hero h1 {
  margin: 0;

  color: #fff;

  font-size: 31px;
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

html body:has(.venues-page) .venues-hero-top p {
  margin: 4px 0 0;

  color: rgba(255,255,255,0.88);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}


/* --------------------------------------------------------------------------
   HERO FILTER ACTION
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venues-hero .filter-button {
  display: grid;

  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;

  place-items: center;

  padding: 0;

  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 50%;

  color: #0759bd;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.98),
      rgba(229,245,255,0.92)
    );

  box-shadow:
    0 5px 13px rgba(0,39,97,0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

html body:has(.venues-page)
.venues-hero .filter-button svg {
  width: 18px;
  height: 18px;
}

html body:has(.venues-page)
.venues-hero .filter-button[aria-pressed="true"] {
  border-color: rgba(115,239,255,0.96);

  color: #0456b6;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22),
    0 0 15px rgba(0,218,255,0.42),
    inset 0 1px 0 rgba(255,255,255,0.95);
}


/* --------------------------------------------------------------------------
   SEARCH
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venues-hero .search-box {
  display: flex;

  min-height: 44px;

  align-items: center;

  gap: 9px;

  margin: 0;

  padding-inline: 14px;

  border: 1px solid rgba(210,229,247,0.72);
  border-radius: 999px;

  background: rgba(255,255,255,0.97);

  box-shadow:
    0 5px 14px rgba(5,48,104,0.11),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

html body:has(.venues-page) .venues-hero .search-box svg {
  flex: 0 0 20px;

  width: 20px;
  height: 20px;

  color: #092765;

  stroke-width: 2.15;
}

html body:has(.venues-page) .venues-hero .search-box input {
  min-width: 0;
  width: 100%;

  padding: 0;

  border: 0;
  outline: 0;

  color: #10265f;
  background: transparent;

  font: inherit;
  font-size: 14px;
}

html body:has(.venues-page)
.venues-hero .search-box input::placeholder {
  color: #8295ba;

  opacity: 1;
}


/* --------------------------------------------------------------------------
   EXPLORE / NEAR ME / MY VENUES / SAVED
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .collection-row {
  display: block;

  margin: 0;
}

html body:has(.venues-page) .collection-tabs {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0,1fr));

  gap: 2px;

  width: 100%;

  padding: 3px;

  border:
    1px solid rgba(188,226,255,0.54);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.18),
      rgba(159,210,255,0.12)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18);
}

html body:has(.venues-page) .collection-tab,
html body:has(.venues-page) .near-me {
  display: flex;

  min-width: 0;
  min-height: 36px;

  align-items: center;
  justify-content: center;

  gap: 0;

  padding: 0 4px;

  border: 0;
  border-radius: 10px;

  color: rgba(255,255,255,0.92);

  background: transparent;

  box-shadow: none;

  font: inherit;
  font-size: 12.5px;
  font-weight: 650;

  white-space: nowrap;
}

html body:has(.venues-page) .near-me svg {
  display: none;
}

html body:has(.venues-page) .collection-tab.is-active,
html body:has(.venues-page)
.near-me[aria-pressed="true"] {
  border:
    1px solid rgba(121,238,255,0.92);

  color: #fff;

  background:
    radial-gradient(
      circle at 50% 115%,
      rgba(0,239,255,0.52),
      transparent 56%
    ),
    linear-gradient(
      180deg,
      #1c9eff 0%,
      #087bf3 100%
    );

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22),
    0 0 16px rgba(0,220,255,0.45),
    inset 0 1px 0 rgba(255,255,255,0.38);
}


/* --------------------------------------------------------------------------
   SPORTS
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .sport-filter {
  display: flex;

  gap: 6px;

  margin: 0;

  padding:
    9px
    max(15px, env(safe-area-inset-right))
    2px
    max(15px, env(safe-area-inset-left));

  overflow-x: auto;

  scrollbar-width: none;
}

html body:has(.venues-page) .sport-filter::-webkit-scrollbar {
  display: none;
}

html body:has(.venues-page) .sport-chip {
  display: inline-flex;

  flex: 0 0 auto;

  min-height: 34px;

  align-items: center;

  gap: 6px;

  padding-inline: 10px;

  border:
    1px solid var(--venue-club-line);

  border-radius: 13px;

  color: var(--venue-club-ink);

  background: #fff;

  box-shadow:
    0 2px 5px rgba(18,66,125,0.045);

  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
}

html body:has(.venues-page) .sport-chip svg {
  width: 16px;
  height: 16px;

  flex: 0 0 16px;
}

html body:has(.venues-page) .sport-chip.is-active {
  border-color: transparent;

  color: #fff;

  background:
    radial-gradient(
      circle at 80% 110%,
      rgba(0,235,255,0.56),
      transparent 50%
    ),
    linear-gradient(
      145deg,
      #1087ff 0%,
      #0672ed 100%
    );

  box-shadow:
    0 5px 13px rgba(5,116,238,0.22),
    inset 0 1px 0 rgba(255,255,255,0.30);
}


/* --------------------------------------------------------------------------
   RESULTS
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venue-results {
  display: grid;

  grid-template-columns: 1fr;

  gap: 8px;

  margin: 0;

  padding:
    9px
    max(15px, env(safe-area-inset-right))
    14px
    max(15px, env(safe-area-inset-left));
}


/* --------------------------------------------------------------------------
   VENUE CARDS — same density as Club cards
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venue-card {
  display: grid;

  grid-template-columns:
    64px minmax(0,1fr);

  gap: 10px;

  min-width: 0;
  min-height: 78px;

  overflow: hidden;

  padding: 7px 9px;

  border:
    1px solid rgba(215,230,245,0.92);

  border-radius: 15px;

  color: inherit;

  background:
    linear-gradient(
      100deg,
      rgba(255,255,255,0.985) 0%,
      rgba(250,253,255,0.98) 100%
    );

  box-shadow:
    0 5px 14px rgba(17,65,118,0.055),
    inset 0 1px 0 rgba(255,255,255,0.96);

  text-decoration: none;
}

html body:has(.venues-page) .venue-visual {
  position: relative;

  width: 64px;
  height: 64px;
  min-height: 64px;

  align-self: center;

  overflow: hidden;

  border:
    1px solid rgba(224,235,247,0.92);

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #edf7ff,
      #dceeff
    );

  box-shadow:
    0 3px 10px rgba(22,65,109,0.045);
}

html body:has(.venues-page) .venue-photo {
  display: block;

  width: 100%;
  height: 100%;

  padding: 2px;

  object-fit: cover;

  background: #fff;
}

html body:has(.venues-page) .venue-visual::before {
  inset: 14px 10px;

  border:
    1.5px solid rgba(28,111,188,0.34);
}

html body:has(.venues-page) .venue-visual::after {
  background: rgba(28,111,188,0.31);

  box-shadow:
    0 -14px rgba(28,111,188,0.13),
    0 14px rgba(28,111,188,0.13);
}

html body:has(.venues-page)
.venue-visual:has(.venue-photo)::before,
html body:has(.venues-page)
.venue-visual:has(.venue-photo)::after {
  display: none;
}


/* --------------------------------------------------------------------------
   CARD BODY
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venue-card-body {
  display: flex;

  min-width: 0;

  flex-direction: column;
  justify-content: center;

  padding: 0;
}

html body:has(.venues-page) .venue-title-row {
  display: flex;

  min-width: 0;

  align-items: center;

  gap: 6px;
}

html body:has(.venues-page) .venue-title {
  min-width: 0;

  flex: 1;

  margin: 0;

  overflow: hidden;

  color: #08256a;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

html body:has(.venues-page) .save-button {
  display: grid;

  flex: 0 0 31px;

  width: 31px;
  height: 31px;

  place-items: center;

  margin: 0;

  padding: 0;

  border: 0;

  border-radius: 50%;

  color: #092b75;

  background:
    linear-gradient(
      145deg,
      #f1f6ff,
      #e6effc
    );
}

html body:has(.venues-page) .save-button svg {
  width: 16px;
  height: 16px;
}

html body:has(.venues-page) .save-button.is-saved {
  color: #0673ef;

  background: #e7f2ff;

  box-shadow:
    inset 0 0 0 1px rgba(8,125,245,0.18);
}


/* --------------------------------------------------------------------------
   LOCATION + TAGS + META
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .venue-location {
  display: flex;

  min-width: 0;

  align-items: center;

  gap: 5px;

  margin-top: 2px;

  color: #6175a2;

  font-size: 12px;
  line-height: 1.14;
}

html body:has(.venues-page) .venue-location svg {
  flex: 0 0 14px;

  width: 14px;
  height: 14px;

  color: #2863ad;

  stroke-width: 2.05;
}

html body:has(.venues-page) .venue-location span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

html body:has(.venues-page) .venue-sports {
  display: flex;

  flex-wrap: nowrap;

  gap: 5px;

  margin-top: 3px;

  overflow: hidden;
}

html body:has(.venues-page) .venue-sports span {
  flex: 0 0 auto;

  padding: 2px 9px;

  border: 0;

  border-radius: 999px;

  color: #165bb8;

  background:
    linear-gradient(
      180deg,
      #edf6ff,
      #e5f1ff
    );

  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;

  white-space: nowrap;
}

html body:has(.venues-page) .venue-category {
  display: none;
}

html body:has(.venues-page) .venue-meta {
  display: flex;

  min-width: 0;

  align-items: center;

  gap: 6px;

  margin-top: 3px;

  overflow: hidden;

  color: #6175a2;

  font-size: 10px;
  line-height: 1.2;

  white-space: nowrap;
}

html body:has(.venues-page) .venue-rating {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  color: #6175a2;
}

html body:has(.venues-page) .venue-rating strong {
  color: #0874e8;
}

html body:has(.venues-page) .venue-hours,
html body:has(.venues-page) .venue-review-muted {
  color: #7188a8;

  font-size: 10px;
}

html body:has(.venues-page) .venue-contact-row,
html body:has(.venues-page) .venue-card-footer {
  display: none;
}


/* --------------------------------------------------------------------------
   EMPTY / LOADING
   -------------------------------------------------------------------------- */

html body:has(.venues-page) .empty-state,
html body:has(.venues-page) .loading-state {
  display: flex;

  min-height: 92px;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 4px;

  padding: 22px 15px;

  border:
    1px dashed #c6d4ea;

  border-radius: 15px;

  color: var(--venue-club-muted);

  background: #fff;

  text-align: center;

  box-shadow:
    0 4px 14px rgba(11,42,102,0.04);
}

html body:has(.venues-page) .empty-state h2 {
  margin: 0;

  color: var(--venue-club-navy);

  font-size: 16px;
  font-weight: 800;
}

html body:has(.venues-page) .empty-state p {
  margin: 0;

  color: var(--venue-club-muted);

  font-size: 12.5px;
}

html body:has(.venues-page) .spinner {
  width: 21px;
  height: 21px;

  border:
    3px solid rgba(39,126,214,0.15);

  border-top-color: #087df5;
}


/* --------------------------------------------------------------------------
   NARROW PHONES
   -------------------------------------------------------------------------- */

@media (max-width: 390px) {

  html body:has(.venues-page) .venues-hero {
    padding-right:
      max(12px, env(safe-area-inset-right));

    padding-left:
      max(12px, env(safe-area-inset-left));
  }

  html body:has(.venues-page) .sport-filter,
  html body:has(.venues-page) .venue-results {
    padding-right:
      max(12px, env(safe-area-inset-right));

    padding-left:
      max(12px, env(safe-area-inset-left));
  }

  html body:has(.venues-page) .collection-tab,
  html body:has(.venues-page) .near-me {
    font-size: 11px;
  }

  html body:has(.venues-page) .sport-chip {
    padding-inline: 9px;

    font-size: 12px;
  }

  html body:has(.venues-page) .venue-card {
    grid-template-columns:
      60px minmax(0,1fr);

    gap: 8px;

    padding-inline: 8px;
  }

  html body:has(.venues-page) .venue-visual {
    width: 60px;
    height: 60px;
    min-height: 60px;
  }

  html body:has(.venues-page) .venue-title {
    font-size: 15px;
  }

  html body:has(.venues-page) .venue-location {
    font-size: 11.5px;
  }

  html body:has(.venues-page) .venue-sports span {
    padding-inline: 8px;

    font-size: 10px;
  }
}


/* --------------------------------------------------------------------------
   TABLET

   Keep the same single-column CourtCast list pattern rather than switching
   to the old desktop two-column Venue cards.
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {

  html body:has(.venues-page) .venues-page {
    width: min(100%,720px);

    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  html body:has(.venues-page) .venue-results {
    grid-template-columns: 1fr;
  }
}

/* Saved venue: a solid red heart, easy to see at a glance. */
html body .save-button.is-saved,
html body:has(.venues-page) .save-button.is-saved {
  color: #e11d48;
  background: #ffe4e8;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.25);
}
html body .save-button.is-saved svg,
html body:has(.venues-page) .save-button.is-saved svg {
  fill: #e11d48;
  stroke: #e11d48;
  animation: courtcast-heart-pop 220ms ease-out;
}
@keyframes courtcast-heart-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html body .save-button.is-saved svg { animation: none; }
}


/* ==========================================================================
   COURTCAST VENUES SHARED TABLET WIDTH REPAIR 2026-09-25
   ========================================================================== */

@media (min-width: 600px) and (min-height: 600px) {

  body .venues-page,
  body:has(.venues-page) .venues-page {
    width: min(calc(100% - 32px), 820px) !important;
    max-width: 820px !important;

    margin-right: auto !important;
    margin-left: auto !important;
  }
}
