:root {
    --navy: #1d3160;
    --navy-deep: #132347;
    --navy-soft: #35508b;
    --red: #e21938;
    --red-deep: #b9152e;
    --white: #ffffff;
    --mist: #f2f5f7;
    --mist-deep: #dde5f0;
    --paper: #f8fafe;
    --ink: #10203f;
    --muted: #596885;
    --line: rgba(29, 49, 96, 0.12);
    --available: rgba(29, 49, 96, 0.08);
    --booked: rgba(226, 25, 56, 0.12);
    --blocked: #cfd7e3;
    --closed: #e7edf4;
    --shadow: 0 18px 42px rgba(8, 18, 38, 0.12);
    --shadow-strong: 0 22px 56px rgba(8, 18, 38, 0.2);
    --use-basketball: #2f5aa8;
    --use-birthday: #cb8a21;
    --use-event: #6a7386;
    --use-futsal: #1d996f;
    --use-pickleball: #158ba0;
    --use-volleyball: #d45a1d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "proxima-nova", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(226, 25, 56, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(29, 49, 96, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f3f6fb 48%, #e8edf5 100%);
}

h1,
h2,
h3,
h4,
.site-branding__title,
.site-tagline,
.badge,
.primary-button,
.secondary-button,
.danger-button,
.site-nav a,
.site-footer__copy strong,
th {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    letter-spacing: 0.05em;
}

h1,
h2,
h3,
h4,
p,
ul {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

strong {
    color: var(--navy);
}

.page-shell,
.site-footer {
    width: min(1400px, calc(100vw - 32px));
    margin: 0 auto;
}

.page-shell {
    padding: 22px 0 28px;
}

.site-header {
    overflow: hidden;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid rgba(29, 49, 96, 0.1);
    box-shadow: var(--shadow-strong);
}

.site-header__utility,
.site-header__band,
.site-header__nav,
.site-footer__inner {
    padding-left: clamp(18px, 3vw, 28px);
    padding-right: clamp(18px, 3vw, 28px);
}

.site-header__utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    background: rgba(255, 255, 255, 0.98);
}

.site-logo-link,
.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    width: clamp(62px, 7vw, 86px);
    height: auto;
    display: block;
}

.site-utility__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.site-utility__links a,
.site-utility__links .link-button,
.site-utility__user {
    color: var(--navy);
    font-weight: 700;
}

.site-utility__user {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--mist);
}

.site-header__band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(19, 35, 71, 0.98), rgba(29, 49, 96, 0.96)),
        linear-gradient(90deg, rgba(226, 25, 56, 0.2), transparent 28%);
    color: var(--white);
}

.site-branding {
    display: grid;
    gap: 4px;
}

.site-branding__eyebrow,
.eyebrow,
.site-footer__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--red);
}

.site-branding__title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 0.95;
    color: var(--white);
}

.site-tagline {
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    color: rgba(255, 255, 255, 0.84);
    text-align: right;
}

.site-header__nav {
    border-top: 3px solid var(--red);
    background: var(--white);
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 64px;
}

.site-nav a,
.link-button {
    position: relative;
    padding: 14px 2px 12px;
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
}

.site-nav a::after,
.link-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.link-button:hover::after,
.link-button:focus-visible::after {
    transform: scaleX(1);
}

.site-nav__external {
    margin-left: auto;
}

.inline-form {
    display: inline-flex;
}

.pill-link,
.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.primary-button {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 16px 28px rgba(29, 49, 96, 0.24);
}

.secondary-button,
.pill-link {
    background: var(--white);
    color: var(--navy);
    border-color: rgba(29, 49, 96, 0.16);
}

.danger-button {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 14px 26px rgba(226, 25, 56, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.pill-link:hover {
    transform: translateY(-1px);
}

.page-main {
    display: grid;
    gap: 26px;
    margin-top: 24px;
    padding-bottom: 120px;
}

.hero-panel,
.surface,
.quote-card,
.booking-card,
.auth-callout,
.message {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(29, 49, 96, 0.1);
    box-shadow: var(--shadow);
}

.hero-panel,
.surface {
    background: rgba(255, 255, 255, 0.96);
}

.surface::before,
.quote-card::before,
.booking-card::before,
.auth-callout::before,
.message::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), rgba(226, 25, 56, 0.1));
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(19, 35, 71, 0.98), rgba(29, 49, 96, 0.92)),
        radial-gradient(circle at top right, rgba(226, 25, 56, 0.42), transparent 32%);
    color: var(--white);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(226, 25, 56, 0.16);
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 0.92;
    color: var(--white);
}

.hero-panel p {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
}

.hero-panel .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

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

.hero-panel__stats--single {
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
}

.hero-panel--events h1 {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    max-width: none;
}

.hero-panel__stats > div {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.hero-panel__stats > div strong {
    color: var(--white);
    font-size: 2.2rem;
}

.hero-panel__stats > div span {
    color: rgba(255, 255, 255, 0.74);
}

.layout-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 24px;
}

.layout-stack {
    display: grid;
    gap: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(29, 49, 96, 0.1);
}

.section-header--split {
    align-items: flex-end;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 0.95;
}

.surface {
    padding: 26px;
}

.surface--map {
    min-height: 420px;
}

.surface--booking {
    position: sticky;
    top: 20px;
    align-self: start;
}

.court-map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(233, 239, 246, 0.96), rgba(242, 245, 247, 0.96));
    border: 1px solid rgba(29, 49, 96, 0.08);
}

.court-map__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(8, 18, 38, 0.14);
}

.booking-form,
.form-columns {
    display: grid;
    gap: 16px;
}

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

.field-group,
.booking-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.field-group--full-width {
    grid-column: 1 / -1;
}

.field-group label,
.booking-form label {
    font-weight: 700;
    color: var(--navy);
}

.field-group input:not([type="checkbox"]):not([type="radio"]),
.field-group select,
.field-group textarea,
.booking-form input:not([type="checkbox"]):not([type="radio"]),
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(29, 49, 96, 0.14);
    border-radius: 16px;
    background: var(--white);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field-group input:not([type="checkbox"]):not([type="radio"]):focus,
.field-group select:focus,
.field-group textarea:focus,
.booking-form input:not([type="checkbox"]):not([type="radio"]):focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: rgba(226, 25, 56, 0.6);
    box-shadow: 0 0 0 4px rgba(226, 25, 56, 0.12);
}

.field-group input.is-invalid:not([type="checkbox"]):not([type="radio"]),
.booking-form input.is-invalid:not([type="checkbox"]):not([type="radio"]) {
    border-color: rgba(226, 25, 56, 0.72);
    box-shadow: 0 0 0 4px rgba(226, 25, 56, 0.12);
}

.field-group--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--red);
}

.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.choice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 86px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(29, 49, 96, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 245, 247, 0.92));
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.choice-card:hover {
    transform: translateY(-1px);
}

.choice-card.is-selected {
    border-color: rgba(226, 25, 56, 0.6);
    box-shadow: 0 0 0 4px rgba(226, 25, 56, 0.12);
}

.choice-card.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.choice-card__content {
    display: grid;
    gap: 6px;
}

.choice-card__title {
    color: var(--navy);
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.choice-card__description,
.field-note {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.field-note--urgent {
    color: var(--red-deep);
    font-weight: 700;
}

.field-note--error {
    color: var(--red-deep);
    font-weight: 700;
}

.staff-cancellation-panel {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(226, 25, 56, 0.18);
    border-radius: 18px;
    background: rgba(255, 248, 248, 0.88);
}

.staff-cancellation-panel h3,
.staff-cancellation-panel p {
    margin: 0;
}

.staff-cancellation-panel form {
    display: grid;
    gap: 12px;
}

.staff-cancellation-panel .form-field {
    display: grid;
    gap: 6px;
}

.staff-cancellation-panel .form-field span {
    color: var(--navy);
    font-weight: 700;
}

.staff-cancellation-panel input,
.staff-cancellation-panel textarea {
    width: 100%;
}

.helptext {
    color: var(--muted);
    font-size: 0.92rem;
}

ul.errorlist {
    margin: 0;
    padding-left: 18px;
    color: var(--red-deep);
}

.quote-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(29, 49, 96, 0.03), rgba(29, 49, 96, 0.01));
}

.quote-card--placeholder,
.quote-card--error {
    background: linear-gradient(180deg, rgba(242, 245, 247, 0.9), rgba(255, 255, 255, 0.96));
}

.quote-card--error {
    color: var(--red-deep);
}

.reservation-summary-panel {
    display: grid;
    gap: 12px;
}

.quote-summary-actions {
    display: flex;
    justify-content: flex-end;
}

.quote-summary-actions__button {
    min-width: 220px;
}

.quote-card__header,
.quote-line,
.quote-totals div,
.badge-row,
.button-row,
.auth-callout__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.quote-line span,
.quote-line small,
.quote-totals span,
.empty-state,
.auth-callout p,
.booking-card span,
.site-footer__copy p,
.site-footer__links a,
th,
td,
.message,
.booking-form p,
p {
    color: var(--muted);
}

.quote-lines,
.quote-totals {
    display: grid;
    gap: 10px;
}

.quote-totals strong,
.quote-line strong,
.booking-card strong,
.section-header strong {
    color: var(--navy);
}

.quote-totals__grand {
    padding-top: 10px;
    border-top: 1px solid rgba(29, 49, 96, 0.1);
}

.badge,
.quote-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.badge {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(29, 49, 96, 0.12);
    background: rgba(29, 49, 96, 0.05);
    color: var(--navy);
    font-size: 0.95rem;
}

.badge--booked {
    background: rgba(226, 25, 56, 0.12);
    border-color: rgba(226, 25, 56, 0.2);
    color: var(--red-deep);
}

.badge--available {
    background: rgba(56, 168, 76, 0.14);
    border-color: rgba(56, 168, 76, 0.22);
    color: #26713b;
}

.badge--blocked {
    background: rgba(53, 80, 139, 0.12);
    border-color: rgba(53, 80, 139, 0.18);
    color: var(--navy);
}

.badge--closed {
    background: rgba(89, 104, 133, 0.12);
    border-color: rgba(89, 104, 133, 0.18);
    color: var(--muted);
}

.badge--use-basketball {
    background: rgba(47, 90, 168, 0.14);
    border-color: rgba(47, 90, 168, 0.24);
    color: #244679;
}

.badge--use-birthday {
    background: rgba(203, 138, 33, 0.14);
    border-color: rgba(203, 138, 33, 0.24);
    color: #8a5510;
}

.badge--use-event {
    background: rgba(106, 115, 134, 0.14);
    border-color: rgba(106, 115, 134, 0.24);
    color: #445065;
}

.badge--use-futsal {
    background: rgba(29, 153, 111, 0.14);
    border-color: rgba(29, 153, 111, 0.24);
    color: #15694c;
}

.badge--use-pickleball {
    background: rgba(21, 139, 160, 0.14);
    border-color: rgba(21, 139, 160, 0.24);
    color: #0f6372;
}

.badge--use-volleyball {
    background: rgba(212, 90, 29, 0.14);
    border-color: rgba(212, 90, 29, 0.24);
    color: #943b10;
}

.scheduler-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.scheduler-toolbar__form,
.scheduler-toolbar__actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.scheduler-toolbar__field {
    display: grid;
    gap: 8px;
}

.scheduler-toolbar__field label {
    font-weight: 700;
    color: var(--navy);
}

.scheduler-toolbar__field input {
    min-width: 180px;
    padding: 12px 14px;
    border: 1px solid rgba(29, 49, 96, 0.14);
    border-radius: 16px;
    background: var(--white);
}

.week-summary-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.week-summary-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(29, 49, 96, 0.08);
    background: linear-gradient(180deg, rgba(242, 245, 247, 0.92), rgba(255, 255, 255, 0.96));
}

.week-summary-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.week-summary-table th,
.week-summary-table td {
    padding: 0;
    border: 1px solid rgba(29, 49, 96, 0.14);
    vertical-align: middle;
}

.week-summary-table thead th {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font-size: 0.76rem;
    line-height: 1;
}

.week-summary-table__court,
.week-summary-table__court-label {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
}

.week-summary-table tbody th {
    background: var(--navy-deep);
    color: var(--white);
    padding: 10px 8px;
    text-align: left;
    font-size: 0.82rem;
}

.week-summary-table__day {
    padding: 8px 0;
    font-size: 0.92rem;
}

.week-summary-table__hour {
    width: calc((100% - 120px) / 105);
    min-width: 0;
    padding: 4px 0;
    font-size: 0.48rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.week-summary-table__hour.is-day-start,
.week-summary-square-cell.is-day-start {
    border-left: 2px solid var(--navy-deep);
}

.week-summary-square-cell {
    width: calc((100% - 120px) / 105);
    min-width: 0;
    height: 20px;
    padding: 0;
}

.week-summary-square {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: var(--blocked);
}

.week-summary-square--available {
    background: rgba(56, 168, 76, 0.14);
}

.week-summary-square--booked {
    background: var(--red);
}

.week-summary-square--blocked,
.week-summary-square--closed {
    background: var(--blocked);
}

.week-summary-square--use-basketball {
    background: rgba(47, 90, 168, 0.14);
}

.week-summary-square--use-birthday {
    background: rgba(203, 138, 33, 0.14);
}

.week-summary-square--use-event {
    background: rgba(106, 115, 134, 0.14);
}

.week-summary-square--use-futsal {
    background: rgba(29, 153, 111, 0.14);
}

.week-summary-square--use-pickleball {
    background: rgba(21, 139, 160, 0.14);
}

.week-summary-square--use-volleyball {
    background: rgba(212, 90, 29, 0.14);
}

@media (max-width: 1400px) {
    .week-summary-table {
        min-width: 0;
    }

    .week-summary-table__hour {
        font-size: 0.48rem;
    }

    .week-summary-square-cell {
        height: 18px;
    }
}

.availability-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.availability-toolbar__label {
    color: var(--navy);
    font-weight: 700;
}

.availability-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.availability-filter-button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(29, 49, 96, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.availability-filter-button.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.booking-floating-action {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(720px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(19, 35, 71, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(8, 18, 38, 0.3);
    backdrop-filter: blur(12px);
}

.booking-floating-action__content {
    display: grid;
    gap: 4px;
}

.booking-floating-action__auth {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.booking-floating-action__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
}

.booking-floating-action__total,
.booking-floating-action__detail {
    color: var(--white);
}

.booking-floating-action__total {
    font-size: 1.1rem;
}

.booking-floating-action__detail {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.booking-floating-action__button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.availability-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(29, 49, 96, 0.08);
    background: linear-gradient(180deg, rgba(242, 245, 247, 0.92), rgba(255, 255, 255, 0.96));
}

.availability-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.availability-table th,
.availability-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(29, 49, 96, 0.08);
    border-right: 1px solid rgba(29, 49, 96, 0.08);
    vertical-align: middle;
}

.availability-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font-size: 1rem;
}

.availability-table__time {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 130px;
    background: var(--navy-deep);
    color: var(--white);
    text-align: left;
    white-space: nowrap;
}

.availability-table thead .availability-table__time {
    z-index: 3;
}

.availability-table__cell {
    min-width: 150px;
    background: rgba(255, 255, 255, 0.92);
}

.availability-table__cell--available {
    background: rgba(29, 49, 96, 0.03);
}

.availability-table__cell--booked {
    background: rgba(29, 49, 96, 0.08);
}

.availability-table__cell--blocked {
    background: rgba(226, 25, 56, 0.08);
}

.availability-table__cell--closed {
    background: rgba(208, 217, 230, 0.46);
}

.slot-button,
.availability-chip {
    width: 100%;
    min-height: 88px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 16px;
    text-align: center;
}

.slot-button {
    border: 1px solid rgba(29, 49, 96, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.slot-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(8, 18, 38, 0.08);
}

.slot-button.is-selected {
    border-color: rgba(226, 25, 56, 0.72);
    background: rgba(226, 25, 56, 0.12);
    box-shadow: inset 0 0 0 1px rgba(226, 25, 56, 0.28);
}

.slot-button__price {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.15rem;
}

.slot-button__price.is-discounted,
.slot-button.is-discounted .slot-button__price,
.slot-picker.is-discounted .slot-button__price,
.slot-button.is-live-discounted .slot-button__price,
.slot-picker.is-live-discounted .slot-button__price {
    color: var(--red);
}

.slot-button__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.slot-button__compare-at {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: line-through;
}

.availability-chip {
    border: 1px solid rgba(29, 49, 96, 0.1);
    background: rgba(255, 255, 255, 0.78);
}

.availability-chip strong {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.availability-chip--booked strong {
    color: var(--navy);
}

.availability-chip--blocked strong {
    color: var(--red-deep);
}

.availability-chip--closed strong {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card-grid--catalog {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.booking-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 245, 247, 0.98));
}

.booking-card--muted {
    background: linear-gradient(180deg, rgba(242, 245, 247, 0.98), rgba(233, 239, 246, 0.98));
}

.booking-card--use-basketball {
    background: linear-gradient(180deg, rgba(47, 90, 168, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-basketball::before {
    background: linear-gradient(90deg, var(--use-basketball), rgba(47, 90, 168, 0.12));
}

.booking-card--use-birthday {
    background: linear-gradient(180deg, rgba(203, 138, 33, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-birthday::before {
    background: linear-gradient(90deg, var(--use-birthday), rgba(203, 138, 33, 0.12));
}

.booking-card--use-event {
    background: linear-gradient(180deg, rgba(106, 115, 134, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-event::before {
    background: linear-gradient(90deg, var(--use-event), rgba(106, 115, 134, 0.12));
}

.booking-card--use-futsal {
    background: linear-gradient(180deg, rgba(29, 153, 111, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-futsal::before {
    background: linear-gradient(90deg, var(--use-futsal), rgba(29, 153, 111, 0.12));
}

.booking-card--use-pickleball {
    background: linear-gradient(180deg, rgba(21, 139, 160, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-pickleball::before {
    background: linear-gradient(90deg, var(--use-pickleball), rgba(21, 139, 160, 0.12));
}

.booking-card--use-volleyball {
    background: linear-gradient(180deg, rgba(212, 90, 29, 0.12), rgba(255, 255, 255, 0.98));
}

.booking-card--use-volleyball::before {
    background: linear-gradient(90deg, var(--use-volleyball), rgba(212, 90, 29, 0.12));
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.detail-content {
    display: grid;
    gap: 18px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.surface--nested {
    padding: 22px;
    background: linear-gradient(180deg, rgba(242, 245, 247, 0.6), rgba(255, 255, 255, 0.96));
}

.section-subtitle {
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--muted);
}

.detail-hero-image {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
    box-shadow: 0 18px 36px rgba(8, 18, 38, 0.12);
}

.filter-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-toolbar__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(29, 49, 96, 0.1);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.96);
}

.catalog-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.catalog-card__body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.catalog-card__body h3 {
    margin-bottom: 0;
}

.catalog-card__season {
    margin-bottom: 0;
    color: var(--navy);
    font-weight: 700;
}

.catalog-card__meta {
    display: grid;
    gap: 6px;
}

.compact-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.detail-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.narrow-surface {
    width: min(680px, 100%);
    margin: 0 auto;
}

.auth-callout {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(29, 49, 96, 0.04), rgba(242, 245, 247, 0.94));
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.activity-log-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mist);
    color: var(--navy);
    font-size: 0.9rem;
}

.activity-log-pill--created,
.activity-log-pill--duplicated,
.activity-log-pill--published,
.activity-log-pill--opened,
.activity-log-pill--marked_paid,
.activity-log-pill--imported {
    background: rgba(29, 153, 111, 0.14);
    color: #17684e;
}

.activity-log-pill--updated,
.activity-log-pill--exported {
    background: rgba(29, 49, 96, 0.12);
    color: var(--navy);
}

.activity-log-pill--cancelled,
.activity-log-pill--deleted,
.activity-log-pill--refunded,
.activity-log-pill--unpublished,
.activity-log-pill--closed {
    background: rgba(226, 25, 56, 0.14);
    color: var(--red-deep);
}

.activity-log-summary {
    margin-bottom: 8px;
}

.activity-log-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.activity-log-list {
    margin-top: 8px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(29, 49, 96, 0.08);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--navy);
    font-size: 1rem;
}

.messages {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.message {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
}

.message::before {
    width: 6px;
    height: 100%;
    background: var(--navy);
}

.message-success::before {
    background: var(--navy-soft);
}

.message-warning::before,
.message-error::before {
    background: var(--red);
}

.site-footer {
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(19, 35, 71, 0.98), rgba(29, 49, 96, 0.96)),
        radial-gradient(circle at top right, rgba(226, 25, 56, 0.26), transparent 32%);
    box-shadow: var(--shadow-strong);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 160px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer__logo {
    width: clamp(88px, 9vw, 118px);
    height: auto;
    display: block;
}

.site-footer__copy strong {
    display: block;
    margin: 6px 0 8px;
    font-size: 2rem;
    color: var(--white);
}

.site-footer__copy p,
.site-footer__links a {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer__links {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.site-footer__links a:hover {
    color: var(--white);
}

@media (max-width: 1000px) {
    .hero-panel,
    .layout-grid,
    .detail-grid,
    .detail-info-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__band,
    .site-header__utility {
        align-items: flex-start;
    }

    .site-tagline,
    .site-footer__links {
        text-align: left;
        justify-items: start;
    }

    .surface--booking {
        position: static;
    }
}

@media (max-width: 760px) {
    .page-shell,
    .site-footer {
        width: min(100vw - 20px, 100%);
    }

    .site-header__utility,
    .site-header__band,
    .site-header__nav,
    .hero-panel,
    .surface,
    .site-footer__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-header__utility,
    .site-header__band,
    .site-nav,
    .section-header,
    .availability-toolbar,
    .button-row,
    .quote-card__header,
    .quote-line,
    .quote-totals div,
    .auth-callout__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-nav__external {
        margin-left: 0;
    }

    .hero-panel__stats,
    .filter-toolbar,
    .form-columns,
    .choice-cards {
        grid-template-columns: 1fr;
    }

    .booking-floating-action {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        padding: 10px 12px;
        border-radius: 16px;
        gap: 10px;
        transform: none;
        flex-direction: column;
        align-items: stretch;
    }

    .booking-floating-action__content {
        gap: 2px;
    }

    .booking-floating-action__eyebrow {
        font-size: 0.64rem;
    }

    .booking-floating-action__total {
        font-size: 0.98rem;
        line-height: 1.15;
    }

    .booking-floating-action__detail {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .booking-floating-action__button,
    .booking-floating-action__auth .booking-floating-action__button {
        min-height: 40px;
        padding: 10px 14px;
    }

    .booking-floating-action__auth {
        justify-content: stretch;
    }

    .availability-table {
        min-width: 760px;
    }

    .court-map {
        min-height: auto;
        padding: 10px;
    }
}






[data-court-eligibility-note] {
    min-height: 1.4em;
}

[data-event-subtype-group][hidden],
[data-event-guidance-card][hidden] {
    display: none !important;
}

.availability-table [data-court-column].is-filtered-out {
    display: none;
}

.slot-button:disabled,
.slot-button.is-ineligible {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
    transform: none;
}

.availability-table th.is-ineligible-court {
    background: #657594;
    color: rgba(255, 255, 255, 0.76);
}

.availability-table td.is-ineligible-court {
    background: rgba(208, 217, 230, 0.72);
}

.availability-table td.is-ineligible-court .availability-chip {
    background: rgba(255, 255, 255, 0.62);
}

.slot-button.is-ineligible .slot-button__price,
.slot-button:disabled .slot-button__price,
.slot-button.is-ineligible .slot-button__meta,
.slot-button:disabled .slot-button__meta {
    color: var(--muted);
}

.availability-label--compact,
.availability-chip__label--compact,
.slot-button__price--compact {
    display: none;
}

@media (max-width: 760px) {
    .availability-table-wrap {
        overflow-x: clip;
    }

    .availability-table {
        min-width: 0;
        table-layout: fixed;
    }

    .availability-table th,
    .availability-table td {
        padding: 4px 2px;
    }

    .availability-table thead th,
    .availability-table__time,
    .availability-table td {
        font-size: 0.68rem;
    }

    .availability-table__time {
        min-width: 46px;
        width: 46px;
        padding-left: 4px;
        padding-right: 4px;
        font-size: 0.76rem;
    }

    .availability-label--full,
    .availability-chip__label--full,
    .slot-button__price--full,
    .slot-button__meta {
        display: none;
    }

    .availability-label--compact,
    .availability-chip__label--compact,
    .slot-button__price--compact {
        display: inline;
    }

    .slot-button,
    .availability-chip {
        min-height: 48px;
        padding: 4px 2px;
        gap: 1px;
        border-radius: 10px;
    }

    .slot-button__price {
        font-size: 0.66rem;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .slot-button__compare-at {
        display: none;
    }

    .availability-chip strong {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .badge {
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    .availability-table thead th,
    .availability-table__time,
    .availability-table td {
        font-size: 0.62rem;
    }

    .availability-table__time {
        min-width: 42px;
        width: 42px;
        font-size: 0.7rem;
    }

    .slot-button,
    .availability-chip {
        min-height: 42px;
        padding: 3px 1px;
    }

    .slot-button__price {
        font-size: 0.6rem;
    }

    .availability-chip strong {
        font-size: 0.66rem;
    }
}

.birthday-package-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(29, 49, 96, 0.12);
    background: linear-gradient(180deg, rgba(29, 49, 96, 0.04), rgba(255, 255, 255, 0.98));
}

.birthday-package-card.is-active {
    border-color: rgba(226, 25, 56, 0.5);
    box-shadow: 0 0 0 4px rgba(226, 25, 56, 0.1);
}

.birthday-package-card--static {
    margin-top: 18px;
}

.birthday-package-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    color: var(--navy);
    font-weight: 700;
}

.birthday-package-card__summary::-webkit-details-marker {
    display: none;
}

.birthday-package-card__summary::after {
    content: "+";
    color: var(--red);
    font-size: 1.25rem;
    line-height: 1;
}

.birthday-package-card--details[open] .birthday-package-card__summary::after {
    content: "-";
}

.birthday-package-card__summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.birthday-package-card__body {
    display: grid;
    gap: 10px;
}

.birthday-package-card__list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.birthday-package-card__rule {
    font-weight: 700;
    color: var(--navy);
}

.booking-add-ons-list {
    display: grid;
    gap: 12px;
}

.booking-add-on-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(29, 49, 96, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.booking-add-on-row__details {
    display: grid;
    gap: 4px;
}

.booking-add-on-row__details span {
    color: var(--muted);
}

.booking-add-on-row__input {
    display: grid;
    gap: 6px;
    width: 104px;
}

.booking-add-on-row__input label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-add-on-row__input input {
    text-align: center;
}

.slot-picker {
    display: grid;
    gap: 10px;
    min-height: 88px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(29, 49, 96, 0.12);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.slot-picker.is-selected {
    border-color: rgba(226, 25, 56, 0.72);
    background: rgba(226, 25, 56, 0.12);
    box-shadow: inset 0 0 0 1px rgba(226, 25, 56, 0.28);
}

.slot-picker.is-ineligible {
    opacity: 0.45;
}

.slot-picker__summary {
    display: grid;
    gap: 4px;
    text-align: center;
}

.slot-picker__controls {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: center;
}

.slot-picker__control {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(29, 49, 96, 0.14);
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.slot-picker__control:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.slot-picker__count,
.availability-chip__meta {
    min-width: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.slot-picker__count::after {
    content: " selected";
}

@media (max-width: 760px) {
    .birthday-package-card {
        padding: 14px;
    }

    .booking-add-on-row {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-add-on-row__input {
        width: 100%;
    }

    .slot-picker {
        min-height: 70px;
        min-width: 0;
        padding: 6px 4px;
        gap: 6px;
        border-radius: 12px;
    }

    .slot-picker__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "count count"
            "decrement increment";
        gap: 3px;
        align-items: stretch;
    }

    .slot-picker__control {
        min-height: 18px;
        height: 18px;
        border-radius: 7px;
        font-size: 0.72rem;
        line-height: 1;
    }

    .slot-picker__control[data-slot-decrement] {
        grid-area: decrement;
    }

    .slot-picker__control[data-slot-increment] {
        grid-area: increment;
    }

    .slot-picker__count,
    .availability-chip__meta {
        font-size: 0.56rem;
        line-height: 1.05;
    }

    .slot-picker__count {
        grid-area: count;
        display: block;
        white-space: nowrap;
    }

    .slot-picker__count::after {
        content: "";
    }
}

.scheduler-monitor-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(226, 25, 56, 0.12), transparent 24%),
        linear-gradient(180deg, #f4f7fb 0%, #e7edf5 100%);
}

.scheduler-monitor-shell {
    display: grid;
    gap: 22px;
}

.scheduler-monitor-header,
.scheduler-monitor-surface {
    border-radius: 24px;
    border: 1px solid rgba(29, 49, 96, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.scheduler-monitor-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
}

.scheduler-monitor-header h1 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.92;
}

.scheduler-monitor-header p,
.scheduler-monitor-meta span {
    color: var(--muted);
    margin-bottom: 0;
}

.scheduler-monitor-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

.scheduler-monitor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.scheduler-monitor-surface {
    padding: 18px;
}

.scheduler-monitor-table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(29, 49, 96, 0.08);
}

.scheduler-monitor-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.scheduler-monitor-table thead th {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    padding-top: 18px;
    padding-bottom: 18px;
}

.scheduler-monitor-table tbody th {
    background: var(--navy-deep);
    color: var(--white);
    white-space: nowrap;
    width: 190px;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1;
}

.scheduler-monitor-table td {
    min-height: 140px;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    vertical-align: top;
}

.scheduler-monitor-names {
    display: grid;
    gap: 10px;
}

.scheduler-monitor-names span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(29, 49, 96, 0.08);
    color: var(--navy);
    font-weight: 700;
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    text-align: center;
}

.scheduler-monitor-empty {
    color: rgba(89, 104, 133, 0.6);
    font-size: 1.6rem;
}

.scheduler-monitor-row--current th,
.scheduler-monitor-row--current td {
    background:
        linear-gradient(180deg, rgba(255, 236, 150, 0.72), rgba(255, 248, 212, 0.88));
}

.scheduler-monitor-row--current .scheduler-monitor-names span {
    background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 900px) {
    .scheduler-monitor-page {
        padding: 14px;
    }

    .scheduler-monitor-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .scheduler-monitor-meta {
        text-align: left;
    }

    .scheduler-monitor-actions {
        justify-content: flex-start;
    }
}
