/*
 * The wrapper every block renders inside. Hand-written — not generated.
 *
 * The blocks were built for a full-width Elementor section: `.ex-bd` sets its
 * own padding (80px) and `.ex-grid` is a fixed `repeat(3, 1fr)`, with no
 * max-width anywhere. Dropped into an ordinary theme, the theme's content width
 * wins — measured on Twenty Twenty-Five: 645px, which leaves
 * (645 - 160 padding) / 3 = 146px per card. At that width the title wraps one
 * word per line and the "View Detail" button falls below what the card shows,
 * so the catalog looks broken AND there is no visible way into a tour.
 *
 * `alignfull` in the markup is what opts a block theme's constrained layout out
 * (its rule excludes `.alignfull`); this file is the half that classic themes
 * need, which have no layout support to opt out of.
 */

.exb-block {
	max-width: none;
	/* No `width: 100%` here, deliberately. A block theme breaks `.alignfull` out
	   with negative margins, and 100% resolves against the PARENT's content box
	   — so the element keeps its narrower width and the margins merely shift it
	   sideways. Measured: 1100px wide sitting at 0..1100 of a 1200px viewport,
	   flush left with a 100px gap down the right. Left to `auto`, the used width
	   absorbs both margins and the block fills the page. */
}

/* A theme that constrains with a container rather than a max-width on children
   cannot be escaped from here, and neither can one where full-bleed is simply
   wrong. That is what the Full width setting is for: turn it off and the block
   inherits whatever width the theme gives the page. */
.exb-block--boxed {
	max-width: 100%;
}

/*
 * The blocks print their own heading, so the theme's page title lands above
 * them as a stray word — "Tour" over a tour that already names itself. Scoped
 * to a body class the plugin adds only on a page that actually carries a block,
 * so no other page on the site loses its title.
 */
.exb-hide-page-title .wp-block-post-title,
.exb-hide-page-title .entry-title,
.exb-hide-page-title .page-title,
.exb-hide-page-title .wp-block-query-title {
	display: none;
}

/* ── Standalone checkout chrome ──────────────────────────────────────────
 * Only on the booking form, which Exb_Checkout_Layout takes over. Deliberately spare: one bar with the operator's logo and a
 * lock, one line of fine print. Everything else on a checkout is a way out of
 * it.
 *
 * `--oco-brand` repeats the booking block's colour rather than importing it:
 * the header renders before the block's stylesheet has anything to say, and a
 * page that flashes black-on-white first is worse than one constant.
 */
body.exb-checkout-layout {
	--oco-brand: #af1d5a;
	margin: 0;
	background: #f5f4f0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* The admin bar pushes the whole document down with `html { margin-top }`
   (32px, 46px at core's 782px breakpoint), so a 100vh body ends that far
   below the fold and takes the footer with it — what a logged-in editor saw
   on every checkout page. Same heights and breakpoint as core's own rule. */
body.admin-bar.exb-checkout-layout {
	min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.exb-checkout-layout {
		min-height: calc(100vh - 46px);
	}
}

.oco-bar {
	background: #fff;
	border-bottom: 1px solid #e8e8e2;
	flex: 0 0 auto;
}

.oco-bar-in,
.oco-foot-in {
	max-width: 1080px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 16px;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.oco-bar-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
}

/* The logo is the one link out, and it goes home — not to a menu. Capped so a
   tall SVG cannot push the bar into a banner. */
.oco-brand img,
.oco-brand .custom-logo {
	display: block;
	max-height: 38px;
	width: auto;
}

.oco-brand a {
	text-decoration: none;
}

.oco-name {
	font-size: 19px;
	font-weight: 700;
	color: var(--oco-brand);
}

.oco-secure {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #4a4a44;
	white-space: nowrap;
}

.oco-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.oco-main > * {
	flex: 1 0 auto;
}

.oco-foot {
	border-top: 1px solid #e8e8e2;
	background: #fff;
	margin-top: auto;
	flex: 0 0 auto;
}

.oco-foot-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-block: 18px;
	font-size: 13px;
	color: #777;
}

.oco-foot-in a {
	color: #777;
	text-decoration: underline;
}

.oco-foot-in a:hover {
	color: var(--oco-brand);
}

.oco-sep {
	color: #c9c9c2;
}

@media (max-width: 480px) {
	.oco-bar-in { min-height: 54px; }
	.oco-secure span { display: none; }
}
