.atb {
	--atb-primary: #5c4a3d;
	--atb-bg: #faf7f2;
	--atb-card: #fffdfa;
	--atb-border: #e4ddd0;
	--atb-tile-border: #e0d8c6;
	--atb-text: #2a221d;
	--atb-muted: #6f6359;
	--atb-accent: #ece5dc;
	--atb-avatar: #bfae9c;
	--atb-radius: 8px;
	--atb-serif: "Cormorant Garamond", Georgia, serif;
	--atb-sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--atb-bg);
	color: var(--atb-text);
	font-family: var(--atb-sans);
	padding: 15px;
	box-sizing: border-box;
}
.atb *, .atb *::before, .atb *::after { box-sizing: border-box; }
.atb button { font-family: inherit; cursor: pointer; }

/* Header */
.atb-head { margin-bottom: 28px; }
.atb-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--atb-muted); margin: 0 0 8px; }
.atb-h2 { font-family: var(--atb-serif); font-weight: 500; font-size: 48px; line-height: 1.1; margin: 0; color: var(--atb-text); }

/* Week strip */
.atb-strip { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.atb-tile {
	width: 80px; height: 73px; background: transparent; border: 1px solid var(--atb-tile-border); border-radius: 2px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--atb-text); padding: 0;
}
.atb-tile small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--atb-muted); }
.atb-tile span { font-family: var(--atb-serif); font-size: 24px; line-height: 1; }
.atb-tile:hover:not(:disabled) { background: var(--atb-accent); }
.atb-tile.is-sel { background: var(--atb-primary); border-color: var(--atb-primary); color: #fff; }
.atb-tile.is-sel small { color: #fff; }
.atb-tile:disabled { opacity: .4; cursor: not-allowed; }

/* Layout */
.atb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Mini calendar */
.atb-cal { border: 1px solid var(--atb-border); background: var(--atb-card); padding: 16px 16px 12px; }
.atb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.atb-cal__nav { background: none; border: 0; font-size: 20px; line-height: 1; padding: 2px 8px; color: var(--atb-text); }
.atb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; text-align: center; }
.atb-cal__dow { font-size: 12px; color: var(--atb-muted); padding-bottom: 8px; }
.atb-cal__day {
	position: relative; width: 32px; height: 32px; margin: 0 auto; border: 0; background: none; border-radius: 3px;
	font-size: 14px; color: var(--atb-text); padding: 0;
}
.atb-cal__day:hover:not(:disabled):not(.is-sel) { background: var(--atb-accent); }
.atb-cal__day:disabled { color: #c9c2b8; cursor: default; }
.atb-cal__day.is-out:disabled { color: #d6d0c7; }
.atb-cal__day.is-sel { background: var(--atb-primary); color: #fff; }
.atb-cal__day.has-class::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--atb-primary); }
.atb-cal__day.is-sel.has-class::after { background: #fff; }

/* Main */
.atb-main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--atb-border); margin-bottom: 16px; flex-wrap: wrap; }
.atb-day-title { font-family: var(--atb-serif); font-weight: 500; font-size: 28px; line-height: 1.1; margin: 0; }
.atb-filters { display: flex; gap: 4px; }
.atb-filter { background: none; border: 0; padding: 8px 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--atb-muted); border-radius: 2px; }
.atb-filter.is-on { background: var(--atb-accent); color: var(--atb-text); font-weight: 600; }

/* Cards */
.atb-list { display: flex; flex-direction: column; gap: 16px; }
.atb-card {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) 176px; gap: 24px; padding: 24px;
	background: var(--atb-card); border: 1px solid var(--atb-border); border-radius: var(--atb-radius);
}
.atb-card__img { width: 96px; height: 96px; border-radius: 4px; overflow: hidden; background: var(--atb-accent); }
.atb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atb-card__kicker { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--atb-muted); margin-bottom: 4px; }
.atb-card__title { font-family: var(--atb-serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0 0 10px; text-transform: lowercase; color: var(--atb-text); }
.atb-card__inst { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.atb-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--atb-avatar); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--atb-text); }
.atb-card__desc { font-size: 14px; line-height: 1.55; color: var(--atb-muted); margin: 0 0 14px; max-width: 450px; }
.atb-card__meta { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--atb-muted); }
.atb-card__meta li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; line-height: 1.2; }
.atb-card__meta li:last-child { margin-bottom: 0; }
.atb-card__side { border-left: 1px solid var(--atb-border); padding-left: 24px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.atb-price { font-family: var(--atb-serif); font-size: 32px; line-height: 1; color: var(--atb-text); white-space: nowrap; }
.atb-btn {
	width: 100%; background: var(--atb-primary); color: #fff; border: 0; border-radius: 3px; padding: 12px 16px;
	font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: opacity .15s;
}
.atb-btn:hover:not(:disabled) { opacity: .88; }
.atb-btn:disabled { opacity: .45; cursor: not-allowed; }
.atb-btn--ghost { background: transparent; color: var(--atb-primary); border: 1px solid var(--atb-primary); box-shadow: none; }

.atb-empty { padding: 48px 16px; text-align: center; color: var(--atb-muted); font-size: 15px; border: 1px dashed var(--atb-border); border-radius: var(--atb-radius); }
.atb-note { margin: 20px 0 0; font-size: 13px; color: var(--atb-muted); font-style: italic; }
.atb-loading { padding: 40px; color: var(--atb-muted); }

/* Modal */
.atb-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(30, 22, 17, .55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.atb-dialog {
	--atb-primary: #5c4a3d; --atb-border: #e4ddd0; --atb-muted: #6f6359; --atb-text: #2a221d;
	font-family: "Karla", system-ui, sans-serif; color: var(--atb-text);
	background: #fffdfa; width: 100%; max-width: 480px; border-radius: 8px; padding: 32px 28px 28px; position: relative; max-height: 94vh; overflow-y: auto;
}
.atb-dialog * { box-sizing: border-box; }
.atb-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--atb-muted); cursor: pointer; }
.atb-dialog h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 30px; margin: 0 0 6px; }
.atb-summary { font-size: 14px; color: var(--atb-muted); margin: 0 0 20px; line-height: 1.5; }
.atb-field { margin-bottom: 14px; }
.atb-field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--atb-muted); margin-bottom: 6px; }
.atb-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--atb-border); border-radius: 3px; background: #fff; font: inherit; font-size: 15px; color: var(--atb-text); }
.atb-field input:focus { outline: 2px solid var(--atb-primary); outline-offset: 0; }
.atb-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--atb-border); padding-top: 14px; margin: 18px 0 16px; font-size: 14px; color: var(--atb-muted); }
.atb-total strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 500; color: var(--atb-text); }
.atb-err { background: #fbeeea; color: #8a2f1b; padding: 10px 12px; border-radius: 3px; font-size: 14px; margin-bottom: 14px; }
.atb-pay-mount { min-height: 120px; }
.atb-center { text-align: center; padding: 12px 0; }
.atb-check { width: 56px; height: 56px; border-radius: 50%; background: var(--atb-primary); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.atb-spin { width: 30px; height: 30px; border: 3px solid var(--atb-border); border-top-color: var(--atb-primary); border-radius: 50%; margin: 0 auto 14px; animation: atbspin .8s linear infinite; }
@keyframes atbspin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 900px) {
	.atb-layout { grid-template-columns: 1fr; }
	.atb-cal { max-width: 320px; }
}
@media (max-width: 640px) {
	.atb-h2 { font-size: 36px; }
	.atb-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
	.atb-tile { flex: 0 0 64px; width: 64px; }
	.atb-card { grid-template-columns: 80px minmax(0, 1fr); padding: 18px; gap: 16px; }
	.atb-card__img { width: 80px; height: 80px; }
	.atb-card__side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--atb-border); padding: 16px 0 0; flex-direction: row; align-items: center; gap: 16px; }
	.atb-card__side .atb-btn { width: auto; min-width: 130px; }
	.atb-filters { flex-wrap: wrap; }
}

/* Google sign-in inside the booking / membership modals */
.atb-google { margin-bottom: 14px; }
.atb-google__btn { display: flex; justify-content: center; min-height: 44px; }
.atb-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--atb-muted, #6f6359); }
.atb-or::before, .atb-or::after { content: ""; flex: 1; height: 1px; background: var(--atb-border, #e4ddd0); }
