/* Booker — reservation calendar (year view: 12 months x 31 days) */
.bk {
    --bk-cell: 24px;
    --bk-free: #ffffff;
    --bk-booked: #dc3545;
    --bk-sel: var(--main-color, #2563EB);
    --bk-sel-light: #c7d7fb;
    --bk-border: #e5e7eb;
    --bk-past: #f1f3f5;
    font-size: 13px;
}

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

.bk-year {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
}

.bk-year button {
    border: 1px solid var(--bk-border);
    background: #fff;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.bk-year button:disabled { opacity: .35; }

.bk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #555;
}

.bk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bk-legend i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--bk-border); }

.bk-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--bk-border);
    border-radius: 4px;
}

.bk-grid { border-collapse: collapse; min-width: calc(var(--bk-cell) * 31 + 90px); }

.bk-grid th,
.bk-grid td {
    width: var(--bk-cell);
    height: var(--bk-cell);
    padding: 0;
    text-align: center;
    border: 1px solid var(--bk-border);
}

.bk-grid thead th { font-weight: 600; color: #666; font-size: 11px; background: #fafafa; }

/* Month names stay visible while the days scroll sideways on a phone (DET-Z16) */
.bk-grid th.bk-month {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 var(--bk-border);
    width: 90px;
    text-align: left;
    padding: 0 6px;
    font-weight: 600;
    font-size: 12px;
    background: #fafafa;
    text-transform: capitalize;
    white-space: nowrap;
}

.bk-day {
    display: block;
    width: 100%;
    height: var(--bk-cell);
    border: 0;
    padding: 0;
    background: var(--bk-free);
    cursor: pointer;
}

.bk-day:hover:not(:disabled) { outline: 2px solid var(--bk-sel); outline-offset: -2px; }
.bk-day:disabled { cursor: not-allowed; }

.bk-booked { background: var(--bk-booked); }
.bk-arrival { background: linear-gradient(to bottom right, var(--bk-free) 50%, var(--bk-booked) 50%); }
.bk-departure { background: linear-gradient(to bottom right, var(--bk-booked) 50%, var(--bk-free) 50%); }
.bk-past { background-color: var(--bk-past); background-image: none; opacity: .6; }
.bk-past.bk-booked { background: #e7a5ac; }

.bk-sel { background: var(--bk-sel-light); }
.bk-sel-start,
.bk-sel-end { background: var(--bk-sel); }

.bk-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #eff4fe;
    border-radius: 4px;
}

.bk-notice { color: #b02a37; font-weight: 600; margin-top: 8px; }
.bk-form .form-label { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.bk-form .invalid-feedback { display: block; }

/* Price list in unit cards */
.unit-pricelist { width: 100%; margin-top: 10px; font-size: 14px; }
.unit-pricelist td { padding: 4px 8px; border-bottom: 1px solid #eee; }
.unit-pricelist td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.unit-pricelist tr.unit-pricelist-note td { color: #666; font-weight: 400; font-style: italic; text-align: left; }

/* The theme header (z-index 9999 / sticky max) would cover Bootstrap modals */
body.modal-open .main_header_arae,
body.modal-open .navbar-area.is-sticky { z-index: 1000 !important; }

.bk .btn_theme:disabled {
    background-color: var(--main-color, #2563EB);
    color: #fff;
    opacity: .45;
}

/* Dates taken: ask for a similar apartment (CH-9) */
.bk-similar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #f3f6ff; }
.bk-similar span { font-size: 14px; }
