/* ============================================================
   VESSEL OVERVIEW / STOCK  —  filter bar + 3-col grid
   Reuses the homepage .nm-vessel-card. Desktop-first; mobile
   polish is a later pass. Scoped under .nm-stock.
   ============================================================ */

/* Visually hidden but crawlable/screen-reader-accessible (WCAG standard clip
   technique — NOT display:none, which would hide it from assistive tech too). */
.nm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Navy hero band — matches the vessel detail hero. Full-bleed; clears the
   floating fixed nav. Only the intro lives here; the filter bar stays white.
   (Regular pages render inside a constrained <main>, so break out to full-bleed
   with negative margins; inner content stays centered at 1280.) */
.nm-stock-hero {
	background: #051f30;
	color: #ffffff;
	padding: 150px 0 60px !important;
	position: relative;
	overflow: hidden;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: 100vw;
}

.nm-stock-hero::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 50%;
	width: 1000px;
	height: 520px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(0, 136, 204, 0.20), transparent 68%);
	pointer-events: none;
}

.nm-stock-hero-inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto !important;
	padding: 0 48px !important;
}

.nm-stock-title,
h1.nm-stock-title.wp-block-heading {
	font-family: 'Titillium Web', sans-serif;
	font-size: clamp(2.2rem, 4.5vw, 3.5rem) !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: #ffffff !important;
	margin: 0 0 18px !important;
}

.nm-stock-deck,
p.nm-stock-deck {
	max-width: 640px;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 1.15rem !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}

/* White area holding the filter bar + grid. */
.nm-stock-page {
	background: #ffffff;
	padding: 44px 0 96px !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: 100vw;
}

.nm-stock {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 48px 8px;
	font-family: 'Inter', sans-serif;
}

.nm-stock-none {
	color: #64748b;
	font-size: 1.05rem;
	padding: 40px 0 64px;
}

/* ---- Filter bar ------------------------------------------------ */
.nm-stock-filters {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 28px 40px;
	background: #ffffff;
	border: 1px solid rgba(3, 29, 48, 0.08);
	border-radius: 18px;
	padding: 22px 28px;
	box-shadow: 0 18px 50px -24px rgba(3, 29, 48, 0.28), 0 2px 8px rgba(3, 29, 48, 0.04);
	margin-bottom: 44px;
}

.nm-filter {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nm-filter__label {
	font-family: 'Titillium Web', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #64748b;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.nm-filter__readout {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #0088cc;
}

/* Use-case multi-select dropdown */
.nm-filter--ops {
	flex: 0 0 240px;
	width: 240px;
}

.nm-dropdown {
	position: relative;
}

.nm-dropdown__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #334155;
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 11px 14px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nm-dropdown__toggle:hover {
	background: #e2e8f0;
}

.nm-dropdown.is-open .nm-dropdown__toggle {
	background: #ffffff;
	border-color: #0088cc;
	box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.nm-dropdown__value {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nm-dropdown__chevron {
	color: #64748b;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.nm-dropdown.is-open .nm-dropdown__chevron {
	transform: rotate(180deg);
}

.nm-dropdown__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 100%;
	width: max-content;
	max-width: 320px;
	max-height: 300px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid rgba(3, 29, 48, 0.10);
	border-radius: 14px;
	box-shadow: 0 20px 50px -18px rgba(3, 29, 48, 0.35);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nm-dropdown__panel[hidden] {
	display: none;
}

.nm-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 9px;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-size: 14.5px;
	color: #334155;
	transition: background 0.15s ease;
}

.nm-check:hover {
	background: #f1f5f9;
}

.nm-check input {
	width: 16px;
	height: 16px;
	accent-color: #0088cc;
	cursor: pointer;
	flex-shrink: 0;
}

/* Dual-range sliders */
.nm-filter--range {
	flex: 0 0 208px;
	width: 208px;
}

.nm-range {
	position: relative;
	height: 22px;
	display: flex;
	align-items: center;
}

.nm-range__rail {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 999px;
	background: #e2e8f0;
}

.nm-range__fill {
	position: absolute;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #0088cc, #00c6ff);
}

.nm-range__input {
	position: absolute;
	left: 0;
	width: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	height: 22px;
}

.nm-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #0088cc;
	box-shadow: 0 2px 6px rgba(3, 29, 48, 0.25);
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nm-range__input::-webkit-slider-thumb:hover {
	border-color: #00c6ff;
	transform: scale(1.08);
}

.nm-range__input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #0088cc;
	box-shadow: 0 2px 6px rgba(3, 29, 48, 0.25);
	cursor: pointer;
}

.nm-range__input::-webkit-slider-runnable-track { background: transparent; }
.nm-range__input::-moz-range-track { background: transparent; }
.nm-range__input:focus-visible::-webkit-slider-thumb { border-color: #00c6ff; outline: 2px solid rgba(0, 198, 255, 0.4); outline-offset: 2px; }

/* Engine segmented toggle */
.nm-seg {
	display: inline-flex;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 3px;
	gap: 2px;
}

.nm-seg__btn {
	font-family: 'Titillium Web', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #334155;
	background: transparent;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	min-width: 42px;
}

.nm-seg__btn:hover { color: #031d30; }

.nm-seg__btn.is-active {
	background: #ffffff;
	color: #0088cc;
	box-shadow: 0 1px 4px rgba(3, 29, 48, 0.14);
}

/* Result count + reset */
.nm-stock-result {
	display: flex;
	flex-direction: column-reverse; /* markup is count then reset → reset ends up on top */
	align-items: flex-end;
	gap: 6px;
	margin-left: auto;
	padding-bottom: 2px;
}

.nm-stock-count {
	font-family: 'Titillium Web', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.nm-stock-count [data-result-count] {
	color: #031d30;
	font-weight: 800;
}

.nm-stock-reset {
	font-family: 'Titillium Web', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.10em;
	color: #0088cc;
	background: transparent;
	border: 1px solid rgba(0, 136, 204, 0.35);
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.nm-stock-reset:hover {
	background: rgba(0, 136, 204, 0.08);
	border-color: #0088cc;
}

/* ---- Grid ------------------------------------------------------ */
.nm-stock-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding-bottom: 8px;
}

/* Reuse .nm-vessel-card but let it fill the grid cell (homepage
   scroller fixes it to 420px). */
.nm-stock-grid .nm-vessel-card {
	width: auto;
	min-width: 0;
	text-decoration: none;
	border: none;
}

.nm-stock-grid .nm-vessel-card[hidden] {
	display: none;
}

/* Empty state */
.nm-stock-empty {
	text-align: center;
	color: #64748b;
	font-size: 1.05rem;
	padding: 56px 0 64px;
}

/* ============================================================
   SEO BODY TEXT  —  reading column below the grid (white section).
   ============================================================ */
.nm-seo-inner {
	max-width: 880px;
	margin: 72px auto 0 !important;
	padding: 44px 48px 0 !important;
	border-top: 1px solid #e8edf2;
}

.nm-seo-title,
h2.nm-seo-title.wp-block-heading {
	font-family: 'Titillium Web', sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.6rem) !important; /* canonical content-section H2 */
	font-weight: 800 !important;
	line-height: 1.1 !important;
	color: #031d30 !important;
	margin: 0 0 20px !important;
}

.nm-seo-subtitle,
h3.nm-seo-subtitle.wp-block-heading {
	font-family: 'Titillium Web', sans-serif;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #031d30 !important;
	margin: 30px 0 12px !important;
}

/* Keep the stock-page hero rhythm aligned with the homepage hero. */
.nm-stock-hero .nm-eyebrow {
	margin-bottom: 16px !important;
}

/* Body paragraphs only — never restyle the eyebrow (also a <p>). */
.nm-seo-inner p:not(.nm-eyebrow) {
	color: #475569 !important;
	font-size: 1.05rem !important;
	line-height: 1.7 !important;
	margin: 0 0 16px !important;
	max-width: none;
}

/* Eyebrow on light sections: readable accent text, cyan pulse dot. */
.nm-seo-inner .nm-eyebrow,
.nm-faq-inner .nm-eyebrow {
	color: #0088cc;
}

.nm-seo-inner a {
	color: #0088cc;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.nm-seo-inner a:hover { color: #00a3e0; }

/* ============================================================
   FAQ  —  editable core/details accordion, full-bleed light band.
   ============================================================ */
.nm-faq-section {
	background: #f6f8fa;
	padding: 84px 0 100px !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: 100vw;
}

.nm-faq-inner {
	max-width: 880px;
	margin: 0 auto !important;
	padding: 0 48px !important;
}

.nm-faq-title,
h2.nm-faq-title.wp-block-heading {
	font-family: 'Titillium Web', sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.6rem) !important; /* canonical content-section H2 */
	font-weight: 800 !important;
	line-height: 1.05 !important;
	color: #031d30 !important;
	margin: 0 0 32px !important;
}

.nm-faq-inner .wp-block-details {
	border-top: 1px solid #e2e8f0;
}

.nm-faq-inner .wp-block-details:last-child {
	border-bottom: 1px solid #e2e8f0;
}

.nm-faq-inner summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 22px 44px 22px 0;
	font-family: 'Titillium Web', sans-serif;
	font-size: 1.18rem;
	font-weight: 700;
	color: #031d30;
	transition: color 0.2s ease;
}

.nm-faq-inner summary:hover { color: #0088cc; }
.nm-faq-inner summary::-webkit-details-marker { display: none; }

.nm-faq-inner summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 27px;
	width: 9px;
	height: 9px;
	border-right: 2px solid #0088cc;
	border-bottom: 2px solid #0088cc;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.nm-faq-inner details[open] summary::after {
	transform: rotate(-135deg);
}

.nm-faq-inner .wp-block-details > *:not(summary) {
	margin: 0 0 22px;
	max-width: 680px;
	color: #475569;
	font-size: 1.04rem;
	line-height: 1.65;
}

/* ---- Tablet / mobile (light touch; full pass later) ------------ */
@media (max-width: 1024px) {
	.nm-stock-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.nm-stock { padding: 0 24px 8px; }
	.nm-stock-hero { padding-top: 120px !important; }
	.nm-stock-hero-inner { padding: 0 24px !important; }
	.nm-faq-inner { padding: 0 24px !important; }
	.nm-seo-inner { padding: 44px 24px 0 !important; }
	.nm-stock-result { margin-left: 0; }
}

@media (max-width: 640px) {
	.nm-stock-grid { grid-template-columns: 1fr; }
	.nm-filter--range,
	.nm-filter--ops { flex: 1 1 100%; width: auto; }
}

/* ---- CTA-balk onder het vaartuigraster ------------------------- */
/* De kaart zelf is .nm-dealer-card uit novimarine.css (sitewide geladen,
   zelfde component als op de homepage). Alleen de wrapper is hier nodig:
   dezelfde breedte en inspringing als .nm-stock, zodat de balk exact
   uitlijnt met het raster erboven. */
.nm-stock-cta {
	max-width: 1280px;
	margin: 44px auto 0;
	padding: 0 48px;
}

/* Afwijkend van de homepage-variant: daar staat alle tekst links naast de
   knop. Hier loopt de toelichting als volle regel onder de kop door, dus de
   kaart wordt een kolom met bovenin de rij kop + knop. Alles is gescoped
   binnen .nm-stock-cta; de kaart op de homepage blijft ongewijzigd. */
.nm-stock-cta .nm-dealer-card {
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	padding: 26px 30px;
}

.nm-stock-cta__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Volle breedte en een leesbare tekstgrootte: dit is een lopende zin, geen
   opsomming zoals de __sub van het originele component. */
.nm-stock-cta__text {
	margin: 0;
	max-width: none;
	color: rgba(255, 255, 255, 0.72);
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	letter-spacing: 0;
}

@media (max-width: 900px) {
	.nm-stock-cta { padding: 0 24px; }
	.nm-stock-cta__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}
