/**
 * Navis — [get_yachts] shortcode styles.
 * Layout (columns, stacking, gutters) comes from Bootstrap's grid, loaded as
 * a dependency of this file (see Navis_Shortcodes::register_assets()). This
 * file only carries the plugin's own look: design tokens from template.css
 * and the card/row/feature/hero/badge components, scoped under each design's
 * root class so themes stay unaffected elsewhere.
 */

.navis-yachts-grid,
.navis-yachts-list,
.navis-yachts-feature,
.navis-yachts-hero {
	--nv-ink: #0f172a;
	--nv-muted: #64748b;
	--nv-line: #e6e9f2;
	--nv-accent: #4f46e5;
	--nv-green: #16a34a;
	--nv-green-bg: #dcfce7;
	--nv-red: #dc2626;
	--nv-red-bg: #fee2e2;
	--nv-amber: #b45309;
	--nv-amber-bg: #fef3c7;
	--nv-blue: #1d4ed8;
	--nv-blue-bg: #dbeafe;
	--nv-radius: 18px;
	color: var(--nv-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.navis-yachts-empty {
	color: var(--nv-muted);
	padding: 24px 0;
}

/* Status badge, used by design1/2/3/4. */
.navis-yacht-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	background: #fff;
	color: var(--nv-muted);
}
.navis-yacht-badge--new { background: var(--nv-green-bg); color: var(--nv-green); }
.navis-yacht-badge--stock { background: var(--nv-blue-bg); color: var(--nv-blue); }
.navis-yacht-badge--pre_owned { background: var(--nv-amber-bg); color: var(--nv-amber); }
.navis-yacht-badge--charter { background: var(--nv-blue-bg); color: var(--nv-blue); }
.navis-yacht-badge--sold { background: var(--nv-red-bg); color: var(--nv-red); }
.navis-yacht-badge--unspecified { background: #fff; color: var(--nv-muted); }

/* Design1 — card grid, and the reused card markup in design4's sub-grid. */
.navis-yacht-card {
	background: #fff;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .06);
}
.navis-yacht-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.navis-yacht-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--nv-line);
}
.navis-yacht-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.navis-yacht-card__media .navis-yacht-badge {
	position: absolute;
	top: 12px;
	left: 12px;
}
.navis-yacht-card__body { padding: 16px 18px 20px; }
.navis-yacht-card__title { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.navis-yacht-card__builder { margin: 0 0 10px; font-size: 13px; color: var(--nv-muted); }
.navis-yacht-card__price { margin: 0; font-size: 15px; font-weight: 700; }

/* Design2 — horizontal list rows (grid/stacking is Bootstrap's .row/.col-*). */
.navis-yacht-row {
	background: #fff;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	overflow: hidden;
}
.navis-yacht-row__link { color: inherit; text-decoration: none; }
.navis-yacht-row__media { aspect-ratio: 4 / 3; background: var(--nv-line); }
.navis-yacht-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.navis-yacht-row__body { padding: 12px 16px; }
.navis-yacht-row__title { margin: 8px 0 4px; font-size: 17px; font-weight: 800; }
.navis-yacht-row__builder { margin: 0; font-size: 13px; color: var(--nv-muted); }
.navis-yacht-row__price { padding: 0 16px 12px; font-size: 15px; font-weight: 700; }

/* Design3 — large two-up feature cards, image and text side by side. */
.navis-yacht-feature {
	background: #fff;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .06);
}
.navis-yacht-feature__link { color: inherit; text-decoration: none; }
.navis-yacht-feature__media { position: relative; min-height: 260px; background: var(--nv-line); }
.navis-yacht-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.navis-yacht-feature__media .navis-yacht-badge { position: absolute; top: 16px; left: 16px; }
.navis-yacht-feature__body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.navis-yacht-feature__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.navis-yacht-feature__builder { margin: 0 0 14px; font-size: 14px; color: var(--nv-muted); }
.navis-yacht-feature__price { margin: 0; font-size: 18px; font-weight: 700; }

@media (max-width: 767px) {
	.navis-yacht-feature__media { min-height: 200px; }
}

/* Design4 — hero (bespoke overlay, not a grid problem) + card grid below it. */
.navis-yachts-hero__feature {
	position: relative;
	display: block;
	border-radius: var(--nv-radius);
	overflow: hidden;
	min-height: 360px;
	margin-bottom: 24px;
	color: #fff;
	text-decoration: none;
}
.navis-yachts-hero__feature img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.navis-yachts-hero__feature .navis-yacht-badge {
	position: relative;
	margin: 20px 0 0 20px;
}
.navis-yachts-hero__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 60px 24px 24px;
	background: linear-gradient(0deg, rgba(15, 23, 42, .85), transparent);
}
.navis-yachts-hero__title { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.navis-yachts-hero__builder { margin: 0 0 6px; opacity: .85; font-size: 14px; }
.navis-yachts-hero__price { margin: 0; font-size: 16px; font-weight: 700; }
