/* Stroje – půjčovna: frontend styl (paleta dle šablony Stroje Oslava). */
.sp-app, .sp-availability {
	--sp-bg: #FAF6EF; --sp-text: #2A2521; --sp-link: #1C4E80; --sp-card: #FFFDF9;
	--sp-border: #E6DDD0; --sp-muted: #6B625A; --sp-accent: #1C4E80;
	--sp-free-bg: #EAF3EC; --sp-free-fg: #2E7D4F; --sp-soon-bg: #F8EEDF; --sp-soon-fg: #B8742A;
	--sp-off-bg: #EFEBE4; --sp-off-fg: #6B625A;
	color: var(--sp-text);
	font-family: 'Work Sans', Helvetica, Arial, sans-serif;
	line-height: 1.55;
}
.sp-app * { box-sizing: border-box; }
.sp-loading { color: var(--sp-muted); padding: 24px 0; }

/* filtry */
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.sp-filter { border: 1px solid var(--sp-border); background: var(--sp-card); color: var(--sp-text);
	padding: 8px 16px; border-radius: 999px; font-size: 15px; cursor: pointer; }
.sp-filter.is-on { background: var(--sp-accent); color: #FAF6EF; border-color: var(--sp-accent); }

/* mřížka karet */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sp-card { background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.sp-card-img { background: #EFE8DB; height: 150px; display: flex; align-items: center; justify-content: center;
	color: var(--sp-muted); font-style: italic; font-size: 14px; text-align: center; padding: 10px; }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-card h3 { font-family: 'Lora', Georgia, serif; font-size: 20px; margin: 4px 0 0; font-weight: 600; }
.sp-cat { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--sp-muted); }
.sp-muted { color: var(--sp-muted); }
.sp-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.sp-price { font-family: 'Lora', Georgia, serif; font-size: 21px; font-weight: 600; }
.sp-per { font-size: 13px; color: var(--sp-muted); font-weight: 400; }
.sp-link { background: none; border: 0; color: var(--sp-link); font-weight: 600; font-size: 15px; cursor: pointer; }
.sp-link:disabled { color: var(--sp-muted); cursor: default; }

/* odznaky */
.sp-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp-free { background: var(--sp-free-bg); color: var(--sp-free-fg); }
.sp-soon { background: var(--sp-soon-bg); color: var(--sp-soon-fg); }
.sp-off  { background: var(--sp-off-bg);  color: var(--sp-off-fg); }

/* detail + rezervace */
.sp-back { background: none; border: 0; color: var(--sp-link); font-weight: 600; cursor: pointer; font-size: 15px; margin-bottom: 14px; padding: 0; }
.sp-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.sp-detail-info h2 { font-family: 'Lora', Georgia, serif; font-size: 30px; margin: 6px 0 12px; }
.sp-specs { padding-left: 18px; color: var(--sp-muted); }
.sp-specs li { margin: 4px 0; }
.sp-pricetable { width: 100%; border-collapse: collapse; margin-top: 16px; }
.sp-pricetable td { padding: 8px 0; border-bottom: 1px solid var(--sp-border); }
.sp-pricetable td:last-child { text-align: right; font-weight: 600; }
.sp-detail-book { background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 18px; padding: 22px; }
.sp-detail-book h3 { font-family: 'Lora', Georgia, serif; font-size: 22px; margin: 0 0 4px; }

/* kalendář */
.sp-cal { margin: 14px 0; }
.sp-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.sp-cal-head button { background: var(--sp-bg); border: 1px solid var(--sp-border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.sp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sp-dow { text-align: center; font-size: 12px; color: var(--sp-muted); padding: 4px 0; }
.sp-day { border: 0; background: var(--sp-bg); border-radius: 8px; aspect-ratio: 1; cursor: pointer; font-size: 14px; color: var(--sp-text); }
.sp-day:hover:not(:disabled) { outline: 2px solid var(--sp-accent); }
.sp-day.sp-sel { background: var(--sp-accent); color: #FAF6EF; }
.sp-day.sp-inrange { background: #D5E1EE; }
.sp-day.sp-booked { background: #EFE8DB; color: #A99F92; text-decoration: line-through; cursor: default; }
.sp-day.sp-past { background: transparent; color: #C8BFB1; cursor: default; }
.sp-cal-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sp-muted); margin-top: 8px; }
.sp-lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sp-lg-sel { background: var(--sp-accent); } .sp-lg-booked { background: #EFE8DB; }

/* souhrn */
.sp-summary { border-top: 1px solid var(--sp-border); margin-top: 10px; padding-top: 10px; }
.sp-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 15px; }
.sp-row.sp-total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--sp-border); margin-top: 6px; padding-top: 10px; }
.sp-check { cursor: pointer; }
.sp-check input { margin-right: 8px; }

/* souhlasy */
.sp-acks { margin: 16px 0; font-size: 14px; }
.sp-ack { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; color: var(--sp-muted); cursor: pointer; }
.sp-ack input { margin-top: 3px; flex: 0 0 auto; }

/* pole */
.sp-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sp-fields input, .sp-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--sp-border); border-radius: 10px; font: inherit; background: #fff; }
.sp-fields textarea { min-height: 70px; resize: vertical; }

.sp-submit { width: 100%; border: 0; background: var(--sp-accent); color: #FAF6EF; padding: 15px; border-radius: 12px; font-size: 17px; font-weight: 600; cursor: pointer; }
.sp-submit:disabled { opacity: .5; cursor: default; }
.sp-hint { text-align: center; color: var(--sp-muted); font-size: 13px; margin: 8px 0 0; }
.sp-error { color: #B3261E; background: #FBEAE8; border-radius: 10px; padding: 10px 14px; margin-top: 10px; }

/* potvrzení */
.sp-confirm { text-align: center; background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 18px; padding: 40px 24px; max-width: 460px; margin: 0 auto; }
.sp-check-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--sp-free-bg); color: var(--sp-free-fg); font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.sp-confirm h2 { font-family: 'Lora', Georgia, serif; margin: 0 0 8px; }
.sp-confirm .sp-submit { max-width: 240px; margin: 18px auto 0; }

/* dostupnost */
.sp-avail-table { width: 100%; border-collapse: collapse; }
.sp-avail-table th, .sp-avail-table td { padding: 10px 12px; border-bottom: 1px solid var(--sp-border); text-align: left; }
.sp-avail-table th { font-family: 'Lora', Georgia, serif; }

@media (max-width: 760px) {
	.sp-detail { grid-template-columns: 1fr; }
}
