/**
 * Agent Legacy Group - Front-end admin property dashboard.
 * Premium SaaS-style admin UI aligned with the ALG brand system.
 */

.alg-dash {
	--alg-dash-gold: var(--alg-gold, #e29c29);
	--alg-dash-black: var(--alg-black, #000);
	--alg-dash-white: var(--alg-white, #fff);
	--alg-dash-ink: var(--alg-ink, #151515);
	--alg-dash-muted: var(--alg-muted, #555);
	--alg-dash-soft-gold: var(--alg-soft-gold, #f8eedb);
	--alg-dash-line: rgba(0, 0, 0, 0.08);
	--alg-dash-line-strong: rgba(0, 0, 0, 0.14);
	--alg-dash-surface: #fff;
	--alg-dash-surface-alt: #f7f6f3;
	--alg-dash-surface-muted: #faf9f7;
	--alg-dash-radius-sm: 8px;
	--alg-dash-radius: 12px;
	--alg-dash-radius-lg: 16px;
	--alg-dash-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
	--alg-dash-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
	--alg-dash-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.04);
	--alg-dash-display: var(--alg-display-font, "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif);
	--alg-dash-body: var(--alg-body-font, "Zabal", "Avenir Next", "Montserrat", "Segoe UI", Arial, sans-serif);
	--alg-dash-focus: 0 0 0 3px rgba(226, 156, 41, 0.22);
	--alg-dash-transition: 0.18s ease;

	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 72px;
	color: var(--alg-dash-ink);
	font-family: var(--alg-dash-body);
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: 0.01em;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.alg-dash *,
.alg-dash *::before,
.alg-dash *::after {
	box-sizing: border-box;
}

/* ── Theme isolation: resist Hello Elementor / Elementor kit globals ──
   Hello Elementor applies bare element selectors ([type=button], button, input…)
   that load after plugin CSS and collapse upload zones into small pink buttons. */
.alg-dash {
	isolation: isolate;
	font-family: var(--alg-dash-body);
	color: var(--alg-dash-ink);
}

.alg-dash :is(h1, h2, h3, h4, h5, h6, p, label, legend, span, th, td, li) {
	font-family: inherit;
}

.alg-dash a {
	color: inherit;
	text-decoration: none;
}

.alg-dash button,
.alg-dash [type="button"],
.alg-dash [type="submit"],
.alg-dash [type="reset"] {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-decoration: none;
	text-align: inherit;
	text-indent: 0;
	box-shadow: none;
	opacity: 1;
	cursor: pointer;
	vertical-align: baseline;
	white-space: normal;
}

.alg-dash input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.alg-dash select,
.alg-dash textarea {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	box-shadow: none;
	opacity: 1;
	vertical-align: baseline;
}

.alg-dash input[type="checkbox"],
.alg-dash input[type="radio"] {
	appearance: auto;
	-webkit-appearance: auto;
	margin: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

/* Header */
.alg-dash__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 30px;
	margin-bottom: 28px;
	background: linear-gradient(135deg, var(--alg-dash-black) 0%, #1f1b16 100%);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--alg-dash-radius-lg);
	box-shadow: var(--alg-dash-shadow-lg);
	position: relative;
	overflow: hidden;
}

.alg-dash__head::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--alg-dash-gold), #f0c56a 45%, var(--alg-dash-gold));
}

.alg-dash__head::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(226, 156, 41, 0.16) 0%, transparent 68%);
	pointer-events: none;
}

.alg-dash__head > div {
	position: relative;
	z-index: 1;
	max-width: min(100%, 640px);
}

.alg-dash__head .alg-dash__btn {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.alg-dash__eyebrow {
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 11px;
	font-weight: 700;
	color: var(--alg-dash-gold);
}

.alg-dash__head h1 {
	margin: 0 0 8px;
	font-family: var(--alg-dash-display);
	font-size: clamp(1.65rem, 2.4vw, 2.15rem);
	font-weight: 400;
	line-height: 1.12;
	color: var(--alg-dash-white);
	letter-spacing: 0.01em;
}

.alg-dash__lead {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	max-width: 52ch;
}

/* Buttons */
.alg-dash__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 20px;
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-black);
	color: var(--alg-dash-white);
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		background var(--alg-dash-transition),
		color var(--alg-dash-transition),
		border-color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		transform var(--alg-dash-transition);
}

.alg-dash__btn:hover {
	background: #222;
	color: var(--alg-dash-white);
	box-shadow: var(--alg-dash-shadow-sm);
}

.alg-dash__btn:focus-visible {
	outline: none;
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__btn:active {
	transform: translateY(1px);
}

.alg-dash__btn--primary {
	background: var(--alg-dash-gold);
	border-color: var(--alg-dash-gold);
	color: var(--alg-dash-black);
	padding: 13px 28px;
	font-size: 15px;
}

.alg-dash__btn--primary:hover {
	background: #cf8c1f;
	border-color: #cf8c1f;
	color: var(--alg-dash-black);
	box-shadow: 0 8px 20px rgba(226, 156, 41, 0.28);
}

.alg-dash__btn--ghost {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.22);
	color: var(--alg-dash-white);
}

.alg-dash__head .alg-dash__btn--ghost {
	background: rgba(255, 255, 255, 0.06);
}

.alg-dash__head .alg-dash__btn--ghost:hover {
	background: var(--alg-dash-gold);
	border-color: var(--alg-dash-gold);
	color: var(--alg-dash-black);
}

.alg-dash__form .alg-dash__btn--ghost,
.alg-dash__notice .alg-dash__btn--ghost,
.alg-dash__search .alg-dash__btn--ghost {
	background: var(--alg-dash-white);
	border-color: var(--alg-dash-line-strong);
	color: var(--alg-dash-ink);
}

.alg-dash__form .alg-dash__btn--ghost:hover,
.alg-dash__notice .alg-dash__btn--ghost:hover,
.alg-dash__search .alg-dash__btn--ghost:hover {
	background: var(--alg-dash-soft-gold);
	border-color: rgba(226, 156, 41, 0.35);
	color: var(--alg-dash-black);
}

.alg-dash__btn--sm {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 13px;
}

/* Notices */
.alg-dash__notice {
	border-radius: var(--alg-dash-radius);
	padding: 18px 20px;
	margin-bottom: 24px;
	background: var(--alg-dash-surface);
	border: 1px solid var(--alg-dash-line);
	box-shadow: var(--alg-dash-shadow-sm);
}

.alg-dash__notice p {
	margin: 0 0 4px;
}

.alg-dash__notice p:last-child {
	margin-bottom: 0;
}

.alg-dash__notice.is-success {
	border-color: rgba(21, 128, 61, 0.22);
	background: linear-gradient(180deg, #f6fdf8 0%, #f0fdf4 100%);
}

.alg-dash__notice.is-success p strong {
	color: #166534;
}

.alg-dash__notice.is-error {
	border-color: rgba(220, 38, 38, 0.22);
	background: linear-gradient(180deg, #fff8f8 0%, #fef2f2 100%);
}

.alg-dash__notice.is-error p {
	color: #991b1b;
}

.alg-dash__notice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.alg-dash__warnings {
	margin: 14px 0 0;
	padding-left: 20px;
	color: #b45309;
	font-size: 14px;
}

.alg-dash__warnings li + li {
	margin-top: 4px;
}

/* Form shell */
.alg-dash__form {
	background: var(--alg-dash-surface);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-lg);
	padding: 28px 30px 24px;
	margin-bottom: 40px;
	box-shadow: var(--alg-dash-shadow);
}

.alg-dash__form-title {
	margin: 0 0 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--alg-dash-line);
	font-family: var(--alg-dash-display);
	font-size: 1.45rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--alg-dash-black);
}

/* Field groups */
.alg-dash__group {
	border: 1px solid var(--alg-dash-line);
	margin: 0 0 10px;
	padding: 22px 22px 8px;
	background: var(--alg-dash-surface-muted);
	border-radius: var(--alg-dash-radius);
}

.alg-dash__group + .alg-dash__group {
	margin-top: 16px;
}

.alg-dash__group legend {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--alg-dash-black);
	padding: 0;
	margin: 0 0 18px;
}

.alg-dash__group legend::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--alg-dash-gold);
	flex-shrink: 0;
}

.alg-dash__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.alg-dash__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.alg-dash__field--full {
	grid-column: 1 / -1;
}

.alg-dash__field > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--alg-dash-ink);
}

.alg-dash__field > span em {
	color: #dc2626;
	font-style: normal;
}

.alg-dash__field input[type="text"],
.alg-dash__field input[type="number"],
.alg-dash__field select,
.alg-dash__field textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius-sm);
	font-size: 15px;
	background: var(--alg-dash-white);
	color: var(--alg-dash-ink);
	font-family: inherit;
	transition:
		border-color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		background var(--alg-dash-transition);
}

.alg-dash__field select {
	appearance: none;
	padding-right: 40px;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--alg-dash-muted) 50%),
		linear-gradient(135deg, var(--alg-dash-muted) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% + 1px),
		calc(100% - 12px) calc(50% + 1px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.alg-dash__field input:hover,
.alg-dash__field select:hover,
.alg-dash__field textarea:hover {
	border-color: rgba(0, 0, 0, 0.22);
}

.alg-dash__field input:focus,
.alg-dash__field select:focus,
.alg-dash__field textarea:focus {
	outline: none;
	border-color: var(--alg-dash-gold);
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.55;
}

.alg-dash__field input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 1px dashed rgba(0, 0, 0, 0.18);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	font-size: 14px;
	color: var(--alg-dash-muted);
	cursor: pointer;
	transition:
		border-color var(--alg-dash-transition),
		background var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition);
}

.alg-dash__field input[type="file"]:hover {
	border-color: rgba(226, 156, 41, 0.55);
	background: var(--alg-dash-soft-gold);
}

.alg-dash__field input[type="file"]:focus-visible {
	outline: none;
	border-color: var(--alg-dash-gold);
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__hint {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--alg-dash-muted);
	background: var(--alg-dash-white);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-sm);
}

/* Media management */
.alg-dash__group--media {
	padding-bottom: 22px;
}

.alg-dash__media-layout {
	display: grid;
	gap: 22px;
}

.alg-dash__media-panel {
	padding: 20px;
	background: var(--alg-dash-white);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius);
	box-shadow: var(--alg-dash-shadow-sm);
}

.alg-dash__media-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 18px;
	margin-bottom: 16px;
}

.alg-dash__media-title {
	margin: 0 0 4px;
	font-family: var(--alg-dash-display);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--alg-dash-black);
}

.alg-dash__media-desc {
	margin: 0;
	font-size: 13px;
	color: var(--alg-dash-muted);
	max-width: 48ch;
}

.alg-dash__media-count {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--alg-dash-black);
	background: var(--alg-dash-soft-gold);
	border: 1px solid rgba(226, 156, 41, 0.28);
	white-space: nowrap;
}

.alg-dash__featured {
	display: grid;
	gap: 14px;
}

.alg-dash__featured-preview {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-surface-alt);
}

.alg-dash__featured-preview.has-image {
	border-color: rgba(226, 156, 41, 0.35);
	box-shadow: var(--alg-dash-shadow-sm);
}

.alg-dash__featured-img {
	display: block;
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

.alg-dash__featured-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #fff 100%);
	border-top: 1px solid var(--alg-dash-line);
}

.alg-dash__media-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	color: var(--alg-dash-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition:
		border-color var(--alg-dash-transition),
		background var(--alg-dash-transition),
		color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition);
}

.alg-dash__media-btn:hover {
	border-color: rgba(226, 156, 41, 0.55);
	background: var(--alg-dash-soft-gold);
	color: var(--alg-dash-black);
}

.alg-dash__media-btn:focus-visible {
	outline: none;
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__media-btn--danger {
	color: #b91c1c;
	border-color: rgba(220, 38, 38, 0.28);
}

.alg-dash__media-btn--danger:hover {
	background: #fef2f2;
	border-color: rgba(220, 38, 38, 0.45);
	color: #991b1b;
}

.alg-dash__upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 160px;
	padding: 24px 20px;
	border: 2px dashed rgba(0, 0, 0, 0.16);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-surface-muted);
	color: var(--alg-dash-muted);
	text-align: center;
	cursor: pointer;
	transition:
		border-color var(--alg-dash-transition),
		background var(--alg-dash-transition),
		color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		transform var(--alg-dash-transition);
}

.alg-dash__upload-zone:hover {
	border-color: rgba(226, 156, 41, 0.65);
	background: var(--alg-dash-soft-gold);
	color: var(--alg-dash-black);
	box-shadow: var(--alg-dash-shadow-sm);
}

.alg-dash__upload-zone:focus-visible {
	outline: none;
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__upload-zone.is-hidden,
.alg-dash__upload-zone[hidden] {
	display: none;
}

.alg-dash__upload-zone--gallery {
	min-height: 120px;
	margin-top: 14px;
	border-style: dashed;
	font-family: inherit;
}

.alg-dash__upload-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(226, 156, 41, 0.14);
	color: var(--alg-dash-black);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.alg-dash__upload-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--alg-dash-black);
}

.alg-dash__upload-hint {
	font-size: 12px;
	color: var(--alg-dash-muted);
}

.alg-dash__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

.alg-dash__gallery {
	display: grid;
	gap: 0;
}

.alg-dash__gallery-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 140px;
	padding: 24px 20px;
	margin-bottom: 4px;
	border: 1px dashed var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-surface-muted);
	text-align: center;
}

.alg-dash__gallery-empty p {
	margin: 0;
	font-size: 14px;
	color: var(--alg-dash-muted);
}

.alg-dash__gallery-empty.is-hidden,
.alg-dash__gallery-empty[hidden] {
	display: none;
}

.alg-dash__gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin-bottom: 4px;
}

@media (min-width: 540px) {
	.alg-dash__gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 820px) {
	.alg-dash__gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.alg-dash__gallery-grid.has-items {
	margin-bottom: 0;
}

.alg-dash__gallery-item {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	box-shadow: var(--alg-dash-shadow-sm);
	transition:
		border-color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		opacity var(--alg-dash-transition),
		transform var(--alg-dash-transition);
}

.alg-dash__gallery-item:hover {
	border-color: rgba(226, 156, 41, 0.45);
	box-shadow: var(--alg-dash-shadow);
	transform: translateY(-1px);
}

.alg-dash__gallery-item.is-removed {
	opacity: 0.45;
	border-color: rgba(220, 38, 38, 0.45);
	box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.18);
}

.alg-dash__gallery-item.is-removed::after {
	content: "Removed";
	position: absolute;
	inset: auto 8px 8px 8px;
	z-index: 3;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	color: #fff;
	background: rgba(185, 28, 28, 0.88);
}

.alg-dash__gallery-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--alg-dash-surface-alt);
}

.alg-dash__gallery-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: top;
}

.alg-dash__gallery-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition:
		background var(--alg-dash-transition),
		transform var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		opacity var(--alg-dash-transition);
}

.alg-dash__gallery-item:hover .alg-dash__gallery-remove,
.alg-dash__gallery-item:focus-within .alg-dash__gallery-remove {
	opacity: 1;
}

.alg-dash__gallery-remove:hover {
	background: #b91c1c;
	transform: scale(1.05);
}

.alg-dash__gallery-remove:focus-visible {
	outline: none;
	opacity: 1;
	box-shadow: var(--alg-dash-focus);
}

@media (hover: none) {
	.alg-dash__gallery-remove {
		opacity: 1;
	}
}

/* Legacy media helpers (kept for backward compatibility) */
.alg-dash__media-current {
	display: grid;
	gap: 18px;
	margin: 0 0 18px;
}

.alg-dash__media-group {
	display: grid;
	gap: 10px;
}

.alg-dash__media-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--alg-dash-muted);
}

.alg-dash__media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 12px;
}

.alg-dash__media-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 190px;
	padding: 10px;
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	cursor: pointer;
	transition:
		border-color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		transform var(--alg-dash-transition);
}

.alg-dash__media-card:hover {
	border-color: rgba(226, 156, 41, 0.45);
	box-shadow: var(--alg-dash-shadow-sm);
	transform: translateY(-1px);
}

.alg-dash__media-card:has(input:checked) {
	border-color: rgba(220, 38, 38, 0.45);
	background: #fff8f8;
	box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.alg-dash__media-thumb,
.alg-dash__media-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--alg-dash-line);
	background: var(--alg-dash-surface-alt);
}

.alg-dash__media-remove {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--alg-dash-ink);
}

.alg-dash__media-remove input {
	width: 16px;
	height: 16px;
	accent-color: #dc2626;
}

/* Checkboxes */
.alg-dash__checks {
	justify-content: flex-start;
	align-items: stretch;
	gap: 12px;
}

.alg-dash__check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	transition:
		border-color var(--alg-dash-transition),
		background var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition);
}

.alg-dash__check:hover {
	border-color: rgba(226, 156, 41, 0.35);
	background: var(--alg-dash-soft-gold);
}

.alg-dash__check:has(input:checked) {
	border-color: rgba(226, 156, 41, 0.55);
	background: linear-gradient(180deg, #fffdf8 0%, var(--alg-dash-soft-gold) 100%);
	box-shadow: inset 0 0 0 1px rgba(226, 156, 41, 0.12);
}

.alg-dash__check input {
	width: 18px;
	height: 18px;
	accent-color: var(--alg-dash-gold);
	flex-shrink: 0;
}

.alg-dash__amenities {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--alg-dash-line);
}

.alg-dash__amenities-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--alg-dash-ink);
	margin-bottom: 10px;
}

.alg-dash__amenities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.alg-dash__amenities-grid .alg-dash__check {
	margin: 0;
}

.alg-dash__check.is-amenity-hidden,
.alg-dash__amenities-hint {
	display: none;
}

.alg-dash__amenities-hint:not([hidden]) {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--alg-dash-muted, #64748b);
}

/* Image previews (legacy) */
.alg-dash__preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.alg-dash__preview img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--alg-dash-line);
	box-shadow: var(--alg-dash-shadow-sm);
}

/* Form actions */
.alg-dash__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding: 20px 22px;
	border-top: none;
	background: var(--alg-dash-surface-muted);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius);
}

/* Property list */
.alg-dash__list {
	padding: 26px 28px 28px;
	background: var(--alg-dash-surface);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-lg);
	box-shadow: var(--alg-dash-shadow);
}

.alg-dash__list-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--alg-dash-line);
}

.alg-dash__list h2 {
	font-family: var(--alg-dash-display);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--alg-dash-black);
	margin: 0;
}

.alg-dash__search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
}

.alg-dash__search-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: min(340px, 100%);
}

.alg-dash__search-field span {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--alg-dash-muted);
}

.alg-dash__search-field input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 11px 14px;
	border: 1px solid var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius-sm);
	font-size: 15px;
	background: var(--alg-dash-white);
	color: var(--alg-dash-ink);
	font-family: inherit;
	transition:
		border-color var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition);
}

.alg-dash__search-field input[type="search"]:hover {
	border-color: rgba(0, 0, 0, 0.22);
}

.alg-dash__search-field input[type="search"]:focus {
	outline: none;
	border-color: var(--alg-dash-gold);
	box-shadow: var(--alg-dash-focus);
}

.alg-dash__result-note {
	margin: 0 0 14px;
	padding: 10px 14px;
	color: var(--alg-dash-muted);
	font-size: 13px;
	background: var(--alg-dash-surface-muted);
	border-radius: var(--alg-dash-radius-sm);
	border: 1px solid var(--alg-dash-line);
}

/* Table */
.alg-dash__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-white);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.alg-dash__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.alg-dash__table th,
.alg-dash__table td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var(--alg-dash-line);
	vertical-align: middle;
}

.alg-dash__table thead th {
	background: linear-gradient(180deg, #faf9f7 0%, #f3f1ec 100%);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--alg-dash-muted);
	white-space: nowrap;
}

.alg-dash__table tbody tr {
	transition: background var(--alg-dash-transition);
}

.alg-dash__table tbody tr:hover {
	background: rgba(248, 238, 219, 0.35);
}

.alg-dash__table tbody tr:last-child td {
	border-bottom: none;
}

.alg-dash__table tr.is-editing {
	background: linear-gradient(90deg, rgba(226, 156, 41, 0.12), rgba(226, 156, 41, 0.04));
	box-shadow: inset 3px 0 0 var(--alg-dash-gold);
}

.alg-dash__table td strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--alg-dash-black);
}

.alg-dash__pid {
	display: inline-flex;
	align-items: center;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--alg-dash-muted);
	background: var(--alg-dash-surface-alt);
}

.alg-dash__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--alg-badge, #475569);
	background: color-mix(in srgb, var(--alg-badge, #475569) 12%, #fff);
	border: 1px solid color-mix(in srgb, var(--alg-badge, #475569) 24%, transparent);
}

.alg-dash__row-actions {
	white-space: nowrap;
}

.alg-dash__row-actions a,
.alg-dash__link-danger {
	font-size: 13px;
	font-weight: 700;
	margin-right: 12px;
	color: var(--alg-dash-black);
	text-decoration: none;
	transition: color var(--alg-dash-transition);
}

.alg-dash__row-actions a:hover {
	color: var(--alg-dash-gold);
}

.alg-dash__delete {
	display: inline;
	margin: 0;
}

.alg-dash__link-danger {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: #dc2626;
}

.alg-dash__link-danger:hover {
	color: #991b1b;
	text-decoration: underline;
}

.alg-dash__link-danger:focus-visible {
	outline: none;
	box-shadow: var(--alg-dash-focus);
	border-radius: 4px;
}

.alg-dash__empty {
	color: var(--alg-dash-muted);
	background: var(--alg-dash-surface-muted);
	border: 1px dashed var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius);
	padding: 36px 24px;
	text-align: center;
	font-size: 15px;
}

/* Access gate */
.alg-dash--gate {
	max-width: 520px;
	padding-top: 48px;
}

.alg-dash__panel {
	background: var(--alg-dash-surface);
	border: 1px solid var(--alg-dash-line);
	border-radius: var(--alg-dash-radius-lg);
	padding: 40px 36px;
	text-align: center;
	box-shadow: var(--alg-dash-shadow-lg);
	position: relative;
	overflow: hidden;
}

.alg-dash__panel::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--alg-dash-gold), #f0c56a 50%, var(--alg-dash-gold));
}

.alg-dash__panel h1 {
	margin: 0 0 12px;
	font-family: var(--alg-dash-display);
	font-size: 1.75rem;
	font-weight: 400;
	color: var(--alg-dash-black);
}

.alg-dash__panel p {
	margin: 0 0 24px;
	color: var(--alg-dash-muted);
	font-size: 15px;
	line-height: 1.6;
}

.alg-dash__panel .alg-dash__btn {
	min-width: 160px;
}

/* Responsive */
@media (max-width: 860px) {
	.alg-dash {
		padding: 24px 16px 56px;
	}

	.alg-dash__head,
	.alg-dash__form,
	.alg-dash__list {
		padding-left: 20px;
		padding-right: 20px;
	}

	.alg-dash__head {
		align-items: stretch;
	}

	.alg-dash__head .alg-dash__btn {
		width: 100%;
	}
}

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

	.alg-dash__group {
		padding: 18px 16px 6px;
	}

	.alg-dash__checks {
		flex-direction: column;
	}

	.alg-dash__media-panel {
		padding: 16px;
	}

	.alg-dash__list-head,
	.alg-dash__search,
	.alg-dash__search-field {
		align-items: stretch;
		width: 100%;
	}

	.alg-dash__search .alg-dash__btn {
		flex: 1 1 120px;
	}

	.alg-dash__table thead {
		display: none;
	}

	.alg-dash__table,
	.alg-dash__table tbody,
	.alg-dash__table tr,
	.alg-dash__table td {
		display: block;
		width: 100%;
	}

	.alg-dash__table tr {
		border-bottom: 1px solid var(--alg-dash-line);
		padding: 8px 0;
	}

	.alg-dash__table tr:hover {
		background: transparent;
	}

	.alg-dash__table tr.is-editing {
		background: rgba(226, 156, 41, 0.08);
		box-shadow: none;
		border-left: 3px solid var(--alg-dash-gold);
		padding-left: 10px;
	}

	.alg-dash__table td {
		border: none;
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 8px 14px;
	}

	.alg-dash__table td::before {
		content: attr(data-label);
		font-weight: 700;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--alg-dash-muted);
	}

	.alg-dash__row-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alg-dash__btn,
	.alg-dash__media-card,
	.alg-dash__gallery-item,
	.alg-dash__upload-zone,
	.alg-dash__check,
	.alg-dash__table tbody tr {
		transition: none;
	}
}

/* Page shell — warm background behind the Elementor canvas */
body.alg-dashboard {
	background: #f7f6f3;
}

body.alg-dashboard .elementor-page,
body.alg-dashboard .elementor-location-canvas {
	background: transparent;
}

/* ── Theme override reinforcements (higher specificity than Elementor globals) ── */
.alg-dash button.alg-dash__btn,
.alg-dash [type="submit"].alg-dash__btn,
.alg-dash a.alg-dash__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 20px;
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-black);
	color: var(--alg-dash-white);
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}

.alg-dash button.alg-dash__btn--primary,
.alg-dash [type="submit"].alg-dash__btn--primary {
	background: var(--alg-dash-gold);
	border-color: var(--alg-dash-gold);
	color: var(--alg-dash-black);
	padding: 13px 28px;
	font-size: 15px;
}

.alg-dash button.alg-dash__btn--ghost,
.alg-dash a.alg-dash__btn--ghost {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.22);
	color: var(--alg-dash-white);
}

.alg-dash__form button.alg-dash__btn--ghost,
.alg-dash__notice button.alg-dash__btn--ghost,
.alg-dash__search button.alg-dash__btn--ghost,
.alg-dash__form a.alg-dash__btn--ghost,
.alg-dash__notice a.alg-dash__btn--ghost,
.alg-dash__search a.alg-dash__btn--ghost {
	background: var(--alg-dash-white);
	border-color: var(--alg-dash-line-strong);
	color: var(--alg-dash-ink);
}

.alg-dash button.alg-dash__btn--sm,
.alg-dash a.alg-dash__btn--sm {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 13px;
}

.alg-dash button.alg-dash__media-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	color: var(--alg-dash-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
}

.alg-dash button.alg-dash__media-btn--danger {
	color: #b91c1c;
	border-color: rgba(220, 38, 38, 0.28);
}

.alg-dash button.alg-dash__upload-zone,
.alg-dash [type="button"].alg-dash__upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 160px;
	padding: 24px 20px;
	border: 2px dashed rgba(0, 0, 0, 0.16);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-surface-muted);
	color: var(--alg-dash-muted);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-align: center;
	cursor: pointer;
}

.alg-dash button.alg-dash__upload-zone--gallery,
.alg-dash [type="button"].alg-dash__upload-zone--gallery {
	min-height: 120px;
	margin-top: 14px;
}

.alg-dash button.alg-dash__upload-zone:hover,
.alg-dash [type="button"].alg-dash__upload-zone:hover {
	border-color: rgba(226, 156, 41, 0.65);
	background: var(--alg-dash-soft-gold);
	color: var(--alg-dash-black);
}

.alg-dash button.alg-dash__gallery-remove,
.alg-dash [type="button"].alg-dash__gallery-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	opacity: 0;
	cursor: pointer;
	transition:
		background var(--alg-dash-transition),
		transform var(--alg-dash-transition),
		box-shadow var(--alg-dash-transition),
		opacity var(--alg-dash-transition);
}

.alg-dash .alg-dash__gallery-item:hover button.alg-dash__gallery-remove,
.alg-dash .alg-dash__gallery-item:focus-within button.alg-dash__gallery-remove,
.alg-dash button.alg-dash__gallery-remove:focus-visible {
	opacity: 1;
}

.alg-dash button.alg-dash__gallery-remove:hover,
.alg-dash [type="button"].alg-dash__gallery-remove:hover {
	background: #b91c1c;
	border: none;
	color: #fff;
	transform: scale(1.05);
}

.alg-dash button.alg-dash__gallery-remove:focus-visible,
.alg-dash [type="button"].alg-dash__gallery-remove:focus-visible {
	outline: none;
	box-shadow: var(--alg-dash-focus);
}

@media (hover: none) {
	.alg-dash button.alg-dash__gallery-remove,
	.alg-dash [type="button"].alg-dash__gallery-remove {
		opacity: 1;
	}
}

/* Gallery grid — resist Elementor widget / Hello Elementor div defaults */
.alg-dash .alg-dash__gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	min-width: 0;
}

@media (min-width: 540px) {
	.alg-dash .alg-dash__gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 820px) {
	.alg-dash .alg-dash__gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.alg-dash .alg-dash__gallery-item {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	overflow: hidden;
}

.alg-dash .alg-dash__gallery-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.alg-dash .alg-dash__gallery-thumb {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.alg-dash .alg-dash__gallery-item input[type="checkbox"][data-alg-remove-gallery-id],
.alg-dash .alg-dash__gallery-item input.alg-dash__sr-only[data-alg-remove-gallery-id] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.alg-dash button.alg-dash__link-danger {
	display: inline;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	color: #dc2626;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.alg-dash .alg-dash__field input[type="text"],
.alg-dash .alg-dash__field input[type="number"],
.alg-dash .alg-dash__field select,
.alg-dash .alg-dash__field textarea,
.alg-dash .alg-dash__search-field input[type="search"] {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--alg-dash-line-strong);
	border-radius: var(--alg-dash-radius-sm);
	font-size: 15px;
	background: var(--alg-dash-white);
	color: var(--alg-dash-ink);
	font-family: inherit;
}

.alg-dash .alg-dash__field textarea {
	min-height: 120px;
	resize: vertical;
}

.alg-dash .alg-dash__field input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 1px dashed rgba(0, 0, 0, 0.18);
	border-radius: var(--alg-dash-radius-sm);
	background: var(--alg-dash-white);
	font-size: 14px;
	color: var(--alg-dash-muted);
	cursor: pointer;
}

.alg-dash .alg-dash__row-actions a {
	font-size: 13px;
	font-weight: 700;
	margin-right: 12px;
	color: var(--alg-dash-black);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * Conditional listing fields (driven by Mode + Property type)
 * ---------------------------------------------------------------------- */
.alg-dash__cond {
	margin: 0;
}

.alg-dash__cond-empty {
	margin: 0 0 10px;
	padding: 18px 22px;
	border: 1px dashed var(--alg-dash-line);
	border-radius: var(--alg-dash-radius);
	background: var(--alg-dash-surface-muted);
	color: var(--alg-dash-muted, #6f685e);
	font-size: 14px;
	line-height: 1.6;
}

.alg-dash__group--cond[hidden] {
	display: none !important;
}

.alg-dash__field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--alg-dash-muted, #6f685e);
}

.alg-dash__checks--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.alg-dash__checks--inline .alg-dash__check {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
 * Add-property wizard
 * ---------------------------------------------------------------------- */
.alg-dash__wiz-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.alg-dash__wiz-step {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	border: 1px solid var(--alg-dash-line);
	border-radius: 999px;
	background: var(--alg-dash-surface, #fff);
	font-size: 12.5px;
	color: var(--alg-dash-muted, #6f685e);
	cursor: pointer;
	transition: 0.18s;
	user-select: none;
}

.alg-dash__wiz-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e9e2d5;
	color: #6f685e;
	font-size: 11px;
	font-weight: 700;
	flex: none;
}

.alg-dash__wiz-step.is-done {
	border-color: #cbb79a;
	color: #141210;
}

.alg-dash__wiz-step.is-done .alg-dash__wiz-num {
	background: #1a6b45;
	color: #fff;
}

.alg-dash__wiz-step.is-active {
	border-color: #E29C29;
	background: #FBF3E4;
	color: #141210;
	font-weight: 600;
}

.alg-dash__wiz-step.is-active .alg-dash__wiz-num {
	background: #E29C29;
	color: #fff;
}

.alg-dash__step[hidden] {
	display: none !important;
}

.alg-dash__form--wizard .alg-dash__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.alg-dash__btn[hidden] {
	display: none !important;
}

@media (max-width: 700px) {
	.alg-dash__wiz-nav {
		gap: 6px;
	}

	.alg-dash__wiz-step {
		padding: 7px 10px;
		font-size: 11.5px;
	}

	.alg-dash__wiz-label {
		display: none;
	}

	.alg-dash__wiz-step.is-active .alg-dash__wiz-label {
		display: inline;
	}
}

/* -------------------------------------------------------------------------
 * Form control styling — hardened.
 *
 * Controls were rendering transparent/border-less because of resets that outrank
 * the plain `.alg-dash__field ...` rules above. Two known offenders:
 *   1. frontend.css: body.alg-site input:not([type=checkbox]):not([type=radio])
 *      :not([type=hidden]):not([type=file])  -> specificity (0,5,2), beats (0,2,1).
 *   2. The active theme / Elementor, which also reset form controls.
 *
 * This block deliberately does NOT depend on `body.alg-site` (that class is only
 * added on is_alg_request() pages, so it can be absent here) and uses !important so
 * theme resets cannot win. var() fallbacks keep it working even if the `.alg-dash`
 * wrapper that defines the tokens isn't an ancestor.
 * ---------------------------------------------------------------------- */
.alg-dash__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.alg-dash__field select,
.alg-dash__field textarea {
	display: block !important;
	width: 100% !important;
	min-height: 46px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 11px 14px !important;
	border: 1px solid var(--alg-dash-line-strong, rgba(0, 0, 0, 0.14)) !important;
	border-radius: var(--alg-dash-radius-sm, 8px) !important;
	background-color: var(--alg-dash-white, #fff) !important;
	color: var(--alg-dash-ink, #151515) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	opacity: 1 !important;
	box-sizing: border-box !important;
}

.alg-dash__field select {
	appearance: none !important;
	-webkit-appearance: none !important;
	padding-right: 40px !important;
	/* A `background: transparent` shorthand in any reset also wipes background-image,
	   so the dropdown arrow is re-declared here. */
	background-image:
		linear-gradient(45deg, transparent 50%, var(--alg-dash-muted, #555) 50%),
		linear-gradient(135deg, var(--alg-dash-muted, #555) 50%, transparent 50%) !important;
	background-position:
		calc(100% - 18px) calc(50% + 1px),
		calc(100% - 12px) calc(50% + 1px) !important;
	background-size: 6px 6px, 6px 6px !important;
	background-repeat: no-repeat !important;
	cursor: pointer !important;
}

.alg-dash__field textarea {
	min-height: 120px !important;
	line-height: 1.55 !important;
	resize: vertical !important;
}

.alg-dash__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):hover,
.alg-dash__field select:hover,
.alg-dash__field textarea:hover {
	border-color: rgba(0, 0, 0, 0.22) !important;
}

.alg-dash__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
.alg-dash__field select:focus,
.alg-dash__field textarea:focus {
	outline: none !important;
	border-color: var(--alg-dash-gold, #e29c29) !important;
	box-shadow: var(--alg-dash-focus, 0 0 0 3px rgba(226, 156, 41, 0.22)) !important;
}

/* Checkboxes and radios keep their native look. */
.alg-dash__field input[type="checkbox"],
.alg-dash__field input[type="radio"],
.alg-dash__checks input[type="checkbox"],
.alg-dash__checks input[type="radio"] {
	width: auto !important;
	min-height: 0 !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
}

/* -------------------------------------------------------------------------
 * Dashboard app shell: sidebar + drawer, cards, tables
 * ---------------------------------------------------------------------- */
.alg-dash--app {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.alg-dash__sidebar {
	position: sticky;
	top: 24px;
	border: 1px solid var(--alg-dash-line, rgba(0, 0, 0, 0.08));
	border-radius: var(--alg-dash-radius, 12px);
	background: var(--alg-dash-surface, #fff);
	padding: 20px 16px;
}

.alg-dash__brand { padding: 0 6px 14px; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); }
.alg-dash__brand-name { margin: 0; font-family: 'Bodoni Moda', Georgia, serif; font-size: 17px; color: #b0761a; font-weight: 600; }
.alg-dash__brand-sub { margin: 2px 0 0; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--alg-dash-muted, #6f685e); }

.alg-dash__nav { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.alg-dash__nav-title { margin: 14px 6px 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__nav-link {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--alg-dash-ink, #151515);
	text-decoration: none; transition: .16s;
}
.alg-dash__nav-link:hover { background: var(--alg-dash-surface-alt, #f7f6f3); }
.alg-dash__nav-link.is-active { background: #FBF3E4; color: #141210; font-weight: 600; box-shadow: inset 3px 0 0 #E29C29; }
.alg-dash__nav-link.is-disabled { color: #b3aca0; cursor: default; }
.alg-dash__nav-link em { font-style: normal; font-size: 12px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__sidebar-foot { margin: 18px 6px 0; padding-top: 14px; border-top: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); font-size: 11px; color: var(--alg-dash-muted, #6f685e); }

.alg-dash__main { min-width: 0; }

/* summary cards */
.alg-dash__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.alg-dash__card {
	display: block; padding: 18px; border: 1px solid var(--alg-dash-line, rgba(0,0,0,.08));
	border-radius: var(--alg-dash-radius, 12px); background: var(--alg-dash-surface, #fff);
	text-decoration: none; color: inherit; transition: .18s;
}
a.alg-dash__card:hover { border-color: #E7C98B; box-shadow: 0 14px 34px rgba(20,18,16,.07); transform: translateY(-2px); }
.alg-dash__card-value { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1; color: #141210; }
.alg-dash__card-label { display: block; margin-top: 6px; font-size: 12.5px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__card-note { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #b0761a; }

/* panels, quick links, tables */
.alg-dash__panel { border: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); border-radius: var(--alg-dash-radius, 12px); background: var(--alg-dash-surface, #fff); padding: 20px; margin-bottom: 18px; }
.alg-dash__panel h2 { margin: 0 0 14px; font-size: 17px; }
.alg-dash__quick { display: flex; flex-wrap: wrap; gap: 10px; }
.alg-dash__quick-link { padding: 10px 14px; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)); border-radius: 999px; font-size: 13px; text-decoration: none; color: #141210; transition: .16s; }
.alg-dash__quick-link:hover { border-color: #E29C29; color: #b0761a; }

.alg-dash__table-wrap { overflow-x: auto; }
.alg-dash__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.alg-dash__table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--alg-dash-muted,#6f685e); padding: 8px 10px; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); white-space: nowrap; }
.alg-dash__table td { padding: 12px 10px; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.06)); vertical-align: middle; }
.alg-dash__table td small { display: block; font-size: 11.5px; color: var(--alg-dash-muted,#6f685e); }
.alg-dash__mini { font-size: 12px; color: #b0761a; text-decoration: none; white-space: nowrap; }
.alg-dash__mini--wa { display: inline-block; margin-left: 8px; color: #1a6b45; }
.alg-dash__empty { margin: 0; padding: 22px; text-align: center; color: var(--alg-dash-muted,#6f685e); font-size: 14px; }

.alg-dash__pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.alg-dash__pill.is-pending { background: #FBF3E4; color: #b0761a; }
.alg-dash__pill.is-confirmed { background: #e9f4ee; color: #1a6b45; }
.alg-dash__pill.is-completed { background: #eef0f4; color: #45516b; }
.alg-dash__pill.is-cancelled { background: #f7ecec; color: #9b3030; }

.alg-dash__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.alg-dash__filter { padding: 7px 14px; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)); border-radius: 999px; font-size: 12.5px; text-decoration: none; color: #141210; }
.alg-dash__filter.is-active { background: #141210; border-color: #141210; color: #fff; }
.alg-dash__status-form select { min-height: 38px !important; font-size: 13px !important; padding: 6px 28px 6px 10px !important; }

/* drawer (mobile) */
/* frontend.css sets `body.alg-site button { display: inline-flex }` at (0,1,2), which
   beats a single-class rule — so the toggle needs !important to stay hidden on desktop. */
.alg-dash--app .alg-dash__drawer-toggle { display: none !important; align-items: center; gap: 10px; padding: 10px 14px !important; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)) !important; border-radius: 8px !important; background: #fff !important; color: #141210 !important; font-size: 13px !important; font-weight: 600; cursor: pointer; margin-bottom: 14px; min-height: 0 !important; }
.alg-dash__burger { position: relative; width: 16px; height: 2px; background: #141210; }
.alg-dash__burger::before, .alg-dash__burger::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #141210; }
.alg-dash__burger::before { top: -5px; }
.alg-dash__burger::after { top: 5px; }
.alg-dash__scrim { display: none; }

@media (max-width: 960px) {
	.alg-dash--app { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.alg-dash--app .alg-dash__drawer-toggle { display: inline-flex !important; }
	.alg-dash__sidebar {
		position: fixed; top: 0; left: 0; z-index: 10000;
		width: 82%; max-width: 300px; height: 100%; border-radius: 0; border-left: 0;
		overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease;
	}
	.alg-dash__sidebar.is-open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.3); }
	.alg-dash__scrim { display: block; position: fixed; inset: 0; z-index: 9999; background: rgba(14,12,10,.5); }
	.alg-dash__scrim[hidden] { display: none; }
	.alg-dash__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.alg-dash__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.alg-dash__card-value { font-size: 24px; }
}

/* -------------------------------------------------------------------------
 * Agent cards, modals, CRM
 * ---------------------------------------------------------------------- */
.alg-dash__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.alg-dash__muted { color: var(--alg-dash-muted, #6f685e); font-size: 12.5px; }
.alg-dash__inline-form { display: inline; }

/* agent cards */
.alg-dash__agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.alg-dash__agent-card { border: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); border-radius: var(--alg-dash-radius, 12px); background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.alg-dash__agent-card:hover { border-color: #E7C98B; box-shadow: 0 14px 34px rgba(20,18,16,.08); }
.alg-dash__agent-card.is-suspended { opacity: .72; background: #faf9f7; }
.alg-dash__agent-photo { position: relative; aspect-ratio: 1/1; background: #f2efe9; }
.alg-dash__agent-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alg-dash__agent-card.is-suspended .alg-dash__agent-photo img { filter: grayscale(1); }
.alg-dash__agent-flag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #9b3030; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.alg-dash__agent-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.alg-dash__agent-body h3 { margin: 0 0 2px; font-size: 16px; }
.alg-dash__agent-role { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #b0761a; }
.alg-dash__agent-meta { margin: 0 0 3px; font-size: 12.5px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__agent-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.alg-dash__btn--suspend { background: #fff !important; border: 1px solid #d8b4b4 !important; color: #9b3030 !important; }
.alg-dash__btn--restore { background: #fff !important; border: 1px solid #b4d8c4 !important; color: #1a6b45 !important; }

/* modal */
.alg-dash__modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.alg-dash__modal[hidden] { display: none; }
.alg-dash__modal-scrim { position: absolute; inset: 0; background: rgba(14,12,10,.55); }
.alg-dash__modal-box { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.alg-dash__modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); position: sticky; top: 0; background: #fff; }
.alg-dash__modal-head h2 { margin: 0; font-size: 18px; }
.alg-dash__modal-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--alg-dash-muted, #6f685e); padding: 0 4px; }
.alg-dash__modal-form { padding: 20px; }
.alg-dash__modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* property search */
.alg-dash__search { position: relative; }
.alg-dash__search-results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.14); max-height: 220px; overflow-y: auto; }
.alg-dash__search-results[hidden] { display: none; }
.alg-dash__search-results li { padding: 10px 12px; font-size: 13.5px; cursor: pointer; }
.alg-dash__search-results li:hover { background: #FBF3E4; }
.alg-dash__chosen { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #1a6b45; }
.alg-dash__chosen[hidden] { display: none; }

/* CRM */
.alg-dash__cards--pipeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.alg-dash__card--mini { padding: 14px; }
.alg-dash__card--mini .alg-dash__card-value { font-size: 22px; }
.alg-dash__due { margin: 0; padding: 0; list-style: none; }
.alg-dash__due li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.06)); font-size: 14px; }
.alg-dash__pill.is-new { background: #eef0f4; color: #45516b; }
.alg-dash__pill.is-contacted { background: #FBF3E4; color: #b0761a; }
.alg-dash__pill.is-viewing { background: #eaf1f7; color: #2f5d80; }
.alg-dash__pill.is-negotiating { background: #f5eef7; color: #6b3a80; }
.alg-dash__pill.is-won { background: #e9f4ee; color: #1a6b45; }
.alg-dash__pill.is-lost { background: #f7ecec; color: #9b3030; }

@media (max-width: 1100px) { .alg-dash__cards--pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .alg-dash__agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.alg-dash__agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.alg-dash__agent-actions { flex-direction: column; }
	.alg-dash__cards--pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alg-dash__modal { padding: 0; }
	.alg-dash__modal-box { max-height: 100vh; border-radius: 0; }
}


/* -------------------------------------------------------------------------
 * Fixes
 * ---------------------------------------------------------------------- */

/* .alg-dash__btn--ghost was styled for a dark surface (white text on a 4% white
   background), so it rendered white-on-white on cards and panels. */
.alg-dash__btn--ghost,
.alg-dash--app .alg-dash__btn--ghost {
	background: #fff !important;
	border: 1px solid var(--alg-dash-line-strong, rgba(0, 0, 0, 0.16)) !important;
	color: var(--alg-dash-ink, #151515) !important;
}

.alg-dash__btn--ghost:hover,
.alg-dash--app .alg-dash__btn--ghost:hover {
	border-color: var(--alg-dash-gold, #e29c29) !important;
	color: #b0761a !important;
}

/* The modal is portalled to <body> by dashboard.js so it can't be trapped inside a
   theme/Elementor stacking context. The site header is sticky at z-index 1000. */
body > .alg-dash__modal {
	z-index: 999999;
}

.alg-dash__modal .alg-dash__btn--primary {
	background: var(--alg-dash-black, #141210) !important;
	color: #fff !important;
	border: 1px solid var(--alg-dash-black, #141210) !important;
}

/* Submission photo thumbnails */
.alg-dash__thumbs { display: flex; align-items: center; gap: 5px; }
.alg-dash__thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; display: block; }

/* -------------------------------------------------------------------------
 * Client Tracker (to spec)
 * ---------------------------------------------------------------------- */
.alg-dash__cards--stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.alg-dash__card--mini.is-accent { background: #FBF3E4; border-color: #E7C98B; }
.alg-dash__card--mini.is-accent .alg-dash__card-value { color: #b0761a; }
.alg-dash__crm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alg-dash__pipe { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 9px; }
.alg-dash__pipe-label { font-size: 12.5px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__pipe-bg { height: 10px; border-radius: 999px; background: #f0ede7; overflow: hidden; }
.alg-dash__pipe-bar { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.alg-dash__pipe-num { font-size: 13px; font-weight: 700; text-align: right; }

/* status colours (spec order: New, Follow-up, Viewed, Paid, Not Paid, Closed-Won, Closed-Lost) */
.alg-dash__pipe-bar.is-new, .alg-dash__pill.is-new { background: #6b7a99; }
.alg-dash__pipe-bar.is-followup, .alg-dash__pill.is-followup { background: #E29C29; }
.alg-dash__pipe-bar.is-viewed, .alg-dash__pill.is-viewed { background: #2f80a8; }
.alg-dash__pipe-bar.is-paid, .alg-dash__pill.is-paid { background: #1a6b45; }
.alg-dash__pipe-bar.is-notpaid, .alg-dash__pill.is-notpaid { background: #9b3030; }
.alg-dash__pipe-bar.is-closedwon, .alg-dash__pill.is-closedwon { background: #14532d; }
.alg-dash__pipe-bar.is-closedlost, .alg-dash__pill.is-closedlost { background: #6f685e; }
.alg-dash__pill.is-new, .alg-dash__pill.is-followup, .alg-dash__pill.is-viewed,
.alg-dash__pill.is-paid, .alg-dash__pill.is-notpaid, .alg-dash__pill.is-closedwon,
.alg-dash__pill.is-closedlost { color: #fff; }

.alg-dash__followup { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.06)); text-decoration: none; color: inherit; }
.alg-dash__followup:hover { background: #fbfaf8; }
.alg-dash__followup strong { display: block; font-size: 14px; }
.alg-dash__followup small { display: block; font-size: 12px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__followup-date { font-size: 12.5px; font-weight: 700; color: #E29C29; white-space: nowrap; }
.alg-dash__followup-date.is-overdue { color: #9b3030; }

.alg-dash__table-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.alg-dash__table-controls input[type="text"],
.alg-dash__table-controls select { min-height: 42px !important; padding: 9px 12px !important; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)) !important; border-radius: 8px !important; background-color: #fff !important; color: var(--alg-dash-ink, #151515) !important; font-family: inherit !important; font-size: 14px !important; }
.alg-dash__table-controls input[type="text"] { flex: 1; min-width: 200px; }
.alg-dash__table--click tbody tr { cursor: pointer; }
.alg-dash__table--click tbody tr:hover { background: #FBF3E4; }
.alg-dash__table code { font-size: 11.5px; color: var(--alg-dash-muted, #6f685e); }

.alg-dash__form-section { margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b0761a; }
.alg-dash__client-form .alg-dash__form-section:first-child { margin-top: 0; }
.alg-dash__sector-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.alg-dash__sector-tab { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--alg-dash-line-strong, rgba(0,0,0,.14)); border-radius: 999px; cursor: pointer; font-size: 13.5px; transition: .16s; }
.alg-dash__sector-tab input { position: absolute; opacity: 0; width: 0; height: 0; }
.alg-dash__sector-tab.is-active { background: #141210; border-color: #141210; color: #fff; font-weight: 600; }
.alg-dash__sector-fields[hidden] { display: none !important; }
.alg-dash__radios { display: flex; gap: 16px; }
.alg-dash__radio { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.alg-dash__field[hidden] { display: none !important; }

@media (max-width: 1100px) { .alg-dash__cards--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .alg-dash__crm-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .alg-dash__cards--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .alg-dash__pipe { grid-template-columns: 76px 1fr 28px; } }

/* -------------------------------------------------------------------------
 * Property Register (to spec)
 * ---------------------------------------------------------------------- */
.alg-dash__cards--reg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.alg-dash__results-meta { margin: 6px 0 12px; font-size: 12.5px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__empty-block { text-align: center; padding: 40px 20px; }
.alg-dash__empty-block h3 { margin: 0 0 6px; font-size: 18px; }
.alg-dash__empty-block p { margin: 0; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__form-hint { margin: -6px 0 16px; font-size: 13px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__reg-form fieldset { margin-bottom: 4px; }

.alg-dash__pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.alg-dash__pcard { border: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); border-left: 4px solid #1a6b45; border-radius: var(--alg-dash-radius, 12px); background: #fff; padding: 16px; }
.alg-dash__pcard.status-negot { border-left-color: #E29C29; }
.alg-dash__pcard.status-gone { border-left-color: #6b7a99; }
.alg-dash__pcard.status-off { border-left-color: #9b3030; opacity: .78; }
.alg-dash__pcard-idrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.alg-dash__pid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: #b0761a; }
.alg-dash__badge { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.alg-dash__badge.yes { background: #e9f4ee; color: #1a6b45; }
.alg-dash__badge.no { background: #f1efec; color: #6f685e; }
.alg-dash__pcard h3 { margin: 0 0 3px; font-size: 16px; }
.alg-dash__pcard-loc { margin: 0 0 8px; font-size: 12.5px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__pcard-loc a { color: #b0761a; }
.alg-dash__pcard-price { margin: 0 0 10px; font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; }
.alg-dash__rowline { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--alg-dash-line, rgba(0,0,0,.05)); font-size: 12.5px; }
.alg-dash__rowline span:first-child { color: var(--alg-dash-muted, #6f685e); }
.alg-dash__rowline span:last-child { text-align: right; }
.alg-dash__pcard-actions { display: flex; gap: 8px; margin-top: 12px; }
.alg-dash__btn--danger { background: #fff !important; border: 1px solid #d8b4b4 !important; color: #9b3030 !important; }
.alg-dash__btn--danger:hover { background: #9b3030 !important; color: #fff !important; }

@media (max-width: 1100px) { .alg-dash__cards--reg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alg-dash__cards--reg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .alg-dash__pcards { grid-template-columns: 1fr; } }

/* Register filters: always one row of four.
   Themes commonly set `select { width: 100% }`, which makes each select claim a
   full line inside the wrapping flex toolbar. An explicit grid row fixes the
   columns regardless of what width the theme puts on the control. */
.alg-dash__filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	flex: 1 0 100%;
	width: 100%;
}

.alg-dash__filter-grid select {
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

@media (max-width: 900px) {
	.alg-dash__filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.alg-dash__filter-grid { grid-template-columns: 1fr; }
}

/* Register: a local reference (REG-…) reads differently from a real ALP Property ID */
.alg-dash__pid.is-temp { color: var(--alg-dash-muted, #6f685e); font-weight: 600; }
.alg-dash__ref-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--alg-dash-surface-muted, #faf9f7); border: 1px solid var(--alg-dash-line, rgba(0,0,0,.08)); font-size: 13px; color: var(--alg-dash-muted, #6f685e); }
.alg-dash__ref-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #b0761a; font-weight: 700; }
