/* Sell Property + My Listings — MyEazyHomes premium portal */

.page-sell,
.page-my-listings,
.page-seller-login {
	--sell-navy: #071225;
	--sell-navy-2: #0b1830;
	--sell-orange: #f58212;
	--sell-orange-deep: #e06f08;
	--sell-cream: #f7f4ef;
	--sell-muted: #5a6577;
	--sell-line: rgba(7, 18, 37, 0.12);
	--sell-radius: 18px;
	background: var(--sell-cream);
	min-height: 100vh;
}

.seller-login-card {
	max-width: 440px;
	margin: -1.5rem auto 3rem;
	position: relative;
	z-index: 1;
}

.seller-login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.35rem;
}

.seller-login-actions .sell-btn {
	flex: 1 1 auto;
	min-width: 140px;
}

.sell-page {
	padding-bottom: 4rem;
}

.sell-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, var(--sell-navy) 0%, var(--sell-navy-2) 55%, #132844 100%);
	color: #fff;
	padding: 2.75rem 0 3.25rem;
}

.sell-hero__glow {
	position: absolute;
	inset: auto -20% -40% auto;
	width: 55%;
	height: 80%;
	background: radial-gradient(circle, rgba(245, 130, 18, 0.28), transparent 65%);
	pointer-events: none;
}

.sell-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.sell-hero__eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sell-orange);
}

.sell-hero__title {
	margin: 0 0 0.75rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.sell-hero__brand {
	color: var(--sell-orange);
}

.sell-hero__lead {
	margin: 0 0 1.25rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 36rem;
}

.sell-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sell-hero__trust li {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.sell-form-section {
	margin-top: -1.75rem;
	position: relative;
	z-index: 2;
}

.sell-form-shell {
	max-width: 720px;
}

.sell-card,
.sell-success {
	background: #fff;
	border-radius: var(--sell-radius);
	box-shadow: 0 18px 50px rgba(7, 18, 37, 0.12);
	padding: 1.35rem 1.25rem 1.5rem;
	border: 1px solid rgba(7, 18, 37, 0.06);
}

.sell-progress__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.55rem;
}

.sell-progress__label {
	font-weight: 800;
	color: var(--sell-navy);
	font-size: 1.05rem;
}

.sell-progress__step {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--sell-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sell-progress__track {
	height: 6px;
	border-radius: 999px;
	background: #e8ecf2;
	overflow: hidden;
	margin-bottom: 1.35rem;
}

.sell-progress__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--sell-orange), var(--sell-orange-deep));
	border-radius: inherit;
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-step {
	animation: sellFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-step[hidden] {
	display: none !important;
}

@keyframes sellFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sell-step,
	.sell-progress__fill,
	.sell-tile__face,
	.sell-success__icon {
		animation: none !important;
		transition: none !important;
	}
}

.sell-fieldset {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
}

.sell-fieldset legend,
.sell-step__title {
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--sell-navy);
	margin-bottom: 0.65rem;
}

.sell-step__lead {
	margin: -0.25rem 0 1rem;
	color: var(--sell-muted);
	font-size: 0.92rem;
}

.req {
	color: var(--sell-orange-deep);
}

.sell-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.sell-tile {
	cursor: pointer;
	margin: 0;
}

.sell-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sell-tile__face {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	min-height: 96px;
	padding: 0.95rem 0.9rem;
	border-radius: 14px;
	border: 1.5px solid var(--sell-line);
	background: #fff;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sell-tile__ic {
	width: 28px;
	height: 28px;
	color: var(--sell-orange);
}

.sell-tile__ic svg {
	width: 28px;
	height: 28px;
}

.sell-tile__face strong {
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--sell-navy);
}

.sell-tile input:checked + .sell-tile__face {
	border-color: var(--sell-orange);
	background: rgba(245, 130, 18, 0.08);
	box-shadow: 0 8px 22px rgba(245, 130, 18, 0.15);
	transform: translateY(-1px);
}

.sell-tile input:focus-visible + .sell-tile__face {
	outline: 2px solid rgba(245, 130, 18, 0.55);
	outline-offset: 2px;
}

.sell-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sell-pill {
	cursor: pointer;
	margin: 0;
}

.sell-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sell-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	border: 1.5px solid var(--sell-line);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--sell-navy);
	background: #fff;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sell-pill input:checked + span {
	border-color: var(--sell-navy);
	background: var(--sell-navy);
	color: #fff;
}

.sell-pill input:focus-visible + span {
	outline: 2px solid rgba(245, 130, 18, 0.55);
	outline-offset: 2px;
}

.sell-fields {
	display: grid;
	gap: 0.95rem;
	margin-bottom: 1.15rem;
}

.sell-field label {
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--sell-navy);
	margin-bottom: 0.35rem;
}

.sell-field input {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	border: 1.5px solid var(--sell-line);
	background: #fff;
	font: inherit;
	color: var(--sell-navy);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sell-field input:focus {
	outline: none;
	border-color: var(--sell-orange);
	box-shadow: 0 0 0 3px rgba(245, 130, 18, 0.18);
}

.sell-field__hint {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sell-orange-deep);
}

.sell-consent {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 0.25rem 0 1.15rem;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--sell-muted);
	cursor: pointer;
}

.sell-consent input {
	margin-top: 0.2rem;
	width: 18px;
	height: 18px;
	accent-color: var(--sell-orange);
	flex-shrink: 0;
}

.sell-consent a,
.sell-legal a {
	color: var(--sell-orange);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sell-consent a:hover,
.sell-legal a:hover {
	color: var(--sell-navy, #071225);
}

.sell-actions {
	display: flex;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.sell-actions--split {
	justify-content: space-between;
}

.sell-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.35rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.sell-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.sell-btn--primary {
	background: var(--sell-orange);
	color: #fff;
	box-shadow: 0 10px 24px rgba(245, 130, 18, 0.28);
}

.sell-btn--primary:hover,
.sell-btn--primary:focus-visible {
	background: var(--sell-orange-deep);
	color: #fff;
}

.sell-btn--ghost {
	background: transparent;
	color: var(--sell-navy);
	border: 1.5px solid var(--sell-line);
}

.sell-btn--ghost:hover,
.sell-btn--ghost:focus-visible {
	border-color: var(--sell-navy);
}

.sell-btn--danger {
	background: #fff;
	color: #b42318;
	border: 1.5px solid #fecdca;
}

.sell-legal {
	margin: 0.85rem 0 0;
	font-size: 0.78rem;
	color: var(--sell-muted);
	text-align: center;
}

.sell-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.sell-alert {
	margin-bottom: 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
}

.sell-alert.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sell-alert.is-ok {
	background: #ecfdf3;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.sell-success {
	text-align: center;
	padding: 2.25rem 1.5rem;
	animation: sellFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-success[hidden] {
	display: none !important;
}

.sell-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: #e8f8ef;
	color: #1b7f4a;
	display: grid;
	place-items: center;
	font-size: 1.75rem;
	font-weight: 800;
	animation: sellPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sellPop {
	from {
		transform: scale(0.7);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.sell-success h2 {
	margin: 0 0 0.65rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.85rem;
	color: var(--sell-navy);
}

.sell-success p {
	margin: 0 auto 0.75rem;
	max-width: 28rem;
	color: var(--sell-muted);
	line-height: 1.5;
}

.sell-success__brand {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a93a3 !important;
}

.sell-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	margin-top: 1.35rem;
}

/* My Listings */
.ml-page {
	padding: 2rem 0 4rem;
}

.ml-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-end;
	margin-bottom: 1.5rem;
}

.ml-head h1 {
	margin: 0 0 0.35rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.85rem, 4vw, 2.4rem);
	color: var(--sell-navy);
}

.ml-head p {
	margin: 0;
	color: var(--sell-muted);
}

.ml-empty {
	text-align: center;
	background: #fff;
	border-radius: var(--sell-radius);
	padding: 2.75rem 1.5rem;
	border: 1px solid rgba(7, 18, 37, 0.06);
	box-shadow: 0 12px 36px rgba(7, 18, 37, 0.08);
}

.ml-empty h2 {
	margin: 0 0 0.5rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.7rem;
	color: var(--sell-navy);
}

.ml-empty p {
	margin: 0 0 1.25rem;
	color: var(--sell-muted);
}

.ml-list {
	display: grid;
	gap: 0.9rem;
}

.ml-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(7, 18, 37, 0.06);
	padding: 1.1rem 1.15rem;
	box-shadow: 0 10px 28px rgba(7, 18, 37, 0.06);
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 720px) {
	.ml-card {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.sell-card,
	.sell-success {
		padding: 1.75rem 1.85rem 1.85rem;
	}

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

.ml-card__title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--sell-navy);
}

.ml-card__meta {
	margin: 0;
	font-size: 0.88rem;
	color: var(--sell-muted);
}

.ml-card__price {
	margin: 0.35rem 0 0;
	font-weight: 800;
	color: var(--sell-navy);
}

.ml-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 0.7rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ml-badge--review {
	background: #fff7ed;
	color: #c2410c;
}

.ml-badge--live {
	background: #ecfdf3;
	color: #166534;
}

.ml-badge--sold {
	background: #f3f4f6;
	color: #374151;
}

.ml-badge--withdrawn,
.ml-badge--rejected {
	background: #fef2f2;
	color: #991b1b;
}

.ml-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.ml-dialog {
	position: fixed;
	inset: 0;
	z-index: 140;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

.ml-dialog[hidden] {
	display: none !important;
}

.ml-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 18, 37, 0.5);
}

.ml-dialog__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 1.35rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
	box-shadow: 0 -12px 40px rgba(7, 18, 37, 0.2);
}

.ml-dialog__panel h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	color: var(--sell-navy);
}

.ml-dialog__panel p {
	margin: 0 0 1.15rem;
	color: var(--sell-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

@media (min-width: 640px) {
	.ml-dialog {
		align-items: center;
		padding: 24px;
	}

	.ml-dialog__panel {
		border-radius: 18px;
		padding: 1.5rem;
	}
}

.nav-account {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.nav-account a {
	font-weight: 700;
}

.navlinks .nav-sell a {
	color: var(--sell-orange, #f58212);
}
