/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
	background-color: #0a0a0a;
	background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 30px 30px;
	color: #fff;
	padding: 7rem 2rem 6rem;
}

.hero__inner {
	max-width: 1280px;
	margin: 0 auto;
}

/* Badge */
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ef4444;
	border: 1px solid rgba(239,68,68,0.25);
	padding: 0.375rem 0.875rem 0.375rem 0.625rem;
	border-radius: 999px;
	margin-bottom: 2.25rem;
}

.hero__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ef4444;
	animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.25; }
}

/* Title */
.hero__title {
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin: 0 0 1.5rem;
	color: #fafafa;
}

.hero__title em {
	font-style: normal;
	background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero__subtitle {
	font-size: 1rem;
	color: #52525b;
	max-width: 480px;
	line-height: 1.7;
	margin: 0 0 2.5rem;
}

/* Search form */
.hero__form {
	display: flex;
	align-items: center;
	max-width: 620px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 14px;
	padding: 0.375rem;
	gap: 0.375rem;
	margin-bottom: 1.5rem;
}

.hero__input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.hero__search-icon {
	position: absolute;
	left: 0.875rem;
	color: #3f3f46;
	pointer-events: none;
	flex-shrink: 0;
}

.hero__input {
	width: 100%;
	padding: 0.75rem 0.75rem 0.75rem 2.75rem;
	font-size: 1rem;
	background: transparent;
	border: none;
	color: #fafafa;
	outline: none;
	box-sizing: border-box;
}

.hero__input::placeholder { color: #3f3f46; }

.hero__submit {
	flex-shrink: 0;
	padding: 0.75rem 1.375rem;
	background: #ef4444;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}

.hero__submit:hover,
.hero__submit:focus-visible { background: #dc2626; }

/* Stats line */
.hero__stats {
	font-size: 0.8125rem;
	color: #3f3f46;
	margin: 0;
}

.hero__stats strong { color: #71717a; }

/* Suggestions dropdown */
.hero__suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0,0,0,0.5);
	list-style: none;
	margin: 0;
	padding: 0.375rem 0;
	z-index: 200;
}

.hero__suggestions li a {
	display: block;
	padding: 0.625rem 1rem;
	color: #a1a1aa;
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.1s, background 0.1s;
}

.hero__suggestions li.is-active a,
.hero__suggestions li a:hover {
	background: rgba(239,68,68,0.08);
	color: #ef4444;
}

/* ─── Recently reported ───────────────────────────────────────────────────── */

.recent-places {
	background: #0a0a0a;
	padding: 5rem 2rem 6rem;
	border-top: 1px solid #18181b;
}

.recent-places__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.recent-places__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.recent-places__title {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #3f3f46;
	margin: 0;
}

.recent-places__browse {
	font-size: 0.8125rem;
	color: #52525b;
	text-decoration: none;
	transition: color 0.15s;
}

.recent-places__browse:hover { color: #ef4444; }

/* ── Magazine grid: featured left (2 rows), 2×2 smaller cards right ──── */
.places-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	grid-template-rows: 280px 280px;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Base card — all cards are now full-bleed ──────────────────────────── */
.place-card {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #111;
	border: 1px solid #1e1e1e;
	transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
	            border-color 0.3s,
	            box-shadow 0.3s;
}

.place-card:hover {
	transform: translateY(-3px);
	border-color: rgba(239, 68, 68, 0.35);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.place-card__link {
	display: block;
	position: relative;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ── Featured (col 1, spans 2 rows) ───────────────────────────────────── */
.place-card--featured {
	grid-column: 1;
	grid-row: 1 / span 2;
}

/* ── Media fills the entire card for every card ────────────────────────── */
.place-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.place-card__media img,
.place-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s cubic-bezier(0.2, 0, 0, 1);
}

.place-card:hover .place-card__media img {
	transform: scale(1.05);
}

.place-card__placeholder {
	background: linear-gradient(160deg, #1c1c1f 0%, #111 55%, #1a0808 100%);
}

/* Gradient scrim — stronger at bottom for legibility */
.place-card__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0)    0%,
		rgba(0, 0, 0, 0.1)  30%,
		rgba(0, 0, 0, 0.72) 65%,
		rgba(0, 0, 0, 0.95) 100%
	);
}

/* ── Chips (severity left, category right) ─────────────────────────────── */
.place-card__chips {
	position: absolute;
	top: 0.875rem;
	left: 0.875rem;
	right: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	z-index: 3;
	flex-wrap: wrap;
}

.place-card__severity {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.sev-bad      { background: rgba(161,113,  0,0.88); color: #fef08a; border: 1px solid rgba(253,224, 71,0.4); }
.sev-very-bad { background: rgba(154, 52,  0,0.88); color: #fed7aa; border: 1px solid rgba(251,146, 60,0.4); }
.sev-terrible { background: rgba(153, 27, 27,0.88); color: #fecaca; border: 1px solid rgba(248,113,113,0.4); }

.place-card__cat {
	margin-left: auto;
	font-size: 0.6875rem;
	font-weight: 500;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	white-space: nowrap;
	line-height: 1;
}

/* ── Text overlay at bottom ────────────────────────────────────────────── */
.place-card__overlay-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.125rem 1.25rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.275rem;
}

.place-card--featured .place-card__overlay-body {
	padding: 2rem 1.875rem 1.75rem;
	gap: 0.45rem;
}

/* Location: "Place Name · City, State" */
.place-card__location {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.42);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.place-card--featured .place-card__location {
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Title */
.place-card__name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fafafa;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.015em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.place-card--featured .place-card__name {
	font-size: 1.625rem;
	line-height: 1.15;
	letter-spacing: -0.035em;
	-webkit-line-clamp: 3;
}

/* Excerpt — featured card only */
.place-card__excerpt {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.48);
	margin: 0.1rem 0 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Date */
.place-card__date {
	font-size: 0.625rem;
	color: rgba(255, 255, 255, 0.28);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-top: 0.25rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.625rem 1.375rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.btn--primary { background: #ef4444; color: #fff; }
.btn--primary:hover { background: #dc2626; }

/* Empty state */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	color: #52525b;
}

/* ─── How it works ────────────────────────────────────────────────────────── */

.how-it-works {
	background: #0a0a0a;
	border-top: 1px solid #18181b;
	padding: 5rem 2rem 6rem;
}

.how-it-works__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.how-it-works__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #3f3f46;
	margin-bottom: 3rem;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

.step {
	padding: 0 2.5rem 0 0;
	border-right: 1px solid #18181b;
}

.step:not(:first-child) { padding-left: 2.5rem; }
.step:last-child { border-right: none; padding-right: 0; }

.step__number {
	display: block;
	font-size: 3.25rem;
	font-weight: 800;
	color: #1c1c1e;
	letter-spacing: -0.04em;
	line-height: 1;
	margin-bottom: 1.25rem;
}

.step__heading {
	font-size: 1rem;
	font-weight: 600;
	color: #e4e4e7;
	margin: 0 0 0.5rem;
}

.step__text {
	font-size: 0.875rem;
	color: #52525b;
	line-height: 1.65;
	margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
	/* Featured spans full top row, 4 smaller cards 2×2 below */
	.places-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 340px 200px 200px;
	}

	.place-card--featured {
		grid-column: 1 / span 2;
		grid-row: 1;
	}
}

@media (max-width: 600px) {
	.hero { padding: 5rem 1.5rem 4rem; }

	.hero__form {
		flex-direction: column;
		border-radius: 12px;
	}

	.hero__submit { width: 100%; text-align: center; }

	/* Single column — all cards stack, fixed heights */
	.places-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		gap: 0.75rem;
	}

	.place-card--featured {
		grid-column: 1;
		grid-row: auto;
		height: 300px;
	}

	.place-card:not(.place-card--featured) {
		height: 180px;
	}

	/* Tighten overlay padding on small screens */
	.place-card__overlay-body        { padding: 0.875rem 1rem; }
	.place-card--featured .place-card__overlay-body { padding: 1.25rem 1.125rem; }
	.place-card--featured .place-card__name { font-size: 1.25rem; }

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

	.step {
		border-right: none;
		border-bottom: 1px solid #18181b;
		padding: 1.75rem 0;
	}

	.step:last-child { border-bottom: none; padding-bottom: 0; }
	.step:not(:first-child) { padding-left: 0; }
}

