/* U Golema – rezervační widget v barvách webu motobarugolema.cz (tmavý podklad, žlutý akcent).
   Barvy lze změnit přepsáním proměnných v .ugr */
.ugr {
	--ugr-bg: #191919;
	--ugr-panel: #111111;
	--ugr-cell: #242424;
	--ugr-line: #333333;
	--ugr-line-2: #444444;
	--ugr-text: #ffffff;
	--ugr-muted: #8c8c8c;
	--ugr-accent: #ffee38;
	--ugr-accent-ink: #191919;
	--ugr-accent-soft: rgba(255, 238, 56, .16);
	--ugr-accent-mid: rgba(255, 238, 56, .5);
	--ugr-head-font: metrophobic, Helvetica, Arial, sans-serif;
	max-width: 900px;
	margin: 0 auto 40px;
	color: var(--ugr-text);
	font-family: arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}
.ugr *, .ugr *::before, .ugr *::after { box-sizing: border-box; }
.ugr button { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.ugr-loading { padding: 40px; text-align: center; color: var(--ugr-muted); }
.ugr-card { background: var(--ugr-bg); }

/* nadpis ve stylu webu: text + tenká linka doprava */
.ugr-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ugr-top > span:first-child { font-family: var(--ugr-head-font); font-size: 22px; font-weight: 600; color: var(--ugr-text); white-space: nowrap; }
.ugr-top::after { content: ''; flex: 1; height: 1px; background: var(--ugr-line-2); order: 1; }
.ugr-top-sub { order: 2; color: var(--ugr-muted); font-size: 13px; white-space: nowrap; }
.ugr-body { padding: 0; }

/* kalendář */
.ugr-cal { background: var(--ugr-panel); border: 1px solid var(--ugr-line); border-radius: 2px; padding: 16px; }
.ugr-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ugr-hint { font-weight: 700; color: var(--ugr-accent); text-align: center; flex: 1; }
.ugr-nav { width: 38px; height: 38px; border-radius: 2px; border: 1px solid var(--ugr-line-2); background: transparent; color: var(--ugr-text); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.ugr-nav:hover:not(:disabled) { border-color: var(--ugr-accent); color: var(--ugr-accent); }
.ugr-nav:disabled { opacity: .25; cursor: default; }
.ugr-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.ugr-month { width: 100%; max-width: 400px; margin: 0 auto; }
.ugr-month-name { text-align: center; font-family: var(--ugr-head-font); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.ugr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ugr-dow { text-align: center; font-size: 12px; color: var(--ugr-muted); padding: 2px 0 4px; }
.ugr-day { aspect-ratio: 1 / 1; min-height: 34px; max-height: 52px; border: 1px solid transparent; border-radius: 2px; padding: 0; font-size: 14px; color: var(--ugr-text); cursor: pointer; background: var(--ugr-accent-soft); transition: background .1s, border-color .1s; position: relative; }
.ugr-day.is-some { background: var(--ugr-cell); border-color: var(--ugr-line-2); }
.ugr-day.is-some::before { content: ''; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--ugr-accent); opacity: .7; }
.ugr-day.is-full { background: transparent; color: #555; text-decoration: line-through; cursor: not-allowed; }
.ugr-day.is-out { background: transparent; color: #3d3d3d; cursor: default; }
.ugr-day.is-candidate { background: transparent; border: 1px dashed var(--ugr-accent); }
.ugr-day.is-candidate::before { display: none; }
.ugr-day.is-range { background: var(--ugr-accent-mid); border-color: transparent; }
.ugr-day.is-range::before { display: none; }
.ugr-day.is-start, .ugr-day.is-end { background: var(--ugr-accent) !important; color: var(--ugr-accent-ink) !important; font-weight: 700; text-decoration: none; border-color: var(--ugr-accent); }
.ugr-day.is-start::before, .ugr-day.is-end::before { display: none; }
.ugr-day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 14px; height: 2px; margin-left: -7px; background: var(--ugr-text); opacity: .6; }
.ugr-day:not(:disabled):hover { border-color: var(--ugr-accent); }
.ugr-day:focus-visible, .ugr-nav:focus-visible, .ugr-step button:focus-visible, .ugr-btn:focus-visible, .ugr-link:focus-visible { outline: 2px solid var(--ugr-accent); outline-offset: 2px; }
.ugr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--ugr-muted); align-items: center; }
.ugr-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; position: relative; }
.ugr-legend i.is-free { background: var(--ugr-accent-soft); }
.ugr-legend i.is-some { background: var(--ugr-cell); border: 1px solid var(--ugr-line-2); }
.ugr-legend i.is-some::before { content: ''; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ugr-accent); }
.ugr-legend i.is-full { border: 1px solid var(--ugr-line); }
.ugr-link { background: none; border: 0; color: var(--ugr-accent); text-decoration: underline; cursor: pointer; padding: 0; margin-left: auto; font-size: 13px; }

/* pokoje */
.ugr-units, .ugr-summary { margin-top: 30px; scroll-margin-top: 80px; }
.ugr-h { margin: 0 0 4px; font-family: var(--ugr-head-font); font-size: 20px; color: var(--ugr-text); font-weight: 600; line-height: 1.3; }
.ugr-sub { margin: 0 0 14px; color: var(--ugr-muted); font-size: 13px; }
.ugr-unit-list { display: grid; gap: 8px; }
.ugr-unit { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--ugr-panel); border: 1px solid var(--ugr-line); border-left: 3px solid var(--ugr-line); border-radius: 2px; }
.ugr-unit.is-selected { border-color: var(--ugr-line-2); border-left-color: var(--ugr-accent); }
.ugr-unit.is-na { opacity: .4; }
.ugr-unit-name { font-weight: 700; font-size: 15px; }
.ugr-cap { font-weight: 400; color: var(--ugr-muted); font-size: 13px; }
.ugr-unit-desc { font-size: 13px; color: var(--ugr-muted); }
.ugr-unit-price { font-size: 14px; margin-top: 3px; color: var(--ugr-accent); font-weight: 700; }
.ugr-unit.is-na .ugr-unit-price { color: var(--ugr-muted); font-weight: 400; }
.ugr-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ugr-step button { width: 36px; height: 36px; border-radius: 2px; border: 1px solid var(--ugr-line-2); background: transparent; color: var(--ugr-text); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.ugr-step button:hover:not(:disabled) { border-color: var(--ugr-accent); color: var(--ugr-accent); }
.ugr-step button:disabled { opacity: .25; cursor: default; }
.ugr-step-val { min-width: 44px; text-align: center; font-weight: 700; }

/* souhrn */
.ugr-summary { background: var(--ugr-panel); border: 1px solid var(--ugr-line); border-radius: 2px; padding: 18px; }
.ugr-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ugr-muted { color: var(--ugr-muted); }
.ugr-total { border-top: 1px solid var(--ugr-line); margin-top: 8px; padding-top: 10px; }
.ugr-deposit { font-weight: 700; font-size: 17px; color: var(--ugr-accent); }
.ugr-form { margin-top: 10px; }
.ugr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ugr-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ugr-text); margin: 0; }
.ugr-field input, .ugr-field textarea { font: inherit; font-weight: 400; font-size: 14px; color: var(--ugr-text); background: var(--ugr-bg); border: 1px solid var(--ugr-line-2); border-radius: 2px; padding: 11px 13px; width: 100%; margin: 0; box-shadow: none; }
.ugr-field input:focus, .ugr-field textarea:focus { outline: 0; border-color: var(--ugr-accent); }
.ugr-field textarea::placeholder { color: #666; }
.ugr-wide { grid-column: 1 / -1; }
.ugr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ugr-extras { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 4px; }
.ugr-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; margin: 0; color: var(--ugr-text); }
.ugr-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ugr-accent); flex-shrink: 0; }
.ugr-agree { margin: 12px 0 16px; color: var(--ugr-muted); }
.ugr-storno { margin: 12px 0 0; font-size: 14px; }
.ugr-storno summary { cursor: pointer; color: var(--ugr-accent); font-weight: 700; }
.ugr-storno p { white-space: pre-line; margin: 6px 0 0; color: var(--ugr-muted); }
.ugr-btn { display: block; width: 100%; padding: 16px 20px; border: 0; border-radius: 2px; background: var(--ugr-accent); color: var(--ugr-accent-ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: filter .1s; }
.ugr-btn:hover:not(:disabled) { filter: brightness(.92); }
.ugr-btn:disabled { opacity: .6; cursor: wait; }
.ugr-error { background: rgba(255, 80, 60, .12); color: #ff9b8f; border: 1px solid rgba(255, 80, 60, .4); border-radius: 2px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }

/* potvrzení */
.ugr-done { text-align: center; padding: 10px 0; }
.ugr-done-icon { width: 54px; height: 54px; line-height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--ugr-accent); color: var(--ugr-accent-ink); font-size: 28px; font-weight: 700; }
.ugr-done .ugr-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.ugr-pay { display: flex; flex-wrap: wrap; gap: 20px 30px; justify-content: center; align-items: center; margin: 20px auto; padding: 20px; max-width: 580px; background: var(--ugr-panel); border: 1px solid var(--ugr-line); border-radius: 2px; text-align: left; }
.ugr-qr-wrap { text-align: center; }
.ugr-qr { width: 190px; height: 190px; background: #fff; padding: 6px; border-radius: 2px; }
.ugr-qr svg { width: 100%; height: 100%; display: block; }
.ugr-qr-cap { font-size: 12px; color: var(--ugr-muted); margin-top: 6px; }
.ugr-pay-info { min-width: 220px; flex: 1; }
.ugr-pay-info strong { color: var(--ugr-accent); }

@media (max-width: 520px) {
	.ugr-cal { padding: 12px 8px; }
	.ugr-top > span:first-child { font-size: 19px; }
	.ugr-top-sub { display: none; }
	.ugr-grid { gap: 3px; }
	.ugr-day { min-height: 0; font-size: 13px; }
	.ugr-unit { flex-direction: column; align-items: stretch; }
	.ugr-step { justify-content: flex-end; }
	.ugr-summary { padding: 14px; }
}
