/*
 * Boat Sales Hub: "Showcase" single-boat listing.
 *
 * Colours and fonts arrive as custom properties on .bsh-sc from Settings →
 * Boat pages (see MS_Showcase::style_vars): --bsh-sc-primary for the card and
 * headings, --bsh-sc-accent for buttons and highlights, and --bsh-sc-on-* for
 * text that stays readable on each. Fonts default to the theme's own.
 */

.bsh-sc {
	--bsh-sc-text: #3F3F3F;
	--bsh-sc-muted: #6B7480;
	--bsh-sc-line: #E2E7EE;
	--bsh-sc-soft: #F4F7FA;
	--bsh-sc-white: #FFFFFF;
	--bsh-sc-radius: 6px;
	--bsh-sc-card-muted: color-mix(in srgb, var(--bsh-sc-on-primary) 62%, transparent);
	--bsh-sc-card-line: color-mix(in srgb, var(--bsh-sc-on-primary) 16%, transparent);

	background: var(--bsh-sc-white);
	color: var(--bsh-sc-text);
	font-size: 15px;
	line-height: 1.6;
	padding: 40px 0 72px;
}
.bsh-sc *, .bsh-sc *::before, .bsh-sc *::after { box-sizing: border-box; }
.bsh-sc img { max-width: 100%; }
.bsh-sc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.bsh-sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.bsh-sc-noscroll { overflow: hidden; }
/* Some themes (Mesmerize Pro among them) give every div a ::before/::after
   clearfix. In a grid or flex container those become items of their own: the
   gallery would land in the second column and every row would start with a gap.
   These are the template's grid and flex divs; none uses a pseudo-element. */
.bsh-sc-head::before, .bsh-sc-head::after, .bsh-sc-top::before, .bsh-sc-top::after,
.bsh-sc-finance::before, .bsh-sc-finance::after, .bsh-sc-card__actions::before, .bsh-sc-card__actions::after,
.bsh-sc-contact::before, .bsh-sc-contact::after, .bsh-sc-tabs__nav::before, .bsh-sc-tabs__nav::after,
.bsh-sc-specs::before, .bsh-sc-specs::after, .bsh-sc-lightbox::before, .bsh-sc-lightbox::after { content: none; display: none; }

/* Buttons: Roboto 500, uppercase, 3px corners, as on their current pages. */
.bsh-sc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 18px;
	border: 1px solid transparent; border-radius: 3px;
	font-weight: 500; font-size: 14px;
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center;
	cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.bsh-sc-btn--accent { background: var(--bsh-sc-accent); color: var(--bsh-sc-on-accent); }
.bsh-sc-btn--accent:hover, .bsh-sc-btn--accent:focus-visible { background: var(--bsh-sc-on-primary); color: var(--bsh-sc-primary); }
.bsh-sc-btn--ghost { background: transparent; color: var(--bsh-sc-on-primary); border-color: color-mix(in srgb, var(--bsh-sc-on-primary) 45%, transparent); }
.bsh-sc-btn--ghost:hover, .bsh-sc-btn--ghost:focus-visible { border-color: var(--bsh-sc-accent); color: var(--bsh-sc-accent); }
.bsh-sc a:focus-visible, .bsh-sc button:focus-visible { outline: 2px solid var(--bsh-sc-accent); outline-offset: 2px; }

/* ── head ─────────────────────────────────────────────────────────────── */

.bsh-sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bsh-sc .bsh-sc-title {
	margin: 0; color: var(--bsh-sc-primary);
	font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.bsh-sc-status {
	display: inline-block; padding: 5px 12px; border-radius: 3px;
	font-weight: 500; font-size: 12px; line-height: 1.2;
	letter-spacing: .06em; text-transform: uppercase;
	background: var(--bsh-sc-accent); color: var(--bsh-sc-on-accent);
}
.bsh-sc-status--under-offer { background: #F2B544; color: var(--bsh-sc-primary); }
.bsh-sc-status--sold { background: var(--bsh-sc-primary); color: var(--bsh-sc-on-primary); }
.bsh-sc-status--unavailable { background: var(--bsh-sc-line); color: var(--bsh-sc-muted); }
.bsh-sc-location { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--bsh-sc-muted); font-size: 14px; }
.bsh-sc-location svg { color: var(--bsh-sc-accent); flex: none; }
.bsh-sc-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 3px;
	background: var(--bsh-sc-primary); color: var(--bsh-sc-on-primary); border: 0; text-decoration: none; cursor: pointer;
}
.bsh-sc-head__actions form { margin: 0; }
.bsh-sc-icon-btn:hover { background: var(--bsh-sc-accent); color: var(--bsh-sc-on-accent); }

/* ── gallery + card ───────────────────────────────────────────────────── */

.bsh-sc-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.bsh-sc-gallery, .bsh-sc-card { min-width: 0; }

.bsh-sc-gallery__main { position: relative; margin: 0; border-radius: var(--bsh-sc-radius); overflow: hidden; background: var(--bsh-sc-soft); }
.bsh-sc-gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bsh-sc-gallery__open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bsh-sc-gallery__count {
	position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 10px; border-radius: 3px; background: rgba(11,29,50,.82); color: var(--bsh-sc-white);
	font-size: 13px; font-weight: 600; pointer-events: none;
}
.bsh-sc-gallery__strip { position: relative; margin-top: 10px; }
.bsh-sc-gallery__thumbs {
	display: flex; gap: 8px; margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.bsh-sc-gallery__thumbs::-webkit-scrollbar { display: none; }
.bsh-sc-gallery__thumbs li { flex: 0 0 calc((100% - 32px) / 5); scroll-snap-align: start; }
.bsh-sc-gallery__thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.bsh-sc-gallery__thumb:hover { opacity: 1; }
.bsh-sc-gallery__thumb.is-current { border-color: var(--bsh-sc-accent); opacity: 1; }
.bsh-sc-gallery__thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bsh-sc-gallery__arrow {
	position: absolute; top: 50%; z-index: 1; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: var(--bsh-sc-primary); color: var(--bsh-sc-white); cursor: pointer; box-shadow: 0 2px 8px rgba(11,29,50,.25);
}
.bsh-sc-gallery__arrow--prev { left: -10px; }
.bsh-sc-gallery__arrow--next { right: -10px; }
.bsh-sc-gallery__arrow[hidden] { display: none; }

.bsh-sc-card {
	background: var(--bsh-sc-primary); color: var(--bsh-sc-on-primary);
	border-radius: var(--bsh-sc-radius); padding: 26px 24px;
	position: sticky; top: 24px;
}
.bsh-sc-card__label { margin: 0; color: var(--bsh-sc-accent); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.bsh-sc-card__price { margin: 4px 0 0; color: var(--bsh-sc-on-primary); font-weight: 600; font-size: 32px; line-height: 1.2; }
.bsh-sc-card__vat { display: inline-block; margin-left: 4px; font-weight: 600; font-size: 16px; color: var(--bsh-sc-card-muted); }

.bsh-sc-finance { display: flex; align-items: stretch; gap: 10px; margin-top: 20px; }
.bsh-sc-finance__logo { display: flex; align-items: center; justify-content: center; flex: 0 0 46%; padding: 6px 10px; background: var(--bsh-sc-white); border-radius: 3px; }
.bsh-sc-finance__logo img { display: block; width: 100%; height: auto; max-height: 40px; object-fit: contain; }
.bsh-sc-finance__btn { flex: 1; min-height: 52px; font-size: 13px; padding: 8px 10px; }

.bsh-sc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--bsh-sc-card-line); }
.bsh-sc-facts__item { min-width: 0; }
.bsh-sc-facts dt { margin: 0; color: var(--bsh-sc-card-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.bsh-sc-facts dd { margin: 2px 0 0; color: var(--bsh-sc-on-primary); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }

.bsh-sc-card__actions { display: grid; gap: 10px; margin-top: 22px; }
.bsh-sc-contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bsh-sc-card-line); display: grid; gap: 8px; font-size: 14px; }
.bsh-sc-contact__title { margin: 0 0 2px; color: var(--bsh-sc-card-muted); }
.bsh-sc-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--bsh-sc-on-primary); text-decoration: none; overflow-wrap: anywhere; }
.bsh-sc-contact a:hover { color: var(--bsh-sc-accent); }
.bsh-sc-contact svg { color: var(--bsh-sc-accent); flex: none; }

/* ── tabs ─────────────────────────────────────────────────────────────── */

.bsh-sc-tabs { margin-top: 56px; }
.bsh-sc-tabs__nav { display: flex; border-bottom: 1px solid var(--bsh-sc-line); overflow-x: auto; }
.bsh-sc-tabs__tab {
	font-family: inherit;
	flex: 1 0 auto; padding: 14px 22px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
	background: none; color: var(--bsh-sc-muted); cursor: pointer;
	font-weight: 500; font-size: 16px;
}
.bsh-sc-tabs__tab:hover { color: var(--bsh-sc-primary); }
.bsh-sc-tabs__tab.is-current { color: var(--bsh-sc-primary); border-bottom-color: var(--bsh-sc-accent); font-weight: 600; }
.bsh-sc-tabs__panel { background: var(--bsh-sc-soft); padding: 32px clamp(18px, 4vw, 40px) 36px; border-radius: 0 0 var(--bsh-sc-radius) var(--bsh-sc-radius); }

.bsh-sc .bsh-sc-panel-title, .bsh-sc .bsh-sc-section-title { margin: 0 0 18px; color: var(--bsh-sc-primary); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; }
.bsh-sc-lead { margin: 0 0 18px; color: var(--bsh-sc-primary); font-weight: 500; font-size: 19px; line-height: 1.4; }

.bsh-sc-prose { max-width: 78ch; }
.bsh-sc-prose p { margin: 0 0 1em; }
.bsh-sc .bsh-sc-prose h2, .bsh-sc .bsh-sc-prose h3, .bsh-sc .bsh-sc-prose h4 { color: var(--bsh-sc-primary); font-weight: 600; line-height: 1.3; margin: 1.6em 0 .6em; }
.bsh-sc .bsh-sc-prose h2 { font-size: 22px; } .bsh-sc .bsh-sc-prose h3 { font-size: 19px; } .bsh-sc .bsh-sc-prose h4 { font-size: 17px; }
.bsh-sc-prose ul, .bsh-sc-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.bsh-sc-prose li { margin: .25em 0; }
.bsh-sc-prose li::marker { color: var(--bsh-sc-accent); }
.bsh-sc-prose a { color: var(--bsh-sc-primary); text-decoration-color: var(--bsh-sc-accent); text-underline-offset: 3px; }
/* Their imported descriptions are centred inline; on this layout they read better left-aligned. */
.bsh-sc-prose [style*="text-align: center"], .bsh-sc-prose [style*="text-align:center"] { text-align: left !important; }

.bsh-sc-disclaimer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--bsh-sc-line); font-size: 13px; color: var(--bsh-sc-muted); max-width: 78ch; }
.bsh-sc .bsh-sc-disclaimer h3 { margin: 0 0 6px; color: var(--bsh-sc-primary); font-weight: 600; font-size: 15px; }
.bsh-sc-disclaimer p { margin: 0; }

.bsh-sc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; align-items: start; }
.bsh-sc-specs__group { width: 100%; border-collapse: collapse; background: var(--bsh-sc-white); border-radius: var(--bsh-sc-radius); overflow: hidden; }
.bsh-sc-specs__group caption { text-align: left; padding: 0 0 8px; color: var(--bsh-sc-primary); font-weight: 600; font-size: 16px; }
.bsh-sc-specs__group th, .bsh-sc-specs__group td { padding: 11px 16px; border-bottom: 1px solid var(--bsh-sc-line); text-align: left; vertical-align: top; font-size: 14px; }
.bsh-sc-specs__group tr:last-child th, .bsh-sc-specs__group tr:last-child td { border-bottom: 0; }
.bsh-sc-specs__group th { width: 44%; color: var(--bsh-sc-muted); font-weight: 600; }
.bsh-sc-specs__group td { color: var(--bsh-sc-primary); font-weight: 600; overflow-wrap: anywhere; }

.bsh-sc-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: var(--bsh-sc-radius); overflow: hidden; background: var(--bsh-sc-primary); }
.bsh-sc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── enquiry + similar ────────────────────────────────────────────────── */

.bsh-sc-enquire { margin-top: 56px; padding: 32px clamp(18px, 4vw, 40px); border: 1px solid var(--bsh-sc-line); border-radius: var(--bsh-sc-radius); scroll-margin-top: 24px; }
.bsh-sc-similar { margin-top: 64px; }
.bsh-sc-similar .bsh-sc-section-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; background: var(--bsh-sc-accent); }

/* ── lightbox ─────────────────────────────────────────────────────────── */

.bsh-sc-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(6,16,28,.94); }
.bsh-sc-lightbox[hidden] { display: none; }
.bsh-sc-lightbox__figure { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; }
.bsh-sc-lightbox__figure img { display: block; max-width: 100%; max-height: 86vh; object-fit: contain; }
.bsh-sc-lightbox__close, .bsh-sc-lightbox__nav { position: absolute; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--bsh-sc-white); cursor: pointer; }
.bsh-sc-lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; }
.bsh-sc-lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bsh-sc-lightbox__nav:hover, .bsh-sc-lightbox__close:hover { color: var(--bsh-sc-accent); }
.bsh-sc-lightbox__nav--prev { left: 16px; }
.bsh-sc-lightbox__nav--next { right: 16px; }
.bsh-sc-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }

/* ── narrower screens ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
	/* minmax(0, …): a plain 1fr track will not shrink below the thumbnail
	   strip's full width, which pushed the page sideways on phones. */
	.bsh-sc-top { grid-template-columns: minmax(0, 1fr); }
	.bsh-sc-card { position: static; }
	.bsh-sc-specs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bsh-sc { padding-top: 24px; }
	.bsh-sc-head { gap: 12px; }
	.bsh-sc-gallery__thumbs li { flex-basis: calc((100% - 16px) / 3); }
	.bsh-sc-gallery__arrow { display: none; }
	.bsh-sc-finance { flex-direction: column; }
	.bsh-sc-finance__logo { flex-basis: auto; height: 56px; }
	.bsh-sc-tabs__tab { padding: 12px 16px; font-size: 15px; }
	.bsh-sc-lightbox__nav { width: 44px; height: 44px; }
	.bsh-sc-lightbox__nav--prev { left: 6px; }
	.bsh-sc-lightbox__nav--next { right: 6px; }
}

/* ── fonts ──────────────────────────────────────────────────────────────
   Applied only when set in Settings (MS_Showcase adds the class). A blank
   font sets nothing at all, so headings keep the theme's heading font and
   everything else its body font. "inherit" would not do that: it takes the
   surrounding text's font, which gave headings the body font. */
.bsh-sc--font-body { font-family: var(--bsh-sc-body); }
.bsh-sc--font-head :is(.bsh-sc-title, .bsh-sc-card__price, .bsh-sc-tabs__tab, .bsh-sc-panel-title,
	.bsh-sc-section-title, .bsh-sc-lead, .bsh-sc-prose h2, .bsh-sc-prose h3, .bsh-sc-prose h4,
	.bsh-sc-disclaimer h3, .bsh-sc-specs__group caption) { font-family: var(--bsh-sc-head); }
.bsh-sc--font-body .bsh-sc-card__vat { font-family: var(--bsh-sc-body); }
.bsh-sc--font-button :is(.bsh-sc-btn, .bsh-sc-status, .bsh-sc-card__label) { font-family: var(--bsh-sc-button); }
