/* ------------------------------------------------------------------
   Event booking page — "Dalia" look: warm cream, rose gradient,
   soft floating cards, Cairo font, pill buttons. RTL-first.
   Override any --aeb-* variable from the theme to re-colour it.
------------------------------------------------------------------- */
.aeb-booking,
.aeb-events {
	--aeb-font: 'Cairo', system-ui, sans-serif;
	--aeb-card: rgba(255, 255, 255, .86);
	--aeb-cream: #faf4ef;
	--aeb-text: #3a2e2a;
	--aeb-muted: #6b5a55;
	--aeb-faint: #b9aaa5;
	--aeb-line: rgba(176, 122, 118, .16);
	--aeb-rose: #b07a76;
	--aeb-rose-2: #d9a8a3;
	--aeb-rose-soft: rgba(217, 168, 163, .2);
	--aeb-gradient: linear-gradient(135deg, #b07a76, #d9a8a3);
	--aeb-glow: 0 16px 40px -12px rgba(176, 122, 118, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
	--aeb-shadow: 0 30px 70px -35px rgba(120, 72, 66, .35), 0 2px 10px rgba(176, 122, 118, .06);
	--aeb-radius: 28px;
	font-family: var(--aeb-font);
}

.aeb-booking {
	display: grid;
	grid-template-columns: minmax(270px, 370px) minmax(0, 1fr);
	margin: 0 auto 3rem;
	max-width: 1080px;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: var(--aeb-radius);
	background: var(--aeb-card);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: var(--aeb-shadow);
	color: var(--aeb-text);
	overflow: hidden;
	text-align: start;
}
.aeb-booking button,
.aeb-booking input { font-family: var(--aeb-font); }

/* Some themes print their own page title above content; the event layout has its own. */
body.single-aeb_event .phead { display: none; }

/* ---------- Details panel ---------- */
.aeb-info {
	position: relative;
	padding: 2.25rem 2rem;
	border-inline-end: 1px solid var(--aeb-line);
	background:
		radial-gradient(420px 260px at 85% -10%, rgba(244, 220, 212, .75), transparent 70%),
		linear-gradient(180deg, rgba(250, 244, 239, .9), rgba(250, 244, 239, .55));
}
.aeb-info__avatar {
	width: 84px;
	height: 84px;
	margin-bottom: 1.1rem;
	padding: 4px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 8px rgba(217, 168, 163, .18), 0 14px 30px -14px rgba(176, 122, 118, .6);
}
.aeb-info__avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.aeb-info__host {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-bottom: .75rem;
	padding: .3rem .85rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px -6px rgba(176, 122, 118, .35);
	color: var(--aeb-muted);
	font-size: .8rem;
	font-weight: 600;
}
.aeb-info__host::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--aeb-rose); }
.aeb-booking .aeb-info__title {
	margin: 0 0 1.4rem;
	font-family: var(--aeb-font);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 300;
	line-height: 1.35;
	color: var(--aeb-text);
	letter-spacing: 0;
}
.aeb-info__meta { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.aeb-info__meta li { display: flex; align-items: center; gap: .7rem; margin: 0; font-weight: 600; font-size: .95rem; color: var(--aeb-text); }
.aeb-info__meta .aeb-icon {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 11px;
	background: #fff;
	color: var(--aeb-rose);
	box-shadow: 0 6px 16px -8px rgba(176, 122, 118, .45);
}
.aeb-info__meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--aeb-rose-2); text-underline-offset: 4px; }
.aeb-info__meta .woocommerce-Price-amount { color: var(--aeb-rose); font-weight: 700; }
.aeb-info__desc { padding-top: 1.25rem; border-top: 1px dashed var(--aeb-line); font-size: .95rem; line-height: 1.9; color: var(--aeb-muted); overflow-wrap: anywhere; }
.aeb-booking .aeb-info__desc p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 1em; }
.aeb-info__desc a { color: var(--aeb-rose); }

/* ---------- Picker panel ---------- */
.aeb-picker { padding: 2.25rem 2rem; min-width: 0; }
.aeb-booking .aeb-picker__title {
	margin: 0 0 1.75rem;
	font-family: var(--aeb-font);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--aeb-text);
}
.aeb-picker__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.aeb-picker__body.has-times { grid-template-columns: minmax(0, 1fr) 240px; }

/* Calendar */
.aeb-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.aeb-cal__title { font-weight: 700; font-size: 1.05rem; text-align: center; }
.aeb-booking .aeb-cal__prev,
.aeb-booking .aeb-cal__next {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--aeb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--aeb-rose);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 16px -10px rgba(176, 122, 118, .6);
	transition: transform .15s, box-shadow .15s;
}
.aeb-booking .aeb-cal__prev:hover:not(:disabled),
.aeb-booking .aeb-cal__next:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(176, 122, 118, .7); }
.aeb-booking .aeb-cal__prev:disabled,
.aeb-booking .aeb-cal__next:disabled { opacity: .3; cursor: default; box-shadow: none; }
[dir="rtl"] .aeb-cal__prev,
[dir="rtl"] .aeb-cal__next { transform: scaleX(-1); }
[dir="rtl"] .aeb-booking .aeb-cal__prev:hover:not(:disabled),
[dir="rtl"] .aeb-booking .aeb-cal__next:hover:not(:disabled) { transform: scaleX(-1) translateY(-1px); }

.aeb-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 8px; transition: opacity .2s; }
.aeb-cal__grid.is-loading { opacity: .4; pointer-events: none; }
.aeb-cal__wd { text-align: center; font-size: .78rem; font-weight: 600; color: var(--aeb-faint); padding-bottom: .5rem; }
.aeb-cal__cell { display: flex; justify-content: center; }
.aeb-cal__empty { grid-column: 1 / -1; margin: .75rem 0 0; color: var(--aeb-muted); font-size: .9rem; text-align: center; }

.aeb-booking .aeb-day {
	width: 46px;
	height: 46px;
	max-width: 100%;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--aeb-faint);
	font-size: .95rem;
	cursor: default;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.aeb-booking .aeb-day.is-available {
	background: var(--aeb-rose-soft);
	color: var(--aeb-rose);
	font-weight: 700;
	cursor: pointer;
}
.aeb-booking .aeb-day.is-available:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--aeb-rose-2); }
.aeb-booking .aeb-day.is-full { text-decoration: line-through; }
.aeb-booking .aeb-day.is-selected { background: var(--aeb-gradient); color: #fff; box-shadow: var(--aeb-glow); }
.aeb-booking .aeb-day:focus-visible,
.aeb-booking .aeb-slot button:focus-visible { outline: 2px solid var(--aeb-rose); outline-offset: 3px; }

.aeb-tz { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px dashed var(--aeb-line); }
.aeb-tz__label { font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.aeb-tz__value { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--aeb-muted); }
.aeb-tz__value .aeb-icon { width: 16px; height: 16px; color: var(--aeb-rose); }
.aeb-tz__value span { direction: ltr; unicode-bidi: isolate; }

/* Times column */
.aeb-times[hidden] { display: none; }
.aeb-times__date { font-size: 1rem; font-weight: 600; margin: .45rem 0 1.15rem; color: var(--aeb-text); }
.aeb-slots { display: grid; gap: 10px; max-height: 430px; overflow-y: auto; padding: 4px; }
.aeb-slot { display: flex; gap: 8px; }
.aeb-slot.is-selected { flex-direction: column; }
.aeb-slot__label { white-space: nowrap; }
.aeb-booking .aeb-slot__time,
.aeb-booking .aeb-slot__book {
	flex: 1;
	min-height: 54px;
	padding: .5rem .8rem;
	border: 1px solid var(--aeb-rose-2);
	border-radius: 16px;
	background: #fff;
	color: var(--aeb-rose);
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.aeb-booking .aeb-slot__time:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(176, 122, 118, .6); }
.aeb-slot__label { direction: ltr; unicode-bidi: isolate; }
.aeb-slot__left { font-size: .72rem; font-weight: 500; color: var(--aeb-muted); }
.aeb-booking .aeb-slot.is-selected .aeb-slot__time { background: var(--aeb-cream); border-color: var(--aeb-line); color: var(--aeb-text); }
.aeb-booking .aeb-slot__book { border: 0; border-radius: 999px; background: var(--aeb-gradient); color: #fff; box-shadow: var(--aeb-glow); }
.aeb-booking .aeb-slot__book:hover:not(:disabled) { transform: translateY(-1px); }
.aeb-booking .aeb-slot__book:disabled { opacity: .65; cursor: default; }
.aeb-booking .aeb-slot.is-full .aeb-slot__time { opacity: .45; cursor: default; border-color: var(--aeb-line); color: var(--aeb-muted); }

.aeb-times__qty {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 1.1rem;
	padding: .75rem .9rem;
	border-radius: 16px;
	background: var(--aeb-cream);
}
.aeb-times__qty[hidden] { display: none; }
.aeb-times__qty-label { font-size: .85rem; color: var(--aeb-muted); }
.aeb-times__total { margin-inline-start: auto; font-weight: 700; color: var(--aeb-rose); }
.aeb-qty { display: inline-flex; border: 1px solid var(--aeb-line); border-radius: 999px; overflow: hidden; background: #fff; }
.aeb-booking .aeb-qty__btn { width: 2.1rem; border: 0; background: transparent; color: var(--aeb-rose); font-size: 1.1rem; cursor: pointer; }
.aeb-booking .aeb-qty__input {
	width: 2.6rem;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--aeb-text);
	text-align: center;
	font-weight: 700;
	padding: .35rem 0;
	-moz-appearance: textfield;
}
.aeb-qty__input::-webkit-inner-spin-button,
.aeb-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.aeb-message {
	margin-top: 1.25rem;
	padding: .8rem 1rem;
	border-radius: 16px;
	background: rgba(244, 67, 55, .08);
	color: #a13a30;
	font-size: .9rem;
}
.aeb-message[hidden] { display: none; }
.aeb-empty { color: var(--aeb-muted); }

@media (max-width: 980px) {
	.aeb-picker__body.has-times { grid-template-columns: minmax(0, 1fr); }
	.aeb-slots { max-height: none; }
}
@media (max-width: 760px) {
	.aeb-booking { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
	.aeb-info { border-inline-end: 0; border-bottom: 1px solid var(--aeb-line); padding: 1.75rem 1.25rem; }
	.aeb-picker { padding: 1.75rem 1rem; }
	.aeb-booking .aeb-day { width: 40px; height: 40px; }
}

/* ---------- Events grid [aeb_events] ---------- */
.aeb-events {
	display: grid;
	grid-template-columns: repeat(var(--aeb-cols, 3), minmax(0, 1fr));
	gap: 1.75rem;
}
@media (max-width: 900px) { .aeb-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aeb-events { grid-template-columns: 1fr; } }
.aeb-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 24px;
	overflow: hidden;
	background: var(--aeb-card);
	box-shadow: var(--aeb-shadow);
	transition: transform .2s;
}
.aeb-card:hover { transform: translateY(-3px); }
.aeb-card__media { display: block; aspect-ratio: 4 / 3; background: var(--aeb-cream); }
.aeb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aeb-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.aeb-card__title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 600; }
.aeb-card__title a { color: var(--aeb-text); text-decoration: none; }
.aeb-card__excerpt { color: var(--aeb-muted); font-size: .92rem; line-height: 1.8; flex: 1; }
.aeb-card__excerpt p { margin: 0 0 .5rem; }
.aeb-card__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .9rem; }
.aeb-card__price { font-weight: 700; color: var(--aeb-rose); }
.aeb-events .aeb-card__cta {
	padding: .55rem 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--aeb-gradient);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--aeb-glow);
}
