:root {
  --ink: #121d2a;
  --night: #121d2a;
  --cream: #f5f4ed;
  --paper: #fffefa;
  --line: #e1e2d9;
  --muted: #535e68;
  --lime: #dfef52;
  --mint: #edf0d9;
  --green: #3a4e62;
  --focus: #646d20;
  --radius: 24px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex-shrink: 0; }
.skip { position: fixed; top: -100px; z-index: 8; padding: 12px; background: var(--lime); }
.skip:focus { top: 4px; inset-inline-start: 4px; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 30px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; padding: 0 30px; min-height: 77px; display: flex; align-items: center; gap: 26px; margin-inline: auto; justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-picker { min-height: 42px; padding: 0 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 750; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { display: block; height: auto; }
.navigation { display: flex; align-items: center; gap: 5px; }
.navigation a { display: flex; align-items: center; gap: 7px; border-radius: 12px; padding: 10px 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.navigation a[aria-current="page"] { background: var(--mint); color: var(--ink); }
.cart-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-size: 13px; font-weight: 750; }
.count { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 4px; border-radius: 50%; background: var(--lime); font-size: 11px; }
.app { min-height: 68vh; padding-top: 26px; padding-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.3; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 45px; padding: 10px 16px; color: var(--ink); background: var(--lime); border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 850; line-height: 1.25; }
.button:hover { filter: brightness(.96); }
.button.secondary { background: var(--paper); border-color: var(--line); }
.button:disabled { opacity: .56; }
.section { margin-top: 26px; }
.cards, .products { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.court-card:hover { border-color: #98b768; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding-top: 8px; margin-bottom: 22px; }
.page-head .eyebrow { color: var(--green); }
.page-head h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -.075em; line-height: 1; margin: 8px 0 9px; }
.page-head p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 550px; }
.pill, .badge { display: inline-flex; align-items: center; gap: 5px; background: var(--mint); color: var(--green); border-radius: 100px; padding: 6px 9px; font-size: 11px; line-height: 1.3; font-weight: 800; }
.pill { white-space: nowrap; }
.court-card, .panel, .product-card, .match-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.court-card { overflow: hidden; }
.court-card.selected { border-color: #719248; box-shadow: 0 0 0 1px #719248; }
.court-art { display: flex; align-items: end; justify-content: space-between; position: relative; height: 120px; isolation: isolate; padding: 11px; overflow: hidden; background: #243549; color: #eef2dd; }
.court-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("court.svg") center 53% / cover; }
.court-art.riviera::before { filter: hue-rotate(29deg) saturate(.75); }
.court-art.zone::before { filter: hue-rotate(-34deg) saturate(.81); }
.court-art .badge { background: #121d2aeb; color: #f4f6e5; }
.court-info { padding: 13px 14px; }
.court-info h3, .product-card h3, .match-card h3 { font-size: 17px; letter-spacing: -.026em; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 5px; }
.court-bottom, .product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.price { font-size: 14px; font-weight: 850; white-space: nowrap; }
.price small { font-size: 10px; color: var(--muted); font-weight: 650; }
.court-bottom .button, .product-bottom .button { padding: 7px 10px; min-height: 37px; }
.panel { padding: 18px; }
.panel h2 { font-size: 22px; letter-spacing: -.05em; margin-bottom: 10px; }
.day-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day, .slot, .filter { min-height: 43px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-size: 13px; font-weight: 750; }
.day { display: grid; place-items: center; padding: 5px; min-height: 56px; }
.day small { color: var(--muted); font-size: 10px; }
.day[aria-pressed="true"], .filter[aria-pressed="true"] { background: var(--lime); border-color: #81933a; }
.slot-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.slot:disabled { background: var(--cream); color: #737971; text-decoration: line-through; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter { border-radius: 50px; min-height: 36px; padding: 6px 12px; }
.product-card { overflow: hidden; }
.product-details { padding: 13px 14px; }
.product-details > p { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 5px; }
.match-card { padding: 15px; display: flex; flex-direction: column; align-items: start; }
.match-card h3 { margin-top: 10px; }
.match-card .button { margin-top: 13px; }
.match-card .meta + .button { min-height: 38px; }
.empty { color: var(--muted); font-size: 14px; line-height: 1.55; padding: 12px 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history-row, .line-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 11px 0; }
.history-row:first-of-type, .line-item:first-of-type { border-top: 0; }
.history-row strong, .line-item strong { font-size: 14px; }
.history-row p, .line-item p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.history-row .button { min-height: 35px; font-size: 12px; padding: 6px 9px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer img { display: block; flex: 0 0 auto; }
dialog { position: fixed; max-height: calc(100% - 26px); width: min(470px, calc(100% - 24px)); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--paper); }
dialog::backdrop { background: #121d2aac; }
#modal-content { padding: 19px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 24px; letter-spacing: -.055em; line-height: 1.05; }
.icon-button, .stepper button { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); }
.icon-button:hover, .stepper button:hover { background: var(--mint); }
.stepper { display: flex; align-items: center; gap: 7px; }
.stepper span { font-size: 13px; min-width: 15px; text-align: center; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 850; margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.summary, .note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.note { background: var(--cream); border-radius: 9px; padding: 9px 11px; margin-block: 11px; }
.modal-action { width: 100%; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.payment-options .button { min-height: 48px; padding-inline: 8px; }
.fields { display: grid; gap: 10px; }
.fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 750; }
.fields select { min-height: 42px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.toast { position: fixed; z-index: 4; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px); width: max-content; color: white; background: var(--night); border-radius: 12px; padding: 0; font-size: 13px; font-weight: 750; box-shadow: 0 8px 30px #121d2a44; pointer-events: none; }
.toast:not(:empty) { padding: 11px 15px; }
@media (max-width: 760px) {
  .container { padding-inline: 14px; }
  .header-inner { min-height: 58px; padding-inline: 14px; }
  .brand img { width: 120px; }
  .cart-toggle { min-height: 38px; }
  .navigation { position: fixed; z-index: 3; inset: auto 0 0; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
  .navigation a { flex-direction: column; justify-content: center; gap: 4px; min-width: 0; font-size: 10px; padding: 6px 0; }
  .navigation a svg { width: 19px; height: 19px; }
  .app { padding-top: 13px; padding-bottom: 28px; }
  .section { margin-top: 20px; }
  .cards { gap: 8px; }
  .court-art { height: 86px; padding: 7px; }
  .court-art .badge { padding: 4px 6px; font-size: 9px; }
  .court-info { padding: 9px; }
  .court-info h3 { font-size: 15px; }
  .court-bottom { align-items: start; flex-direction: column; }
  .court-bottom .button { width: 100%; min-height: 35px; }
  .price { font-size: 13px; }
  .page-head { margin-bottom: 14px; }
  .page-head .pill { display: none; }
  .panel { padding: 12px; }
  .slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-details { padding: 9px; }
  .product-bottom { flex-wrap: wrap; }
  .product-bottom .button { flex: 1; }
  .match-card { padding: 9px; }
  .match-card h3 { font-size: 15px; }
  .match-card .button { padding-inline: 7px; }
  .account-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .court-card { display: grid; grid-template-columns: 30% minmax(0, 1fr); border-radius: 15px; }
  .court-art { min-height: 110px; height: 100%; align-items: start; }
  .court-bottom { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .court-bottom .button { width: auto; }
  .court-bottom .button svg { display: none; }
  .match-card { padding: 13px; border-radius: 15px; }
  .match-card .button { padding-inline: 11px; }
  .day-list { gap: 3px; }
  .day { font-size: 12px; padding: 2px; }
  .day small { font-size: 9px; }
}
.history-actions { display: grid; justify-items: end; gap: 5px; }
.match-action { margin-top: 13px; }
.match-action .button { margin-top: 0; }

.court-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.court-option { display: grid; gap: 3px; padding: 9px 5px; border-radius: 12px; }
.court-option small { font-size: 11px; }
@media (max-width: 520px) { .court-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.month-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.month-controls strong { text-transform: capitalize; }
.weekday { text-align: center; font-size: 11px; color: var(--muted); }
.day-list .day { min-height: 38px; }
.day:disabled { opacity: .5; background: var(--cream); }
.booking-dates { padding: 13px; border-radius: 19px; background: linear-gradient(120deg, var(--lime), #ebedaa); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-strip .day { background: #f8fbe7b0; border-color: transparent; }
.week-strip .day[aria-pressed="true"] { background: white; border-color: #6a8438; }
.booking-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 10px; }
.month-calendar { margin-top: 10px; border-radius: 13px; padding: 10px; background: var(--paper); }
.match-times { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0 3px; font-size: 13px; }
.match-times div { display: flex; align-items: baseline; gap: 5px; }
.match-times dt { color: var(--muted); }
.match-times dd { margin: 0; font-weight: 850; font-variant-numeric: tabular-nums; }
.desk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.desk-toolbar input { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: inherit; }
.desk-courts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.desk-slot { display: flex; flex-direction: column; width: 100%; margin-bottom: 5px; gap: 3px; }
.desk-slot small { color: var(--muted); }
@media (max-width: 700px) { .desk-courts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.match-photo { display: block; width: 100%; height: clamp(175px, 34vw, 365px); object-fit: cover; object-position: center 46%; border-radius: 17px; margin-bottom: 14px; }


.booking-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.booking-intro .page-head { flex: 1; margin-bottom: 0; }
.booking-intro img { width: clamp(68px, 16vw, 145px); height: auto; border-radius: 14px; display: block; }
@media (max-width: 500px) {
  .match-photo { height: auto; aspect-ratio: 16 / 9; }
}

.shop-photo { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; }

.booking-intro { display: block; }
.booking-intro img { width: 100%; max-height: 245px; object-fit: cover; margin-top: 12px; }

.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--mint); }

[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] :is(h1, h2, h3, .eyebrow, dt, dd) { letter-spacing: normal; }
[dir="rtl"] h1 { line-height: 1.2; }
[dir="rtl"] :is(input[type="tel"], input[type="email"], input[type="url"], input[name="username"], input[name="score"]) { direction: ltr; text-align: right; }

@media (max-width: 1020px) {
  .header-inner { gap: 10px; }
  .navigation a { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .language-picker { min-height: 38px; }
}
