/* ============================================
   Zahrada Booking — Chytrý průvodce v3
   Monochromatická paleta + jedna akcentová zelená.
   Font: Geist s fallbackem.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

/* Scoping tokens na .zb-wizard-root aby se nepřelily na web */
.zb-wizard-root {
	--zb-bg:            #f6f6f7;
	--zb-card:          #ffffff;
	--zb-border:        #e8e8ea;
	--zb-border-strong: #d4d4d8;
	--zb-text:          #0a0a0a;
	--zb-text-muted:    #6b7280;
	--zb-text-subtle:   #9ca3af;
	--zb-accent:        hsl(120, 28%, 32%);
	--zb-accent-soft:   hsl(120, 25%, 94%);
	--zb-accent-strong: hsl(120, 32%, 26%);
	--zb-primary:       #0a0a0a;
	--zb-primary-hover: #1f1f1f;
	--zb-hover-bg:      #f4f4f5;
	--zb-active-bg:     #eeeeef;
	--zb-danger:        #b91c1c;
	--zb-danger-soft:   #fee2e2;
	--zb-warning:       #b45309;
	--zb-warning-soft:  #fef3c7;
	--zb-shadow-sm:     0 1px 2px rgba(0,0,0,0.04);
	--zb-shadow-md:     0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
	--zb-shadow-lg:     0 1px 3px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.06);
	--zb-ease:          cubic-bezier(0.16, 1, 0.3, 1);

	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--zb-text);
	letter-spacing: -0.01em;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.zb-wizard-root *,
.zb-wizard-root *::before,
.zb-wizard-root *::after { box-sizing: border-box; }

/* Boot screen */
.zb-boot {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	padding: 48px; color: var(--zb-text-muted); font-size: 14px;
}
.zb-boot-spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--zb-border); border-top-color: var(--zb-accent);
	animation: zb-spin 0.9s linear infinite;
}
@keyframes zb-spin { to { transform: rotate(360deg); } }
.zb-noscript, .zb-error {
	background: var(--zb-warning-soft); color: var(--zb-warning);
	border: 1px solid var(--zb-border); border-radius: 12px;
	padding: 16px 20px; font-size: 14px; margin: 16px auto; max-width: 640px;
}

/* Widget */
.zb-wizard {
	width: 100%;
	max-width: 980px;
	margin: 24px auto;
	background: var(--zb-card);
	border: 1px solid var(--zb-border);
	border-radius: 16px;
	box-shadow: var(--zb-shadow-lg);
	overflow: hidden;
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 640px;
}
@media (max-width: 768px) { .zb-wizard { grid-template-columns: 1fr; margin: 12px; } }

/* Sidebar */
.zb-sidebar {
	background: #fafafa;
	border-right: 1px solid var(--zb-border);
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.zb-sidebar-header {
	display: flex; align-items: center; gap: 10px;
	padding: 0 12px 20px;
	border-bottom: 1px solid var(--zb-border);
	margin-bottom: 16px;
}
.zb-sidebar-logo {
	width: 32px; height: 32px;
	background: var(--zb-text); color: #fff;
	border-radius: 8px;
	display: grid; place-items: center;
}
.zb-sidebar-logo .zb-icon { width: 18px; height: 18px; }
.zb-sidebar-title { font-size: 13px; font-weight: 600; }
.zb-sidebar-subtitle { font-size: 11px; color: var(--zb-text-muted); }

.zb-sidebar-label {
	font-size: 10px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--zb-text-subtle);
	padding: 8px 12px 4px;
}
.zb-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.zb-step-nav {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	color: var(--zb-text-muted);
	cursor: not-allowed;
	text-align: left;
	width: 100%;
	position: relative;
	transition: background 0.15s, color 0.15s;
}
.zb-step-nav.zb-nav-clickable { cursor: pointer; color: var(--zb-text); }
.zb-step-nav.zb-nav-clickable:hover { background: var(--zb-hover-bg); }
.zb-step-nav.zb-nav-active { background: var(--zb-active-bg); color: var(--zb-text); font-weight: 600; }
.zb-step-nav.zb-nav-active::before {
	content: "";
	position: absolute; left: 0; top: 8px; bottom: 8px;
	width: 3px; background: var(--zb-accent); border-radius: 2px;
}
.zb-nav-dot {
	flex: none;
	width: 8px; height: 8px; border-radius: 50%;
	background: #d4d4d8;
}
.zb-step-nav.zb-nav-done .zb-nav-dot { background: var(--zb-accent); }
.zb-step-nav.zb-nav-active .zb-nav-dot { background: var(--zb-text); }
.zb-nav-label { flex: 1; }

.zb-sidebar-footer {
	margin-top: auto;
	padding: 16px 12px 0;
	border-top: 1px solid var(--zb-border);
	font-size: 11px; color: var(--zb-text-muted);
	display: flex; align-items: center; gap: 8px;
}
.zb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--zb-accent); display: inline-block; }

/* Content area */
.zb-content {
	padding: 36px 40px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
@media (max-width: 768px) { .zb-content { padding: 24px; } }

.zb-step { animation: zb-fadeIn 0.35s var(--zb-ease); display: flex; flex-direction: column; flex: 1; }
@keyframes zb-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.zb-step-header { margin-bottom: 24px; }
.zb-eyebrow {
	display: flex; align-items: center; gap: 8px;
	font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--zb-text-muted);
	margin-bottom: 8px;
}
.zb-pill {
	font-size: 10px; font-weight: 600;
	padding: 2px 8px; border-radius: 999px;
	background: var(--zb-hover-bg); color: var(--zb-text);
	text-transform: none; letter-spacing: 0;
}
.zb-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.zb-body { font-size: 13px; color: var(--zb-text-muted); max-width: 560px; }

.zb-step-body { flex: 1; }

/* Welcome */
.zb-welcome {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 24px 0 32px;
}
.zb-welcome-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border-radius: 999px;
	background: var(--zb-accent-soft); color: var(--zb-accent-strong);
	font-size: 12px; font-weight: 600;
	margin-bottom: 16px;
}
.zb-welcome-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.zb-welcome-desc { font-size: 14px; color: var(--zb-text-muted); max-width: 420px; margin-bottom: 24px; }
.zb-welcome-bullets {
	display: flex; flex-direction: column; gap: 10px;
	width: 100%; max-width: 380px; margin: 0 auto 8px;
}
.zb-welcome-bullet {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px;
	background: #fafafa;
	border: 1px solid var(--zb-border);
	border-radius: 10px;
	font-size: 13px;
	text-align: left;
}
.zb-welcome-bullet .zb-icon {
	width: 18px; height: 18px; color: var(--zb-accent);
	flex: none;
}

/* Option grid */
.zb-option-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.zb-option-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .zb-option-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Option card */
.zb-option-card {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 16px;
	border: 1.5px solid var(--zb-border);
	border-radius: 12px;
	background: var(--zb-card);
	cursor: pointer;
	transition: all 0.15s var(--zb-ease);
	text-align: left;
	width: 100%;
	font-family: inherit;
	color: var(--zb-text);
	position: relative;
}
.zb-option-card:hover { border-color: var(--zb-border-strong); background: #fafafa; }
.zb-option-card.zb-selected {
	border-color: var(--zb-text);
	background: #fafafa;
	box-shadow: 0 0 0 2px rgba(10,10,10,0.04);
}
.zb-option-icon {
	width: 40px; height: 40px; border-radius: 10px;
	background: var(--zb-accent-soft); color: var(--zb-accent);
	display: grid; place-items: center; flex: none;
}
.zb-option-icon .zb-icon { width: 20px; height: 20px; }
.zb-option-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.zb-option-meta { font-size: 12px; color: var(--zb-text-muted); }
.zb-muted { color: var(--zb-text-subtle); }

/* Service card layout */
.zb-service-card { justify-content: space-between; }
.zb-service-head { flex: 1; min-width: 0; }
.zb-service-price {
	flex: none;
	font-size: 14px; font-weight: 600;
	padding: 6px 10px; border-radius: 8px;
	background: var(--zb-hover-bg);
	white-space: nowrap;
}
.zb-option-card.zb-selected .zb-service-price {
	background: var(--zb-accent); color: #fff;
}
.zb-check {
	position: absolute; top: 10px; right: 10px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--zb-accent); color: #fff;
	display: grid; place-items: center;
	opacity: 0; transform: scale(0.6);
	transition: all 0.15s var(--zb-ease);
	pointer-events: none;
}
.zb-option-card.zb-selected .zb-check { opacity: 1; transform: scale(1); }
.zb-check .zb-icon { width: 12px; height: 12px; }

/* Chips (wishes) */
.zb-chips {
	display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.zb-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border-radius: 999px;
	border: 1.5px solid var(--zb-border);
	background: var(--zb-card);
	font-family: inherit;
	font-size: 13px; color: var(--zb-text);
	cursor: pointer;
	transition: all 0.15s var(--zb-ease);
}
.zb-chip:hover { border-color: var(--zb-border-strong); background: #fafafa; }
.zb-chip-check { width: 14px; height: 14px; opacity: 0; transition: opacity 0.15s; color: var(--zb-accent); }
.zb-chip.zb-chip-active { border-color: var(--zb-accent); background: var(--zb-accent-soft); color: var(--zb-accent-strong); }
.zb-chip.zb-chip-active .zb-chip-check { opacity: 1; }

/* Inputs */
.zb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.zb-field-label { font-size: 12px; font-weight: 600; color: var(--zb-text); }
.zb-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .zb-row { grid-template-columns: 1fr; } }
.zb-input, .zb-select, .zb-textarea {
	font-family: inherit; font-size: 14px;
	padding: 10px 12px;
	border: 1.5px solid var(--zb-border);
	border-radius: 10px;
	background: var(--zb-card);
	color: var(--zb-text);
	width: 100%;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.zb-textarea { resize: vertical; min-height: 72px; }
.zb-input:focus, .zb-select:focus, .zb-textarea:focus {
	outline: none;
	border-color: var(--zb-text);
	box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.zb-hint { font-size: 12px; color: var(--zb-text-muted); }
.zb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Autocomplete */
.zb-autocomplete { position: relative; }
.zb-autocomplete-list {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px);
	background: var(--zb-card);
	border: 1px solid var(--zb-border);
	border-radius: 10px;
	box-shadow: var(--zb-shadow-md);
	z-index: 10;
	max-height: 280px; overflow: auto;
	padding: 4px;
}
.zb-autocomplete-item {
	display: flex; align-items: center; gap: 10px;
	width: 100%; text-align: left;
	padding: 10px 12px; border-radius: 8px;
	border: none; background: transparent;
	font-family: inherit; font-size: 13px;
	color: var(--zb-text);
	cursor: pointer;
}
.zb-autocomplete-item:hover { background: var(--zb-hover-bg); }
.zb-autocomplete-item .zb-icon { width: 16px; height: 16px; color: var(--zb-text-muted); flex: none; }

/* Distance info */
.zb-distance {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; border-radius: 10px;
	font-size: 13px;
	margin-top: 8px;
}
.zb-distance .zb-icon { width: 16px; height: 16px; flex: none; }
.zb-distance-ok { background: var(--zb-accent-soft); color: var(--zb-accent-strong); }
.zb-distance-bad { background: var(--zb-warning-soft); color: var(--zb-warning); border: 1px solid rgba(180,83,9,0.2); }

/* Dropzone for photos */
.zb-dropzone {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 28px 20px;
	border: 2px dashed var(--zb-border-strong);
	border-radius: 14px;
	background: #fafafa;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.zb-dropzone:hover { background: var(--zb-hover-bg); border-color: var(--zb-text-muted); }
.zb-dropzone-icon { width: 28px; height: 28px; color: var(--zb-text-muted); }
.zb-dropzone-title { font-size: 14px; font-weight: 600; }
.zb-dropzone-hint { font-size: 12px; color: var(--zb-text-muted); }

.zb-thumbs {
	display: grid; gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	margin-top: 14px;
}
.zb-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--zb-hover-bg);
	border: 1px solid var(--zb-border);
}
.zb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zb-thumb-remove {
	position: absolute; top: 6px; right: 6px;
	width: 24px; height: 24px; border-radius: 50%;
	background: rgba(0,0,0,0.6); color: #fff;
	border: none; cursor: pointer;
	display: grid; place-items: center;
}
.zb-thumb-remove .zb-icon { width: 14px; height: 14px; }

/* Price card */
.zb-price-card {
	background: #fafafa;
	border: 1px solid var(--zb-border);
	border-radius: 14px;
	padding: 20px;
}
.zb-price-list { display: flex; flex-direction: column; gap: 8px; }
.zb-price-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px dashed var(--zb-border);
}
.zb-price-row:last-child { border-bottom: none; }
.zb-price-total {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-top: 12px; padding-top: 12px;
	border-top: 2px solid var(--zb-text);
	font-size: 16px; font-weight: 600;
}
.zb-price-total strong { font-size: 22px; letter-spacing: -0.02em; }

/* Notes / info boxes */
.zb-note {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px;
	background: var(--zb-accent-soft); color: var(--zb-accent-strong);
	border-radius: 10px;
	font-size: 12px;
	margin-bottom: 12px;
}
.zb-note .zb-icon { width: 14px; height: 14px; }

/* Confirm */
.zb-confirm {
	background: #fafafa;
	border: 1px solid var(--zb-border);
	border-radius: 14px;
	padding: 20px;
}
.zb-confirm-head {
	display: flex; align-items: center; gap: 10px;
	font-size: 14px; font-weight: 600;
	margin-bottom: 14px;
}
.zb-confirm-head .zb-icon { width: 18px; height: 18px; color: var(--zb-accent); }
.zb-confirm-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 0;
	font-size: 14px;
	border-top: 1px solid var(--zb-border);
}
.zb-confirm-row:first-of-type { border-top: none; }
.zb-label { color: var(--zb-text-muted); font-size: 12px; }
.zb-token-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	background: var(--zb-card); border: 1px solid var(--zb-border);
	padding: 3px 8px; border-radius: 6px;
}

/* Footer (buttons) */
.zb-footer {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: 24px; margin-top: 24px;
	border-top: 1px solid var(--zb-border);
	gap: 12px;
}
.zb-footer-info { font-size: 11px; color: var(--zb-text-subtle); }
.zb-footer-actions { display: flex; gap: 8px; }

/* Buttons */
.zb-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	font-family: inherit; font-size: 13px; font-weight: 600;
	cursor: pointer;
	transition: all 0.15s var(--zb-ease);
	text-decoration: none;
}
.zb-btn .zb-icon { width: 14px; height: 14px; }
.zb-btn-primary { background: var(--zb-primary); color: #fff; border-color: var(--zb-primary); }
.zb-btn-primary:hover { background: var(--zb-primary-hover); }
.zb-btn-secondary { background: var(--zb-card); color: var(--zb-text); border-color: var(--zb-border); }
.zb-btn-secondary:hover { background: var(--zb-hover-bg); border-color: var(--zb-border-strong); }
.zb-btn-outline {
	background: var(--zb-card); color: var(--zb-text);
	border-color: var(--zb-border-strong);
	align-self: flex-start;
	margin-top: 8px;
}
.zb-btn-outline:hover { background: var(--zb-hover-bg); }

/* Flash error */
.zb-flash {
	position: fixed;
	left: 50%; transform: translateX(-50%);
	bottom: 24px;
	background: var(--zb-danger); color: #fff;
	padding: 10px 16px; border-radius: 10px;
	font-size: 13px; font-weight: 500;
	box-shadow: var(--zb-shadow-md);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s var(--zb-ease);
}
.zb-flash.zb-flash-visible { opacity: 1; }

/* Status text */
.zb-photo-status, .zb-slots-status, .zb-submit-status {
	font-size: 12px; color: var(--zb-text-muted); margin-top: 8px;
}
