/* Table booking and a guest's own booking page. Colours come from menu.css (theme + accent). */
body { padding-bottom: calc(32px + var(--safe-bottom)); }
.r-head {
  display: flex; align-items: center; gap: 10px; padding: 12px max(12px, calc((100% - 560px) / 2)) 12px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.r-head a.icon-btn { color: var(--text); text-decoration: none; }
.r-head strong { font-family: var(--display); font-weight: 600; font-size: 17px; }

.r-main { max-width: 560px; margin: 0 auto; padding: 20px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.r-main h1 { margin: 0 0 2px; font-family: var(--display); font-weight: 600; font-size: 24px; }
/* In the header the logo is always small, whatever the template makes it on the menu. */
.r-head .logo, .r-head .logo.has-img { width: 36px; height: 36px; margin: 0; border-radius: 10px; overflow: hidden; flex: none; box-shadow: none; }
.r-head .logo img { object-fit: contain; }

/* Each step is a card: when, what time, who. */
.r-card { overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.r-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.r-row-head h2 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; }
.r-month { font-size: 13px; color: var(--muted); text-transform: capitalize; }

.r-dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
.r-dates::-webkit-scrollbar { display: none; }
.r-dates button {
  flex: none; min-width: 52px; padding: 0 8px; height: 64px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 700; color: var(--muted); text-transform: capitalize;
}
.r-dates button b { font-family: var(--display); font-size: 18px; line-height: 1.1; color: var(--text); }
.r-dates button.today small { width: 4px; height: 4px; border-radius: 2px; background: var(--accent); }
.r-dates button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.r-dates button[aria-pressed="true"] b { color: var(--on-accent); }
.r-dates button[aria-pressed="true"].today small { background: var(--on-accent); }
.r-dates button:disabled { opacity: .35; }

.r-stepper { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.r-step { display: flex; align-items: center; gap: 4px; }
.r-step b { font-family: var(--display); font-size: 18px; min-width: 32px; text-align: center; }
.r-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); font-size: 18px; font-weight: 700; line-height: 1; }
.r-step button:disabled { opacity: .35; }

/* Times grouped as lunch and dinner, small chips five to a row. */
.r-slots { display: flex; flex-direction: column; gap: 14px; }
.r-group { display: flex; flex-direction: column; gap: 8px; }
.r-group > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.r-group > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.r-slots button { height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.r-slots button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.r-slots button:disabled { opacity: .35; text-decoration: line-through; }
.r-empty { margin: 0; padding: 8px 0; text-align: center; }

.r-form { display: flex; flex-direction: column; gap: 10px; }
.r-form input, .r-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); resize: vertical;
}
.r-form input:focus, .r-form textarea:focus { outline: none; border-color: var(--accent); }
.r-field { display: grid; gap: 6px; }
.r-field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.r-hint { margin: -4px 4px 0; font-size: 12px; color: var(--muted); }

/* The send button stays at the bottom and says what is being booked. */
.r-bar {
  position: sticky; bottom: 0; z-index: 4; margin: 0 -16px; padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 18px); display: flex; flex-direction: column; gap: 8px;
}
.r-bar .error { margin: 0; text-align: center; }
.r-bar .btn-accent.big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 14px; font-weight: 800; }
.r-bar .btn-accent small { font-size: 12px; font-weight: 600; opacity: .8; }
.r-bar .btn-accent small:empty { display: none; }
body:has(#book:not([hidden])) { padding-bottom: 0; }

.r-status { align-items: center; text-align: center; padding-top: 36px; }
.r-big { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.r-big svg { width: 34px; height: 34px; }
.r-big.ok { background: color-mix(in srgb, #2F9E62 18%, transparent); color: #2F9E62; }
.r-big.bad { background: color-mix(in srgb, #E5484D 16%, transparent); color: #E5484D; }
.r-status p { margin: 0; max-width: 420px; }
.r-summary { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 2px 16px; text-align: left; margin-top: 8px; }
.r-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.r-summary div:last-child { border-bottom: 0; }
.r-summary span { color: var(--muted); }
.r-summary b { text-align: right; }
.r-summary b.new { color: var(--accent); }
.r-steps { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 15px; margin-top: 4px; }
.r-steps div { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.r-steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--surface-2); }
.r-steps .done { color: var(--text); }
.r-steps .done i { background: var(--accent); color: var(--on-accent); }
.r-steps .now { color: var(--text); font-weight: 700; }
.r-steps .now i { border: 2px solid var(--accent); background: none; }
.r-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
a.btn-accent, a.btn-ghost { text-decoration: none; }
a.btn-ghost { color: var(--text); }
a.btn-accent { color: var(--on-accent); }

/* ---------- Booking a place on the map (beach umbrellas and sunbeds) ---------- */
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legend b { font-weight: 600; }
.sp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); display: inline-block; }
.sp-dot.sel { background: var(--accent); }
.sp-dot.taken { border-color: var(--muted); opacity: .4; }
.sp-map { position: relative; width: 100%; aspect-ratio: 1000 / 640; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.sp { position: absolute; box-sizing: border-box; display: grid; place-items: center; padding: 0; border: 2px solid var(--accent); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; container-type: size; }
.sp b { font-size: clamp(10px, 40cqmin, 18px); font-weight: 800; line-height: 1; pointer-events: none; }
.sp-round { border-radius: 50%; }
.sp:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sp[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); z-index: 2; }
.sp:disabled { opacity: .3; cursor: not-allowed; border-color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--muted) 35%, transparent) 5px 7px); }
.sp-info { margin-top: 12px; min-height: 22px; font-size: 14px; }
.sp-info .sp-pick { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.sp-info .sp-pick small { font-weight: 600; color: var(--muted); }
.sp-info .sp-price { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.sp { min-width: 30px; min-height: 30px; }

/* ---------- The beach by rows, on a phone ---------- */
.sp-rows { display: flex; flex-direction: column; gap: 8px; }
.sp-rows[hidden], .sp-map[hidden] { display: none; }
.sp-sea { text-align: center; font-size: 12px; font-weight: 700; padding: 4px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sp-row { display: grid; gap: 6px; text-align: left; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.sp-row:disabled { opacity: .4; cursor: not-allowed; }
.sp-row:not(:disabled):active { border-color: var(--accent); }
.sp-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sp-row-top .ok { color: var(--text); font-weight: 700; }
.sp-row-top > span { font-size: 13px; color: var(--muted); }
.sp-row small { color: var(--muted); font-size: 12px; }
.sp-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); box-sizing: border-box; }
.sp-dots i.x { border-color: var(--muted); opacity: .35; }
.sp-dots i.p { background: var(--accent); }
.sp-best { margin-top: 4px; padding: 12px; border-radius: 12px; border: 1px dashed var(--accent); background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.sp-rowbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-back { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; padding: 8px 0; cursor: pointer; }
.sp-big { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 0 4px; }
.sp-big .sp { position: static; width: 54px; height: 54px; border-radius: 50%; font-size: 16px; }
.sp-big .sp b { font-size: 16px; }
.sp-big .sp-aisle { flex: none; width: 18px; height: 54px; }
.sp-list { display: grid; gap: 4px; margin-bottom: 8px; }
.sp-info .sp-total { padding-top: 8px; border-top: 1px solid var(--border); }

/* Areas and deposits */
.r-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.r-areas button { min-height: 58px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.r-areas button small { font-weight: 400; font-size: 12px; color: var(--muted); }
.r-areas button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.r-areas button[aria-pressed="true"] small { color: var(--on-accent); opacity: .85; }
.r-area-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.r-area-info:empty { display: none; }
.r-area-info p { margin: 0; color: var(--muted); }
.r-dep { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-weight: 700; }
.r-providers { display: flex; gap: 8px; }
.r-providers label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; font-weight: 700; cursor: pointer; }
.r-providers label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.r-pay { width: min(480px, 100vw); height: min(760px, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; }
.r-pay::backdrop { background: rgba(0,0,0,.5); }
.r-pay iframe { width: 100%; height: 100%; border: 0; display: block; }
.r-pay #pay-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff; color: #0B0B0B; }
@media (max-width: 520px) { .r-pay { border-radius: 0; } }
.r-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; color: #0B0B0B; }
.r-qr img { width: 180px; height: 180px; }
.r-qr b { font: 800 20px ui-monospace, Menlo, monospace; letter-spacing: 3px; }
.r-qr small { color: #555; }
.r-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Targets for a finger ---------- */
.r-step button { width: 44px; height: 44px; }
.r-slots button { min-height: 44px; }
.r-days button, .r-day { min-height: 56px; }
.r-days button small, .r-day small, .r-days button span { font-size: 12px; }

/* A match ("Ndeshjet e javës"): the poster on top, the day fixed, the closing time under the times. */
.r-match { display: flex; flex-direction: column; gap: 12px; }
.r-match img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: #070A0C; }
.r-match-text { display: flex; flex-direction: column; gap: 4px; }
.r-match h2 { margin: 0; font-size: 20px; line-height: 26px; }
.r-match p { margin: 0; font-size: 14px; line-height: 20px; }
/* The event's price at the venue, as information: the amount strong, "paid at the venue" beside it. */
.r-match-price b { font-size: 15px; font-weight: 800; }
#match-venue { font-weight: 800; }
.r-match-day { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: color-mix(in srgb, var(--muted) 12%, transparent); font-size: 15px; font-weight: 800; }
.r-match-day span::first-letter { text-transform: uppercase; }
.r-match-day small { font-size: 13px; font-weight: 700; color: var(--muted); }
.r-slots.r-match-times { flex-direction: row; gap: 8px; }
.r-slots.r-match-times button { flex: 1; height: 48px; font-size: 15px; }
.r-match-close { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4D6; color: #5A4300; font-size: 14px; line-height: 20px; font-weight: 700; }
.r-match-close svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
