
:root {
	--bokuned-primary: #0ea5e9;
	--bokuned-primary-dark: #0284c7;
	--bokuned-tabs: var(--bokuned-primary);
	--bokuned-tabs-dark: var(--bokuned-primary-dark);
	--bokuned-ok: #22c55e;
	--bokuned-ok-dark: #16a34a;
	--bokuned-hot: #ef4444;
	--bokuned-hot-dark: #dc2626;
	--bokuned-warn: #f59e0b;
	--bokuned-bg: #f8fafc;
	--bokuned-card: #ffffff;
	--bokuned-border: #e2e8f0;
	--bokuned-text: #1e293b;
	--bokuned-muted: #64748b;
	--bokuned-radius: 8px;
	--bokuned-radius-sm: 4px;
	--bokuned-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
	--bokuned-shadow-lg: 0 8px 30px rgba(0, 0, 0, .1);
	--bokuned-shadow-xl: 0 12px 40px rgba(0, 0, 0, .15);
}

.bokuned-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--bokuned-text);
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 34px 0 20px;
	border-radius: var(--bokuned-radius);
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
	.bokuned-wrap {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.bokuned-wrap {
		padding-top: 10px;
		padding-bottom: 10px;
		padding-left: max(8px, env(safe-area-inset-left, 0px));
		padding-right: max(8px, env(safe-area-inset-right, 0px));
	}
}

.bokuned-notice {
	background: #fff3cd;
	border: 1px solid var(--bokuned-warn);
	border-radius: var(--bokuned-radius);
	padding: 14px 18px;
	font-size: 14px;
	color: #92400e;
}

.bokuned-notice a {
	color: #b45309;
	font-weight: 600;
}

.bokuned-spinner {
	text-align: center;
	padding: 48px;
	color: var(--bokuned-muted);
	font-size: 15px;
}

/* Admin-only notice rendered by shortcodes when keys/experiences are missing. */
.bokuned-notice {
	padding: 14px 16px;
	margin: 12px 0;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	color: #92400e;
	font-size: 14px;
	line-height: 1.5;
}

.bokuned-notice a {
	color: #b45309;
	font-weight: 600;
}

/* ── Experience cards ([bokuned_experiences]) ── */
.bokuned-cards {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bokuned-cards--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.bokuned-cards--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.bokuned-cards--cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 782px) {
	.bokuned-cards[class*="cols-"] {
		grid-template-columns: 1fr;
	}
}

.bokuned-card {
	background: var(--bokuned-card, #fff);
	border: 1px solid var(--bokuned-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.bokuned-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.bokuned-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bokuned-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.bokuned-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--bokuned-text, #1e293b);
}

.bokuned-card__desc {
	margin: 0;
	color: var(--bokuned-muted, #64748b);
	font-size: 14px;
	line-height: 1.5;
	flex: 1;
}

.bokuned-card__book {
	margin-top: 6px;
	align-self: flex-start;
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	background: var(--bokuned-primary, #0ea5e9);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background .15s ease;
}

.bokuned-card__book:hover {
	background: var(--bokuned-primary-dark, #0284c7);
}

.bokuned-card__book.is-open {
	background: var(--bokuned-muted, #64748b);
}

.bokuned-card__cal {
	padding: 0 16px 16px;
}

/* ── Single experience page ([bokuned_experience]) ── */
.bokuned-single {
	margin: 0 auto;
}

.bokuned-single--bounded {
	max-width: var(--bokuned-single-maxw, 1100px);
}

.bokuned-single--full {
	max-width: none;
}

.bokuned-single-hero {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}

.bokuned-single-hero--img {
	background: #0f172a;
}

.bokuned-single--hero-small .bokuned-single-hero--img {
	height: 220px;
}

.bokuned-single--hero-medium .bokuned-single-hero--img {
	height: 360px;
}

.bokuned-single--hero-large .bokuned-single-hero--img {
	height: 480px;
}

.bokuned-single-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.bokuned-single-hero__slide.is-active {
	opacity: 1;
}

.bokuned-single-hero--anim .bokuned-single-hero__slide.is-active {
	animation: bokunedKenBurns 7s ease-out forwards;
}

@keyframes bokunedKenBurns {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.09);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bokuned-single-hero__slide {
		transition: none;
	}

	.bokuned-single-hero--anim .bokuned-single-hero__slide.is-active {
		animation: none;
	}
}

.bokuned-single-hero__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 28px 24px;
	background: linear-gradient(to top, rgba(0, 0, 0, .66), transparent);
}

.bokuned-single-hero:not(.bokuned-single-hero--img) .bokuned-single-hero__overlay {
	position: static;
	background: none;
	padding: 0 0 12px;
}

.bokuned-single-hero__title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
}

.bokuned-single-hero:not(.bokuned-single-hero--img) .bokuned-single-hero__title {
	color: var(--bokuned-text, #1e293b);
}

.bokuned-single-gallery {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.bokuned-single-gallery__track {
	display: flex;
	gap: 10px;
	flex: 1 1 auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2px 2px 6px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.bokuned-single-gallery__thumb {
	flex: 0 0 auto;
	width: 120px;
	height: 80px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	scroll-snap-align: start;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
	transition: box-shadow .15s ease, transform .15s ease;
}

.bokuned-single-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bokuned-single-gallery__thumb:hover {
	transform: translateY(-2px);
}

.bokuned-single-gallery__thumb.is-active {
	box-shadow: 0 0 0 3px var(--bokuned-accent, #2563eb);
}

.bokuned-single-gallery__nav {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--bokuned-text, #1e293b);
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
	transition: background .15s ease;
}

.bokuned-single-gallery__nav:hover {
	background: #f1f5f9;
}

.bokuned-single-desc {
	margin: 0 0 24px;
	color: var(--bokuned-text, #1e293b);
	font-size: 15px;
	line-height: 1.7;
}

.bokuned-single-desc p {
	margin: 0 0 12px;
}

/* ── Card variants: gap / image ratio / hover / style ── */
.bokuned-cards--gap-sm {
	gap: 12px;
}

.bokuned-cards--gap-md {
	gap: 20px;
}

.bokuned-cards--gap-lg {
	gap: 32px;
}

.bokuned-card__media {
	position: relative;
}

.bokuned-card__media--landscape {
	aspect-ratio: 16 / 10;
}

.bokuned-card__media--square {
	aspect-ratio: 1 / 1;
}

.bokuned-card__media--portrait {
	aspect-ratio: 3 / 4;
}

.bokuned-card__media-cap {
	display: none;
}

.bokuned-cards--hover-lift .bokuned-card {
	transition: transform .18s ease, box-shadow .18s ease;
}

.bokuned-cards--hover-lift .bokuned-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .13);
}

/* minimal */
.bokuned-cards--style-minimal .bokuned-card {
	border: 0;
	box-shadow: none;
	background: transparent;
}

.bokuned-cards--style-minimal .bokuned-card__media {
	border-radius: 12px;
	overflow: hidden;
}

.bokuned-cards--style-minimal .bokuned-card__body {
	padding: 12px 2px;
}

/* overlay: title over image, body holds desc + CTA + calendar */
.bokuned-cards--style-overlay .bokuned-card__media-cap {
	display: block;
	position: absolute;
	inset: auto 0 0 0;
	padding: 14px 14px 12px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
}

.bokuned-cards--style-overlay .bokuned-card__title {
	display: none;
}

/* ── Single experience: layout / gallery / hero tweaks ── */
.bokuned-single-body {
	display: block;
}

.bokuned-single--sidebar .bokuned-single-body {
	display: grid;
	gap: 28px;
	align-items: start;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); /* calendar = narrow rail (default) */
}

.bokuned-single--sbw-narrow .bokuned-single-body {
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.bokuned-single--sbw-balanced .bokuned-single-body {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
}

.bokuned-single--sbw-wide .bokuned-single-body {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 1.5fr);
}

.bokuned-single--sidebar .bokuned-single-desc {
	margin-bottom: 0;
}

@media (max-width: 880px) {
	.bokuned-single--sidebar .bokuned-single-body {
		grid-template-columns: 1fr;
	}
}

/* ── Tabs alignment ── */
.bokuned-tabs-wrap .bokuned-exp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.bokuned-tabs-wrap--align-center .bokuned-exp-tabs {
	justify-content: center;
}

.bokuned-tabs-wrap--align-stretch .bokuned-exp-tab {
	flex: 1;
}

/* ── Calendar feel: font size / density / button style (on .bokuned-wrap) ── */
.bokuned-wrap.bokuned-fs-small {
	font-size: 13px;
}

.bokuned-wrap.bokuned-fs-medium {
	font-size: 14px;
}

.bokuned-wrap.bokuned-fs-large {
	font-size: 16px;
}

.bokuned-density-compact .bokuned-slot {
	padding: 10px 12px;
}

.bokuned-density-compact .bokuned-day {
	min-height: 38px;
}

.bokuned-density-compact .bokuned-slot-actions {
	gap: 6px;
}

.bokuned-btn-outline .bokuned-slot-cta {
	background: transparent;
	color: var(--bokuned-primary, #0ea5e9);
	border: 2px solid var(--bokuned-primary, #0ea5e9);
}

.bokuned-btn-outline .bokuned-slot-cta:hover {
	background: var(--bokuned-primary, #0ea5e9);
	color: #fff;
}

.bokuned-btn-pill .bokuned-slot-cta {
	border-radius: 999px;
}

/* ── Experience card → light overlay with calendar ── */
body.bokuned-noscroll {
	overflow: hidden;
}

.bokuned-card__overlay {
	position: fixed;
	inset: 0;
	z-index: 9990;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow: auto;
}

.bokuned-card__overlay[hidden] {
	display: none;
}

.bokuned-card__overlay-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .5);
}

.bokuned-card__overlay-panel {
	position: relative;
	width: min(920px, 100%);
	background: var(--bokuned-bg, #f8fafc);
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	padding: 0 22px 22px;
	animation: bokunedOverlayIn .16s ease;
}

.bokuned-card__overlay-head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 -22px 16px;
	padding: 14px 18px;
	background: #fff;
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	border-radius: 16px 16px 0 0;
}

.bokuned-card__overlay-thumb {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
}

.bokuned-card__overlay-name {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	flex: 1;
	min-width: 0;
}

@keyframes bokunedOverlayIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.bokuned-card__overlay-close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #334155;
}

.bokuned-card__overlay-close:hover {
	background: #e2e8f0;
}

.bokuned-card__overlay .bokuned-card__cal {
	padding: 0;
}
/* ── Card text alignment + shadow ── */
.bokuned-cards--align-center .bokuned-card__body { align-items: center; text-align: center; }
.bokuned-cards--align-center .bokuned-card__book { align-self: center; }
.bokuned-cards--shadow-none .bokuned-card { box-shadow: none; }
.bokuned-cards--shadow-soft .bokuned-card { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.bokuned-cards--shadow-strong .bokuned-card { box-shadow: 0 12px 32px rgba(0,0,0,.13); }

/* ── Single: sticky booking column on sidebar layout ── */
@media (min-width: 881px) {
	.bokuned-single--sidebar.bokuned-single--sticky .bokuned-single-booking { position: sticky; top: 24px; align-self: start; }
}
