/*
 * Casa Sans Soucis Booking - public stylesheet.
 * Warm light palette. Self-contained, no external dependencies.
 * All selectors namespaced under .csb-app to avoid theme conflicts.
 */

.csb-app {
	--csb-bg: #f7f3ec;
	--csb-surface: #fbf8f2;
	--csb-surface-2: #f0e9db;
	--csb-border: #ebe3d4;
	--csb-border-2: #e3d9c5;
	--csb-text: #2a2522;
	--csb-text-muted: #6b6359;
	--csb-text-dim: #b8ad9d;
	--csb-accent: #a8864a;
	--csb-accent-hover: #8c6f3c;
	--csb-accent-soft: rgba(168, 134, 74, 0.15);
	--csb-blocked: #4a3f33;
	--csb-blocked-text: #ffffff;
	--csb-valid: #6b8c5e;
	--csb-invalid: #b87d6b;
	--csb-radius: 6px;
	--csb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--csb-font-serif: 'Cormorant Garamond', Georgia, serif;

	background: var(--csb-bg);
	color: var(--csb-text);
	font-family: var(--csb-font-sans);
	border: 1px solid var(--csb-border);
	border-radius: 12px;
	overflow: hidden;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}
.csb-app *, .csb-app *::before, .csb-app *::after { box-sizing: border-box; }

.csb-noscript { padding: 32px; text-align: center; color: var(--csb-text-muted); font-size: 14px; }
.csb-loading { padding: 80px 32px; text-align: center; }
.csb-loading span { display: inline-block; width: 32px; height: 32px; border: 2px solid var(--csb-border-2); border-top-color: var(--csb-accent); border-radius: 50%; animation: csb-spin 800ms linear infinite; }
@keyframes csb-spin { to { transform: rotate(360deg); } }

/* Hero */
.csb-hero { padding: 48px 48px 32px; border-bottom: 1px solid var(--csb-border); background: var(--csb-surface); position: relative; }

/* Language switcher in hero */
.csb-lang-switch { position: absolute; top: 24px; right: 32px; display: flex; gap: 8px; align-items: center; }
.csb-lang-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 32px; height: 22px; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; transition: all 200ms ease; overflow: hidden; }
.csb-lang-btn:hover { transform: translateY(-1px); border-color: var(--csb-border-2); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.csb-lang-btn.is-active { border-color: var(--csb-accent); box-shadow: 0 0 0 2px var(--csb-accent-soft); }
.csb-lang-flag { display: block; width: 100%; height: 100%; line-height: 0; }
.csb-lang-flag svg { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) {
	.csb-lang-switch { position: static; justify-content: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
}
.csb-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--csb-accent); margin: 0 0 16px; font-weight: 500; }
.csb-title { font-family: var(--csb-font-serif); font-size: 38px; font-weight: 400; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; color: var(--csb-text); }
.csb-subtitle { font-size: 14px; color: var(--csb-text-muted); margin: 0; max-width: 520px; line-height: 1.6; }

/* Layout */
.csb-layout { display: grid; grid-template-columns: 1fr 320px; min-height: 540px; }
.csb-main { padding: 40px 48px; min-width: 0; background: var(--csb-surface); }
.csb-side { background: var(--csb-surface-2); border-left: 1px solid var(--csb-border); padding: 40px 32px; }

/* Stepper */
.csb-stepper { display: flex; gap: 0; margin-bottom: 36px; border-bottom: 1px solid var(--csb-border); }
.csb-step { padding: 0 0 16px; margin-right: 32px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--csb-text-dim); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 200ms ease, border-color 200ms ease; font-weight: 500; }
.csb-step.is-active { color: var(--csb-text); border-bottom-color: var(--csb-accent); }
.csb-step.is-done { color: var(--csb-text-muted); }
.csb-step-num { color: var(--csb-accent); margin-right: 8px; }

/* Calendar */
.csb-cal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.csb-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.csb-cal-month { font-family: var(--csb-font-serif); font-size: 22px; font-weight: 400; color: var(--csb-text); }
.csb-cal-nav { display: flex; gap: 4px; }
.csb-cal-btn { width: 32px; height: 32px; background: transparent; border: 1px solid #d9cfbb; color: var(--csb-text-muted); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 200ms ease; font-size: 14px; padding: 0; }
.csb-cal-btn:hover:not(:disabled) { border-color: var(--csb-accent); color: var(--csb-accent); background: var(--csb-bg); }
.csb-cal-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.csb-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.csb-wd { text-align: center; font-size: 10px; letter-spacing: 0.1em; color: var(--csb-text-dim); padding: 8px 0; text-transform: uppercase; }
.csb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.csb-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; border-radius: 50%; position: relative; transition: all 150ms ease; color: var(--csb-text); user-select: none; }
.csb-day:hover:not(.is-disabled):not(.is-empty):not(.is-blocked) { background: var(--csb-surface-2); }
.csb-day.is-empty { cursor: default; }
.csb-day.is-disabled { color: #c9c0b1; text-decoration: line-through; cursor: not-allowed; }
.csb-day.is-blocked { background: var(--csb-blocked); color: var(--csb-blocked-text); cursor: not-allowed; text-decoration: line-through; }
.csb-day.is-in-range { background: var(--csb-accent-soft); border-radius: 0; }
.csb-day.is-checkin, .csb-day.is-checkout { background: var(--csb-accent); color: var(--csb-surface); font-weight: 500; }
.csb-day.is-checkin { border-radius: 50% 0 0 50%; }
.csb-day.is-checkout { border-radius: 0 50% 50% 0; }
.csb-day.is-checkin.is-checkout { border-radius: 50%; }
.csb-day-price { position: absolute; bottom: 2px; font-size: 8px; color: var(--csb-text-dim); pointer-events: none; }
.csb-day:hover .csb-day-price { color: var(--csb-accent); }
.csb-day.is-in-range .csb-day-price,
.csb-day.is-checkin .csb-day-price,
.csb-day.is-checkout .csb-day-price,
.csb-day.is-blocked .csb-day-price,
.csb-day.is-disabled .csb-day-price { display: none; }

.csb-legend { display: flex; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--csb-border); font-size: 11px; color: var(--csb-text-muted); flex-wrap: wrap; }
.csb-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.csb-guests { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--csb-bg); border: 1px solid var(--csb-border-2); border-radius: 4px; margin-top: 16px; }
.csb-guests-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--csb-text-muted); }
.csb-guests-controls { display: flex; align-items: center; gap: 16px; }
.csb-guest-btn { width: 28px; height: 28px; border-radius: 50%; background: transparent; border: 1px solid #d9cfbb; color: var(--csb-text); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 150ms ease; padding: 0; }
.csb-guest-btn:hover:not(:disabled) { border-color: var(--csb-accent); color: var(--csb-accent); }
.csb-guest-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.csb-guest-count { font-size: 16px; min-width: 20px; text-align: center; font-weight: 500; }

/* Side panel */
.csb-side-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-accent); margin: 0 0 24px; font-weight: 500; }
.csb-summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--csb-border-2); font-size: 13px; gap: 12px; }
.csb-summary-row.csb-mini { padding: 8px 0; font-size: 12px; }
.csb-summary-row:last-child { border-bottom: none; }
.csb-summary-label { color: var(--csb-text-muted); flex: 1; min-width: 0; }
.csb-summary-value { color: var(--csb-text); font-weight: 500; white-space: nowrap; }
.csb-summary-value.is-empty { color: var(--csb-text-dim); font-style: italic; font-weight: 400; }
.csb-summary-divider { margin: 16px -32px; height: 1px; background: var(--csb-border-2); }
.csb-extras-list-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-text-dim); margin: 14px 0 4px; font-weight: 500; }
.csb-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 24px; }
.csb-total-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-text-muted); }
.csb-total-value { font-family: var(--csb-font-serif); font-size: 32px; font-weight: 400; color: var(--csb-accent); transition: transform 200ms ease; }
.csb-total-value.is-flash { animation: csb-flash 400ms ease-out; }
@keyframes csb-flash { 0% { transform: translateY(-2px); opacity: 0.8; } 100% { transform: translateY(0); opacity: 1; } }

.csb-cta { width: 100%; padding: 16px 24px; background: var(--csb-accent); color: var(--csb-surface); border: none; border-radius: 4px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 200ms ease; font-family: inherit; }
.csb-cta:hover:not(:disabled) { background: var(--csb-accent-hover); }
.csb-cta:disabled { background: #d9cfbb; color: var(--csb-surface); cursor: not-allowed; }

.csb-pay-note { font-size: 11px; color: var(--csb-text-muted); line-height: 1.5; padding: 10px 0 18px; }

/* Section titles */
.csb-section-title { font-family: var(--csb-font-serif); font-size: 22px; font-weight: 400; color: var(--csb-text); margin: 0 0 6px; }
.csb-section-sub { font-size: 13px; color: var(--csb-text-muted); margin: 0 0 28px; }

/* Extras step */
.csb-extras-group { margin-bottom: 32px; }
.csb-group-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-accent); margin: 0 0 14px; font-weight: 500; }
.csb-extra { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; background: var(--csb-surface); border: 1px solid var(--csb-border); border-radius: var(--csb-radius); margin-bottom: 8px; transition: border-color 200ms ease, background 200ms ease; cursor: pointer; }
.csb-extra:hover { border-color: #d9cfbb; }
.csb-extra.is-selected { border-color: var(--csb-accent); background: #f7f1e3; }
.csb-extra.is-mandatory { cursor: default; background: var(--csb-surface-2); border-style: dashed; }
.csb-extra-text { flex: 1; padding-right: 16px; min-width: 0; }
.csb-extra-name { font-size: 14px; font-weight: 500; color: var(--csb-text); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.csb-extra-badge { display: inline-block; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; background: var(--csb-border-2); color: var(--csb-text-muted); border-radius: 2px; font-weight: 500; }
.csb-extra-desc { font-size: 12px; color: var(--csb-text-muted); margin: 0; line-height: 1.5; }
.csb-extra-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.csb-extra-price { font-size: 14px; font-weight: 500; color: var(--csb-text); white-space: nowrap; }
.csb-extra-calc { font-size: 11px; color: var(--csb-text-dim); white-space: nowrap; }
.csb-toggle { position: relative; width: 40px; height: 22px; background: #d9cfbb; border-radius: 12px; transition: background 200ms ease; flex-shrink: 0; }
.csb-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--csb-surface); border-radius: 50%; transition: transform 200ms ease; }
.csb-extra.is-selected .csb-toggle { background: var(--csb-accent); }
.csb-extra.is-selected .csb-toggle::after { transform: translateX(18px); }

/* Form fields */
.csb-group { margin-bottom: 28px; }
.csb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.csb-row-3 { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: 16px; margin-bottom: 14px; }
.csb-field { display: flex; flex-direction: column; }
.csb-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--csb-text-muted); margin: 0 0 6px; font-weight: 500; }
.csb-required { color: var(--csb-accent); margin-left: 4px; }
.csb-input, .csb-select, .csb-textarea { width: 100%; padding: 12px 14px; background: var(--csb-surface); border: 1px solid #d9cfbb; border-radius: 4px; font-family: inherit; font-size: 14px; line-height: 1.4; color: var(--csb-text); transition: border-color 200ms ease, background 200ms ease; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.csb-select { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%236b6359%22%20d%3D%22M6%208L1%203h10z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px; padding-right: 28px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; height: 46px; }
.csb-input:hover, .csb-select:hover, .csb-textarea:hover { border-color: #c4b89e; }
.csb-input:focus, .csb-select:focus, .csb-textarea:focus { outline: none; border-color: var(--csb-accent); background: #fff; }
.csb-input.is-valid { border-color: var(--csb-valid); }
.csb-input.is-invalid { border-color: var(--csb-invalid); }
.csb-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.csb-error { font-size: 11px; color: var(--csb-invalid); margin: 6px 0 0; display: none; }
.csb-field.is-invalid .csb-error { display: block; }
.csb-hint { font-size: 11px; color: var(--csb-text-dim); margin: 6px 0 0; }

.csb-checkbox-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--csb-bg); border: 1px solid var(--csb-border); border-radius: 4px; cursor: pointer; transition: border-color 200ms ease; }
.csb-checkbox-row:hover { border-color: #d9cfbb; }
.csb-checkbox-row.is-checked { border-color: var(--csb-accent); background: #f7f1e3; }
.csb-checkbox { width: 18px; height: 18px; border: 1px solid #d9cfbb; border-radius: 3px; background: #fff; flex-shrink: 0; margin-top: 2px; position: relative; transition: all 200ms ease; }
.csb-checkbox-row.is-checked .csb-checkbox { background: var(--csb-accent); border-color: var(--csb-accent); }
.csb-checkbox-row.is-checked .csb-checkbox::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--csb-surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.csb-checkbox-text { font-size: 13px; color: var(--csb-text); line-height: 1.5; }
.csb-checkbox-text .csb-checkbox-sub { display: block; font-size: 12px; color: var(--csb-text-muted); margin-top: 2px; }

/* Nav */
.csb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--csb-border); }
.csb-back { background: transparent; border: none; color: var(--csb-text-muted); font-size: 13px; cursor: pointer; font-family: inherit; padding: 8px 0; transition: color 200ms ease; }
.csb-back:hover { color: var(--csb-accent); }

/* Confirmation */
.csb-confirm { padding: 64px 48px; text-align: center; background: var(--csb-surface); border-bottom: 1px solid var(--csb-border); }
.csb-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--csb-accent); margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; color: var(--csb-surface); font-size: 24px; }
.csb-lede { font-size: 15px; color: var(--csb-text-muted); margin: 0 auto 32px; max-width: 480px; line-height: 1.65; }
.csb-ref { display: inline-flex; flex-direction: column; align-items: center; padding: 18px 36px; background: var(--csb-surface-2); border: 1px solid var(--csb-border-2); border-radius: var(--csb-radius); }
.csb-ref-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-text-muted); margin: 0 0 6px; font-weight: 500; }
.csb-ref-num { font-family: var(--csb-font-serif); font-size: 26px; font-weight: 400; color: var(--csb-text); letter-spacing: 0.05em; }

.csb-recap { display: grid; grid-template-columns: 1fr 1fr; background: var(--csb-surface); border: 1px solid var(--csb-border); border-radius: var(--csb-radius); overflow: hidden; }
.csb-recap-cell { padding: 20px 24px; border-right: 1px solid var(--csb-border); border-bottom: 1px solid var(--csb-border); }
.csb-recap-cell:nth-child(2n) { border-right: none; }
.csb-recap-cell:nth-last-child(-n+2) { border-bottom: none; }
.csb-recap-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-text-muted); margin: 0 0 6px; font-weight: 500; }
.csb-recap-value { font-size: 15px; color: var(--csb-text); font-weight: 500; }
.csb-recap-value-lg { font-family: var(--csb-font-serif); font-size: 22px; color: var(--csb-accent); font-weight: 400; }

.csb-body { padding: 48px; }
.csb-section { margin-bottom: 40px; }
.csb-section:last-child { margin-bottom: 0; }
.csb-section-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--csb-accent); margin: 0 0 16px; font-weight: 500; }

.csb-steps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.csb-step-card { background: var(--csb-surface); border: 1px solid var(--csb-border); border-radius: var(--csb-radius); padding: 24px; }
.csb-step-card-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #d9cfbb; border-radius: 50%; font-size: 12px; color: var(--csb-accent); font-weight: 500; margin-bottom: 14px; font-family: var(--csb-font-serif); }
.csb-step-card-title { font-size: 14px; font-weight: 500; color: var(--csb-text); margin: 0 0 6px; }
.csb-step-card-desc { font-size: 12px; color: var(--csb-text-muted); margin: 0; line-height: 1.55; }

.csb-error-banner { padding: 12px 16px; background: #faf0ed; border: 1px solid #e7c7be; color: #823a2a; border-radius: 4px; font-size: 13px; margin-bottom: 20px; }

@media (max-width: 720px) {
	.csb-layout { grid-template-columns: 1fr; }
	.csb-side { border-left: none; border-top: 1px solid var(--csb-border); }
	.csb-cal-row { grid-template-columns: 1fr; }
	.csb-row, .csb-row-3 { grid-template-columns: 1fr; }
	.csb-recap { grid-template-columns: 1fr; }
	.csb-recap-cell { border-right: none; }
	.csb-recap-cell:nth-last-child(2) { border-bottom: 1px solid var(--csb-border); }
	.csb-steps-cards { grid-template-columns: 1fr; }
	.csb-hero, .csb-main, .csb-side, .csb-confirm, .csb-body { padding-left: 24px; padding-right: 24px; }
	.csb-confirm { padding-top: 48px; padding-bottom: 48px; }
	.csb-title { font-size: 32px; }
}
