/* Admin + front locality pages */
.lp-admin .lp-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 14px;
}
.lp-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.lp-card--highlight {
	margin: 0 0 18px;
	flex-direction: row;
	max-width: 720px;
}
.lp-card--highlight .lp-card__media {
	width: 220px;
	min-height: 160px;
}
.lp-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #eef2f7;
}
.lp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lp-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 120px;
	color: #0f4c81;
	font-size: 28px;
}
.lp-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}
.lp-card__badge.is-live { background: #16a34a; }
.lp-card__badge.is-draft { background: #64748b; }
.lp-card__body { padding: 12px 14px 14px; }
.lp-card__body h3 {
	margin: 0 0 4px;
	font-size: 1.05rem;
	color: #0f172a;
}
.lp-card__meta,
.lp-card__stats {
	margin: 0 0 6px;
	font-size: 13px;
	color: #64748b;
}
.lp-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.lp-posted-banner {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 12px;
	color: #065f46;
}
.lp-posted-banner p { margin: 4px 0 0; font-size: 13px; }
.lp-empty {
	grid-column: 1 / -1;
	padding: 40px;
	text-align: center;
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
}

.lp-wizard-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}
.lp-wizard-top h1 {
	margin: 0 0 4px;
	font-size: 1.45rem;
	color: #0f172a;
	letter-spacing: -0.02em;
}
.lp-kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0f4c81;
}
.lp-lead {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	max-width: 52ch;
	line-height: 1.45;
}
.lp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	/* Never inherit Materialize nav pink (#ee6e73) if markup is <nav> */
	background: transparent !important;
	background-color: transparent !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: normal !important;
	width: auto !important;
	box-shadow: none !important;
	color: inherit !important;
	padding: 0 !important;
}
.lp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 12px 0 6px;
	border-radius: 999px;
	border: 1px solid #d7e2ee;
	background: #fff;
	color: #64748b;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.lp-chip__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #e8eef5;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
}
.lp-chip.is-active {
	background: #0f4c81;
	border-color: #0f4c81;
	color: #fff;
	box-shadow: 0 6px 16px rgba(15, 76, 129, 0.22);
}
.lp-chip.is-active .lp-chip__n {
	background: rgba(255,255,255,.2);
	color: #fff;
}
.lp-chip.is-done {
	background: #f0fdf4;
	border-color: #86efac;
	color: #166534;
}
.lp-chip.is-done .lp-chip__n {
	background: #bbf7d0;
	color: #166534;
}
.lp-chip[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}
.lp-form {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.lp-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 18px 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.lp-panel__head {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef2f7;
}
.lp-panel__head h2 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	color: #0f4c81;
	letter-spacing: -0.01em;
}
.lp-panel__head p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}
.lp-loc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
}
.lp-city-combo,
.listing-city-combo {
	position: relative;
}
.lp-city-suggest,
.listing-city-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% - 2px);
	z-index: 40;
	max-height: 220px;
	overflow: auto;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
	padding: 4px;
}
.lp-city-suggest[hidden],
.listing-city-suggest[hidden] {
	display: none !important;
}
.lp-city-suggest__item,
.listing-city-suggest__item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
}
.lp-city-suggest__item:hover,
.lp-city-suggest__item[data-active="1"],
.listing-city-suggest__item:hover,
.listing-city-suggest__item[data-active="1"] {
	background: #eef5fb;
	color: #0f4c81;
}
.lp-field label {
	display: block;
	font-size: 12px;
	font-weight: 650;
	color: #475569;
	margin-bottom: 5px;
}
.lp-opt {
	font-weight: 500;
	color: #94a3b8;
	font-size: 11px;
	margin-left: 4px;
}
.lp-input.browser-default,
.lp-field .lp-input,
.lp-field select.lp-input,
.lp-field textarea.lp-input {
	width: 100%;
	height: 42px;
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px !important;
	padding: 0 12px !important;
	box-sizing: border-box;
	background: #fff !important;
	font-size: 14px !important;
	color: #0f172a !important;
	box-shadow: none !important;
}
.lp-field textarea.lp-textarea {
	height: auto !important;
	min-height: 160px;
	padding: 12px !important;
	line-height: 1.5;
	resize: vertical;
}
.lp-hint {
	margin: 5px 0 0;
	font-size: 11px;
	color: #94a3b8;
}
.lp-hint em { font-style: normal; color: #0f4c81; font-weight: 600; }
.lp-charcount {
	text-align: right;
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
}
.lp-map-block {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
}
.lp-map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}
.lp-map-head label {
	font-size: 12px;
	font-weight: 650;
	color: #475569;
	margin: 0;
}
.lp-map-status {
	font-size: 12px;
	color: #64748b;
}
.lp-map-status.is-busy { color: #0f4c81; }
.lp-map-status.is-ok { color: #15803d; }
.lp-map-canvas {
	height: 300px;
	border-radius: 12px;
	border: 1px solid #dbe4ef;
	overflow: hidden;
	background: linear-gradient(135deg, #eef4fa, #f8fafc);
}
.lp-coord-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	margin-top: 10px;
	align-items: center;
}
.lp-nearby-cat {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 10px;
	background: #f8fafc;
}
.lp-nearby-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.lp-nearby-cat__head h3 {
	margin: 0;
	font-size: 0.92rem;
	color: #0f172a;
}
.lp-nearby-row {
	display: grid;
	grid-template-columns: 1.4fr 0.7fr 0.55fr 32px;
	gap: 6px;
	margin-bottom: 6px;
	align-items: center;
}
.lp-nearby-cat[data-cat="other"] .lp-nearby-row {
	grid-template-columns: 0.9fr 1.1fr 0.65fr 0.5fr 32px;
}
.lp-nearby-row input,
.lp-nearby-row select {
	height: 36px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 8px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}
.lp-row-remove {
	border: 0;
	background: #e2e8f0;
	color: #475569;
	border-radius: 8px;
	height: 36px;
	font-size: 18px;
	cursor: pointer;
}
.lp-row-remove:hover {
	background: #cbd5e1;
	color: #0f172a;
}
.lp-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}
.lp-photo-item {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	font-size: 11px;
	padding-bottom: 6px;
}
.lp-photo-item img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	display: block;
}
.lp-photo-item span { display: block; padding: 2px 6px; }
.lp-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
	padding: 12px 0 4px;
}

/* Front listing slot */
.lify-listing-locality {
	margin: 18px 0 22px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 48%);
}
.lify-listing-locality__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	color: #0f4c81;
}
.lify-listing-locality__sub {
	margin: 0 0 12px;
	color: #64748b;
	font-size: 14px;
}
.lify-listing-locality__desc {
	margin: 0 0 16px;
	color: #334155;
	font-size: 14px;
	line-height: 1.55;
	white-space: pre-wrap;
}
.lify-listing-locality__nearby {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.lify-listing-locality__cat {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
}
.lify-listing-locality__cat h4 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #0f4c81;
	display: flex;
	align-items: center;
	gap: 6px;
}
.lify-listing-locality__cat ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lify-listing-locality__cat li {
	font-size: 13px;
	color: #334155;
	margin-bottom: 6px;
	line-height: 1.35;
}
.lify-listing-locality__cat li strong { font-weight: 650; color: #0f172a; }
.lify-listing-locality__media {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	margin-top: 14px;
}
.lify-listing-locality__media img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.lify-listing-locality__videos {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lify-listing-locality__videos a {
	font-size: 13px;
	font-weight: 600;
	color: #0f4c81;
}

/* Compact listing slot — 3-line about + why bullets */
.lify-listing-locality--compact {
	margin: 12px 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
}
.lify-listing-locality--compact .lify-listing-locality__title {
	font-size: 1.05rem;
	margin-bottom: 6px;
}
.lify-listing-locality__about:not(.is-expanded) .lify-about-clamp__text,
.lify-listing-locality__about:not(.is-expanded) .lify-listing-locality__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	white-space: normal;
}
.lify-listing-locality__about.is-expanded .lify-about-clamp__text,
.lify-listing-locality__about.is-expanded .lify-listing-locality__desc {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}
.lify-listing-locality__desc {
	white-space: pre-wrap;
}
.lify-listing-locality__more {
	margin-top: 4px;
	margin-bottom: 8px;
}
.lify-listing-locality__why {
	margin-top: 8px;
}
.lify-listing-locality__why-title {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}
.lp-why-display {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lp-why-display li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.35;
	color: #0f172a;
}
.lp-why-display__b {
	flex: 0 0 auto;
	font-weight: 700;
	line-height: 1.35;
}
.lp-why-display strong {
	font-weight: 700;
}
.lify-listing-locality__link {
	margin: 8px 0 0;
	font-size: 13px;
}
.lify-listing-locality__link a {
	font-weight: 600;
	color: #0f4c81;
}

/* Why Consider — wizard */
.lp-why-add__row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}
.lp-why-add__row .lp-input {
	flex: 1;
}
.lp-why-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lp-why-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #eef2f7;
}
.lp-why-item__bullet {
	font-weight: 700;
	line-height: 1.4;
}
.lp-why-item__text {
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
	color: #0f172a;
}
.lp-why-item__remove {
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.lp-why-item__remove:hover { color: #b91c1c; }
.lp-why-empty {
	margin: 6px 0 0;
	color: #94a3b8;
	font-size: 13px;
}
.lp-uid-line {
	margin: 6px 0 0;
	font-size: 13px;
	color: #64748b;
}
.lp-slug { font-family: ui-monospace, monospace; font-size: 12px; }

/* Public locality page */
.lp-public {
	max-width: 920px;
	margin: 0 auto 40px;
	padding: 0 16px;
}
.lp-public__hero {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(135deg, #0f4c81 0%, #1e3a5f 100%);
	color: #fff;
	margin: 18px 0 20px;
	min-height: 140px;
}
.lp-public__cover {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.35;
}
.lp-public__hero-inner {
	position: relative;
	padding: 28px 24px;
}
.lp-public__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}
.lp-public__hero h1 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
}
.lp-public__sub {
	margin: 8px 0 0;
	opacity: 0.9;
	font-size: 14px;
}
.lp-public__block {
	margin-bottom: 22px;
}
.lp-public__block h2 {
	margin: 0 0 10px;
	font-size: 1.15rem;
	color: #0f4c81;
}
.lp-public__desc {
	color: #334155;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-wrap;
}
.lp-public__media img {
	max-height: 180px;
}

@media (max-width: 768px) {
	.lp-wizard-top { flex-direction: column; }
	.lp-loc-grid { grid-template-columns: 1fr; }
	.lp-coord-row { grid-template-columns: 1fr; }
	.lp-nearby-row,
	.lp-nearby-cat[data-cat="other"] .lp-nearby-row {
		grid-template-columns: 1fr;
	}
	.lp-card--highlight { flex-direction: column; }
	.lp-card--highlight .lp-card__media { width: 100%; }
	.lp-why-add__row { flex-direction: column; align-items: stretch; }
}
