:root {
	--green-dark: #4e7a0b;
	--green: #6f9f12;
	--green-soft: #bfd25d;
	--gold: #d9871b;
	--orange: #ff8f1f;
	--text: #202020;
	--muted: #6d6d6d;
	--border: #d9d9d9;
	--surface: #ffffff;
	--bg: #f4f4f1;
	--shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	--radius: 10px;
	--container: 1180px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background: linear-gradient(180deg, #ffffff 0, #f8f8f6 120px, var(--bg) 100%);
	color: var(--text);
	line-height: 1.4;
	min-width: 320px;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select {
	font: inherit;
}

.container {
	width: min(calc(100% - 32px), var(--container));
	margin: 0 auto;
}

.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;
}

.topbar {
	background: var(--green-dark);
	color: #fff;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
}

.topbar__inner,
.header__grid,
.nav__inner,
.hero,
.section-head,
.pager,
.footer__grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.topbar__inner {
	min-height: 36px;
}

.topbar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-end;
}

.header {
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 20;
}

.header__grid {
	padding: 14px 0;
	align-items: center;
}

.brand {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 160px;
	max-width: 190px;
}

.brand__logo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.search {
	display: flex;
	flex: 1 1 580px;
	max-width: 680px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.search input {
	flex: 1;
	border: 0;
	padding: 0 18px;
	min-width: 0;
}

.search button,
.hero__filters button {
	border: 0;
	background: linear-gradient(180deg, #86ae24, #5f8f0e);
	color: #fff;
	font-weight: 700;
	padding: 0 22px;
	cursor: pointer;
}

.header__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 8px;
	font-weight: 700;
	border: 1px solid transparent;
}

.button--ghost {
	border-color: var(--border);
	background: #fff;
	color: #2d2d2d;
}

.button--solid {
	background: linear-gradient(180deg, var(--green), var(--green-dark));
	color: #fff;
}

.nav {
	background: #ededed;
	border-top: 1px solid #e2e2e2;
	border-bottom: 1px solid #d6d6d6;
}

.nav__inner {
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.nav__inner a {
	display: inline-flex;
	align-items: center;
	padding: 11px 18px;
	font-size: 0.86rem;
	font-weight: 700;
	color: #4d4d4d;
	text-transform: uppercase;
}

.nav__inner a.is-active,
.nav__inner a:hover {
	background: #fff;
	color: var(--green-dark);
}

main {
	padding: 18px 0 32px;
}

.hero {
	align-items: stretch;
	gap: 18px;
	margin-bottom: 22px;
}

.hero__search,
.hero__banner {
	border-radius: 12px;
	min-height: 184px;
	box-shadow: var(--shadow);
}

.hero__search {
	flex: 1 1 68%;
	padding: 24px;
	background:
		linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.03)),
		linear-gradient(120deg, #9fc635 0%, #6d9e11 42%, #467112 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.hero__search h1 {
	font-size: clamp(1.6rem, 2vw, 2.2rem);
	line-height: 1.05;
	max-width: 760px;
}

.hero__search p {
	max-width: 720px;
	color: rgba(255, 255, 255, 0.92);
}

.hero__filters {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
	gap: 10px;
	margin-top: 6px;
}

.hero__filters input,
.hero__filters select {
	min-width: 0;
	height: 44px;
	border: 0;
	border-radius: 8px;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.95);
}

.hero__filters button {
	border-radius: 8px;
	padding-inline: 24px;
}

.hero__banner {
	flex: 1 1 32%;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 22px;
	background: #d88a22;
}

.hero__banner::before {
	content: "";
	position: absolute;
	inset: 20px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	z-index: 2;
}

.hero__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.12));
	z-index: 1;
}

.hero__carousel {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__carousel-dots {
	position: absolute;
	left: 24px;
	bottom: 22px;
	display: inline-flex;
	gap: 8px;
	z-index: 3;
}

.hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero__dot.is-active {
	background: #fff;
}

.hero__banner-copy {
	position: relative;
	z-index: 3;
	color: #fff;
	max-width: 220px;
	margin-left: auto;
	text-align: right;
}

.hero__banner-copy span {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.hero__banner-copy strong {
	display: block;
	font-size: 1.25rem;
	line-height: 1.1;
}

.listings-section {
	margin-top: 18px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin: 18px auto 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.section-head--stacked {
	align-items: flex-end;
}

.section-head h2 {
	font-size: 1.35rem;
	color: #2d2d2d;
}

.section-head p {
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 360px;
	text-align: right;
}

.listing-grid {
	display: grid;
	gap: 16px;
}

.listing-grid--featured {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-grid--recent {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
	position: relative;
	background: var(--surface);
	border: 1px solid #dcdcdc;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.card__media {
	width: 100%;
	aspect-ratio: 1 / 0.82;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.card__media::before,
.card__media::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__media::after {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.card__media--1 {
	background-image: linear-gradient(180deg, rgba(85, 56, 28, 0.12), rgba(85, 56, 28, 0.12)), linear-gradient(135deg, #a0cf58 0%, #7bb03f 48%, #8b5c30 48%, #8b5c30 60%, #d8c18a 60%, #d8c18a 100%);
}

.card__media--1::before {
	background: radial-gradient(circle at 24% 72%, #7d4e2d 0 5px, transparent 6px), radial-gradient(circle at 31% 66%, #7d4e2d 0 4px, transparent 5px), radial-gradient(circle at 40% 70%, #7d4e2d 0 5px, transparent 6px), linear-gradient(180deg, transparent 0 66%, rgba(97, 62, 29, 0.55) 66% 100%);
	opacity: 0.7;
}

.card__media--2 {
	background-image: linear-gradient(180deg, rgba(56, 82, 39, 0.12), rgba(56, 82, 39, 0.12)), linear-gradient(135deg, #b7d48a 0%, #86a85f 48%, #c4b07d 48%, #c4b07d 58%, #e6dac0 58%, #e6dac0 100%);
}

.card__media--2::before {
	background: radial-gradient(circle at 50% 72%, #6f8d4d 0 16px, transparent 17px), radial-gradient(circle at 56% 71%, #f2e0b5 0 8px, transparent 9px), linear-gradient(180deg, transparent 0 62%, rgba(105, 84, 44, 0.46) 62% 100%);
	opacity: 0.9;
}

.card__media--3 {
	background-image: linear-gradient(180deg, rgba(36, 62, 18, 0.12), rgba(36, 62, 18, 0.12)), linear-gradient(135deg, #6f8b3a 0%, #b7cc77 44%, #d2b06c 44%, #d2b06c 56%, #8d5d27 56%, #8d5d27 100%);
}

.card__media--3::before {
	background: linear-gradient(160deg, transparent 0 40%, rgba(86, 58, 29, 0.48) 40% 100%), radial-gradient(circle at 84% 26%, #f7c64f 0 14px, transparent 15px), radial-gradient(circle at 72% 58%, #9fb451 0 20px, transparent 21px);
}

.card__media--4 {
	background-image: linear-gradient(180deg, rgba(48, 100, 33, 0.1), rgba(48, 100, 33, 0.1)), linear-gradient(135deg, #8fb95b 0%, #78a43c 42%, #f2c86f 42%, #f2c86f 56%, #6e4f2a 56%, #6e4f2a 100%);
}

.card__media--4::before {
	background: radial-gradient(circle at 58% 55%, #4f7d2d 0 24px, transparent 25px), radial-gradient(circle at 66% 60%, #4f7d2d 0 13px, transparent 14px), linear-gradient(180deg, transparent 0 54%, rgba(80, 61, 27, 0.46) 54% 100%);
}

.card__media--5 {
	background-image: linear-gradient(180deg, rgba(58, 54, 22, 0.14), rgba(58, 54, 22, 0.14)), linear-gradient(135deg, #9fbb71 0%, #789e44 40%, #b89a63 40%, #b89a63 54%, #e1d2b0 54%, #e1d2b0 100%);
}

.card__media--5::before {
	background: linear-gradient(180deg, transparent 0 58%, rgba(88, 69, 30, 0.46) 58% 100%), radial-gradient(circle at 80% 64%, #55783a 0 12px, transparent 13px), radial-gradient(circle at 72% 66%, #55783a 0 10px, transparent 11px);
}

.card__media--6 {
	background-image: linear-gradient(180deg, rgba(40, 84, 40, 0.1), rgba(40, 84, 40, 0.1)), linear-gradient(135deg, #5f8f2b 0%, #98bd58 46%, #d8bc82 46%, #d8bc82 60%, #8b6633 60%, #8b6633 100%);
}

.card__media--6::before {
	background: radial-gradient(circle at 24% 70%, #dfe6ca 0 14px, transparent 15px), radial-gradient(circle at 38% 72%, #b0c77f 0 16px, transparent 17px), linear-gradient(180deg, transparent 0 64%, rgba(83, 58, 26, 0.45) 64% 100%);
}

.card__body {
	padding: 12px 12px 14px;
}

.card--compact .card__body {
	padding: 10px 10px 12px;
}

.card__body h3 {
	font-size: 0.98rem;
	line-height: 1.25;
	min-height: 2.45em;
	margin-bottom: 8px;
	color: #333;
}

.card--compact .card__body h3 {
	font-size: 0.86rem;
	min-height: 3.1em;
	margin-bottom: 6px;
}

.card__body p {
	font-size: 0.86rem;
	color: #666;
	min-height: 3.75em;
	margin-bottom: 10px;
}

.card--compact .card__body p {
	display: none;
}

.card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
}

.card--compact .card__meta {
	font-size: 0.77rem;
}

.card__meta span {
	color: #666;
}

.card__meta strong {
	color: #d26f00;
}

.footer {
	background: #333;
	color: #f3f3f3;
	margin-top: 24px;
	padding: 28px 0 36px;
}

.footer__grid {
	align-items: flex-start;
	gap: 26px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer h3 {
	font-size: 1.05rem;
	margin-bottom: 12px;
	font-weight: 700;
}

.footer a,
.footer p {
	display: block;
	color: #dadada;
	margin-bottom: 8px;
	font-size: 0.92rem;
}

@media (max-width: 1100px) {
	.header__grid,
	.hero {
		flex-direction: column;
		align-items: stretch;
	}

	.brand {
		align-self: center;
		margin-inline: auto;
	}

	.header__grid {
		gap: 12px;
	}

	.search {
		width: min(100%, 760px);
		max-width: 760px;
		align-self: center;
		flex: 0 0 auto;
		margin-inline: auto;
	}

	.search input {
		padding-inline: 14px;
	}

	.search button {
		padding-inline: 18px;
		white-space: nowrap;
	}

	.listing-grid--featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.listing-grid--recent {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.container {
		width: min(calc(100% - 20px), var(--container));
	}

	.topbar__inner,
	.nav__inner,
	.section-head {
		flex-direction: column;
	}

	.nav__inner,
	.section-head {
		align-items: flex-start;
	}

	.topbar__inner {
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.topbar__inner > span {
		width: 100%;
		text-align: center;
	}

	.topbar__links {
		width: 100%;
		justify-content: center;
	}

	.section-head p {
		text-align: left;
	}

	.header__actions {
		width: 100%;
	}

	.button {
		flex: 1 1 140px;
	}

	.search {
		flex-direction: row;
		height: 42px;
		border-radius: 999px;
		max-width: 100%;
	}

	.search input {
		height: 100%;
		padding-inline: 12px;
		font-size: 0.95rem;
	}

	.search button {
		height: 100%;
		padding-inline: 14px;
		font-size: 0.9rem;
		min-width: 92px;
	}

	.hero__filters {
		grid-template-columns: 1fr;
	}

	.hero__banner-copy {
		margin-left: 0;
		text-align: left;
	}

	.listing-grid--featured,
	.listing-grid--recent,
	.footer__grid {
		grid-template-columns: 1fr;
	}
}