/* ==========================================================================
   Add Listing wizard (template-add-listing.php)
   ========================================================================== */

.al-shell {
	padding: var(--st-space-2xl) 0;
	max-width: 820px;
	margin: 0 auto;
}

.al-header {
	margin-bottom: var(--st-space-lg);
}

.al-header__title {
	font-family: var(--st-font-display);
	font-size: clamp(28px, 4vw, 38px);
	color: var(--st-white);
	margin: 6px 0 8px;
}

.al-header__sub {
	color: var(--st-white-60);
	font-size: 14px;
	max-width: 560px;
}

/* ---- Stepper ---- */

.al-stepper {
	display: flex;
	overflow-x: auto;
	gap: 4px;
	margin-bottom: var(--st-space-lg);
	padding-bottom: 4px;
}

.al-stepper__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 1 0 auto;
	min-width: 74px;
	opacity: 0.4;
	transition: opacity 0.2s;
}

.al-stepper__item.is-active,
.al-stepper__item.is-done {
	opacity: 1;
}

.al-stepper__num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--st-navy-mid);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--st-white-60);
}

.al-stepper__item.is-active .al-stepper__num {
	border-color: var(--st-gold);
	color: var(--st-gold);
}

.al-stepper__item.is-done .al-stepper__num {
	background: var(--st-gold);
	border-color: var(--st-gold);
	color: var(--st-navy);
}

.al-stepper__label {
	font-size: 9px;
	letter-spacing: 0.5px;
	color: var(--st-white-60);
	text-align: center;
	white-space: nowrap;
}

/* ---- Form shell ---- */

.al-form {
	padding: var(--st-space-lg);
}

.al-step-subtitle {
	margin: -8px 0 var(--st-space-md);
	font-size: 13px;
}

.al-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 var(--st-space-md);
}

@media (max-width: 600px) {
	.al-field-grid {
		grid-template-columns: 1fr;
	}
}

.al-section-head {
	font-size: 10px;
	letter-spacing: 2px;
	font-weight: 700;
	color: var(--st-gold);
	margin: var(--st-space-md) 0 var(--st-space-sm);
}

.al-inline-toggle {
	margin: var(--st-space-sm) 0;
}

/* ---- Step 1: listing type cards ---- */

.al-type-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--st-space-sm);
}

@media (max-width: 500px) {
	.al-type-grid {
		grid-template-columns: 1fr;
	}
}

.al-type-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--st-space-md);
	background: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
}

.al-type-card strong {
	color: var(--st-white);
	font-size: 15px;
}

.al-type-card span {
	color: var(--st-white-60);
	font-size: 12px;
}

.al-type-card:hover {
	border-color: rgba(201, 168, 76, 0.4);
}

.al-type-card.is-selected {
	border-color: var(--st-gold);
	background: rgba(201, 168, 76, 0.06);
}

/* ---- Step 8: photos ---- */

.al-photo-dropzone {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	border: 1.5px dashed var(--st-navy-mid);
	border-radius: 8px;
	color: var(--st-white-60);
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	margin-bottom: var(--st-space-md);
}

.al-photo-dropzone:hover {
	border-color: var(--st-gold);
	color: var(--st-gold);
}

.al-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: var(--st-space-sm);
}

.al-photo-thumb {
	position: relative;
	aspect-ratio: 1;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--st-navy-mid);
}

.al-photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.al-photo-thumb__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(10, 22, 40, 0.85);
	color: var(--st-white);
	border: none;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
}

.al-photo-thumb__uploading {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--st-gold);
	font-size: 10px;
	letter-spacing: 1px;
}

/* ---- Nav buttons ---- */

.al-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--st-space-sm);
	margin-top: var(--st-space-lg);
	padding-top: var(--st-space-md);
	border-top: 1px solid var(--st-navy-mid);
}

.al-nav .btn--gold,
.al-nav .btn--ghost {
	margin-left: auto;
}

#al-back-btn {
	margin-left: 0;
	margin-right: auto;
}

/* ---- Success screen ---- */

.al-success {
	text-align: center;
	padding: var(--st-space-2xl);
}

.al-success h2 {
	font-family: var(--st-font-display);
	font-size: 28px;
	color: var(--st-white);
	margin: var(--st-space-md) 0 8px;
}

.al-success__body {
	color: var(--st-white-60);
	font-size: 13px;
	max-width: 420px;
	margin: 0 auto var(--st-space-lg);
}
