/* Spain Life & Houses, open houses. Light theme only. Orange is a fill, never text on a light background. */

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("/fonts/playfair-display-latin.woff2") format("woff2");
}

:root {
	--navy: #0a1320;
	--navy-soft: #16212f;
	--orange: #ff8a2a;
	--orange-hover: #ffa04f;
	--sand: #e6dcc6;
	--sand-soft: #f0e9da;
	--page: #f6f5f2;
	--card: #ffffff;
	--line: #ddd6c6;
	--muted: #46505e;
	--radius: 14px;
	--gutter: 16px;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1 0 auto;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--navy);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.08em;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	letter-spacing: -0.005em;
}

p {
	margin: 0 0 1rem;
}

:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
	border-radius: 4px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 20;
	background: var(--navy);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 0 0 8px 8px;
}
.skip-link:focus {
	top: 0;
	outline-color: var(--orange);
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Header and footer */

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}
.brand img {
	width: 140px;
	height: auto;
}
.site-header__tag {
	display: none;
	color: var(--muted);
	font-size: 0.9375rem;
}

.site-footer {
	background: var(--navy);
	color: var(--sand);
	margin-top: 4rem;
	padding: 2rem 0;
}
.site-footer a {
	color: #fff;
}
.site-footer :focus-visible {
	outline-color: var(--orange);
}
.site-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-bottom: 0.75rem;
}
.site-footer__small {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.85;
}

/* Overview */

.intro {
	background: var(--navy);
	color: #fff;
	padding: 2.5rem 0 2.75rem;
}
.intro h1 {
	font-size: clamp(2.25rem, 7vw, 3.5rem);
	margin-bottom: 0.75rem;
}
.intro p {
	color: var(--sand);
	font-size: 1.125rem;
	max-width: 38rem;
	margin: 0;
}

.list {
	padding-top: 2rem;
}
.grid {
	display: grid;
	gap: 1.5rem;
}

.card {
	display: grid;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	max-width: 980px;
}
.card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.card__date {
	margin: 0 0 0.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.card__time {
	font-weight: 600;
}
.card__area {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.card__title {
	font-size: 1.5rem;
	margin-bottom: 0.25rem;
}
.card__title a {
	text-decoration: none;
}
.card__title a:hover {
	text-decoration: underline;
}
.card__price {
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.card__body p:last-child {
	margin: auto 0 0;
}

.chip {
	display: inline-block;
	background: var(--orange);
	color: var(--navy);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
}

.empty {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem 1.25rem;
	max-width: 44rem;
}
.empty__title {
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 1rem;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.4rem;
	border: 2px solid var(--navy);
	border-radius: 10px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.button--primary {
	background: var(--orange);
	border-color: var(--orange);
	color: var(--navy);
}
.button--primary:hover {
	background: var(--orange-hover);
	border-color: var(--orange-hover);
}
.button--secondary {
	background: #fff;
	color: var(--navy);
}
.button--secondary:hover {
	background: var(--navy);
	color: #fff;
}

/* Detail page */

.detail {
	padding-top: 1rem;
}
.back {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}
.hero {
	margin-inline: calc(var(--gutter) * -1);
}
.hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 70vh;
	object-fit: cover;
}
.banner {
	background: var(--sand);
	border-left: 6px solid var(--navy);
	padding: 1rem 1.25rem;
	margin: 1.25rem 0 0;
	font-weight: 600;
}
.detail__head {
	padding: 1.5rem 0 1.25rem;
}
.eyebrow {
	margin: 0 0 0.5rem;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.detail__head h1 {
	font-size: clamp(1.875rem, 6vw, 3rem);
	max-width: 22ch;
}
.partner {
	margin: 0.75rem 0 0;
	color: var(--muted);
	font-size: 0.9375rem;
}
.detail__main {
	display: grid;
	gap: 1.5rem;
}
.detail__facts {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
	align-self: start;
}
.when {
	margin: 0 0 1.25rem;
}
.when .chip {
	font-size: 1.0625rem;
	padding: 0.5rem 1rem;
	border-radius: 12px;
}
.nowrap {
	white-space: nowrap;
}
.facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	margin: 0;
}
.facts dt {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.facts dd {
	margin: 0.15rem 0 0;
	font-size: 1.125rem;
	font-weight: 600;
}
.lead {
	font-size: 1.1875rem;
	max-width: 40rem;
}
.actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem;
	max-width: 40rem;
}

.block {
	margin-top: 3rem;
}
.block h2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}
.count {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted);
	margin-left: 0.25rem;
}

.previews {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.preview img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	background: var(--sand-soft);
}
.kit-note {
	margin: 1rem 0 0;
	font-weight: 600;
}

.lang-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.lang-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 1rem;
	border: 2px solid var(--navy);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	text-decoration: none;
}
.lang-list a:hover {
	background: var(--navy);
	color: #fff;
}

/* Larger screens */

@media (min-width: 600px) {
	:root {
		--gutter: 24px;
	}
	.site-header__tag {
		display: block;
	}
	.brand img {
		width: 160px;
	}
	.hero {
		margin-inline: 0;
	}
	.hero img {
		border-radius: var(--radius);
	}
	.actions {
		grid-template-columns: 1fr 1fr;
	}
	.previews {
		gap: 12px;
	}
}

@media (min-width: 820px) {
	.intro {
		padding: 3.5rem 0 3.75rem;
	}
	.card {
		grid-template-columns: 5fr 6fr;
	}
	.card__media img {
		height: 100%;
		aspect-ratio: auto;
		min-height: 280px;
	}
	.card__body {
		padding: 2rem;
	}
	.card__title {
		font-size: 1.875rem;
	}
	.detail__main {
		grid-template-columns: 360px 1fr;
		gap: 3rem;
	}
	.detail__text {
		padding-top: 0.25rem;
	}
	.previews {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
