/* Ubytování - přehled pokojů, detail a kalendář obsazenosti. Součást modulu Ubytování. */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.room-card { display: grid; color: inherit; text-decoration: none; border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius, 10px); overflow: hidden; }
.room-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.room-card__body { display: grid; gap: 4px; padding: 14px 16px; }
.room-card__body strong { font-size: 1.15rem; }
a.room-card:hover strong { color: var(--accent, #0d6efd); }
.rooms__more { margin: 14px 0 0; }
.room-card__meta, .room-facts { color: var(--muted, #64748b); }
.room-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.room-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }

/* Kalendář obsazenosti (blok) - den je čtvereček, příjezd a odjezd šikmo půlené. */
.occ-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .9rem; margin: 0 0 18px; }
.occ-legend span { display: inline-flex; align-items: center; gap: 6px; }
.occ-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; }
.occ-legend__free { background: #e8f0ea; }
.occ-legend__note { color: var(--muted, #64748b); font-size: .85rem; }
.occ-month { margin-bottom: 22px; }
.occ-month h3, .occ-cal__month h3 { font-size: 1.05rem; margin: 0 0 8px; text-transform: capitalize; }
.occ-scroll { overflow-x: auto; }
.occ { border-collapse: separate; border-spacing: 2px; font-size: .75rem; }
.occ th { font-weight: 500; color: var(--muted, #64748b); text-align: center; line-height: 1.15; min-width: 24px; }
.occ th small { display: block; font-size: .65rem; }
.occ th.is-weekend { font-weight: 700; color: inherit; }
.occ__room { position: sticky; left: 0; z-index: 1; background: var(--bg, #fff); text-align: left !important; padding-right: 10px;
    font-size: .9rem; font-weight: 600 !important; color: inherit !important; white-space: nowrap; }
.occ__cell { position: relative; width: 24px; height: 24px; padding: 0; background: #e8f0ea; border-radius: 3px; overflow: hidden; }
.occ__cell.is-past { opacity: .35; }
.occ__h { position: absolute; inset: 0; display: block; }
.occ__h--am { clip-path: polygon(0 0, 100% 0, 0 100%); }
.occ__h--pm { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.occ__h.is-busy, .occ-legend i.is-busy { background: #c9534f; }
.occ__h.is-tentative, .occ-legend i.is-tentative { background: repeating-linear-gradient(45deg, #e0a43a 0 3px, #f8e7c4 3px 6px); }
.occ-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.occ-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.occ-cal__wd { text-align: center; font-size: .75rem; color: var(--muted, #64748b); }
.occ__cell--big { display: block; width: auto; height: auto; aspect-ratio: 1; }
.occ__num { position: absolute; left: 4px; top: 2px; font-size: .75rem; font-weight: 600; color: #1f2933; pointer-events: none;
    text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.occ th, .occ td { border: 0; }
@media (max-width: 640px) {
    .occ__room { max-width: 104px; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; padding-right: 6px; }
}

/* Výběr termínu (rooms/booking-calendar.js) - jen u stránky s formulářem poptávky.
   Barvy si web nastaví ve svém stylu (výchozí z --accent):
     --pick-range    vybraný termín      --pick-preview  náhled při najetí myší
     --pick-bad      náhled přes obsazeno --pick-picked   rámeček příjezdu a odjezdu */
body:has(.booking-form) .occ-picker .occ__cell:not(.is-past) { cursor: pointer; }
body:has(.booking-form) .occ-picker .occ__cell:not(.is-past):hover { outline: 2px solid var(--accent, #2563eb); outline-offset: -2px; }
.occ__cell.is-picked { outline: 3px solid var(--pick-picked, var(--accent-dark, #1e40af)); outline-offset: -3px; background: var(--pick-range, color-mix(in srgb, var(--accent, #2563eb) 55%, #fff)); }
.occ__cell.is-in-range { background: var(--pick-range, color-mix(in srgb, var(--accent, #2563eb) 55%, #fff)); }
.occ-pick { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius, 8px); background: color-mix(in srgb, var(--accent, #2563eb) 10%, #fff); }
.occ-pick.is-error { background: #fdecec; color: #7f1d1d; }

/* Rezervace: výběr pokojů zaškrtnutím + souhrnný řádek (rooms::front/occupancy-pick). */
.occ-rooms { margin: 0 0 18px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.occ-rooms legend, .occ-step { font-weight: 700; margin: 0 0 10px; padding: 0; }
.occ-room { display: grid; grid-template-columns: auto 56px 1fr; gap: 10px; align-items: center; padding: 8px 12px 8px 10px; cursor: pointer;
    border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius, 10px); background: var(--card, #fff); }
.occ-room:has(input:checked) { border-color: var(--accent, #2563eb); box-shadow: inset 0 0 0 1px var(--accent, #2563eb); }
.occ-room input { width: 18px; height: 18px; accent-color: var(--accent, #2563eb); margin: 0; }
.occ-room img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.occ-room__body { display: grid; line-height: 1.25; font-size: .92rem; }
.occ-room__body span { color: var(--muted, #64748b); font-size: .85rem; }
.occ-month--row .occ { width: 100%; }
.occ-month--row .occ th, .occ-month--row .occ__cell { min-width: 26px; }
.occ-month--row .occ__cell { height: 30px; }
.occ-picker--pick.is-empty .occ-month { opacity: .45; }
.occ__cell.is-preview { background: var(--pick-preview, color-mix(in srgb, var(--accent, #2563eb) 40%, #fff)); }
.occ__cell.is-preview-bad { background: var(--pick-bad, #f2a5a5); }
