:root {
  --court-green: #16824f;
  --court-green-dark: #0f5132;
  --court-green-soft: #e9f8ef;
  --court-navy: #0f172a;
  --court-blue: #245da6;
  --court-muted: #5f6b7a;
  --court-line: #dbe4df;
  --court-bg: #f4f7f5;
  --court-white: #ffffff;
  --court-danger: #b42318;
  --court-warning: #9a6700;
  --court-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--court-navy);
  background: var(--court-bg);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--court-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(22, 130, 79, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(22, 130, 79, 0.035) 1px, transparent 1px),
    var(--court-bg);
  background-size: 34px 34px;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
.court-card-actions a,
.payment-actions a,
.courts-section-heading > a {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--court-green);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover:not(:disabled),
.court-card-actions a:hover,
.payment-actions a:hover,
.courts-section-heading > a:hover {
  background: var(--court-green-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 93, 166, 0.35);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary {
  border: 1px solid var(--court-line);
  background: #eef2f5;
  color: var(--court-navy);
}

.courts-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 228, 223, 0.95);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.courts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
}

.courts-brand img {
  display: block;
  width: auto;
  max-width: 154px;
  height: 48px;
  object-fit: contain;
}

.courts-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.courts-header nav a {
  border-radius: 8px;
  padding: 9px 11px;
  color: #273548;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.courts-header nav a.active,
.courts-header nav a:hover {
  background: var(--court-green-soft);
  color: var(--court-green-dark);
}

.courts-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.courts-hero {
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #071422;
  background-image:
    linear-gradient(90deg, rgba(3, 15, 28, 0.94) 0%, rgba(3, 15, 28, 0.72) 42%, rgba(3, 15, 28, 0.18) 76%, rgba(3, 15, 28, 0.08) 100%),
    url("/brand/portada-canchas-futbol-padel.webp");
  background-position: center, center 52%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.courts-hero-content {
  max-width: 690px;
  padding: clamp(30px, 6vw, 72px);
}

.courts-eyebrow {
  margin: 0 0 8px;
  color: var(--court-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.courts-hero .courts-eyebrow,
.court-business-hero .courts-eyebrow {
  color: #8ef0b7;
}

.courts-hero h1,
.court-business-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.courts-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: #e3eee8;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.courts-filters,
.courts-results,
.booking-shell,
.booking-payment,
.court-promotions,
.court-products,
.existing-reservation {
  margin-top: 24px;
}

.courts-filters {
  border: 1px solid var(--court-line);
  border-radius: 8px;
  padding: 22px;
  background: var(--court-white);
  box-shadow: var(--court-shadow);
}

.courts-filters h2,
.courts-section-heading h2,
.booking-heading h2,
.booking-summary h2,
.booking-payment h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.courts-filters p,
.courts-section-heading p,
.booking-block-title p,
.booking-security,
.payment-method span {
  margin: 5px 0 0;
  color: var(--court-muted);
  line-height: 1.45;
}

.courts-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: #263445;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d5cf;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--court-navy);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.courts-filter-actions,
.payment-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.courts-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.courts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.court-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--court-line);
  border-radius: 8px;
  background: var(--court-white);
  box-shadow: var(--court-shadow);
}

.court-card-cover {
  aspect-ratio: 16 / 9;
  background: #dfe9e3 center / cover no-repeat;
}

.court-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.court-card-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.court-card-logo {
  width: 52px;
  height: 52px;
  border: 1px solid var(--court-line);
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  object-fit: contain;
}

.court-card-logo-fallback {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--court-green-soft);
  color: var(--court-green-dark);
  font-size: 20px;
  font-weight: 900;
}

.court-card h3 {
  margin: 0;
  font-size: 19px;
}

.court-card p {
  margin: 3px 0 0;
  color: var(--court-muted);
  line-height: 1.4;
}

.court-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.court-tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8eef7;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 850;
}

.court-tag.available {
  background: var(--court-green-soft);
  color: var(--court-green-dark);
}

.court-card-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid #e9efeb;
  border-bottom: 1px solid #e9efeb;
  padding: 12px 0;
}

.court-card-price span {
  color: var(--court-muted);
  font-size: 12px;
}

.court-card-price strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.court-card-promotion {
  border-left: 4px solid #d5a100;
  border-radius: 6px;
  padding: 10px;
  background: #fff9dc;
  color: #5f4600;
  font-size: 13px;
}

.court-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
}

.court-card-actions a {
  display: grid;
  place-items: center;
  text-align: center;
}

.court-card-actions a.secondary-link {
  border: 1px solid var(--court-line);
  background: #eef2f5;
  color: var(--court-navy);
}

.loading-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skeleton {
  min-height: 340px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e6ece8 25%, #f5f8f6 38%, #e6ece8 62%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

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

.empty-state {
  margin: 0;
  color: var(--court-muted);
  line-height: 1.45;
}

.court-detail-page {
  width: 100%;
  margin: 0;
}

.court-business-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  overflow: hidden;
  background: #0b3a28 center / cover no-repeat;
  color: #ffffff;
}

.court-business-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 26, 18, 0.93), rgba(5, 26, 18, 0.32));
}

.court-business-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.court-business-content > img {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  object-fit: contain;
}

.court-business-content > p {
  max-width: 650px;
  margin: 10px 0;
}

.court-back {
  display: block;
  width: fit-content;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 800;
}

.court-detail-page > :not(.court-business-hero) {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.existing-reservation {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #9bd7b3;
  border-radius: 8px;
  padding: 16px;
  background: var(--court-green-soft);
}

.existing-reservation[hidden] {
  display: none !important;
}

.existing-reservation p {
  margin: 4px 0 0;
  color: #355849;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.booking-shell > * {
  min-width: 0;
}

.booking-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
}

.booking-heading,
.booking-block,
.booking-summary,
.booking-payment,
.court-promotions,
.court-products {
  border: 1px solid var(--court-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--court-shadow);
}

.booking-heading,
.booking-block,
.booking-summary {
  padding: 20px;
}

.booking-online-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid #86efac;
  border-left: 4px solid var(--court-green);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f0fdf4;
  color: #14532d;
}

.booking-online-notice svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.booking-online-notice strong,
.booking-online-notice p {
  margin: 0;
}

.booking-online-notice p {
  margin-top: 3px;
  color: #166534;
  font-size: 13px;
  line-height: 1.45;
}

.booking-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 0 0 4px;
  list-style: none;
}

.booking-steps li {
  display: flex;
  flex: 1;
  min-width: 94px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 8px 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.booking-steps li.is-complete {
  color: #166534;
}

.booking-steps li.is-current {
  color: #991b1b;
}

.booking-steps li.is-pending {
  color: #657386;
}

.booking-step-ball {
  position: relative;
  z-index: 0;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 26%, rgba(15, 23, 42, 0.2) 0 7%, transparent 8%),
    radial-gradient(circle at 73% 30%, rgba(15, 23, 42, 0.18) 0 7%, transparent 8%),
    radial-gradient(circle at 30% 75%, rgba(15, 23, 42, 0.16) 0 7%, transparent 8%),
    radial-gradient(circle at 72% 72%, rgba(15, 23, 42, 0.16) 0 7%, transparent 8%),
    #cbd5e1;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.booking-step-ball::before {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 40%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
  transform: rotate(20deg);
}

.booking-steps li.is-current .booking-step-ball,
.booking-block.is-current .booking-step-ball {
  border-color: #b91c1c;
  background-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), 0 0 16px rgba(220, 38, 38, 0.42);
  transform: translateY(-1px);
}

.booking-steps li.is-complete .booking-step-ball,
.booking-block.is-complete .booking-step-ball {
  border-color: #15803d;
  background-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1), 0 0 13px rgba(22, 163, 74, 0.3);
}

.booking-steps li.is-pending .booking-step-ball,
.booking-block.is-pending .booking-step-ball {
  border-color: #94a3b8;
  background-color: #cbd5e1;
  color: #334155;
  box-shadow: none;
}

.booking-block {
  scroll-margin-top: 92px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.booking-block.is-current {
  border-color: #dc2626;
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08), var(--court-shadow);
}

.booking-block.is-complete {
  border-left: 4px solid var(--court-green);
}

.booking-block.is-pending {
  border-color: #dde4e9;
}

.booking-summary.is-current {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), var(--court-shadow);
}

#reviewBookingBtn.is-current {
  outline: 3px solid rgba(22, 131, 75, 0.2);
  outline-offset: 2px;
}

.booking-block-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.booking-block h3,
.booking-payment h3 {
  margin: 0;
  font-size: 18px;
}

.booking-date-carousel {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  scroll-snap-type: x proximity;
}

.booking-date {
  flex: 0 0 112px;
  min-height: 66px;
  border: 1px solid var(--court-line);
  background: #ffffff;
  color: var(--court-navy);
  scroll-snap-align: start;
}

.booking-date.selected,
.booking-time.selected {
  border-color: var(--court-green);
  background: var(--court-green);
  color: #ffffff;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.booking-time {
  display: grid;
  gap: 2px;
  border: 1px solid var(--court-line);
  background: #ffffff;
  color: var(--court-navy);
}

.booking-time small {
  font-size: 10px;
}

.booking-time.occupied {
  background: #f3f4f6;
  color: #8792a1;
  text-decoration: line-through;
}

.booking-courts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-court {
  display: grid;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px;
  background: #f7faf8;
  color: var(--court-navy);
  text-align: left;
}

.booking-court:hover,
.booking-court.selected {
  border-color: var(--court-green);
  background: var(--court-green-soft);
}

.booking-court strong {
  font-size: 17px;
}

.booking-court span {
  color: var(--court-muted);
  font-size: 13px;
}

.booking-court .court-promo {
  color: #735900;
  font-weight: 750;
}

.booking-client-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-full {
  grid-column: 1 / -1;
}

.booking-full > span {
  color: var(--court-muted);
  font-weight: 500;
}

.booking-summary {
  position: sticky;
  top: 94px;
}

.booking-summary-body {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #ebf0ed;
  padding-bottom: 9px;
}

.summary-row strong {
  text-align: right;
}

.summary-row.total {
  border-bottom: 0;
  color: var(--court-green-dark);
  font-size: 18px;
}

.summary-promotion {
  border-left: 4px solid #d5a100;
  padding: 10px;
  background: #fff9dc;
  color: #5f4600;
}

.payment-methods {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.payment-method {
  display: grid;
  width: 100%;
  min-height: auto;
  gap: 4px;
  border: 1px solid #d6e0ec;
  border-radius: 8px;
  padding: 12px;
  background: #eef4fb;
  color: var(--court-ink);
  text-align: left;
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--court-green);
  background: #e9f8ef;
  color: var(--court-green-dark);
}

.payment-method span {
  font-size: 13px;
  font-weight: 600;
}

.proof-options {
  display: grid;
  gap: 12px;
}

.proof-options > div {
  border: 1px solid var(--court-line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.proof-options .proof-option-recommended {
  border-color: #70c69b;
  background: #f0fdf4;
}

.proof-option-recommended > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.proof-option-recommended > strong span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  text-transform: uppercase;
}

.whatsapp-primary {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #087443;
  color: #ffffff;
}

.whatsapp-primary:hover {
  background: #065f37;
}

.whatsapp-primary:focus-visible {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.whatsapp-primary:disabled {
  background: #8aa99a;
  color: #ffffff;
  cursor: not-allowed;
}

.whatsapp-primary svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}

.proof-option-secondary button {
  width: 100%;
}

.proof-options p {
  margin: 7px 0;
  color: var(--court-muted);
  font-size: 13px;
}

.booking-summary > button {
  width: 100%;
}

.booking-deposit-policy {
  margin: 10px 0 0;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.booking-payment {
  padding: 22px;
}

.payment-status {
  border-bottom: 1px solid var(--court-line);
  padding-bottom: 18px;
}

.payment-countdown {
  width: fit-content;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff3d6;
  color: #714c00;
  font-size: 18px;
  font-weight: 900;
}

.payment-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payment-layout article {
  min-width: 0;
  border: 1px solid var(--court-line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbfa;
}

.payment-layout article > div {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.bank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e9e5;
  padding: 8px 0;
}

.bank-row span {
  overflow-wrap: anywhere;
}

.bank-row strong {
  font-size: 14px;
  line-height: 1.35;
}

.bank-row button {
  min-height: 36px;
  padding: 7px 10px;
  background: var(--court-blue);
  font-size: 12px;
}

.payment-note {
  color: var(--court-danger);
  font-weight: 800;
}

.proof-upload {
  margin-top: 12px;
}

#proofMessage {
  min-height: 20px;
  color: var(--court-muted);
}

.payment-actions a,
.courts-section-heading > a {
  display: grid;
  place-items: center;
}

.court-promotions,
.court-products {
  padding: 22px;
}

.promotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.promotion-item {
  border-left: 4px solid #d5a100;
  border-radius: 8px;
  padding: 15px;
  background: #fff9dc;
}

.promotion-item h3,
.court-product h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.promotion-item p,
.court-product p {
  margin: 0;
  color: var(--court-muted);
  line-height: 1.45;
}

.court-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.court-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--court-line);
  border-radius: 8px;
  background: #ffffff;
}

.court-product img,
.court-product-placeholder {
  display: grid;
  width: 100%;
  height: 140px;
  place-items: center;
  padding: 8px;
  background: #f3f6f4;
  object-fit: contain;
}

.court-product-body {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.court-product-price {
  color: var(--court-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.booking-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: 88dvh;
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--court-navy);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.booking-dialog::backdrop {
  background: rgba(15, 23, 42, 0.72);
}

.booking-dialog form {
  position: relative;
  padding: 24px;
}

.booking-dialog h2 {
  margin: 0 38px 16px 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  background: #eef2f5;
  color: var(--court-navy);
  font-size: 24px;
}

.courts-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100% - 36px));
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--court-navy);
  color: #ffffff;
  box-shadow: var(--court-shadow);
}

.courts-toast.error {
  background: var(--court-danger);
}

.courts-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 28px max(16px, calc((100% - 1180px) / 2));
  background: var(--court-navy);
  color: #ffffff;
}

.courts-footer img {
  width: 130px;
  height: 48px;
  object-fit: contain;
}

.courts-footer a {
  color: #a7f3c3;
  font-weight: 800;
}

@media (max-width: 900px) {
  .courts-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }

  .payment-layout,
  .promotion-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .courts-header-inner {
    display: grid;
    width: 100%;
    min-height: 0;
    padding: 10px 14px 0;
  }

  .courts-brand img {
    height: 42px;
  }

  .courts-header nav {
    margin: 0 -14px;
    padding: 0 14px 10px;
  }

  .courts-page,
  .court-detail-page > :not(.court-business-hero),
  .court-business-content {
    width: min(100% - 20px, 1180px);
  }

  .courts-hero {
    min-height: 280px;
    margin-top: 10px;
    background-image:
      linear-gradient(90deg, rgba(3, 15, 28, 0.92) 0%, rgba(3, 15, 28, 0.68) 58%, rgba(3, 15, 28, 0.26) 100%),
      url("/brand/portada-canchas-futbol-padel.webp");
    background-position: center, 64% center;
    background-size: cover;
  }

  .courts-hero-content {
    padding: 34px 22px;
  }

  .courts-hero h1,
  .court-business-hero h1 {
    font-size: 36px;
  }

  .courts-filters,
  .booking-heading,
  .booking-block,
  .booking-summary,
  .booking-payment,
  .court-promotions,
  .court-products {
    padding: 16px;
  }

  .courts-filter-grid,
  .courts-grid,
  .loading-grid,
  .payment-layout,
  .promotion-grid {
    grid-template-columns: 1fr;
  }

  .court-card-actions {
    grid-template-columns: 1fr;
  }

  .court-business-hero {
    min-height: 330px;
  }

  .court-business-content {
    padding: 26px 0;
  }

  .existing-reservation {
    grid-template-columns: 1fr;
  }

  .booking-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-courts-grid,
  .booking-client-form {
    grid-template-columns: 1fr;
  }

  .booking-full {
    grid-column: auto;
  }

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

  .court-product img,
  .court-product-placeholder {
    height: 118px;
  }

  .courts-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .courts-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .courts-hero {
    min-height: 250px;
    background-position: center, 60% center;
  }

  .courts-hero-content {
    padding: 28px 18px;
  }

  .courts-hero h1,
  .court-business-hero h1 {
    font-size: 32px;
  }

  .booking-steps {
    gap: 4px;
  }

  .booking-steps li {
    min-width: 54px;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
  }

  .booking-step-ball {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .booking-block {
    transition: none;
  }

  .booking-step-ball {
    transition: none;
  }

  .skeleton {
    animation: none;
  }
}
