/* ============================================================
   DinkBook — player views
   ============================================================ */

/* ---------- search page ---------- */

.search-box {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  max-width: 560px;
}

.search-box button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  flex-shrink: 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2);
}

.facility-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.facility-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.facility-image {
  height: 150px;
  background: var(--lime-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: var(--fs-sm);
  overflow: hidden;
}

.facility-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Directory heading with city chip aligned to the title on the same row. */
.directory-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.directory-heading-row h1 { margin: 0; }
@media (max-width: 640px) {
  .directory-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .city-chip { align-self: flex-start; }
}

/* ---------- Court-owner promo card (directory CTA) ---------- */
/* Yellowish-gold card, dark text for contrast, unique red CTA. */
.facility-card-promo {
  border-color: #d99a1f;
  background: linear-gradient(160deg, #fce9a6 0%, #f5cb57 100%);
  box-shadow: 0 6px 22px rgba(176, 122, 12, 0.25);
}
.facility-promo-image {
  position: relative;
  background: linear-gradient(140deg, #f4b81b 0%, #e89a12 58%, #d67f14 100%);
  flex-direction: column;
}
.facility-promo-logo {
  width: 66px;
  height: 66px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(80, 48, 0, 0.38);
}
.facility-image-ribbon.promo {
  background: #14361f;
  color: #ffffff;
  font-weight: 700;
}
.facility-promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d92d2d;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(120, 12, 12, 0.32);
}
.facility-card-promo .facility-card-name {
  color: #3c2c04;
}
.facility-card-promo .facility-card-address {
  color: #5c4712;
}
.facility-card-promo .facility-directory-chips .promo-chip {
  background: #ffffff;
  color: #915a08;
  border: 1px solid rgba(150, 95, 8, 0.28);
}
.facility-card-promo .facility-directory-chips span.neutral {
  background: rgba(255, 255, 255, 0.72);
  color: #6b551a;
}
.facility-promo-mail {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #8a2a10;
  text-decoration: none;
  white-space: nowrap;
}
.facility-promo-mail:hover {
  text-decoration: underline;
}
.facility-card.facility-card-promo .view-facility-btn {
  background: #dc2626;
  color: #ffffff;
}
.facility-card.facility-card-promo .view-facility-btn:hover {
  background: #b91c1c;
}

/* ---------- Court-owner lead modal ---------- */
body.lead-modal-open { overflow: hidden; }
.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 24, 20, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.lead-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}
.lead-modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8860b;
}
.lead-modal h2 {
  margin: 2px 0 0;
  font-size: 22px;
}
.lead-modal-sub {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
}
.lead-modal label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.lead-modal input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
}
.lead-modal input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.lead-submit-btn {
  margin-top: 8px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.lead-submit-btn:hover { background: #b91c1c; }
.lead-submit-btn:disabled { opacity: 0.7; cursor: default; }
.lead-modal-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
.lead-success {
  text-align: center;
  padding: 14px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.lead-success-icon { font-size: 42px; }
.lead-success h2 { margin: 0; font-size: 20px; }
.lead-success p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.lead-success .lead-submit-btn { width: 100%; background: var(--green); }
.lead-success .lead-submit-btn:hover { background: #2a5c3e; }

/* ---------- Home marketing extras (logged-out directory) ---------- */
.home-extras:empty { display: none; }
.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.home-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lime-tint, #edf7e3);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.home-feature h3 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.25;
}
.home-feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.home-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.home-footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 340px;
}
.home-footer-logo {
  border-radius: 9px;
  flex-shrink: 0;
}
.home-footer-brand strong {
  display: block;
  font-size: 16px;
}
.home-footer-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.home-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin-left: auto;
  text-align: right;
}
.home-footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.home-footer-link {
  background: none;
  border: 0;
  padding: 0;
  text-align: right;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.home-footer-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.home-copyright {
  margin-top: 22px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
@media (max-width: 760px) {
  .home-features { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .home-features { grid-template-columns: 1fr; }
  .home-footer-col { width: 100%; align-items: flex-end; }
}

.lead-auth-actions { display: grid; gap: 10px; }

/* Contact/about info modal bits */
.info-contact {
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--text-2);
}
.info-contact p { margin: 7px 0; }
.info-contact a { color: var(--green); }
.info-mail-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.info-mail-btn:hover { background: #2a5c3e; }

.facility-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.facility-card-name {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.3;
}

.facility-card-address {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.4;
}

.facility-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  flex-wrap: wrap;
}

.facility-meta-price {
  font-weight: 700;
  color: var(--green);
}

.facility-amenity-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.facility-amenity-icon {
  font-size: 16px;
  line-height: 1;
}

.facility-amenity-more {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  background: var(--mute-bg);
  border-radius: 999px;
  padding: 1px 7px;
}

.facility-card-body .view-facility-btn {
  margin-top: auto;
  padding-top: 6px;
}

.facility-card button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.facility-image-placeholder {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ---------- facility detail page ---------- */

.facility-detail-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}

.facility-detail-image {
  min-height: 200px;
  background: var(--lime-tint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  overflow: hidden;
}

.facility-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.facility-mini-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: var(--space-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.player-facility-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.player-facility-gallery img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.facility-amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.player-amenity-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.player-amenity-card img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

/* court choices */

.court-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-2);
}

.court-choice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.court-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.court-choice-image,
.court-choice-photo {
  height: 150px;
  background: var(--lime-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  width: 100%;
  object-fit: cover;
}

.court-choice-content {
  padding: var(--space-2);
  flex: 1;
}

.court-choice-content strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
}

.choose-court-btn {
  margin: 0 var(--space-2) var(--space-2);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 11px;
}

.choose-court-btn:hover:not(:disabled) {
  background: var(--green-soft);
  border-color: var(--green-soft);
}

.open-play-list {
  margin-bottom: var(--space-3);
}

/* ---------- booking page ---------- */

.court-booking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: var(--space-3);
  align-items: start;
}

.booking-back-btn {
  margin-bottom: var(--space-1);
}

.booking-page-header {
  margin-bottom: var(--space-2);
}

.court-info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-2);
}

.compact-court-image {
  height: 130px;
  border-radius: var(--radius);
  background: var(--lime-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.booking-court-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.court-info-row strong {
  color: var(--green);
  white-space: nowrap;
}

.tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tags span {
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--mute-bg);
  color: var(--mute-text);
  border-radius: 999px;
  padding: 2px 10px;
}

.calendar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow);
}

.panel-title-row {
  margin-bottom: var(--space-2);
}

/* calendar */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
}

.calendar-header button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: var(--fs-lg);
  line-height: 1;
  border-radius: 50%;
}

.player-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.player-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.player-calendar-day,
.calendar-empty {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.player-calendar-day:hover:not(:disabled) {
  background: var(--lime-tint);
  border: none;
}

.player-calendar-day.today-date {
  box-shadow: inset 0 0 0 1.5px var(--lime-dark);
}

.player-calendar-day.selected-date {
  background: var(--green);
  color: #fff;
}

.player-calendar-day.selected-date:hover:not(:disabled) {
  background: var(--green);
}

.selected-date-label {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
}

/* time slots */

.booking-summary-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.time-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: left;
  min-height: 64px;
  position: relative;
  font-weight: 500;
}

.time-slot strong {
  font-size: var(--fs-sm);
  color: var(--text);
}

.time-slot span,
.time-slot em {
  font-size: var(--fs-xs);
  font-style: normal;
  color: var(--text-3);
}

.time-slot.available {
  background: var(--surface);
  border-color: var(--border-strong);
}

.time-slot.available span {
  color: var(--green);
  font-weight: 700;
}

.time-slot.available:hover:not(:disabled) {
  border-color: var(--lime-dark);
  background: var(--lime-tint);
}

.time-slot.available small {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mute-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.time-slot.selected {
  background: var(--green);
  border-color: var(--green);
}

.time-slot.selected strong,
.time-slot.selected span {
  color: #fff;
}

.time-slot.selected small {
  background: var(--lime);
  color: var(--green);
}

.time-slot.event-blocked-slot {
  background: var(--coral-tint);
  border-color: transparent;
}

.time-slot.event-blocked-slot span,
.time-slot.event-blocked-slot em {
  color: var(--coral);
  font-weight: 600;
}

/* selected booking box */

.selected-booking-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2);
}

.selected-booking-box .small-label {
  color: var(--text-3);
}

.booker-box,
.payment-choice-box {
  margin-top: var(--space-1);
}
.booker-box .booker-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid var(--bd-line, var(--border));
  border-radius: 10px;
  background: var(--surface-2, #fbfaf6);
}
.booker-box .booker-display strong {
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.booker-box .booker-edit-link {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--bd-line, var(--border));
  border-radius: 999px;
  background: transparent;
  color: var(--bd-deep, var(--text));
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.booker-box .booker-edit-link:hover { background: var(--bd-lime-tint, var(--surface)); }
#bookingProfileNotice {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
}
#bookingProfileNotice span { display: block; }
#bookingProfileNotice small { color: var(--text-3); font-size: 11px; }

#paymentOptionsBox {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

#paymentOptionsBox label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  font-weight: 500;
  cursor: pointer;
}

.proof-upload-box {
  margin-top: var(--space-1);
}

#confirmBookingBtn {
  width: 100%;
  margin-top: var(--space-2);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 13px;
  font-size: var(--fs-md);
  border-radius: var(--radius);
}

#confirmBookingBtn:hover:not(:disabled) {
  background: var(--green-soft);
}

/* ---------- my bookings page ---------- */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.tabs button {
  border-radius: 999px;
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-2);
}

.tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.booking-period-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 360px);
  padding: 4px;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.booking-period-tabs button {
  width: 100%;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: 10px 16px;
}

.booking-period-tabs button:not(.active):hover {
  background: var(--surface);
  color: var(--text);
}

.player-bookings-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--space-2);
}

.booking-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow);
}

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: 8px;
}

.booking-title {
  margin: 0 0 2px;
  font-size: var(--fs-md);
}

.booking-title-sep {
  color: var(--text-3);
  font-weight: 400;
  margin: 0 2px;
}

.booking-card-subtitle {
  margin: 0 0 2px;
  font-weight: 600;
  color: var(--text);
}

.booking-when {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.booking-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.booking-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.booking-detail-value {
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 600;
}

.booking-type {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--lime-tint);
  border-radius: 999px;
  padding: 2px 10px;
}

.open-play-booking-type {
  color: var(--coral);
  background: var(--coral-tint);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.player-bookings-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
}

.player-bookings-pagination button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.open-play-edit-form {
  display: none;
  margin-top: var(--space-2);
  border-top: 1px dashed var(--border-strong);
  padding-top: var(--space-2);
}

.open-play-edit-form.show {
  display: block;
}

/* ---------- open plays page ---------- */

/* ============================================================
   Phase 2 — Open Play redesign
   Date strip + time-grouped sections + dense rows.
   ============================================================ */

.open-play-page .op-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.open-play-page .op-header > div:first-child { flex: 1; min-width: 220px; }
.open-play-page .op-header h1 { margin: 2px 0 0; }
.op-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  min-width: 220px;
  flex: 1;
  max-width: 320px;
}
.op-search span { font-size: 14px; color: var(--text-3); }
.op-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  min-width: 0;
  padding: 4px 0;
  color: inherit;
  font-family: inherit;
}
.op-search input::-webkit-search-cancel-button { appearance: none; }

/* Date strip — horizontal scroll on phone; keep tap targets ≥48px */
.op-date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 10px;
  margin: 0 -4px 6px;
  scrollbar-width: none;
}
.op-date-strip::-webkit-scrollbar { display: none; }
.op-date-tile {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 56px;
  min-height: 68px;
  padding: 8px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .06s ease;
  position: relative;
}
.op-date-tile:hover { background: var(--mute-bg); }
.op-date-tile.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.op-date-tile.has-events::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.op-date-tile.active.has-events::before { background: #ffffff; }
.op-date-day {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: .8;
}
.op-date-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.op-date-today {
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  opacity: .7;
}

/* Chip row — spot filter + count */
.op-secondary-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.op-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.op-chip:hover { background: var(--mute-bg); color: var(--text); }
.op-chip.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.op-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Time-grouped sections */
.op-time-group + .op-time-group { margin-top: 18px; }
.op-time-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--mute-bg);
  border-radius: 10px;
  margin-bottom: 8px;
}
.op-time-label {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.op-time-count {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.op-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Dense row — the whole point of Phase 2 */
.op-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.op-row-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mute-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}
.op-row-logo img { width: 100%; height: 100%; object-fit: cover; }
.op-row-facility {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.op-row-title {
  margin: 2px 0 4px;
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--text);
}
.op-row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-2);
  align-items: center;
}
.op-row-meta .op-row-court { font-weight: 600; }
.op-row-meta .op-row-city {
  background: var(--mute-bg);
  color: var(--text-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11.5px;
}
.op-fee { font-weight: 700; color: var(--green); }
.op-fee.op-fee-free { color: var(--lime-dark); }

.op-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 96px;
}
.op-spots {
  background: #fff7cf;
  color: #7a5a08;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.op-spots strong { font-weight: 800; }
.op-spots-full { background: #fbe0dc; color: #a53020; }
.op-signup-btn {
  border: 0;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.op-signup-btn:hover { background: #2a5c3e; }
.op-signup-btn.is-waitlist { background: #b45309; }
.op-signup-btn.is-waitlist:hover { background: #92400e; }

.join-events-page{display:grid;gap:18px}.join-events-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.join-events-header h1{margin:4px 0 6px;font-size:clamp(25px,3vw,38px)}.join-events-header p{margin:0;color:var(--muted);font-size:13px}.join-events-header input{width:min(360px,100%);padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}.join-events-filters{display:flex;flex-wrap:wrap;gap:8px}.join-events-filters button{padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-weight:700;cursor:pointer}.join-events-filters button.active{border-color:var(--lime-dark);background:var(--lime);color:var(--green)}.join-events-list{display:grid;gap:10px}.join-event-card{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-sm)}.join-event-type{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e8f2ff;color:#245d92;font-size:10px;font-weight:800;text-transform:uppercase}.join-event-type.is-tournament{background:#eff8cf;color:#4f6908}.join-event-card h2{margin:8px 0 4px;font-size:20px}.join-event-organizer{margin:0;color:var(--muted);font-size:12px}.join-event-organizer strong{color:var(--text)}.join-event-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;color:var(--muted);font-size:11px}.join-event-card-action{display:grid;flex:0 0 155px;gap:8px;text-align:center}.join-event-card-action>span{color:var(--green);font-size:10px;font-weight:800;text-transform:uppercase}.join-event-card-action>span.is-full{color:#a65a00}.join-event-card-action a{padding:10px 12px;border-radius:9px;background:var(--green);color:#fff;font-size:12px;font-weight:800;text-decoration:none}
@media(max-width:700px){.join-events-header,.join-event-card{align-items:stretch;flex-direction:column}.join-events-header input{width:100%}.join-event-card-action{flex-basis:auto}.join-event-card-action a{display:block}}
.op-signup-btn.is-joined,
.op-signup-btn:disabled { background: var(--mute-bg); color: var(--text-3); cursor: default; }
.op-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.op-share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.op-share-btn:hover { background: var(--mute-bg); }

/* Phone tightening */
@media (max-width: 480px) {
  .op-row {
    grid-template-columns: 38px 1fr;
    padding: 12px;
    gap: 10px;
  }
  .op-row-logo { width: 38px; height: 38px; }
  .op-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .op-search { max-width: 100%; }
}

/* Old Open Play block below — retained so the inline signup form and legacy
   day/date-column styles still work if referenced elsewhere. New markup does
   not use .curated-open-play-card, .open-play-day-group, or .open-play-toolbar. */

.open-play-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.open-play-toolbar-row {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.open-play-toolbar-row select,
.open-play-toolbar-row input {
  width: auto;
  flex: 1;
  min-width: 140px;
}

.open-play-toolbar-row button {
  flex-shrink: 0;
}

.curated-open-play-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.open-play-day-group {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-2);
  align-items: start;
}

.open-play-date-column {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 12px 6px;
  position: sticky;
  top: 76px;
}

.open-play-date-column strong {
  display: block;
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.open-play-date-column span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--lime);
  font-weight: 600;
}

.open-play-date-column small {
  color: #c3d0c6;
}

.open-play-day-sessions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.curated-open-play-card-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.curated-open-play-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2);
  align-items: center;
}

.curated-open-play-photo,
.curated-open-play-placeholder {
  width: 120px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--lime-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.curated-open-play-main {
  min-width: 0;
}

.curated-open-play-main p {
  margin: 1px 0;
  font-size: var(--fs-sm);
}

.open-play-fee {
  font-weight: 700;
  color: var(--green) !important;
}

.curated-open-play-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Translucent diagonal watermark across cancelled-and-refunded bookings. */
.booking-card.booking-refunded {
  position: relative;
  overflow: hidden;
}

.booking-card.booking-refunded::after {
  content: "CANCELLED & REFUNDED";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--coral, #d9534f);
  opacity: 0.14;
  transform: rotate(-16deg);
  pointer-events: none;
  white-space: nowrap;
}

.booking-card.booking-refunded .booking-detail-grid,
.booking-card.booking-refunded .booking-title,
.booking-card.booking-refunded .booking-when {
  opacity: 0.72;
}

.share-open-play-btn {
  background: var(--card);
  color: var(--body-text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
}
.share-open-play-btn:hover { background: var(--hover); }

.public-event-details p {
  margin: 8px 0;
  line-height: 1.6;
}

.curated-open-play-signup-btn {
  background: var(--lime);
  color: var(--green);
  border-color: var(--lime);
  padding: 10px 18px;
  border-radius: 999px;
}

.curated-open-play-signup-btn:hover:not(:disabled) {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
}

.spot-count {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  text-align: right;
}

.spot-count.full {
  color: var(--coral);
}

/* inline signup form */

.inline-open-play-form {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--space-2);
}

.inline-open-play-form.show {
  display: block;
}

.inline-open-play-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.inline-open-play-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: var(--fs-lg);
  line-height: 1;
  flex-shrink: 0;
}

.inline-open-play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2);
}

.inline-open-play-grid label {
  margin-top: 0;
}

.inline-payment-details {
  margin-top: var(--space-1);
}

.inline-open-play-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.confirm-inline-open-play-signup {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  flex-shrink: 0;
  padding: 11px 20px;
}

.confirm-inline-open-play-signup:hover:not(:disabled) {
  background: var(--green-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .court-booking-layout {
    grid-template-columns: 1fr;
  }

  .facility-detail-card {
    grid-template-columns: 1fr;
  }

  .curated-open-play-card {
    grid-template-columns: 1fr;
  }

  .curated-open-play-photo,
  .curated-open-play-placeholder {
    width: 100%;
    height: 140px;
  }

  .curated-open-play-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .open-play-day-group {
    grid-template-columns: 1fr;
  }

  .open-play-date-column {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    padding: 8px 14px;
  }

  .open-play-date-column strong {
    font-size: var(--fs-lg);
  }

  .booking-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inline-open-play-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .player-bookings-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.facility-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}
.facility-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.facility-contact-btn:hover {
  background: var(--green-soft);
}


/* Directory refresh 2026 */
.court-directory-page { max-width: 1180px; margin: 0 auto; }
.directory-page-header { margin-bottom: 18px; }
.directory-search-box { max-width: 720px; }
.directory-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.directory-results-heading span { color: var(--text-3); font-size: var(--fs-xs); }
.facility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facility-card { border-radius: 8px; box-shadow: none; min-width: 0; }
.facility-image { position: relative; height: auto; aspect-ratio: 16 / 7; }
.facility-owner-avatar { position: absolute; left: 12px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--surface); background: var(--green); color: #fff; display: grid; place-items: center; overflow: hidden; font-size: 12px; font-weight: 700; }
.facility-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.facility-card-body { padding: 30px 18px 18px; gap: 10px; }
.facility-card-address { min-height: 40px; }
.facility-directory-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facility-directory-chips span { padding: 3px 9px; border-radius: 999px; background: #d5f5ea; color: #14765b; font-size: 11px; font-weight: 600; }
.facility-directory-chips span.neutral { background: var(--mute-bg); color: var(--text-2); }
.facility-card-footer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.facility-directory-price { font-size: var(--fs-sm); color: var(--text); }
.facility-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; padding: 7px 12px; background: var(--surface) !important; color: var(--text) !important; border-color: var(--border-strong) !important; }
.facility-share-btn:hover { border-color: var(--green) !important; }
.facility-card .view-facility-btn { width: 100%; }
.facility-listing-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.listing-only-note { grid-column: 1 / -1; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 12px 14px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.court-choice-listing { opacity: 0.9; }
.court-choice-listing .choose-court-btn[disabled] { background: var(--mute-bg); color: var(--text-3); border-color: var(--border); cursor: not-allowed; }
.booking-owner-policy-box { margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.booking-policy-details summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 700; }
.booking-policy-copy { display: grid; gap: 8px; padding-top: 12px; }
.booking-policy-copy p { margin: 0; }
.booking-policy-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin-top: 14px; font-size: var(--fs-sm); font-weight: 600; }
.booking-policy-consent input { margin-top: 4px; }
@media (max-width: 900px) { .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
.facility-grid { grid-template-columns: 1fr; gap: 16px; }
.directory-results-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
.directory-search-box { display: grid; grid-template-columns: 1fr auto; }
}
.facility-owner-identity { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.facility-owner-identity-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.facility-owner-identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.facility-owner-identity > div:last-child { display: grid; line-height: 1.25; }
.facility-owner-identity small { color: var(--text-3); }
.facility-owner-identity strong { font-size: var(--fs-sm); }
/* Public facility identity and faster progressive open-play rendering. */
.facility-owner-avatar {
  top: 12px;
  bottom: auto;
  width: 52px;
  height: 52px;
  background: #fff;
  color: var(--green);
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(18, 42, 31, 0.18);
}
.facility-card-body { padding-top: 18px; }
.facility-listing-badge { left: auto; right: 10px; }
.facility-image-ribbon { top: auto; bottom: 10px; left: 10px; border-radius: 999px; padding: 4px 10px; }

.curated-open-play-media {
  position: relative;
  width: 120px;
  height: 96px;
}
.curated-open-play-media .curated-open-play-photo,
.curated-open-play-media .curated-open-play-placeholder {
  width: 100%;
  height: 100%;
}
.curated-open-play-logo,
.public-event-logo {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.96);
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 9px rgba(18, 42, 31, 0.2);
  font-size: 11px;
  font-weight: 800;
}
.curated-open-play-logo img,
.public-event-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}
.public-event-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}
.public-event-media > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.public-event-photo-placeholder {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.public-event-skeleton {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: center;
}
.public-event-skeleton span {
  display: block;
  width: min(620px, 90%);
  height: 18px;
  border-radius: 4px;
}
.public-event-skeleton span:nth-child(2) { width: min(520px, 76%); }
.public-event-skeleton span:nth-child(3) { width: min(580px, 84%); }
.public-event-skeleton span:nth-child(4) { width: min(420px, 62%); }

@media (max-width: 760px) {
  .public-event-layout { grid-template-columns: 1fr; }
  .public-event-media { min-height: 210px; order: -1; }
  .public-event-media > img,
  .public-event-photo-placeholder { min-height: 210px; }
}
@media (max-width: 640px) {
  .curated-open-play-media { width: 100%; height: 170px; }
}
.email-preferences{margin:22px 0 4px;padding:0;border:0}
.email-preferences legend{margin-bottom:4px;font-size:18px;font-weight:750}
.email-preferences-copy{margin:0 0 12px;color:var(--muted);font-size:14px}
.email-preference-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:13px 0;border-top:1px solid var(--border);cursor:pointer}
.email-preference-row span{display:grid;gap:3px}
.email-preference-row strong{line-height:1.35}
.email-preference-row small{display:block;color:var(--muted);line-height:1.35}
.email-preference-row input{width:20px;height:20px;margin:0;accent-color:var(--green)}
@media(max-width:640px){.email-preference-row{gap:12px;padding:12px 0}.email-preferences legend{font-size:17px}}

/* ============================================================
   2026 booking + dashboard redesign
   Scoped to .bd-redesign so tournament, social-play and admin surfaces keep
   their existing presentation and behavior.
   ============================================================ */
.bd-redesign {
  --bd-ink: var(--product-ink);
  --bd-deep: var(--product-brand-deep);
  --bd-deep-2: var(--product-brand-deep-alt);
  --bd-lime: var(--product-accent);
  --bd-lime-tint: var(--product-accent-tint);
  --bd-lime-soft: var(--product-accent-soft);
  --bd-canvas: var(--product-canvas);
  --bd-line: var(--product-line);
  --bd-hairline: var(--product-hairline);
  --bd-muted: var(--product-text-muted);
  --bd-shadow-xs: 0 3px 12px rgba(21, 24, 26, 0.05);
  --bd-shadow-sm: 0 4px 15px rgba(21, 24, 26, 0.055);
  --bd-shadow-md: 0 5px 18px rgba(21, 24, 26, 0.07);
  --bd-shadow: 0 8px 24px rgba(21, 24, 26, 0.08);
  --bd-radius-sm: 10px;
  --bd-radius: 14px;
  --bd-radius-lg: 16px;
  --bd-radius-pill: 999px;
  --bd-focus-ring: 0 0 0 3px rgba(216, 232, 50, 0.55);
  --bd-header-offset: 88px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  color: var(--bd-ink);
}

.bd-redesign :where(button, a, input, select, textarea, [role="button"], [role="tab"]):focus-visible {
  outline: 2px solid var(--bd-lime);
  outline-offset: 2px;
  box-shadow: var(--bd-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  .bd-redesign *,
  .bd-redesign *::before,
  .bd-redesign *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
  .bd-court-directory .facility-card:hover { transform: none; }
}

.bd-redesign .small-label {
  color: var(--bd-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.bd-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(11, 44, 52, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fadf 100%);
  box-shadow: var(--bd-shadow);
}

.bd-dashboard-hero h1 {
  margin: 5px 0 4px;
  color: var(--bd-ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.bd-dashboard-hero p { margin: 0; color: var(--bd-muted); }
.bd-dashboard-hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.bd-primary-action,
.bd-secondary-action,
.bd-text-action {
  width: auto;
  margin: 0;
  white-space: nowrap;
}
.bd-primary-action {
  padding: 11px 20px;
  border-color: var(--bd-lime);
  border-radius: 999px;
  background: var(--bd-lime);
  color: #081d23;
  font-weight: 800;
}
.bd-secondary-action {
  padding: 10px 15px;
  border: 1px solid color-mix(in srgb, var(--bd-deep) 24%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: var(--bd-deep);
  font-weight: 800;
}
.bd-secondary-action:hover { border-color: var(--bd-deep); background: #fff; }
.bd-text-action {
  padding: 7px 11px;
  border-color: transparent;
  background: transparent;
  color: var(--bd-deep);
  font-weight: 800;
}

.bd-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.bd-kpi-card,
.bd-dashboard-panel {
  border: 1px solid var(--bd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(21, 24, 26, 0.05);
}
.bd-kpi-card { display: grid; gap: 3px; padding: 18px; text-align: left; font: inherit; cursor: pointer; transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease; }
button.bd-kpi-card:hover { transform: translateY(-1px); border-color: var(--bd-lime); box-shadow: 0 6px 16px rgba(21, 24, 26, 0.09); }
button.bd-kpi-card:focus-visible { outline: 2px solid var(--bd-lime); outline-offset: 2px; }
.bd-kpi-card span { color: var(--bd-muted); font-size: 12px; font-weight: 750; }
.bd-kpi-card strong { color: var(--bd-deep); font-size: 27px; line-height: 1.1; }
.bd-kpi-card small { color: #8a9296; }
.bd-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.bd-dashboard-side { display: grid; gap: 18px; }
.bd-dashboard-panel { padding: 20px; }
.bd-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.bd-section-heading h2 { margin: 3px 0 0; font-size: 18px; }
.bd-dashboard-list,
.bd-activity-list { display: grid; gap: 9px; }
.bd-reservation-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eceeef;
  border-radius: 13px;
  background: #fff;
}
.bd-reservation-date {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 11px;
  background: #f6fad0;
  color: var(--bd-deep);
}
.bd-reservation-date span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bd-reservation-date strong { font-size: 19px; line-height: 1; }
.bd-reservation-copy { display: grid; gap: 3px; min-width: 0; }
.bd-reservation-copy strong,
.bd-reservation-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-reservation-copy span { color: var(--bd-muted); font-size: 12px; }
.bd-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-quick-actions button {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 92px;
  padding: 10px 7px;
  border: 1px solid var(--bd-line);
  border-radius: 13px;
  background: #fff;
  color: var(--bd-ink);
}
.bd-quick-actions button:hover { border-color: var(--bd-lime); background: #fbfce9; }
.bd-quick-actions button span { color: var(--bd-deep); font-size: 23px; line-height: 1; }
.bd-quick-actions button b { font-size: 11px; }
.bd-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #eef0f0;
  border-radius: 0;
  background: transparent;
  color: var(--bd-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.bd-activity-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #c9cfd1; }
.bd-activity-dot.unread { background: var(--bd-lime); box-shadow: 0 0 0 3px #f4f8c8; }
.bd-muted-copy { margin: 0; color: var(--bd-muted); font-size: 13px; }
.bd-empty-panel { padding: 34px 20px; border: 1px dashed #c9cfd1; border-radius: 14px; text-align: center; }
.bd-empty-panel p { color: var(--bd-muted); }
.bd-empty-panel button { width: auto; border-radius: 999px; background: var(--bd-lime); color: var(--bd-deep); }

/* Court directory */
.bd-court-directory {
  max-width: 1180px;
}

/* Public event directory: show format first and keep viewing separate from registration. */
.join-event-labels{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.join-event-format{padding:4px 8px;border:1px solid var(--border);border-radius:7px;color:var(--green);font-size:12px}.join-event-card-main{min-width:0}.join-event-meta{font-size:12px;line-height:1.45}.join-event-card-action{flex-basis:230px}.join-event-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.join-event-actions a{display:grid;place-items:center;padding:10px 12px;border-radius:9px;background:var(--green);color:#fff;font-size:12px;font-weight:800;text-decoration:none}.join-event-actions a.secondary{border:1px solid var(--green);background:transparent;color:var(--green)}.join-event-actions a:only-child{grid-column:1/-1}
@media(max-width:700px){.join-event-actions{grid-template-columns:1fr 1fr}}
.bd-court-directory .directory-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px 36px;
  align-items: end;
  margin-bottom: 28px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bd-deep) 88%, var(--bd-lime));
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(216, 232, 50, 0.18), transparent 32%),
    var(--bd-deep);
  box-shadow: 0 14px 36px rgba(8, 32, 39, 0.16);
}
.bd-court-directory .directory-hero-copy {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.bd-court-directory .directory-page-header h1 {
  margin: 0;
  color: #f7faf5;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.bd-court-directory .directory-page-header p {
  max-width: 58ch;
  margin: 0;
  color: rgba(247, 250, 245, 0.76);
  font-size: 15px;
  line-height: 1.6;
}
.bd-court-directory .city-chip {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border-color: rgba(247, 250, 245, 0.24);
  border-radius: 12px;
  background: rgba(247, 250, 245, 0.09);
  color: #f7faf5;
  text-align: left;
}
.bd-court-directory .city-chip:hover { background: rgba(247, 250, 245, 0.14); }
.bd-court-directory .city-chip-kicker {
  color: rgba(247, 250, 245, 0.62);
  font-size: 11px;
  font-weight: 700;
}
.bd-court-directory .city-chip strong {
  overflow: hidden;
  color: #f7faf5;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bd-court-directory .city-chip-action {
  align-self: end;
  color: var(--bd-lime);
  font-size: 12px;
  font-weight: 800;
}
.bd-court-directory .directory-discovery-panel {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--product-surface);
}
.bd-court-directory .directory-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
  margin: 0;
  padding: 0 0 14px;
  border: 1px solid var(--bd-line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bd-court-directory .directory-search-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.bd-court-directory .directory-search-field > span {
  color: var(--product-text-muted);
  font-size: 11px;
  font-weight: 800;
}
.bd-court-directory .directory-search-box input {
  min-width: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--product-text);
  font-size: 17px;
  box-shadow: none;
}
.bd-court-directory .directory-search-box input::placeholder { color: color-mix(in srgb, var(--product-text-muted) 75%, transparent); }
.bd-court-directory .directory-search-box button {
  align-self: center;
  width: auto;
  margin: 0;
  padding: 11px 20px;
  border-color: var(--bd-lime);
  border-radius: 10px;
  background: var(--bd-lime);
  color: var(--bd-deep);
  font-weight: 800;
  white-space: nowrap;
}
.bd-court-directory .directory-search-box button:active,
.bd-court-directory .directory-filter-group button:active,
.bd-court-directory .facility-card button:active { transform: translateY(1px); }
.bd-court-directory .directory-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
}
.bd-court-directory .directory-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-court-directory .directory-filter-group button {
  width: auto;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--bd-line);
  border-radius: 10px;
  background: var(--product-surface-muted);
  color: var(--product-text-muted);
  font-size: 12px;
  font-weight: 750;
}
.bd-court-directory .directory-filter-group button:hover { border-color: color-mix(in srgb, var(--bd-lime) 65%, var(--bd-line)); }
.bd-court-directory .directory-filter-group button.active {
  border-color: var(--bd-deep);
  background: var(--bd-deep);
  color: #f7faf5;
}
.bd-court-directory #directorySearchStatus {
  margin: 0;
  color: var(--product-text-muted);
  font-size: 12px;
  text-align: right;
}
.bd-court-directory .directory-results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bd-court-directory .directory-results-heading strong {
  color: var(--product-text);
  font-size: 18px;
}
.bd-court-directory .directory-results-heading span {
  color: var(--product-text-muted);
  font-size: 12px;
}
.bd-court-directory .facility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bd-court-directory .facility-card {
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-lg);
  background: var(--product-surface);
  box-shadow: var(--bd-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.bd-court-directory .facility-card:hover { transform: translateY(-2px); box-shadow: var(--bd-shadow); }
.bd-court-directory .facility-image {
  aspect-ratio: 16 / 8.5;
  background: var(--bd-lime-tint);
}
.bd-court-directory .facility-owner-avatar {
  top: 12px;
  left: 12px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.bd-court-directory .facility-image-ribbon,
.bd-court-directory .facility-listing-badge {
  border-radius: 8px;
}
.bd-court-directory .facility-card-body {
  gap: 12px;
  padding: 18px;
}
.bd-court-directory .facility-card-name {
  color: var(--product-text);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.bd-court-directory .facility-card-address {
  min-height: 0;
  margin-top: 4px;
  color: var(--product-text-muted);
}
.bd-court-directory .facility-directory-chips span,
.bd-court-directory .facility-amenity-icon,
.bd-court-directory .facility-amenity-more {
  width: auto;
  height: auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--bd-lime) 34%, var(--bd-line));
  border-radius: 8px;
  background: var(--bd-lime-tint);
  color: var(--bd-deep);
  font-size: 11px;
  font-weight: 700;
}
.bd-court-directory .facility-directory-chips span.neutral {
  border-color: var(--bd-line);
  background: var(--product-surface-muted);
  color: var(--product-text-muted);
}
.bd-court-directory .facility-amenity-icons {
  min-height: 0;
  gap: 6px;
}
.bd-court-directory .facility-card-footer {
  min-height: 42px;
  padding-top: 10px;
  border-top: 1px solid var(--bd-line);
}
.bd-court-directory .facility-directory-price {
  color: var(--product-text);
  font-size: 14px;
}
.bd-court-directory .facility-share-btn {
  padding: 7px 10px;
  border-radius: 9px;
  background: transparent !important;
  color: var(--bd-deep) !important;
}
.bd-court-directory .facility-card .view-facility-btn {
  border-radius: 10px;
  background: var(--bd-deep);
  color: #f7faf5;
  font-weight: 800;
  white-space: nowrap;
}
.bd-court-directory .facility-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
}
.bd-court-directory .facility-card:only-child .facility-image {
  min-height: 300px;
  aspect-ratio: auto;
}
.bd-court-directory .directory-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 260px;
  padding: 36px;
  border: 1px dashed color-mix(in srgb, var(--bd-deep) 26%, var(--bd-line));
  border-radius: 16px;
  background: var(--product-surface);
  text-align: left;
}
.bd-court-directory .empty-state-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bd-lime);
  color: var(--bd-deep);
  font-size: 12px;
  font-weight: 900;
}
.bd-court-directory .directory-empty-state h2 { color: var(--product-text); }
.bd-court-directory .directory-empty-state button {
  width: auto;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--bd-deep);
  color: #f7faf5;
}
.bd-court-directory .facility-card-promo {
  border-color: color-mix(in srgb, var(--bd-lime) 45%, var(--bd-line));
  background: var(--bd-deep);
  box-shadow: var(--bd-shadow-sm);
}
.bd-court-directory .facility-card-promo .facility-promo-image {
  background: var(--bd-lime-tint);
}
.bd-court-directory .facility-card-promo .facility-promo-badge {
  background: var(--bd-deep);
  color: var(--bd-lime);
  box-shadow: none;
}
.bd-court-directory .facility-card-promo .facility-card-name { color: #f7faf5; }
.bd-court-directory .facility-card-promo .facility-card-address { color: rgba(247, 250, 245, 0.72); }
.bd-court-directory .facility-card-promo .facility-card-footer { border-top-color: rgba(247, 250, 245, 0.16); }
.bd-court-directory .facility-card-promo .facility-promo-mail { color: var(--bd-lime); }
.bd-court-directory .facility-card.facility-card-promo .view-facility-btn {
  background: var(--bd-lime);
  color: var(--bd-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .bd-court-directory .directory-page-header,
  .bd-court-directory .directory-discovery-panel { animation: bd-directory-enter 360ms cubic-bezier(.16,1,.3,1) both; }
  .bd-court-directory .directory-discovery-panel { animation-delay: 70ms; }
  .bd-court-directory .facility-card { animation: bd-directory-enter 320ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes bd-directory-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-theme="dark"] .bd-court-directory .directory-filter-group button.active,
html[data-theme="dark"] .bd-court-directory .facility-card .view-facility-btn,
html[data-theme="dark"] .bd-court-directory .directory-empty-state button {
  color: #f7faf5;
}

@media (max-width: 820px) {
  .bd-court-directory .directory-page-header { grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; }
  .bd-court-directory .facility-card:only-child { grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr); }
}

@media (max-width: 640px) {
  .bd-court-directory .directory-page-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
    padding: 22px 16px 16px;
  }
  .bd-court-directory .directory-page-header h1 { font-size: clamp(32px, 10vw, 40px); }
  .bd-court-directory .directory-page-header p { font-size: 14px; line-height: 1.5; }
  .bd-court-directory .city-chip {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 12px 14px;
  }
  .bd-court-directory .city-chip-kicker,
  .bd-court-directory .city-chip strong { grid-column: 1; }
  .bd-court-directory .city-chip-action { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .bd-court-directory .directory-discovery-panel { padding: 12px; }
  .bd-court-directory .directory-search-box { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .bd-court-directory .directory-search-box button { min-height: 44px; padding-inline: 14px; }
  .bd-court-directory .directory-search-box input { font-size: 16px; }
  .bd-court-directory .directory-filter-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .bd-court-directory .directory-filter-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .bd-court-directory .directory-filter-group button { min-height: 44px; padding-inline: 6px; }
  .bd-court-directory #directorySearchStatus { text-align: left; }
  .bd-court-directory .directory-results-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bd-court-directory .facility-grid { grid-template-columns: 1fr; }
  .bd-court-directory .facility-card:only-child { display: flex; }
  .bd-court-directory .facility-card:only-child .facility-image { min-height: 0; aspect-ratio: 16 / 9; }
  .bd-court-directory .facility-card-body { gap: 10px; padding: 15px; }
  .bd-court-directory .directory-empty-state { min-height: 220px; padding: 26px 20px; }
}

/* Facility detail */
.bd-facility-page .back-btn,
.bd-booking-page .back-btn { width: auto; margin-bottom: 14px; border: 0; background: transparent; color: var(--bd-muted); }
.bd-facility-page .bd-facility-heading {
  margin-bottom: 0;
  padding: 22px 24px;
  border-radius: 18px 18px 0 0;
  background: var(--bd-deep);
}
.bd-facility-page .bd-facility-heading h1,
.bd-facility-page .bd-facility-heading p,
.bd-facility-page .bd-facility-heading strong { color: #fff; }
.bd-facility-page .bd-facility-heading .small-label,
.bd-facility-page .bd-facility-heading small { color: var(--bd-lime); }
.bd-facility-page .bd-facility-profile-card {
  margin-bottom: 22px;
  border: 1px solid var(--bd-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--bd-shadow);
}
.bd-facility-page .court-choice-list > * {
  border-radius: 15px;
  box-shadow: var(--bd-shadow-xs);
}
.bd-facility-page .choose-court-btn { border-radius: 999px; background: var(--bd-lime); color: var(--bd-deep); }

/* Artifact-inspired facility profile. Tabs only change presentation; existing
   court, contact, booking, and event controls retain their production IDs. */
.bd-facility-page .bd-facility-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bd-facility-page .bd-facility-heading > div:first-child { min-width: 0; }
.bd-facility-page .facility-owner-identity { flex: 0 0 auto; }
.bd-facility-page .bd-facility-profile-card {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.bd-facility-page .facility-detail-image {
  min-height: 300px;
  border-radius: 0;
  background: linear-gradient(145deg, #dfe5e5, #f6f7f5);
}
.bd-facility-page .facility-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.bd-facility-page .bd-facility-summary { display: grid; align-content: center; gap: 12px; padding: 30px; }
.bd-facility-page .bd-facility-summary h2 { margin: 0; color: var(--bd-deep); font-size: 25px; }
.bd-facility-page .bd-facility-summary > p { margin: 0; color: var(--bd-muted); line-height: 1.65; }
.bd-facility-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--bd-line);
  background: #fff;
  scrollbar-width: none;
}
.bd-facility-tabs::-webkit-scrollbar { display: none; }
.bd-facility-tabs button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 14px 20px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bd-muted);
  font-weight: 800;
}
.bd-facility-tabs button:hover { background: #f7f8f4; color: var(--bd-deep); }
.bd-facility-tabs button.active { box-shadow: inset 0 -3px var(--bd-lime); color: var(--bd-deep); }
.bd-facility-tab-panel {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-lg);
  background: #fff;
  box-shadow: var(--bd-shadow-xs);
}
.bd-facility-tab-panel[hidden] { display: none !important; }
.bd-facility-about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.bd-facility-info-card { padding: 24px; border: 1px solid var(--bd-line); border-radius: 15px; background: #fff; }
.bd-facility-info-card h2 { margin: 5px 0 10px; color: var(--bd-deep); }
.bd-facility-info-card p,
.bd-facility-info-card li { color: var(--bd-muted); line-height: 1.6; }
.bd-facility-request-card { background: linear-gradient(145deg, var(--bd-deep), var(--bd-deep-2)); }
.bd-facility-request-card .small-label { color: var(--bd-lime); }
.bd-facility-request-card h2,
.bd-facility-request-card li { color: #fff; }
.bd-facility-request-card ol { display: grid; gap: 8px; padding-left: 20px; }
.bd-facility-request-card button { width: auto; margin-top: 8px; }
.bd-facility-section-heading { align-items: end; margin-bottom: 18px; }
.bd-facility-tab-panel .player-facility-gallery-section { margin: 0; }
.bd-facility-tab-panel .player-facility-gallery-section > .section-heading { margin-top: 0; }

.bd-booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.bd-booking-steps li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 10px; border: 1px solid var(--bd-line); border-radius: 10px; background: #fff; color: var(--bd-muted); }
.bd-booking-steps li span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--bd-hairline); font-size: 11px; font-weight: 800; }
.bd-booking-steps li b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bd-booking-steps li.active { border-color: #cbd75b; background: var(--bd-lime-soft); color: var(--bd-deep); }
.bd-booking-steps li.active span { background: var(--bd-lime); color: var(--bd-deep); }
.bd-booking-submit-note { margin: 10px 4px 0; color: var(--bd-muted); font-size: 11px; line-height: 1.5; text-align: center; }

.bd-player-workspace-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: -10px 0 22px;
  padding: 6px;
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  background: #fff;
  scrollbar-width: none;
}
.bd-player-workspace-nav::-webkit-scrollbar { display: none; }
.bd-player-workspace-nav button { flex: 1 0 auto; width: auto; min-width: 120px; padding: 10px 15px; border: 0; border-radius: 10px; background: transparent; color: var(--bd-muted); font-size: 12px; font-weight: 800; }
.bd-player-workspace-nav button.active { background: var(--bd-deep); color: #fff; }

/* Court checkout */
.bd-booking-page .compact-booking-layout {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.bd-booking-page .court-info-panel,
.bd-booking-page .calendar-panel,
.bd-booking-page .booking-summary-panel {
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-lg);
  background: #fff;
  box-shadow: var(--bd-shadow-sm);
}
.bd-booking-page .compact-booking-header { padding: 4px 2px 12px; }
.bd-booking-page .compact-booking-header h1 { font-size: 27px; }
.bd-booking-page .booking-summary-panel { position: sticky; top: var(--bd-header-offset); }
.bd-booking-page .time-slot { border-radius: var(--bd-radius-sm); }
.bd-booking-page .time-slot.available { border-color: #8fbe4d; background: #fff; }
.bd-booking-page .time-slot.available:hover,
.bd-booking-page .time-slot.selected { border-color: var(--bd-deep); background: var(--bd-lime-tint); color: var(--bd-deep); }
.bd-booking-page .selected-booking-box { border-radius: var(--bd-radius); background: var(--bd-canvas); }
.bd-booking-page .payment-info-card,
.bd-booking-page .booking-owner-policy-box { border-radius: 12px; background: #fff; }
.bd-booking-page #confirmBookingBtn { border-radius: var(--bd-radius-pill); background: var(--bd-lime); color: var(--bd-deep); font-weight: 800; }
.bd-booking-page #confirmBookingBtn:disabled { background: #d9ddde; color: #8a9296; }

/* Player reservation records */
.bd-bookings-hero { padding-block: 22px; }
.bd-player-bookings-page .bd-folder-tabs {
  gap: 4px;
  margin-bottom: 18px;
  padding: 0 4px;
  border-bottom: 1px solid #c9cfd1;
}
.bd-player-bookings-page .bd-folder-tabs button {
  margin-bottom: -1px;
  border: 1px solid #c9cfd1;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #e7eaeb;
  color: var(--bd-muted);
}
.bd-player-bookings-page .bd-folder-tabs button.active { border-color: var(--bd-deep); background: var(--bd-deep); color: #fff; }
.bd-player-bookings-page .booking-card-list { gap: 12px; }
.bd-player-bookings-page .booking-card {
  border: 1px solid var(--bd-line);
  border-radius: 15px;
  box-shadow: var(--bd-shadow-xs);
}

/* Player activity, booking history, and profile settings */
.bd-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid var(--bd-line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--product-surface) 0%, var(--bd-lime-soft) 100%);
  box-shadow: var(--bd-shadow-sm);
}
.bd-page-heading h1 { margin: 0 0 5px; color: var(--bd-ink); font-size: clamp(27px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.1; }
.bd-page-heading p { max-width: 62ch; margin: 0; color: var(--bd-muted); }
.bd-secondary-action { flex: 0 0 auto; min-height: 44px; margin: 0; border-color: var(--bd-line); background: var(--product-surface); color: var(--bd-deep); font-weight: 750; }
.bd-secondary-action:hover { border-color: var(--bd-deep); background: var(--product-surface-muted); }
.bd-account-state { flex: 0 0 auto; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--bd-lime) 55%, var(--bd-line)); border-radius: 999px; background: var(--bd-lime-tint); color: var(--bd-deep); font-size: 12px; font-weight: 800; }

.bd-notifications-page .notifications-list { gap: 10px; }
.bd-notifications-page .notification-item { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 13px; padding: 16px 18px; border-color: var(--bd-line); border-radius: 13px; box-shadow: var(--bd-shadow-xs); }
.bd-notifications-page .notification-body { min-width: 0; }
.bd-notifications-page .notification-body p { overflow-wrap: anywhere; line-height: 1.55; }
.bd-notifications-page .notification-actions { flex-wrap: wrap; }
.bd-notifications-page .notification-actions button { min-height: 40px; }
.bd-notifications-page .empty-state,
.bd-player-bookings-page .empty-state { margin-top: 0; padding-block: clamp(42px, 8vw, 72px); border-color: var(--bd-line); background: var(--product-surface); }
.bd-empty-symbol { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; border-radius: 14px; background: var(--bd-lime-tint); color: var(--bd-deep); }
.bd-empty-symbol svg { width: 25px; height: 25px; }

.bd-player-bookings-page .bd-folder-tabs { scrollbar-width: none; }
.bd-player-bookings-page .bd-folder-tabs::-webkit-scrollbar { display: none; }
.bd-player-bookings-page .bd-folder-tabs button { min-height: 44px; padding-inline: 16px; }
.bd-player-bookings-page #playerBookingsList { min-width: 0; }
.bd-player-bookings-page .booking-card-head { align-items: flex-start; }
.bd-player-bookings-page .booking-detail-value { overflow-wrap: anywhere; }

.bd-profile-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: start; }
.bd-profile-section { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--bd-line); border-radius: 15px; background: var(--product-surface); box-shadow: var(--bd-shadow-xs); }
.bd-profile-section-heading { margin-bottom: 20px; }
.bd-profile-section-heading h2,
.bd-profile-section legend { margin: 0 0 5px; color: var(--bd-ink); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.bd-profile-section-heading p,
.bd-profile-section .email-preferences-copy { margin: 0 0 18px; color: var(--bd-muted); font-size: 13px; line-height: 1.55; }
.bd-profile-field { display: grid; gap: 7px; margin-top: 15px; color: var(--bd-ink); font-size: 13px; font-weight: 750; }
.bd-profile-field:first-of-type { margin-top: 0; }
.bd-profile-field input { min-height: 46px; }
.bd-profile-field small { color: var(--bd-muted); font-weight: 500; line-height: 1.4; }
.bd-profile-section.email-preferences { padding-top: 22px; }
.bd-profile-section .email-preference-row { min-height: 60px; padding: 12px 0; }
.bd-profile-section .email-preference-row:first-of-type { border-top: 0; }
.bd-profile-section .email-preference-row input { width: 24px; height: 24px; }
.bd-profile-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.bd-profile-actions .save-btn { min-height: 46px; margin: 0; }

@media (max-width: 820px) {
  .bd-dashboard-grid,
  .bd-booking-page .compact-booking-layout,
  .bd-facility-page .bd-facility-profile-card,
  .bd-facility-about-grid { grid-template-columns: 1fr; }
  .bd-booking-page .booking-summary-panel { position: static; }
  .bd-facility-page .facility-detail-image { min-height: 220px; }
  .bd-profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bd-redesign { padding-inline: 0; }
  .bd-dashboard-hero { align-items: stretch; flex-direction: column; padding: 20px 18px; border-radius: 15px; }
  .bd-dashboard-hero-actions { display: grid; width: 100%; }
  .bd-dashboard-hero .bd-primary-action,
  .bd-dashboard-hero .bd-secondary-action { width: 100%; min-height: 46px; }
  .bd-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bd-dashboard-kpis > :last-child { grid-column: 1 / -1; }
  .bd-kpi-card { min-width: 0; min-height: 104px; padding: 14px 12px; overflow-wrap: anywhere; }
  .bd-kpi-card strong { font-size: 23px; }
  .bd-kpi-card small { font-size: 11px; line-height: 1.25; }
  .bd-dashboard-panel { padding: 16px; }
  .bd-reservation-row { grid-template-columns: 44px minmax(0,1fr); }
  .bd-reservation-row > .status-pill { grid-column: 2; justify-self: start; }
  .bd-quick-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .bd-court-directory .directory-page-header { padding: 21px 18px; border-radius: 15px; }
  .bd-court-directory .directory-heading-row { align-items: flex-start; flex-direction: column; }
  .bd-court-directory .directory-search-box { border-radius: 14px; }
  .bd-facility-page .bd-facility-heading { padding: 19px 17px; }
  .bd-facility-page .bd-facility-heading { align-items: flex-start; flex-direction: column; }
  .bd-facility-page .facility-owner-identity { width: 100%; }
  .bd-facility-page .bd-facility-summary { padding: 22px 18px; }
  .bd-facility-tabs { padding-inline: 4px; }
  .bd-facility-tabs button { padding-inline: 15px; }
  .bd-facility-tab-panel { padding: 15px; border-radius: 14px; }
  .bd-facility-info-card { padding: 18px; }
  .bd-booking-steps li { padding-inline: 7px; }
  .bd-booking-steps li b { font-size: 10px; }
  .bd-player-workspace-nav { margin-top: -4px; }
  .bd-player-bookings-page .bd-folder-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .bd-player-bookings-page .bd-folder-tabs button { flex: 0 0 auto; }
  .bd-page-heading { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px 18px; border-radius: 15px; }
  .bd-page-heading h1 { font-size: 26px; }
  .bd-page-heading .bd-secondary-action { width: 100%; }
  .bd-account-state { align-self: flex-start; }
  .bd-profile-section { padding: 18px; }
  .bd-profile-actions .save-btn { width: 100%; }
  .bd-player-bookings-page .booking-card { padding: 14px; }
  .bd-player-bookings-page .booking-card-head { flex-wrap: wrap; }
  .bd-player-bookings-page .booking-actions { display: grid; grid-template-columns: 1fr; }
  .bd-player-bookings-page .booking-actions button { width: 100%; min-height: 44px; }
}

/* Very narrow phones: stack the step number above its label so the three
   pills stop overlapping under ~380px. */
@media (max-width: 380px) {
  .bd-dashboard-hero h1 { font-size: 24px; }
  .bd-dashboard-panel { padding: 14px; }
  .bd-section-heading { gap: 10px; }
  .bd-section-heading h2 { font-size: 19px; }
  .bd-booking-steps { gap: 4px; }
  .bd-booking-steps li {
    flex-direction: column;
    gap: 3px;
    padding: 7px 4px;
    text-align: center;
  }
  .bd-booking-steps li span { width: 20px; height: 20px; font-size: 10px; }
  .bd-booking-steps li b {
    overflow: visible;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    word-break: keep-all;
  }
}

/* ============================================================
   Visitor landing sections rendered by homeExtrasHtml() on the
   court directory. Adapted verbatim from the 778eb3d0 artifact.
   ============================================================ */
.bd-redesign .home-extras > section + section { margin-top: 40px; }

.bd-home-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
.bd-home-eyebrow-lime { color: var(--bd-lime); }

.bd-home-how {
  margin-top: 40px;
  padding: 40px;
  border-radius: 20px;
  background: var(--bd-deep);
  color: #fff;
}
.bd-home-how h2 {
  margin: 6px 0 20px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.bd-home-persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.bd-home-persona-tab {
  width: auto;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--bd-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bd-home-persona-tab:hover { background: rgba(255, 255, 255, 0.18); }
.bd-home-persona-tab.active { background: var(--bd-lime); color: var(--bd-deep); }
.bd-home-persona-tab.active:hover { background: var(--bd-lime); }
.bd-home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bd-home-step { min-width: 0; }
.bd-home-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--bd-radius-pill);
  background: var(--bd-lime);
  color: var(--bd-deep);
  font-size: 15px;
  font-weight: 800;
}
.bd-home-step h4 { margin: 0 0 6px; color: #fff; font-size: 16px; }
.bd-home-step p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.5; }

.bd-home-tourney {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--bd-shadow-sm);
}
.bd-home-tourney h2 { margin: 6px 0 14px; color: var(--bd-ink); font-size: 28px; font-weight: 800; }
.bd-home-tourney-copy > p { margin: 0 0 18px; color: #545c60; font-size: 14px; line-height: 1.6; }
.bd-home-tourney-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.bd-home-tourney-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bd-ink);
  font-size: 14px;
}
.bd-home-tourney-cta {
  width: auto;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--bd-radius-pill);
  background: var(--bd-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.bd-home-tourney-cta:hover { background: var(--bd-deep-2); }
.bd-home-tourney-preview {
  padding: 24px;
  border-radius: var(--bd-radius-lg);
  background: var(--bd-deep-2);
  color: #fff;
}
.bd-home-tourney-preview-title { margin-bottom: 4px; font-weight: 700; font-size: 16px; }
.bd-home-tourney-preview-meta { margin-bottom: 16px; font-size: 12px; opacity: 0.6; }
.bd-home-tourney-preview-match {
  padding: 12px;
  border: 1px solid var(--bd-lime);
  border-radius: 12px;
  font-size: 13px;
}
.bd-home-tourney-preview-round { margin-bottom: 8px; font-size: 11px; opacity: 0.6; }
.bd-home-tourney-preview-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.bd-home-tourney-preview-teams em { font-style: normal; opacity: 0.6; }

.bd-home-faq h2 { margin: 6px 0 24px; color: var(--bd-ink); font-size: 28px; font-weight: 800; }
.bd-home-faq-list { display: flex; flex-direction: column; gap: 10px; }
.bd-home-faq-item {
  overflow: hidden;
  border-radius: var(--bd-radius);
  background: #fff;
  box-shadow: 0 2px 6px rgba(27, 33, 29, 0.06);
}
.bd-home-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--bd-ink);
  text-align: left;
  cursor: pointer;
}
.bd-home-faq-q strong { color: var(--bd-ink); font-size: 15px; font-weight: 700; }
.bd-home-faq-icon { flex-shrink: 0; color: #8a9296; font-size: 18px; transition: transform 150ms ease; }
.bd-home-faq-item.open .bd-home-faq-icon { transform: rotate(45deg); }
.bd-home-faq-a { display: none; margin: 0; padding: 0 20px 20px; color: #545c60; font-size: 14px; line-height: 1.6; }
.bd-home-faq-item.open .bd-home-faq-a { display: block; }

@media (max-width: 720px) {
  .bd-home-how { padding: 26px 20px; border-radius: 16px; }
  .bd-home-how h2,
  .bd-home-tourney h2,
  .bd-home-faq h2 { font-size: 22px; }
  .bd-home-steps { grid-template-columns: 1fr; gap: 20px; }
  .bd-home-tourney { grid-template-columns: 1fr; gap: 24px; padding: 24px; border-radius: 16px; }
}

/* ============================================================
   Facility detail v2 - BookDinks preservation redesign
   Shape rule: 18px surfaces, 10px controls, square tab edges.
   Motion communicates page hierarchy and panel state only.
   ============================================================ */

.bd-facility-v2 {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 28px;
}

/* Hero cover */
.fv2-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 34vw, 390px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bd-lime-tint), var(--product-surface-muted));
}
.fv2-hero-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3, #98a19b);
  font-size: var(--fs-sm, 14px);
}
.fv2-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fv2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 32, 39, 0.7) 0%, rgba(8, 32, 39, 0.08) 58%, transparent 78%);
  pointer-events: none;
}

/* Identity strip */
.fv2-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: calc(100% - 48px);
  margin: -70px 24px 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--bd-lime) 28%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bd-deep) 96%, transparent);
  box-shadow: 0 18px 44px rgba(8, 32, 39, 0.2);
  color: #f7faf5;
  position: relative;
  z-index: 2;
}
.fv2-identity-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #f7faf5;
  color: var(--bd-deep, #0b2c34);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.fv2-identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fv2-identity-info {
  min-width: 0;
}
.fv2-identity-info h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  color: #f7faf5;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv2-identity-info > p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(247, 250, 245, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv2-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(247, 250, 245, 0.68);
}
.fv2-identity-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.fv2-identity-actions .facility-owner-identity {
  margin: 0;
}
.fv2-identity-actions .facility-owner-identity strong,
.fv2-identity-actions .facility-owner-identity small {
  color: rgba(255, 255, 255, 0.7);
}
.fv2-identity-actions .facility-owner-identity-avatar {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.fv2-action-btns {
  display: flex;
  gap: 8px;
}
.fv2-action-btns .facility-contact-btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.fv2-action-btns .facility-contact-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.fv2-action-btns .facility-share-btn {
  border-color: var(--bd-lime) !important;
  background: var(--bd-lime) !important;
  color: var(--bd-deep) !important;
}
.fv2-action-btns .facility-share-btn:hover {
  background: var(--brand-lime-strong) !important;
}

/* Sticky tab bar */
.fv2-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  margin: 18px 24px 0;
  padding: 0 8px;
  background: var(--product-surface);
  border: 1px solid var(--bd-line, #eceeef);
  border-bottom: 1px solid var(--bd-line, #eceeef);
  border-radius: 14px 14px 0 0;
  position: sticky;
  top: 58px;
  z-index: 10;
  scrollbar-width: none;
}
.fv2-tabs::-webkit-scrollbar { display: none; }
.fv2-tabs button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  min-height: 48px;
  padding: 14px 18px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bd-muted, #8a9296);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.fv2-tabs button:hover {
  background: var(--product-surface-muted);
  color: var(--bd-deep, #0b2c34);
}
.fv2-tabs button.active {
  box-shadow: inset 0 -3px var(--bd-lime, #d8e832);
  color: var(--bd-deep, #0b2c34);
  background: color-mix(in srgb, var(--bd-lime-tint) 56%, var(--product-surface));
}
.fv2-tab-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: var(--bd-lime-tint, #f6fad0);
  color: var(--bd-deep, #0b2c34);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
}
.fv2-tab-count:empty { display: none; }

/* Tab panels */
.fv2-panels {
  width: calc(100% - 48px);
  margin: 0 24px;
  min-height: 300px;
  border: 1px solid var(--bd-line, #eceeef);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: var(--product-surface);
}
.fv2-panel {
  padding: 30px;
}
.fv2-panel[hidden] { display: none !important; }

.fv2-panel-intro {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin-bottom: 22px;
}
.fv2-panel-intro h2 {
  margin: 0;
  color: var(--product-text);
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.025em;
}
.fv2-panel-intro p {
  margin: 0;
  color: var(--product-text-muted);
  font-size: 14px;
}

/* Court list inside Book courts tab */
.fv2-court-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.fv2-court-list .court-choice-card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 58, 46, 0.08);
  border: 1px solid var(--bd-line, #eceeef);
}
.fv2-court-list .choose-court-btn {
  border-radius: 10px;
  background: var(--bd-lime, #d8e832);
  color: var(--bd-deep, #0b2c34);
  font-weight: 700;
  border: 0;
}
.fv2-court-list .choose-court-btn:hover:not(:disabled) {
  background: #c5d42b;
}
.fv2-court-list .listing-only-note {
  grid-column: 1 / -1;
}
.fv2-court-list .court-choice-card:only-child {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
  align-items: center;
}
.fv2-court-list .court-choice-card:only-child :is(.court-choice-image, .court-choice-photo) {
  grid-row: 1 / span 2;
  height: 220px;
}
.fv2-court-list .court-choice-card:only-child .court-choice-content {
  padding: 24px 24px 12px;
}
.fv2-court-list .court-choice-card:only-child .choose-court-btn {
  width: auto;
  min-width: 150px;
  margin: 0 24px 24px;
  justify-self: start;
}

/* About tab */
.fv2-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.fv2-about-main h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--bd-deep, #0b2c34);
}
.fv2-about-main > p {
  margin: 0 0 20px;
  color: var(--bd-muted, #8a9296);
  line-height: 1.65;
}
.fv2-about-main > h3 { margin: 24px 0 10px; color: var(--product-text); font-size: 15px; }
.fv2-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fv2-amenities .player-amenity-card {
  background: var(--bd-lime-tint);
  border: 1px solid color-mix(in srgb, var(--bd-lime) 45%, var(--bd-line));
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-deep, #0b2c34);
}
.fv2-about-card {
  padding: 24px;
  border: 1px solid var(--bd-line, #eceeef);
  border-radius: 16px;
  background: var(--product-surface-muted);
  color: var(--product-text);
}
.fv2-about-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--product-text);
}
.fv2-about-card ol {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.fv2-about-card li {
  color: var(--product-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.fv2-about-card .bd-primary-action {
  width: auto;
  border-radius: 10px;
  background: var(--bd-deep);
  color: #f7faf5;
}
.fv2-court-details { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--bd-line); }
.fv2-court-detail-list { border-block: 1px solid var(--bd-line); }
.fv2-court-detail-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bd-line); }
.fv2-court-detail-row:last-child { border-bottom: 0; }
.fv2-court-detail-photo,
.fv2-court-detail-placeholder { width: 88px; height: 68px; border-radius: 10px; object-fit: cover; }
.fv2-court-detail-placeholder { display: grid; place-items: center; background: var(--bd-lime-tint); color: var(--bd-muted); font-size: 11px; }
.fv2-court-detail-copy { min-width: 0; }
.fv2-court-detail-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv2-court-detail-heading h3 { margin: 0; color: var(--product-text); font-size: 16px; }
.fv2-cover-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid var(--bd-line); border-radius: 999px; color: var(--bd-muted); font-size: 11px; font-weight: 800; }
.fv2-cover-status::before { width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: #9ba49f; content: ""; }
.fv2-cover-status.is-covered { border-color: #98b95c; background: var(--bd-lime-tint); color: var(--bd-deep); }
.fv2-cover-status.is-covered::before { background: #5f8a2e; }
.fv2-court-detail-copy p,
.fv2-court-detail-copy > span { margin: 4px 0 0; color: var(--bd-muted); font-size: 12px; line-height: 1.4; }
.fv2-court-detail-copy > span { display: block; }
.fv2-court-detail-price { color: var(--bd-deep); font-size: 14px; white-space: nowrap; }

.fv2-availability-toolbar { display: grid; grid-template-columns: auto minmax(180px, 240px) 1fr; gap: 12px; align-items: center; margin-bottom: 16px; }
.fv2-availability-toolbar > label { color: var(--product-text); font-size: 13px; font-weight: 800; }
.fv2-availability-toolbar > input { min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid var(--bd-line); border-radius: 10px; background: var(--product-surface); color: var(--product-text); font: inherit; }
.fv2-availability-toolbar .booking-status-legend { justify-self: end; }
.fv2-availability-grid { border: 1px solid var(--bd-line); border-radius: 14px; }
.fv2-availability-grid .booking-matrix-cell.is-open { cursor: pointer; }
.fv2-availability-grid .booking-matrix-cell.is-open:focus-visible { outline: 3px solid color-mix(in srgb, var(--bd-lime) 70%, #fff); outline-offset: 2px; }
.fv2-booking-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; padding: 0; border-block: 1px solid var(--bd-line); list-style: none; }
.fv2-booking-path li { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 12px; color: var(--bd-muted); }
.fv2-booking-path li + li { border-inline-start: 1px solid var(--bd-line); }
.fv2-booking-path span { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--bd-lime-tint); color: var(--bd-deep); font-size: 11px; font-weight: 850; }
.fv2-booking-path strong { color: var(--bd-deep); font-size: 12px; }

/* Photos tab gallery */
.fv2-panel .player-facility-gallery-section {
  margin: 0;
}
.fv2-panel .player-facility-gallery-section > .section-heading {
  margin-top: 0;
}
.fv2-panel .player-facility-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.fv2-panel .player-facility-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bd-line, #eceeef);
}

/* Reviews placeholder */
.fv2-reviews-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--bd-line, #c9cfd1);
  border-radius: 14px;
}
.fv2-reviews-empty p {
  color: var(--bd-muted, #8a9296);
  font-size: 14px;
}

/* ---- Facility v2 responsive ---- */

/* Desktop: override back button positioning */
.bd-facility-v2 .back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: auto;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(8, 32, 39, 0.72);
  backdrop-filter: blur(10px);
  color: #f7faf5;
  box-shadow: 0 8px 24px rgba(8, 32, 39, 0.14);
}

html[data-theme="dark"] .fv2-tabs button.active {
  color: var(--product-text);
}
html[data-theme="dark"] .fv2-about-main h2 {
  color: var(--product-text);
}

@media (prefers-reduced-motion: no-preference) {
  .fv2-hero { animation: fv2-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fv2-identity { animation: fv2-enter 480ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fv2-panel.active { animation: fv2-panel-enter 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes fv2-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fv2-panel-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet and below */
@media (max-width: 820px) {
  .fv2-identity {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 18px;
  }
  .fv2-identity-logo {
    width: 58px;
    height: 58px;
  }
  .fv2-identity-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .fv2-about-grid {
    grid-template-columns: 1fr;
  }
  .fv2-court-list {
    grid-template-columns: 1fr;
  }
  .fv2-court-list .court-choice-card:only-child {
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .bd-facility-v2 {
    --fv2-mobile-gutter: 14px;
  }
  .fv2-hero {
    width: calc(100% - (var(--fv2-mobile-gutter) * 2));
    height: 220px;
    margin-inline: var(--fv2-mobile-gutter);
    border-radius: 16px;
  }
  .bd-facility-v2 .back-btn {
    top: 12px;
    left: calc(var(--fv2-mobile-gutter) + 10px);
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .fv2-identity {
    width: calc(100% - ((var(--fv2-mobile-gutter) + 10px) * 2));
    margin: -42px calc(var(--fv2-mobile-gutter) + 10px) 0;
    padding: 14px;
    border-radius: 16px;
  }
  .fv2-identity-info h1 {
    font-size: 18px;
  }
  .fv2-tabs {
    width: calc(100% - (var(--fv2-mobile-gutter) * 2));
    max-width: calc(100% - (var(--fv2-mobile-gutter) * 2));
    margin: 14px var(--fv2-mobile-gutter) 0;
    padding: 0 5px;
    top: 57px;
  }
  .fv2-tabs button {
    padding: 12px 14px 10px;
    font-size: 12px;
  }
  .fv2-panel {
    padding: 22px 16px;
  }
  .fv2-panels {
    width: calc(100% - (var(--fv2-mobile-gutter) * 2));
    margin: 0 var(--fv2-mobile-gutter);
  }
  .fv2-action-btns {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .fv2-action-btns .facility-contact-btn {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 11px;
  }
  .fv2-identity-actions .facility-owner-identity { display: none; }
  .fv2-court-list .court-choice-card:only-child {
    display: flex;
  }
  .fv2-court-list .court-choice-card:only-child :is(.court-choice-image, .court-choice-photo) {
    height: 168px;
  }
  .fv2-court-list .court-choice-card:only-child .court-choice-content {
    padding: 18px 18px 10px;
  }
  .fv2-court-list .court-choice-card:only-child .choose-court-btn {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
  }
  .fv2-about-grid { gap: 24px; }
  .fv2-court-details { margin-top: 24px; padding-top: 22px; }
  .fv2-court-detail-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .fv2-court-detail-photo,
  .fv2-court-detail-placeholder { width: 64px; height: 58px; }
  .fv2-court-detail-price { grid-column: 2; }
  .fv2-availability-toolbar { grid-template-columns: 1fr; }
  .fv2-availability-toolbar > input { width: 100%; font-size: 16px; }
  .fv2-availability-toolbar .booking-status-legend { justify-self: start; }
  .fv2-availability-grid { margin-inline: 0; border-inline: 1px solid var(--bd-line); border-radius: 12px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .bd-facility-v2 { --fv2-mobile-gutter: 10px; }
  .fv2-hero { height: 190px; }
  .fv2-identity {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .fv2-identity-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }
  .fv2-identity-info h1 { font-size: 16px; }
  .fv2-tabs button { padding: 10px 12px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .fv2-hero,
  .fv2-identity,
  .fv2-panel.active { animation: none; }
}

/* Booking journey and actionable notification inbox */
.bd-booking-page .booking-first-fold-layout { max-width: 1180px; margin-inline: auto; }
.bd-booking-page .booking-back-btn { min-height: 44px; padding-inline: 0; border: 0; background: transparent; color: var(--bd-deep); font-weight: 750; }
.bd-booking-page .compact-booking-header h1 { margin-bottom: 7px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.04em; }
.bd-booking-page .compact-booking-header p { max-width: 58ch; color: var(--bd-muted); line-height: 1.55; }
.bd-booking-page .bd-booking-steps { gap: 0; overflow: hidden; border: 1px solid var(--bd-line); border-radius: 12px; background: #fff; }
.bd-booking-page .bd-booking-steps li { min-height: 46px; border: 0; border-inline-end: 1px solid var(--bd-line); border-radius: 0; background: transparent; }
.bd-booking-page .bd-booking-steps li:last-child { border-inline-end: 0; }
.bd-booking-page .bd-booking-steps li.active { background: var(--bd-lime-tint); color: var(--bd-deep); }
.bd-booking-page .bd-booking-steps li.completed { background: var(--bd-deep); color: #fff; }
.bd-booking-page .bd-booking-steps li.completed span { background: var(--bd-lime); color: var(--bd-deep); }
.bd-booking-page .court-info-panel { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 5px 16px; align-items: start; padding: 15px; }
.bd-booking-page .compact-court-image { grid-row: 1 / span 3; width: 116px; height: 104px; margin: 0; border-radius: 11px; }
.bd-booking-page .court-info-panel > h2 { margin: 4px 0 0; }
.bd-booking-page .court-info-panel > p { margin: 0; color: var(--bd-muted); font-size: 12px; overflow-wrap: anywhere; }
.bd-booking-page .court-info-row { align-items: center; margin: 3px 0 0; }
.bd-booking-page .court-info-row h3 { display: none; }
.bd-booking-page .calendar-panel { padding: 20px; }
.bd-booking-page .calendar-header button { width: 44px; height: 44px; border-radius: 10px; }
.bd-booking-page .calendar-header button:disabled { opacity: .3; }
.bd-booking-page .player-calendar-grid { gap: 5px; }
.bd-booking-page .player-calendar-day,
.bd-booking-page .calendar-empty { min-width: 40px; min-height: 40px; border-radius: 9px; }
.bd-booking-page .player-calendar-day:disabled { color: #a6ada8; text-decoration: line-through; opacity: .52; }
.bd-booking-page .player-calendar-day.selected-date { background: var(--bd-deep); color: #fff; text-decoration: none; opacity: 1; }
.bd-booking-page .booking-summary-panel { padding: 22px; }
.bd-booking-page .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bd-booking-page .time-slot { min-width: 0; min-height: 70px; padding: 11px; border-radius: 10px; }
.bd-booking-page .time-slot.available small { inset-block-start: 9px; inset-inline-end: 9px; }
.bd-booking-page .time-slot.selected { border-color: var(--bd-deep); background: var(--bd-deep); }
.bd-booking-page .time-slot.selected :is(strong, span) { color: #fff; }
.bd-booking-page .selected-booking-box { padding: 20px; border: 0; background: var(--bd-canvas); }
.bd-booking-page .selected-booking-box > div > h3 { margin: 0 0 8px; color: var(--bd-ink); font-size: 18px; }
.bd-booking-page .booking-selection-summary { min-height: 48px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bd-line); color: var(--bd-deep); line-height: 1.5; }
.bd-booking-page .booking-field-label,
.bd-booking-page .payment-choice-box > label,
.bd-booking-page .proof-upload-box > label { display: block; margin-bottom: 7px; color: var(--bd-muted); font-size: 11px; font-weight: 800; }
.bd-booking-page #paymentOptionsBox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bd-booking-page #paymentOptionsBox label { min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--bd-line); border-radius: 10px; background: #fff; }
.bd-booking-page #paymentOptionsBox input { width: 20px; height: 20px; }
.bd-booking-page .payment-info-card { margin-top: 10px; padding: 15px; border: 1px solid var(--bd-line); }
.bd-booking-page .booking-policy-consent { align-items: flex-start; min-height: 50px; }
.bd-booking-page .booking-policy-consent input { flex: 0 0 auto; width: 21px; height: 21px; }
.bd-booking-page .booking-submit-status { min-height: 20px; margin-top: 8px; color: var(--bd-muted); font-size: 11px; text-align: center; }
.bd-booking-page #confirmBookingBtn { min-height: 50px; border-radius: 11px; }
.bd-booking-page #confirmBookingBtn[data-submitting="true"] { cursor: wait; }

.notification-command-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--bd-line); border-radius: 13px; background: var(--product-surface); }
.notification-command-bar > div:first-child { display: grid; gap: 2px; min-width: 150px; }
.notification-command-bar strong { color: var(--bd-ink); font-size: 13px; }
.notification-command-bar span { color: var(--bd-muted); font-size: 11px; }
.bd-notifications-page .notification-filter-row { display: flex; gap: 5px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.bd-notifications-page .notification-filter-row::-webkit-scrollbar { display: none; }
.bd-notifications-page .notification-filter-btn { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: transparent; color: var(--bd-muted); font-size: 11px; font-weight: 800; }
.bd-notifications-page .notification-filter-btn.active { border-color: var(--bd-deep); background: var(--bd-deep); color: #fff; }
.bd-notifications-page .notification-item { grid-template-columns: 9px minmax(0, 1fr); content-visibility: auto; contain-intrinsic-size: auto 150px; }
.bd-notifications-page .notification-item.unread { border-color: #cdd88b; background: var(--bd-lime-tint); }
.bd-notifications-page .notification-item.unread .notification-dot { background: var(--bd-deep); }
.bd-notifications-page .notification-category { width: fit-content; margin-bottom: 5px; color: var(--bd-deep); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.bd-notifications-page .notification-body small { display: block; margin-top: 6px; }
.bd-notifications-page .notification-actions { display: flex; gap: 7px; margin-top: 12px; }
.bd-notifications-page .notification-actions button { min-height: 40px; border-radius: 8px; }
.bd-notifications-page .notification-primary-action { border-color: var(--bd-deep); background: var(--bd-deep); color: #fff; }
.bd-notifications-page .notification-read-label { align-self: center; color: var(--bd-muted); font-size: 11px; font-weight: 700; }

@media (max-width: 820px) {
  .bd-booking-page .time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-booking-page .player-calendar-day,
  .bd-booking-page .calendar-empty { min-width: 44px; min-height: 44px; }
  .notification-command-bar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 520px) {
  .bd-booking-page .bd-booking-steps li { justify-content: center; padding: 8px 5px; }
  .bd-booking-page .bd-booking-steps li b { font-size: 10px; }
  .bd-booking-page .court-info-panel { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 12px; }
  .bd-booking-page .compact-court-image { width: 88px; height: 92px; }
  .bd-booking-page .court-info-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bd-booking-page .calendar-panel,
  .bd-booking-page .booking-summary-panel { padding: 16px 13px; }
  .bd-booking-page .player-calendar-grid { gap: 2px; }
  .bd-booking-page .player-calendar-day,
  .bd-booking-page .calendar-empty { min-width: 0; min-height: 40px; font-size: 12px; }
  .bd-booking-page .time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-booking-page .time-slot { min-height: 66px; }
  .bd-booking-page #paymentOptionsBox { grid-template-columns: 1fr; }
  .bd-notifications-page .bd-page-heading { align-items: stretch; flex-direction: column; }
  .bd-notifications-page #markAllReadBtn { width: 100%; }
  .bd-notifications-page .notification-item { padding: 14px 13px; }
  .bd-notifications-page .notification-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .bd-notifications-page .notification-actions button { width: 100%; }
}

/* Facility-to-booking conversion and mobile booking summary */
.fv2-booking-dock {
  display: none;
}

.booking-mobile-dock {
  display: none;
}

@media (max-width: 640px) {
  .bd-facility-v2 {
    padding-bottom: 104px;
  }

  .fv2-hero {
    height: 238px;
  }

  .fv2-identity {
    grid-template-columns: 62px minmax(0, 1fr);
    margin-top: -56px;
    padding: 15px;
  }

  .fv2-identity-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .fv2-identity-info h1 {
    font-size: 21px;
  }

  .fv2-identity-info > p {
    max-width: 100%;
    font-size: 12px;
  }

  .fv2-booking-dock {
    position: fixed;
    z-index: 35;
    inset-inline: var(--fv2-mobile-gutter, 14px);
    bottom: calc(var(--player-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 10px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 11px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: var(--bd-deep);
    box-shadow: 0 16px 36px rgba(8, 32, 39, 0.28);
    color: #fff;
  }

  .fv2-booking-dock > div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .fv2-booking-dock span {
    color: rgba(255,255,255,.7);
    font-size: 11px;
  }

  .fv2-booking-dock strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fv2-booking-dock button {
    width: auto;
    min-height: 46px;
    margin: 0;
    padding-inline: 18px;
    border: 0;
    border-radius: 11px;
    background: var(--bd-lime);
    color: var(--bd-deep);
    font-weight: 850;
  }

  .fv2-booking-dock.is-listing-only button {
    background: #fff;
  }

  .bd-booking-page {
    padding-bottom: 112px;
  }

  .bd-booking-page .compact-booking-header {
    padding-bottom: 8px;
  }

  .bd-booking-page .compact-booking-header h1 {
    font-size: 30px;
  }

  .bd-booking-page .compact-booking-header p {
    font-size: 13px;
  }

  .bd-booking-page .bd-booking-steps {
    position: sticky;
    top: var(--bd-header-offset, 58px);
    z-index: 12;
    box-shadow: 0 8px 20px rgba(8, 32, 39, .08);
  }

  .bd-booking-page .booking-summary-panel {
    overflow: visible;
    padding-bottom: 20px;
  }

  .bd-booking-page .time-grid {
    grid-template-columns: 1fr;
  }

  .bd-booking-page .time-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    padding: 10px 44px 10px 13px;
  }

  .bd-booking-page .time-slot strong {
    font-size: 13px;
  }

  .bd-booking-page .time-slot span {
    justify-self: end;
    font-weight: 800;
  }

  .bd-booking-page .time-slot em {
    grid-column: 1 / -1;
  }

  .booking-mobile-dock {
    position: fixed;
    z-index: 36;
    inset-inline: 14px;
    bottom: calc(var(--player-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 10px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 10px 10px 10px 15px;
    border-radius: 15px;
    background: var(--bd-deep);
    box-shadow: 0 16px 38px rgba(8, 32, 39, .3);
    color: #fff;
  }

  .booking-mobile-dock > div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .booking-mobile-dock span {
    overflow: hidden;
    color: rgba(255,255,255,.7);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .booking-mobile-dock strong {
    color: #fff;
    font-size: 14px;
  }

  .booking-mobile-dock button {
    width: auto;
    min-height: 46px;
    margin: 0;
    padding-inline: 15px;
    border: 0;
    border-radius: 11px;
    background: var(--bd-lime);
    color: var(--bd-deep);
    font-weight: 850;
  }

  .booking-mobile-dock button:disabled {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.52);
  }

  body:has(.bd-booking-page) .messenger-help {
    right: 16px;
    bottom: calc(var(--player-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 92px);
  }

  body:has(.bd-booking-page) .messenger-help .messenger-help-copy,
  body:has(.bd-booking-page) .messenger-help > button {
    display: none;
  }

  body:has(.bd-booking-page) .messenger-help a {
    padding: 14px;
  }

  .bd-booking-page .selected-booking-box {
    scroll-margin-top: calc(var(--bd-header-offset, 58px) + 64px);
  }

  .bd-player-bookings-page .bd-bookings-hero {
    align-items: flex-start;
    padding: 18px;
  }

  .bd-player-bookings-page .bd-bookings-hero h1 {
    font-size: 28px;
  }

  .bd-player-bookings-page .bd-bookings-hero .bd-primary-action {
    width: 100%;
  }

  .bd-player-bookings-page .bd-folder-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(max-content, 1fr));
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid var(--bd-line);
    border-radius: 12px;
    background: var(--product-surface);
  }

  .bd-player-bookings-page .bd-folder-tabs button {
    min-height: 42px;
    padding-inline: 12px;
    border: 0;
    border-radius: 9px;
  }
}

@media (max-width: 370px) {
  .fv2-booking-dock,
  .booking-mobile-dock {
    inset-inline: 10px;
  }

  .fv2-booking-dock button,
  .booking-mobile-dock button {
    padding-inline: 12px;
    font-size: 12px;
  }
}

/* All-court booking board: one date, every court and time in a single view. */
.bd-availability-page .booking-board-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.bd-availability-page .booking-back-btn {
  min-height: 44px;
  margin-bottom: 10px;
  padding-inline: 0;
  color: var(--bd-deep);
  font-weight: 750;
}

.booking-board-header {
  padding: 28px 30px 26px;
  border: 1px solid color-mix(in srgb, var(--bd-deep) 88%, var(--bd-lime));
  border-radius: 18px 18px 0 0;
  background: var(--bd-deep);
  color: #fff;
}

.booking-board-header .small-label { color: var(--bd-lime); }
.booking-board-header h1 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.booking-board-header p { max-width: 58ch; margin: 0; color: rgba(255,255,255,.72); line-height: 1.55; }

.booking-date-toolbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 48px minmax(220px, 360px) 48px;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid var(--bd-line);
  border-top: 0;
  background: var(--product-surface);
  box-shadow: var(--bd-shadow-xs);
}

.booking-day-step {
  width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bd-line);
  border-radius: 11px;
  background: var(--product-surface);
  color: var(--bd-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.booking-day-step:hover:not(:disabled) { border-color: var(--bd-deep); background: var(--bd-lime-tint); }
.booking-day-step:disabled { opacity: .35; }

.booking-date-picker { position: relative; min-width: 0; }
.booking-date-picker > summary {
  display: grid;
  justify-items: center;
  min-height: 48px;
  padding: 7px 16px;
  border: 1px solid color-mix(in srgb, var(--bd-lime) 64%, var(--bd-line));
  border-radius: 11px;
  background: var(--bd-lime-tint);
  color: var(--bd-deep);
  cursor: pointer;
  list-style: none;
}
.booking-date-picker > summary::-webkit-details-marker { display: none; }
.booking-date-picker > summary strong { overflow: hidden; max-width: 100%; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.booking-date-picker > summary span { color: var(--bd-muted); font-size: 10px; font-weight: 700; }
.booking-date-picker[open] > summary { border-color: var(--bd-deep); box-shadow: 0 0 0 3px rgba(22, 71, 58, .11); }
.booking-calendar-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  transform: translateX(-50%);
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  background: var(--product-surface);
  box-shadow: 0 22px 52px rgba(8, 32, 39, .2);
}

.booking-matrix-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: 16px;
  background: var(--product-surface);
  box-shadow: var(--bd-shadow-sm);
}
.booking-schedule-step > summary { cursor: pointer; list-style: none; }
.booking-schedule-step > summary::-webkit-details-marker { display: none; }
.booking-schedule-step:not([open]) .booking-matrix-heading { border-bottom: 0; }
.booking-schedule-step:not([open]) .booking-status-legend { display: none; }
.booking-matrix-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--bd-line);
}
.booking-change-label { flex: 0 0 auto; min-height: 34px; padding: 8px 11px; border: 1px solid var(--bd-line); border-radius: 9px; color: var(--bd-deep); font-size: 11px; font-weight: 800; }
.booking-schedule-step[open] .booking-change-label { display: none; }
.booking-matrix-heading h2 { margin: 4px 0 4px; color: var(--bd-ink); font-size: 23px; letter-spacing: -.025em; }
.booking-matrix-heading p { margin: 0; color: var(--bd-muted); font-size: 13px; }
.booking-status-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--bd-muted); font-size: 11px; font-weight: 750; }
.booking-status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.booking-status-legend i { width: 11px; height: 11px; border: 1px solid var(--bd-line); border-radius: 3px; background: #eef0ee; }
.booking-status-legend i.is-open { border-color: #80b94c; background: #f5fae7; }
.booking-status-legend i.is-selected { border-color: var(--bd-deep); background: var(--bd-lime); }

.facility-rate-periods { margin-top: 12px; font-size: 13px; color: var(--bd-ink); }
.facility-rate-periods summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 700; }
.facility-rate-periods p { margin: 8px 0; color: var(--bd-muted); }
.facility-rate-periods dl { margin: 0; }
.facility-rate-periods dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 6px; }
.facility-rate-periods dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.booking-matrix-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; scrollbar-color: #9daaa4 transparent; }
.booking-matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.booking-matrix caption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.booking-matrix th,
.booking-matrix td { min-width: 145px; padding: 8px; border-inline-end: 1px solid var(--bd-line); border-bottom: 1px solid var(--bd-line); background: var(--product-surface); }
.booking-matrix tr > :last-child { border-inline-end: 0; }
.booking-matrix tbody tr:last-child > * { border-bottom: 0; }
.booking-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 68px;
  background: #f5f7f2;
  color: var(--bd-deep);
  text-align: center;
}
.booking-matrix thead th:first-child,
.booking-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 118px;
  min-width: 118px;
  background: #fbfcf8;
  box-shadow: 1px 0 var(--bd-line);
}
.booking-matrix thead th:first-child { z-index: 5; color: var(--bd-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.booking-matrix-court { transition: background-color .16s ease; }
.booking-matrix-court strong,
.booking-matrix-court span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-matrix-court strong { font-size: 13px; }
.booking-matrix-court span { margin-top: 3px; color: var(--bd-muted); font-size: 10px; }
.booking-matrix-court.has-selection { box-shadow: inset 0 0 0 1px rgba(22, 69, 54, .26); background: var(--bd-lime-tint); }
.booking-matrix tbody th { padding: 10px 12px; text-align: left; }
.booking-matrix tbody th strong,
.booking-matrix tbody th span { display: block; }
.booking-matrix tbody th strong { color: var(--bd-ink); font-size: 12px; }
.booking-matrix tbody th span { margin-top: 2px; color: var(--bd-muted); font-size: 9px; font-weight: 650; }

.booking-matrix-cell {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--bd-line);
  border-radius: 9px;
  background: #f0f2ef;
  color: #7d8681;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}
.booking-matrix-cell.is-open { border-color: #8aba57; background: #f8fce9; color: var(--bd-deep); }
.booking-matrix-cell.is-open:hover { border-color: var(--bd-deep); background: var(--bd-lime-tint); }
.booking-matrix-cell.is-open strong,
.booking-matrix-cell.is-open small { display: block; }
.booking-matrix-cell.is-open small { margin-top: 2px; color: #56782e; font-size: 9px; }
.booking-matrix-cell.is-selected { border-color: var(--bd-deep); background: var(--bd-lime); color: var(--bd-deep); box-shadow: inset 0 0 0 1px var(--bd-deep); }
.booking-matrix-cell.is-selected small { color: var(--bd-deep); }
.booking-matrix-cell.is-closed { color: #a3aaa6; background: #f7f8f6; }
.booking-matrix-empty { display: grid; justify-items: center; gap: 5px; min-height: 220px; padding: 44px 20px; place-content: center; text-align: center; }
.booking-matrix-empty strong { color: var(--bd-ink); font-size: 18px; }
.booking-matrix-empty span { color: var(--bd-muted); }
.booking-scroll-hint { display: none; margin: 0; padding: 9px 14px; border-top: 1px solid var(--bd-line); color: var(--bd-muted); font-size: 10px; text-align: center; }
.booking-scroll-hint[hidden] { display: none !important; }

.booking-checkout-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--bd-line) !important;
  border-radius: 16px !important;
  background: var(--product-surface) !important;
  box-shadow: var(--bd-shadow-sm);
}
.booking-checkout-panel[hidden] { display: none !important; }
.booking-mobile-dock[hidden] { display: none !important; }
.bd-booking-page.is-reviewing .booking-date-toolbar { display: none; }
.booking-change-selection { width: auto; min-height: 38px; margin: 11px 0 0; padding: 8px 12px; border: 1px solid var(--bd-line); border-radius: 9px; background: var(--product-surface); color: var(--bd-deep); font-size: 11px; font-weight: 800; }
.booking-change-selection:hover { border-color: var(--bd-deep); background: var(--bd-lime-tint); }
.booking-checkout-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 24px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--bd-line); }
.booking-checkout-intro h2 { margin: 4px 0; color: var(--bd-ink); font-size: 24px; }
.booking-checkout-panel .booking-selection-summary { min-height: 0; padding: 0; border: 0; }
.booking-selected-court { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; margin: 18px 0; padding: 13px; border: 1px solid var(--bd-line); border-radius: 12px; background: var(--bd-canvas); }
.booking-selected-court .compact-court-image { width: 86px; height: 72px; margin: 0; border-radius: 9px; }
.booking-selected-court h3 { margin: 2px 0; color: var(--bd-ink); font-size: 17px; }
.booking-selected-court p { margin: 0; color: var(--bd-muted); font-size: 11px; }
.booking-court-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; color: var(--bd-muted); font-size: 11px; }
.booking-court-meta strong { color: var(--bd-deep); }
.booking-basket-summary { margin: 18px 0; border-block: 1px solid var(--bd-line); }
.booking-basket-summary[hidden] { display: none; }
.booking-basket-empty { margin: 0; padding: 18px 2px; color: var(--bd-muted); font-size: 13px; }
.booking-basket-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--bd-line); }
.booking-basket-row:last-child { border-bottom: 0; }
.booking-basket-row > div { min-width: 0; }
.booking-basket-row strong { color: var(--bd-deep); font-size: 14px; }
.booking-basket-row span { display: block; margin-top: 3px; color: var(--bd-muted); font-size: 11px; }
.booking-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.booking-submit-column { padding: 16px; border-left: 1px solid var(--bd-line); }

@media (max-width: 820px) {
  .booking-checkout-intro,
  .booking-checkout-grid { grid-template-columns: 1fr; }
  .booking-submit-column { padding: 0; border-left: 0; }
}

@media (min-width: 641px) {
  .bd-availability-page .booking-mobile-dock {
    position: sticky;
    z-index: 7;
    bottom: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 13px 14px 13px 18px;
    border-radius: 14px;
    background: var(--bd-deep);
    box-shadow: 0 16px 36px rgba(8, 32, 39, .22);
    color: #fff;
  }
  .bd-availability-page .booking-mobile-dock > div { display: grid; gap: 2px; }
  .bd-availability-page .booking-mobile-dock span { color: rgba(255,255,255,.7); font-size: 11px; }
  .bd-availability-page .booking-mobile-dock strong { color: #fff; font-size: 15px; }
  .bd-availability-page .booking-mobile-dock button { width: auto; min-height: 46px; margin: 0; padding-inline: 20px; border: 0; border-radius: 10px; background: var(--bd-lime); color: var(--bd-deep); font-weight: 850; }
  .bd-availability-page .booking-mobile-dock button:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.52); }
}

@media (max-width: 640px) {
  .bd-availability-page .booking-board-shell { width: calc(100% - 28px); margin-inline: 14px; }
  .bd-availability-page .booking-back-btn { margin-inline: 0; }
  .booking-board-header { padding: 22px 18px 20px; border-radius: 14px 14px 0 0; }
  .booking-board-header h1 { font-size: 31px; }
  .booking-board-header p { font-size: 12px; }
  .booking-date-toolbar { position: sticky; top: var(--bd-header-offset, 58px); grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 10px 12px; }
  .booking-day-step { width: 44px; min-height: 48px; }
  .booking-date-picker > summary { padding-inline: 8px; }
  .booking-date-picker > summary strong { font-size: 13px; }
  .booking-calendar-popover { position: fixed; top: calc(var(--bd-header-offset, 58px) + 70px); left: 14px; width: calc(100vw - 28px); transform: none; }
  .booking-matrix-panel { margin-top: 12px; border-inline: 1px solid var(--bd-line); border-radius: 14px; }
  .booking-matrix-heading { position: relative; align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 14px 13px; }
  .booking-change-label { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
  .booking-matrix-heading h2 { font-size: 20px; }
  .booking-status-legend { justify-content: flex-start; }
  .booking-matrix-scroll { container-type: inline-size; }
  .booking-matrix { width: max(100%, calc(76px + (100cqi - 76px) / 2 * var(--court-count, 2))); min-width: 100% !important; }
  .booking-matrix th,
  .booking-matrix td { min-width: 0; padding: 5px; }
  .booking-matrix thead th:first-child,
  .booking-matrix tbody th { width: 76px; min-width: 76px; padding-inline: 8px; }
  .booking-matrix[data-court-count="1"],
  .booking-matrix[data-court-count="2"] { min-width: 100% !important; }
  .booking-matrix[data-court-count="1"] th,
  .booking-matrix[data-court-count="1"] td,
  .booking-matrix[data-court-count="2"] th,
  .booking-matrix[data-court-count="2"] td { min-width: 0; }
  .booking-matrix[data-court-count="1"] thead th:first-child,
  .booking-matrix[data-court-count="1"] tbody th,
  .booking-matrix[data-court-count="2"] thead th:first-child,
  .booking-matrix[data-court-count="2"] tbody th { width: 76px; min-width: 76px; }
  .booking-matrix thead th { height: 60px; }
  .booking-matrix-court strong { font-size: 11px; }
  .booking-matrix-court span { font-size: 9px; }
  .booking-matrix-cell { min-height: 54px; padding: 5px 3px; border-radius: 8px; }
  .booking-scroll-hint { display: block; }
  .booking-checkout-panel { margin-top: 12px; padding: 18px 14px 118px; border-inline: 1px solid var(--bd-line) !important; border-radius: 14px !important; }
  .booking-checkout-intro { gap: 15px; }
  .booking-checkout-panel .bd-booking-steps { position: static; margin: 0; box-shadow: none; }
  .booking-selected-court { grid-template-columns: 68px minmax(0, 1fr); }
  .booking-selected-court .compact-court-image { width: 68px; height: 64px; }
}

@media (max-width: 370px) {
  .bd-availability-page .booking-board-shell { width: calc(100% - 20px); margin-inline: 10px; }
  .booking-calendar-popover { left: 10px; width: calc(100vw - 20px); }
}

/* Guided court-owner access request */
.lead-modal-guided {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  width: min(820px, calc(100vw - 28px));
  max-width: 820px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.lead-modal-guided .lead-modal-close {
  z-index: 3;
  color: var(--product-text-muted);
}

.lead-guided-intro {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 34px 28px;
  background: var(--product-brand-deep);
  color: #fff;
}

.lead-guided-intro > span {
  color: var(--product-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead-guided-intro h2 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-size: 31px;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.lead-guided-intro > p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.lead-guided-intro ul {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lead-guided-intro li {
  display: grid;
  gap: 3px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.lead-guided-intro li strong {
  color: #fff;
  font-size: 13px;
}

.lead-guided-intro li span {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  line-height: 1.4;
}

.lead-guided-form {
  min-width: 0;
  padding: 34px 32px 28px;
  background: var(--product-surface);
}

.lead-guided-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 36px;
}

.lead-guided-step span {
  color: var(--product-text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-guided-step strong {
  color: var(--product-brand-deep);
  font-size: 13px;
}

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

.lead-modal-guided .lead-field-grid label {
  margin: 0;
}

.lead-field-wide {
  grid-column: 1 / -1;
}

.lead-modal-guided input {
  min-height: 48px;
  border-radius: 10px;
  background: var(--product-surface-muted);
}

.lead-modal-guided input:read-only {
  color: var(--product-text-muted);
}

.lead-guided-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--product-line);
}

.lead-guided-actions .lead-modal-note {
  margin: 0;
  text-align: left;
}

.lead-guided-actions .lead-submit-btn {
  width: auto;
  min-height: 48px;
  margin: 0;
  padding-inline: 20px;
  border-radius: 10px;
}

@media (max-width: 680px) {
  .lead-modal-guided {
    grid-template-columns: 1fr;
    max-height: min(90dvh, 760px);
    overflow-y: auto;
  }

  .lead-guided-intro {
    gap: 8px;
    padding: 24px 22px 20px;
  }

  .lead-guided-intro h2 {
    max-width: 14ch;
    font-size: 25px;
  }

  .lead-guided-intro ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
  }

  .lead-guided-intro li {
    padding-top: 9px;
  }

  .lead-guided-intro li span {
    display: none;
  }

  .lead-guided-form {
    padding: 22px;
  }

  .lead-field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-field-wide {
    grid-column: auto;
  }

  .lead-guided-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-guided-actions .lead-submit-btn {
    width: 100%;
  }
}
