/*
 * The houses strip, as it appears on somebody else's page.
 *
 * This runs inside the Nailux theme rather than inside one of the
 * plugin's own documents, so it has to be a good guest: everything is
 * scoped under .nxs-strip, nothing is set on body, html or any element
 * selector, and no theme class is overridden. If the theme changes, this
 * keeps working; if this is removed, the theme is untouched.
 *
 * It also carries its own colours rather than reading the theme's
 * custom properties. The two palettes happen to match today — both are
 * ink #0A0A0B with a peach accent — but inheriting --peach from a
 * stylesheet this file does not own means a theme tweak silently
 * restyles the plugin, and the first anybody would know is a screenshot.
 */

.nxs-strip {
	--nxs-ink: #0a0a0b;
	--nxs-surface: #141416;
	--nxs-line: #242428;
	--nxs-soft: #8e9398;
	--nxs-peach: #f09c72;
	--nxs-paper: #f6f6f7;

	background: var(--nxs-ink);
	color: var(--nxs-paper);
	padding: 56px 0 64px;
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nxs-strip-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.nxs-strip-eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nxs-peach);
}

.nxs-strip-title {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--nxs-paper);
}

.nxs-strip-intro {
	margin: 0 0 28px;
	max-width: 54ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--nxs-soft);
}

/* ---- the cards ---------------------------------------------------- */

.nxs-strip-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.nxs-strip-card {
	margin: 0;
	border: 1px solid var(--nxs-line);
	border-radius: 12px;
	background: var(--nxs-surface);
	overflow: hidden;
}

.nxs-strip-card > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.nxs-strip-card > a:hover { border-color: var(--nxs-soft); }

.nxs-strip-shot {
	display: block;
	aspect-ratio: 3 / 2;
	background: #1b1b1f;
}

.nxs-strip-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The cards work with no photograph, because at the time of writing
 * none of the houses has one and a broken-looking grid on the home page
 * would be worse than a plain one.
 *
 * This used to be an :empty rule, which drew a short blank band. It is
 * now the same stand-in panel the booking pages use — nxp_house_shot()
 * prints it — so a house with no photograph looks the same on the home
 * page as it does on /stays/ and on its own page, and the box keeps its
 * 3:2 shape ready for the real photograph.
 */
.nxs-strip-shot .nxp-noshot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #26262b, #1b1b1f);
	color: #44444d;
}

.nxs-strip-body {
	display: block;
	padding: 14px 16px 16px;
}

.nxs-strip-name {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--nxs-paper);
}

.nxs-strip-area {
	display: block;
	margin: 2px 0 10px;
	font-size: 13px;
	color: var(--nxs-soft);
}

.nxs-strip-price {
	display: block;
	font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--nxs-paper);
}

.nxs-strip-price small {
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 400;
	color: var(--nxs-soft);
}

/* ---- the way through ---------------------------------------------- */

.nxs-strip-more { margin: 0 0 14px; }

.nxs-strip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 22px;
	border-radius: 100px;
	background: var(--nxs-peach);
	color: #1a1110;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.nxs-strip-btn:hover,
.nxs-strip-btn:focus {
	background: #f6ae88;
	color: #1a1110;
}

.nxs-strip-note {
	margin: 0;
	max-width: 60ch;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--nxs-soft);
}

@media (min-width: 720px) {
	.nxs-strip { padding: 80px 0 88px; }
	.nxs-strip-wrap { padding: 0 32px; }
	.nxs-strip-title { font-size: 36px; }
	.nxs-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1000px) {
	.nxs-strip-grid { grid-template-columns: repeat(3, 1fr); }
}
