/* Rezervacni mrizka a pokladna. Doplnuje assets/css/site.css. */

.booking-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.booking-main { flex: 999 1 640px; min-width: 0; }
.booking-aside { flex: 1 1 300px; min-width: 0; position: sticky; top: 16px; }

/* --- Zalozky kurtu ------------------------------------------------------ */
.court-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.court-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 18px;
    border-radius: 16px;
    border: 1.5px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    text-align: left;
}
.court-tab[aria-current="true"] {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--bg);
}
.court-tab__swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.court-tab__name { font-weight: 700; font-size: 16px; display: block; }
.court-tab__note { font-size: 13px; opacity: .8; display: block; }

/* --- Hlavicka tydne ----------------------------------------------------- */
.week-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav__label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    min-width: 210px;
    text-align: center;
}
.week-nav__btn {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #D5D2C6;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.week-nav__btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 4px; display: block; }

/* --- Mrizka ------------------------------------------------------------- */
.grid-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.slot-grid { min-width: 740px; display: flex; flex-direction: column; gap: 4px; }
.slot-row {
    display: grid;
    grid-template-columns: 62px repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.slot-row__hour {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-2);
    display: flex;
    align-items: center;
}
.slot-day {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
    border-radius: 10px;
    line-height: 1.25;
}
.slot-day small { font-weight: 500; font-size: 13px; display: block; }
.slot-day--today { background: var(--green-800); color: var(--lime); }
.slot-day--weekend { background: #EEF2E9; }

.slot {
    height: 44px;
    width: 100%;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
}
.slot--free {
    background: var(--surface);
    border: 1.5px solid #9FB8A8;
    color: var(--green-600);
    cursor: pointer;
}
.slot--free:hover { filter: brightness(.96); }
.slot--selected { background: var(--accent); color: #FFFFFF; cursor: pointer; }
.slot--taken { background: #D6D9D2; color: #4A554E; cursor: not-allowed; }
.slot--past { background: #F1F0EA; border: 1px solid #E8E6DE; color: #8E968F; cursor: default; }
.slot--blocked {
    background: repeating-linear-gradient(135deg, #E7E4DA, #E7E4DA 6px, #DCD8CC 6px, #DCD8CC 12px);
    color: #5A5F58;
    cursor: not-allowed;
}

/* --- Kosik -------------------------------------------------------------- */
.cart { display: flex; flex-direction: column; gap: 16px; }
.cart__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(246, 244, 238, .08);
    border-radius: 14px;
    padding: 10px 8px 10px 14px;
}
.cart__item div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart__remove {
    width: 44px; height: 44px;
    border: 0; border-radius: 10px;
    background: transparent;
    color: var(--bg);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.cart__remove:hover { background: rgba(246, 244, 238, .14); }
.cart__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    border-top: 1px solid rgba(246, 244, 238, .18);
}
.cart__total strong { font-family: var(--font-head); font-weight: 800; font-size: 28px; }

/* --- Pokladna ----------------------------------------------------------- */
.steps {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 14px; font-weight: 600;
}
.steps li { display: flex; align-items: center; gap: 6px; color: #7A857E; }
.steps li span {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; border: 1.5px solid #B9BDB4; box-sizing: border-box;
}
.steps li[data-done="true"] { color: var(--green-600); }
.steps li[data-done="true"] span { background: var(--green-600); border-color: var(--green-600); color: #FFFFFF; }
.steps li[aria-current="step"] { color: var(--ink); }
.steps li[aria-current="step"] span { background: var(--green-800); border-color: var(--green-800); color: var(--lime); }

.summary-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(246, 244, 238, .14);
}
.summary-row:last-of-type { border-bottom: 0; }

.done-card {
    max-width: 640px;
    margin: 24px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.done-card__check {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--lime);
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 860px) {
    .booking-aside { position: static; }
    .week-nav__label { min-width: 0; flex: 1; font-size: 17px; }
}
