/**
 * Local Life, community, and submission block styles.
 *
 * Uses --explore864-* design tokens from the theme; falls back to the
 * deep pine / forest / sand / river / cream palette.
 *
 * @package Explore864
 */

:root {
	--e864-primary: var(--explore864-color-primary, #00313c);
	--e864-accent: var(--explore864-color-accent, #446153);
	--e864-sand: var(--explore864-color-secondary, #d5c8a1);
	--e864-river: var(--explore864-color-river, #a3c0ce);
	--e864-surface: var(--explore864-color-surface, #fffbf3);
	--e864-elevated: var(--explore864-color-elevated, #ffffff);
	--e864-text: var(--explore864-color-text, #21302d);
	--e864-muted: var(--explore864-color-muted, #62736f);
	--e864-border: var(--explore864-color-border, #e4e4e6);
	--e864-radius: var(--explore864-radius-md, 14px);
	--e864-radius-lg: var(--explore864-radius-lg, 20px);
	--e864-shadow: var(--explore864-shadow, 0 4px 16px rgba(0, 49, 60, 0.08));
	--e864-font-heading: var(--explore864-font-heading, "Fraunces", Georgia, serif);
	--e864-font-body: var(--explore864-font-body, "Inter", system-ui, sans-serif);
	--e864-font-script: var(--explore864-font-script, "Caveat", cursive);
}

.explore864-local-mount {
	min-height: 2rem;
}

/* -------------------------------------------------------------------------
   Local hero
   ------------------------------------------------------------------------- */

.explore864-local-hero {
	position: relative;
	background: var(--e864-primary);
	background-image: var(--e864-hero-image, linear-gradient(160deg, #00313c 0%, #446153 100%));
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}

.explore864-local-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 49, 60, 0.55) 0%, rgba(0, 49, 60, 0.75) 100%);
}

.explore864-local-hero__inner {
	position: relative;
	max-width: var(--explore864-container-max, 1280px);
	margin: 0 auto;
	padding: 5.5rem 1.5rem 4.5rem;
	text-align: center;
}

.explore864-local-hero__kicker {
	font-family: var(--e864-font-script);
	font-size: 1.5rem;
	color: var(--e864-sand);
	margin: 0 0 0.5rem;
}

.explore864-local-hero__headline {
	font-family: var(--e864-font-heading);
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	line-height: 1.08;
	color: #fff;
	margin: 0 0 1rem;
}

.explore864-local-hero__subhead {
	max-width: 38rem;
	margin: 0 auto 2rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.explore864-audience-switch {
	display: inline-flex;
	gap: 0.35rem;
	padding: 0.35rem;
	border-radius: 999px;
	background: rgba(255, 251, 243, 0.14);
	backdrop-filter: blur(8px);
	margin-bottom: 1.75rem;
}

.explore864-audience-switch button {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--e864-font-body);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.55rem 1.25rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.explore864-audience-switch button.is-active {
	background: var(--e864-sand);
	color: var(--e864-primary);
}

.explore864-local-hero__quicklinks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.explore864-local-hero__quicklinks a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.3rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 251, 243, 0.35);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.explore864-local-hero__quicklinks a:hover {
	background: rgba(255, 251, 243, 0.16);
	border-color: var(--e864-sand);
	color: #fff;
}

.explore864-local-hero__quicklinks a.is-primary {
	background: var(--e864-sand);
	border-color: var(--e864-sand);
	color: var(--e864-primary);
}

/* -------------------------------------------------------------------------
   Shared card rails & grids
   ------------------------------------------------------------------------- */

.e864-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	gap: 1.25rem;
	overflow-x: auto;
	padding-bottom: 0.75rem;
	scroll-snap-type: x mandatory;
}

.e864-rail > * {
	scroll-snap-align: start;
}

.e864-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.e864-card {
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	box-shadow: var(--explore864-shadow-sm, 0 2px 8px rgba(0, 49, 60, 0.06));
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.e864-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--e864-shadow);
}

.e864-card__image {
	line-height: 0;
	background: color-mix(in srgb, var(--e864-river) 35%, #fff);
}

.e864-card__image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.e864-card__body {
	padding: 1rem 1.15rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.e864-card__eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--e864-accent);
}

.e864-card__title {
	font-family: var(--e864-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--e864-text);
	margin: 0;
}

.e864-card__meta {
	font-size: 0.875rem;
	color: var(--e864-muted);
	line-height: 1.45;
}

.e864-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: color-mix(in srgb, var(--e864-river) 30%, #fff);
	color: var(--e864-primary);
}

.e864-empty {
	color: var(--e864-muted);
	text-align: center;
	padding: 2rem 1rem;
	background: color-mix(in srgb, var(--e864-sand) 18%, #fff);
	border-radius: var(--e864-radius);
}

/* Save / bookmark button on cards */
.e864-save-btn {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 251, 243, 0.92);
	color: var(--e864-primary);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 49, 60, 0.18);
	transition: transform 0.15s ease;
	z-index: 2;
}

.e864-save-btn:hover {
	transform: scale(1.1);
}

.e864-save-btn.is-saved {
	background: var(--e864-sand);
}

/* -------------------------------------------------------------------------
   Neighborhood finder
   ------------------------------------------------------------------------- */

/* Full-page finder: filter pane + Card|Table|Map results */
.e864-hood-finder--full {
	display: grid;
	grid-template-columns: 290px 1fr;
	gap: 2rem;
	align-items: start;
}

.e864-hood-finder__results {
	min-width: 0;
}

.e864-hood-finder__toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1.25rem;
}

@media (max-width: 921px) {
	.e864-hood-finder--full {
		grid-template-columns: 1fr;
	}
}

.e864-hood-finder__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.e864-hood-finder__filters button {
	border: 1px solid var(--e864-border);
	background: var(--e864-elevated);
	color: var(--e864-text);
	border-radius: 999px;
	padding: 0.45rem 1.1rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.e864-hood-finder__filters button.is-active {
	background: var(--e864-primary);
	border-color: var(--e864-primary);
	color: #fff;
}

.e864-hood-finder__search {
	width: 100%;
	max-width: 380px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--e864-border);
	border-radius: 999px;
	font-family: var(--e864-font-body);
	margin-bottom: 1rem;
	background: var(--e864-elevated);
}

.e864-hood-card__price {
	font-weight: 700;
	color: var(--e864-accent);
}

/* -------------------------------------------------------------------------
   Relocation checklist
   ------------------------------------------------------------------------- */

.e864-checklist {
	max-width: 760px;
	margin: 0 auto;
}

.e864-checklist__progress {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.e864-checklist__bar {
	flex: 1;
	height: 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--e864-river) 35%, #fff);
	overflow: hidden;
}

.e864-checklist__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--e864-accent), var(--e864-primary));
	transition: width 0.3s ease;
}

.e864-checklist__count {
	font-family: var(--e864-font-script);
	font-size: 1.35rem;
	color: var(--e864-accent);
	white-space: nowrap;
}

.e864-checklist__group {
	margin-bottom: 1.5rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.25rem 1.4rem;
}

.e864-checklist__group h3 {
	font-family: var(--e864-font-heading);
	font-size: 1.125rem;
	margin: 0 0 0.75rem;
	color: var(--e864-primary);
}

.e864-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.55rem 0;
	border-top: 1px solid var(--e864-border);
	cursor: pointer;
}

.e864-checklist__item:first-of-type {
	border-top: 0;
}

.e864-checklist__item input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.1rem;
	accent-color: var(--e864-accent);
	flex-shrink: 0;
}

.e864-checklist__item.is-done .e864-checklist__label {
	text-decoration: line-through;
	color: var(--e864-muted);
}

.e864-checklist__label strong {
	display: block;
	font-weight: 600;
}

.e864-checklist__label span {
	font-size: 0.875rem;
	color: var(--e864-muted);
}

/* -------------------------------------------------------------------------
   This Weekend
   ------------------------------------------------------------------------- */

.e864-weekend__list .e864-card__date {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
	padding: 0.5rem 0.6rem;
	border-radius: var(--e864-radius);
	background: var(--e864-primary);
	color: #fff;
	font-weight: 700;
	line-height: 1.15;
}

.e864-weekend__list .e864-card__date small {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.e864-event-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.e864-event-row:hover {
	box-shadow: var(--e864-shadow);
	transform: translateY(-2px);
}

.e864-event-row__body strong {
	display: block;
	color: var(--e864-text);
}

.e864-event-row__body span {
	font-size: 0.875rem;
	color: var(--e864-muted);
}

.e864-weekend__stack {
	display: grid;
	gap: 0.75rem;
}

/* -------------------------------------------------------------------------
   Passport CTA
   ------------------------------------------------------------------------- */

.e864-passport-cta {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
	align-items: center;
	background: linear-gradient(135deg, var(--e864-primary) 0%, var(--e864-accent) 100%);
	border-radius: var(--e864-radius-lg);
	color: #fff;
	padding: 2.5rem;
}

.e864-passport-cta h3 {
	font-family: var(--e864-font-heading);
	color: #fff;
	font-size: 1.75rem;
	margin: 0 0 0.75rem;
}

.e864-passport-cta p {
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 1.25rem;
}

.e864-passport-cta__challenges {
	display: grid;
	gap: 0.75rem;
}

.e864-passport-cta__challenge {
	background: rgba(255, 251, 243, 0.12);
	border: 1px solid rgba(255, 251, 243, 0.25);
	border-radius: var(--e864-radius);
	padding: 0.85rem 1rem;
	font-size: 0.9375rem;
}

.e864-passport-cta .dmo-btn--primary {
	background: var(--e864-sand);
	color: var(--e864-primary);
}

@media (max-width: 720px) {
	.e864-passport-cta {
		grid-template-columns: 1fr;
		padding: 1.75rem;
	}
}

/* -------------------------------------------------------------------------
   Community pulse / feed cards
   ------------------------------------------------------------------------- */

.e864-pulse-card {
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.e864-author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.e864-author img {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	object-fit: cover;
}

.e864-author__name {
	font-weight: 600;
	color: var(--e864-text);
	font-size: 0.9375rem;
}

.e864-author__meta {
	display: block;
	font-size: 0.78rem;
	color: var(--e864-muted);
}

.e864-pulse-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--e864-text);
	margin: 0;
}

.e864-pulse-card__image img {
	width: 100%;
	border-radius: var(--e864-radius);
	display: block;
	max-height: 280px;
	object-fit: cover;
}

.e864-reaction-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--e864-border);
}

.e864-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	background: transparent;
	color: var(--e864-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.e864-reaction-btn:hover {
	background: color-mix(in srgb, var(--e864-river) 25%, #fff);
	color: var(--e864-primary);
}

.e864-reaction-btn.is-liked {
	color: #c0392b;
}

.e864-reaction-btn.is-liked .e864-heart {
	animation: e864-pop 0.3s ease;
}

@keyframes e864-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.4); }
	100% { transform: scale(1); }
}

/* -------------------------------------------------------------------------
   Community: composer
   ------------------------------------------------------------------------- */

.e864-composer {
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.e864-composer textarea {
	width: 100%;
	min-height: 86px;
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	padding: 0.75rem 0.9rem;
	font-family: var(--e864-font-body);
	font-size: 0.9375rem;
	resize: vertical;
	background: var(--e864-surface);
}

.e864-composer__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.e864-composer__hint {
	font-size: 0.8125rem;
	color: var(--e864-muted);
}

/* -------------------------------------------------------------------------
   Community: tabs / panels / lists
   ------------------------------------------------------------------------- */

.e864-tabs {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.e864-tabs button {
	border: 1px solid var(--e864-border);
	background: var(--e864-elevated);
	color: var(--e864-text);
	border-radius: 999px;
	padding: 0.45rem 1.1rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
}

.e864-tabs button.is-active {
	background: var(--e864-primary);
	border-color: var(--e864-primary);
	color: #fff;
}

.e864-feed-stack {
	display: grid;
	gap: 1rem;
}

.e864-load-more {
	margin: 1.25rem auto 0;
	display: block;
}

.e864-list-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.e864-list-row:hover {
	box-shadow: var(--e864-shadow);
}

.e864-list-row.is-unread {
	border-left: 4px solid var(--e864-accent);
	background: color-mix(in srgb, var(--e864-river) 12%, #fff);
}

.e864-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #c0392b;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   Community: messages
   ------------------------------------------------------------------------- */

.e864-thread {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1rem;
	max-height: 540px;
	overflow-y: auto;
}

.e864-msg {
	max-width: 78%;
	padding: 0.6rem 0.9rem;
	border-radius: 16px;
	font-size: 0.9375rem;
	line-height: 1.45;
	background: color-mix(in srgb, var(--e864-river) 25%, #fff);
	color: var(--e864-text);
	align-self: flex-start;
}

.e864-msg.is-mine {
	background: var(--e864-primary);
	color: #fff;
	align-self: flex-end;
}

.e864-msg__time {
	display: block;
	font-size: 0.7rem;
	opacity: 0.65;
	margin-top: 0.2rem;
}

.e864-thread-input {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.e864-thread-input input {
	flex: 1;
	padding: 0.7rem 1rem;
	border: 1px solid var(--e864-border);
	border-radius: 999px;
	font-family: var(--e864-font-body);
	background: var(--e864-surface);
}

/* -------------------------------------------------------------------------
   Community: profile
   ------------------------------------------------------------------------- */

.e864-profile-header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.75rem;
	flex-wrap: wrap;
}

.e864-profile-header img.e864-profile-avatar {
	width: 96px;
	height: 96px;
	border-radius: 999px;
	object-fit: cover;
	border: 3px solid var(--e864-sand);
}

.e864-profile-header h2 {
	font-family: var(--e864-font-heading);
	margin: 0 0 0.25rem;
	color: var(--e864-primary);
}

.e864-profile-header__bio {
	color: var(--e864-muted);
	margin: 0 0 0.5rem;
	max-width: 36rem;
}

.e864-profile-stats {
	display: flex;
	gap: 1.25rem;
	font-size: 0.9375rem;
}

.e864-profile-stats strong {
	color: var(--e864-primary);
}

.e864-profile-header__main {
	flex: 1;
	min-width: 0;
}

.e864-profile-header__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.e864-profile-header__actions {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.e864-trust-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	background: color-mix(in srgb, var(--e864-sand) 55%, #fff);
	color: var(--e864-primary);
}

.e864-badge-shelf {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.e864-badge-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--e864-river) 18%, #fff);
	border: 1px solid var(--e864-border);
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--e864-primary);
}

.e864-profile-tabs {
	margin-top: 1rem;
}

.e864-profile-passport-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.e864-profile-settings {
	display: grid;
	gap: 1rem;
	max-width: 32rem;
	padding: 1rem 0;
}

.e864-profile-settings__field {
	display: grid;
	gap: 0.35rem;
}

.e864-profile-settings__field select {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	background: var(--e864-elevated);
}

.e864-profile-settings__note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--e864-muted);
}

.e864-members-directory__search {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.e864-members-directory__search input {
	flex: 1;
	min-width: 200px;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--e864-border);
	border-radius: 999px;
}

.e864-members-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.e864-member-card {
	display: flex;
	gap: 0.85rem;
	padding: 1rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	text-decoration: none;
	color: inherit;
}

.e864-member-card:hover {
	box-shadow: var(--e864-shadow);
}

.e864-member-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}

.e864-member-card__body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.e864-member-card__body strong {
	color: var(--e864-primary);
}

.e864-member-card__meta {
	font-size: 0.8125rem;
	color: var(--e864-muted);
}

.explore864-profile-page .explore864-home-section + .explore864-home-section {
	padding-top: 1.5rem;
}

/* -------------------------------------------------------------------------
   QR card
   ------------------------------------------------------------------------- */

.e864-qr-card {
	max-width: 360px;
	margin: 0 auto;
	text-align: center;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.75rem;
}

.e864-qr-card img {
	width: 200px;
	height: 200px;
	margin: 0.75rem auto;
	display: block;
}

/* -------------------------------------------------------------------------
   Submission forms
   ------------------------------------------------------------------------- */

.e864-form {
	max-width: 680px;
	margin: 0 auto;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	padding: 1.75rem;
}

.e864-form__steps {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.e864-form__step-dot {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: var(--e864-border);
}

.e864-form__step-dot.is-active {
	background: var(--e864-accent);
}

.e864-field {
	margin-bottom: 1.1rem;
}

.e864-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	color: var(--e864-text);
}

.e864-field input,
.e864-field select,
.e864-field textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	font-family: var(--e864-font-body);
	font-size: 0.9375rem;
	background: var(--e864-surface);
}

.e864-field--error input,
.e864-field--error textarea {
	border-color: #c0392b;
}

.e864-field__error {
	color: #c0392b;
	font-size: 0.8125rem;
	margin-top: 0.25rem;
}

.e864-form__nav {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.e864-form__success {
	text-align: center;
	padding: 2.5rem 1rem;
}

.e864-form__success h3 {
	font-family: var(--e864-font-heading);
	color: var(--e864-accent);
	font-size: 1.5rem;
	margin: 0.75rem 0 0.5rem;
}

.e864-form__success .e864-status-chip {
	margin-top: 0.75rem;
}

.e864-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.e864-status-chip--pending {
	background: color-mix(in srgb, var(--e864-sand) 45%, #fff);
	color: #7a6a35;
}

.e864-status-chip--approved {
	background: #e3efe6;
	color: #2e6443;
}

.e864-status-chip--in-review {
	background: #e9f1f5;
	color: #446153;
}

/* -------------------------------------------------------------------------
   My Submissions
   ------------------------------------------------------------------------- */

.e864-my-submissions__list {
	display: grid;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.e864-my-submissions__item {
	margin: 0;
}

.e864-my-submissions__row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 1rem;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius);
	box-shadow: 0 1px 3px rgba(0, 49, 60, 0.07);
	text-decoration: none;
	color: inherit;
}

.e864-my-submissions__row:hover {
	box-shadow: var(--e864-shadow);
}

.e864-my-submissions__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.e864-my-submissions__title {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--e864-pine, var(--dmo-color-text));
}

.e864-my-submissions__type {
	font-size: 0.6875rem;
	color: var(--e864-muted, var(--dmo-color-muted));
}

.explore864-my-submissions-section .dmo-section-header {
	margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------------- */

.e864-reviews__aggregate {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.e864-reviews__avg {
	font-family: var(--e864-font-heading);
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--e864-primary);
}

.e864-stars {
	color: #b39855;
	letter-spacing: 0.1em;
	font-size: 1.05rem;
}

.e864-star-input button {
	background: transparent;
	border: 0;
	font-size: 1.65rem;
	cursor: pointer;
	color: var(--e864-border);
	padding: 0 0.15rem;
	transition: color 0.15s ease, transform 0.15s ease;
}

.e864-star-input button.is-filled {
	color: #b39855;
}

.e864-star-input button:hover {
	transform: scale(1.15);
}

.e864-review {
	border-top: 1px solid var(--e864-border);
	padding: 1rem 0;
}

.e864-review:first-of-type {
	border-top: 0;
}

/* -------------------------------------------------------------------------
   My Explore / submissions
   ------------------------------------------------------------------------- */

.e864-my-explore__groups {
	display: grid;
	gap: 2rem;
}

.e864-my-explore {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.e864-my-explore__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.e864-my-explore__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.e864-my-explore__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--e864-border);
	background: rgba(0, 49, 60, 0.04);
	color: var(--e864-primary);
	font-family: var(--e864-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.e864-my-explore__filter.is-active {
	background: var(--e864-primary);
	border-color: var(--e864-primary);
	color: #fff;
}

.e864-my-explore__filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	background: rgba(255, 255, 255, 0.18);
}

.e864-my-explore__filter:not(.is-active) .e864-my-explore__filter-count {
	background: rgba(0, 49, 60, 0.08);
}

.e864-my-explore__status {
	margin: 0;
	font-size: 0.875rem;
	color: var(--e864-muted);
}

.e864-my-explore__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.e864-my-explore-card {
	position: relative;
	background: var(--e864-elevated);
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	overflow: hidden;
	box-shadow: var(--explore864-shadow-sm, 0 2px 8px rgba(0, 49, 60, 0.06));
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.e864-my-explore-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--e864-shadow);
}

.e864-my-explore-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.e864-my-explore-card__media {
	position: relative;
	line-height: 0;
	background: color-mix(in srgb, var(--e864-river) 35%, #fff);
}

.e864-my-explore-card__media img,
.e864-my-explore-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.e864-my-explore-card__placeholder {
	background: linear-gradient(135deg, color-mix(in srgb, var(--e864-river) 55%, #fff), color-mix(in srgb, var(--e864-sand) 45%, #fff));
}

.e864-my-explore-card__heart {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--e864-primary);
	box-shadow: 0 2px 8px rgba(0, 49, 60, 0.12);
}

.e864-my-explore-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem 1.15rem;
	flex: 1;
}

.e864-my-explore-card__title {
	margin: 0;
	font-family: var(--e864-font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--e864-text);
	line-height: 1.35;
}

.e864-my-explore-card__meta {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--e864-muted);
	line-height: 1.45;
}

.e864-my-explore-card__source {
	margin-top: auto;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--e864-accent);
}

.e864-my-explore-card__unsave {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 49, 60, 0.18);
	background: rgba(255, 255, 255, 0.92);
	color: var(--e864-primary);
	font-size: 0.6875rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.e864-my-explore-card:hover .e864-my-explore-card__unsave,
.e864-my-explore-card__unsave:focus {
	opacity: 1;
}

.e864-my-explore-map {
	border: 1px solid var(--e864-border);
	border-radius: var(--e864-radius-lg);
	overflow: hidden;
}

.explore864-my-explore-section .dmo-pagination {
	margin-top: 0.5rem;
}

.explore864-my-explore-section .e864-view-toggle {
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.e864-my-explore__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.e864-my-explore__grid {
		grid-template-columns: 1fr;
	}
}

.e864-login-prompt {
	text-align: center;
	background: color-mix(in srgb, var(--e864-river) 18%, #fff);
	border-radius: var(--e864-radius-lg);
	padding: 2.5rem 1.5rem;
}

.e864-login-prompt p {
	margin: 0 0 1rem;
	color: var(--e864-text);
}

/* -------------------------------------------------------------------------
   Spotlight
   ------------------------------------------------------------------------- */

.e864-spotlight {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
	border-radius: var(--e864-radius-lg);
	overflow: hidden;
	background: var(--e864-primary);
	color: #fff;
	min-height: 320px;
}

.e864-spotlight__media {
	background-size: cover;
	background-position: center;
	min-height: 240px;
	background-color: var(--e864-accent);
}

.e864-spotlight__body {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}

.e864-spotlight__body .e864-card__eyebrow {
	color: var(--e864-sand);
}

.e864-spotlight__body h3 {
	font-family: var(--e864-font-heading);
	color: #fff;
	font-size: 1.65rem;
	margin: 0;
}

.e864-spotlight__body p {
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

@media (max-width: 720px) {
	.e864-spotlight {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Messages two-column layout helper (used on the Messages page)
   ------------------------------------------------------------------------- */

.e864-messages-layout {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) 2fr;
	gap: 1.25rem;
	align-items: start;
}

@media (max-width: 880px) {
	.e864-messages-layout {
		grid-template-columns: 1fr;
	}
}
