/* ==========================================================================
   VML Rental Manager Pro — Frontend styles
   Modern, responsive, mobile-first. Variables are scoped under .vml-properties
   and .vml-single so the plugin styles don't leak into the rest of the theme.
   ========================================================================== */

.vml-properties,
.vml-single {
	--vml-color-text: #1e293b;
	--vml-color-muted: #64748b;
	--vml-color-border: #e5e7eb;
	--vml-color-bg: #ffffff;
	--vml-color-bg-soft: #f8fafc;
	--vml-color-primary: #00a94f;
	--vml-color-primary-dark: #008a41;
	--vml-color-accent: #2bc96a;
	--vml-color-success: #16a34a;
	--vml-color-warning: #f59e0b;
	--vml-color-danger: #dc2626;
	--vml-radius: 10px;
	--vml-radius-sm: 6px;
	--vml-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
	--vml-shadow-hover: 0 8px 32px rgba(15, 23, 42, 0.12);
	--vml-gap: 18px;
	color: var(--vml-color-text);
	box-sizing: border-box;
	font-family: inherit;
}

.vml-properties *,
.vml-single *,
.vml-properties *::before,
.vml-single *::before,
.vml-properties *::after,
.vml-single *::after {
	box-sizing: border-box;
}

/* ---------- Filter bar ---------- */
.vml-filter-bar {
	background: var(--vml-color-bg-soft);
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius);
	padding: 16px;
	margin-bottom: 20px;
}
.vml-filter-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}
.vml-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
}
.vml-field > span {
	font-weight: 600;
	color: var(--vml-color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.vml-field input,
.vml-field select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius-sm);
	background: var(--vml-color-bg);
	font-size: 0.95rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.vml-field input:focus,
.vml-field select:focus {
	outline: none;
	border-color: var(--vml-color-primary);
	box-shadow: 0 0 0 3px rgba(0, 169, 79, 0.15);
}
.vml-field-keyword {
	grid-column: 1 / -1;
}
.vml-field-keyword input {
	font-size: 1rem;
	padding: 12px 14px;
}

.vml-features {
	margin-top: 14px;
	border-top: 1px dashed var(--vml-color-border);
	padding-top: 14px;
}
.vml-features-heading {
	font-weight: 600;
	color: var(--vml-color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.vml-features-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vml-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--vml-color-bg);
	border: 1px solid var(--vml-color-border);
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.15s;
}
.vml-chip:hover {
	border-color: var(--vml-color-primary);
}
.vml-chip input {
	margin: 0;
	accent-color: var(--vml-color-primary);
}
.vml-chip input:checked + span {
	color: var(--vml-color-primary);
	font-weight: 600;
}
.vml-chip-featured input:checked + span {
	color: var(--vml-color-warning);
}

.vml-filter-actions {
	margin-top: 14px;
	display: flex;
	justify-content: flex-end;
}
.vml-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: var(--vml-radius-sm);
	border: 1px solid var(--vml-color-border);
	background: var(--vml-color-bg);
	color: var(--vml-color-text);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
}
.vml-btn:hover {
	border-color: var(--vml-color-primary);
	color: var(--vml-color-primary);
}
.vml-btn-primary {
	background: var(--vml-color-primary);
	border-color: var(--vml-color-primary);
	color: #fff;
}
.vml-btn-primary:hover {
	background: var(--vml-color-primary-dark);
	border-color: var(--vml-color-primary-dark);
	color: #fff;
}
.vml-btn-reset {
	background: transparent;
	color: var(--vml-color-muted);
}

/* ---------- Results bar ---------- */
.vml-results-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}
.vml-results-count {
	color: var(--vml-color-muted);
	font-size: 0.9rem;
}
.vml-results-tools {
	display: flex;
	gap: 10px;
	align-items: center;
}
.vml-sort select {
	padding: 7px 10px;
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius-sm);
	background: var(--vml-color-bg);
	font-size: 0.9rem;
}
.vml-layout-toggle {
	display: inline-flex;
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius-sm);
	overflow: hidden;
}
.vml-layout-toggle button {
	background: var(--vml-color-bg);
	border: none;
	padding: 7px 10px;
	cursor: pointer;
	color: var(--vml-color-muted);
	display: inline-flex;
	align-items: center;
	transition: background 0.15s, color 0.15s;
}
.vml-layout-toggle button.is-active {
	background: var(--vml-color-primary);
	color: #fff;
}
.vml-layout-toggle button + button {
	border-left: 1px solid var(--vml-color-border);
}
.vml-layout-toggle svg {
	fill: currentColor;
}

@media (min-width: 1024px) {
	.vml-properties .vml-layout-toggle {
		display: none;
	}
}

/* ---------- Grid ---------- */
.vml-grid-wrap {
	position: relative;
	min-height: 200px;
}
.vml-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--vml-gap);
}
.vml-layout-list .vml-grid {
	grid-template-columns: 1fr;
}
.vml-grid-loading {
	position: absolute;
	inset: 0;
	display: none !important;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(2px);
	z-index: 2;
	border-radius: var(--vml-radius);
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.vml-grid-loading.is-active {
	display: flex !important;
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}
.vml-grid-wrap.is-loading .vml-grid {
	pointer-events: none;
}
.vml-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--vml-color-border);
	border-top-color: var(--vml-color-primary);
	border-radius: 50%;
	animation: vml-spin 0.8s linear infinite;
}
@keyframes vml-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Card ---------- */
.vml-card {
	background: var(--vml-color-bg);
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius);
	overflow: hidden;
	box-shadow: var(--vml-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}
.vml-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vml-shadow-hover);
}
.vml-card-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--vml-color-bg-soft);
}
.vml-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
	display: block;
}
.vml-card:hover .vml-card-media img {
	transform: scale(1.05);
}
.vml-card-noimage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vml-color-muted);
}
.vml-badge {
	position: absolute;
	top: 12px;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	z-index: 1;
	background: rgba(15, 23, 42, 0.8);
}
.vml-badge-featured {
	left: 12px;
	background: var(--vml-color-warning);
}
.vml-badge-status {
	right: 12px;
}
.vml-status-available { background: var(--vml-color-success); }
.vml-status-rented    { background: var(--vml-color-muted); }
.vml-status-pending   { background: var(--vml-color-warning); }
.vml-status-unavailable { background: var(--vml-color-danger); }
.vml-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.vml-card-title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 700;
}
.vml-card-title a {
	color: var(--vml-color-text);
	text-decoration: none;
}
.vml-card-title a:hover {
	color: var(--vml-color-primary);
}
.vml-card-location {
	margin: 0;
	color: var(--vml-color-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 5px;
}
.vml-card-location svg {
	fill: var(--vml-color-primary);
	flex-shrink: 0;
}
.vml-card-desc {
	color: var(--vml-color-muted);
	font-size: 0.88rem;
	margin: 0;
	line-height: 1.5;
}
.vml-card-stats {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	gap: 14px;
	font-size: 0.85rem;
	color: var(--vml-color-muted);
}
.vml-card-stats li strong {
	color: var(--vml-color-text);
	margin-right: 3px;
}
.vml-card-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--vml-color-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.vml-card-price {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--vml-color-primary);
}
.vml-card-period {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--vml-color-muted);
}
.vml-card-poa {
	color: var(--vml-color-muted);
	font-style: italic;
}
.vml-card-cta {
	color: var(--vml-color-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
}
.vml-card-cta:hover {
	color: var(--vml-color-primary-dark);
	text-decoration: none;
}

/* List layout adjustments */
.vml-layout-list .vml-card {
	flex-direction: row;
}
.vml-layout-list .vml-card-media {
	width: 320px;
	aspect-ratio: auto;
	min-height: 100%;
	flex-shrink: 0;
}
@media (max-width: 720px) {
	.vml-layout-list .vml-card {
		flex-direction: column;
	}
	.vml-layout-list .vml-card-media {
		width: 100%;
		aspect-ratio: 16 / 10;
	}
}

/* ---------- Empty state ---------- */
.vml-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	color: var(--vml-color-muted);
	background: var(--vml-color-bg-soft);
	border-radius: var(--vml-radius);
}
.vml-empty h3 {
	margin: 0 0 6px;
	color: var(--vml-color-text);
	font-size: 1.1rem;
}

/* ---------- Pagination ---------- */
.vml-pagination {
	margin-top: 24px;
	display: flex;
	justify-content: center;
}
.vml-pages {
	display: flex;
	gap: 4px;
	align-items: center;
}
.vml-page {
	min-width: 36px;
	height: 36px;
	border: 1px solid var(--vml-color-border);
	background: var(--vml-color-bg);
	border-radius: var(--vml-radius-sm);
	cursor: pointer;
	font-weight: 600;
	color: var(--vml-color-text);
	transition: all 0.15s;
}
.vml-page:hover {
	border-color: var(--vml-color-primary);
	color: var(--vml-color-primary);
}
.vml-page.is-current {
	background: var(--vml-color-primary);
	border-color: var(--vml-color-primary);
	color: #fff;
}
.vml-page-ellipsis {
	color: var(--vml-color-muted);
	padding: 0 4px;
}
.vml-load-more {
	display: block;
	margin: 0 auto;
	padding: 12px 32px;
	background: var(--vml-color-primary);
	color: #fff;
	border: none;
	border-radius: var(--vml-radius-sm);
	font-weight: 600;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background 0.15s;
}
.vml-load-more:hover {
	background: var(--vml-color-primary-dark);
}
.vml-load-more[disabled] {
	background: var(--vml-color-muted);
	cursor: not-allowed;
}

/* ==========================================================================
   Single Property
   ========================================================================== */
.vml-breadcrumb {
	margin: 0 0 20px;
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--vml-color-muted);
}
.vml-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vml-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	margin: 0;
}
.vml-breadcrumb__item:not(.is-current)::after {
	content: "/";
	margin-left: 8px;
	color: #cbd5e1;
	font-weight: 400;
	pointer-events: none;
}
.vml-breadcrumb__link {
	color: var(--vml-color-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.vml-breadcrumb__link:hover,
.vml-breadcrumb__link:focus {
	color: var(--vml-color-primary);
	text-decoration: underline;
}
.vml-breadcrumb__current {
	color: var(--vml-color-text);
	font-weight: 600;
}

.vml-single-back {
	margin: -8px 0 18px;
}
.vml-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--vml-color-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}
.vml-back-link:hover,
.vml-back-link:focus {
	color: var(--vml-color-primary-dark);
	text-decoration: underline;
}
.vml-back-link__icon {
	font-size: 1.1em;
	line-height: 1;
}

.vml-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px;
}
.vml-single img {
	border-radius: 0;
}
.vml-single-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--vml-color-border);
}
.vml-single-eyebrow {
	color: var(--vml-color-primary);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.vml-single-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.15;
}
.vml-single-address {
	color: var(--vml-color-muted);
	margin: 0 0 10px;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 6px;
}
.vml-single-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.vml-single-badges .vml-badge {
	position: static;
}
.vml-single-badges .vml-badge-status {
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
}
.vml-single-badges .vml-status-available { color: var(--vml-color-success); }
.vml-single-badges .vml-status-rented    { color: var(--vml-color-muted); }
.vml-single-badges .vml-status-pending   { color: var(--vml-color-warning); }
.vml-single-badges .vml-status-unavailable { color: var(--vml-color-danger); }
.vml-single-price {
	text-align: right;
}
.vml-single-price-value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--vml-color-primary);
}
.vml-single-price-period {
	color: var(--vml-color-muted);
	font-size: 1rem;
}
.vml-single-deposit {
	display: block;
	margin-top: 6px;
	font-size: 0.85rem;
	color: var(--vml-color-muted);
}

.vml-single-hero-media {
	margin: 0;
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.vml-single-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gallery + inquiry form row (desktop: image height matches form) */
.vml-single-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: stretch;
	margin-bottom: 32px;
}
@media (min-width: 993px) {
	.vml-single-hero:not(.vml-single-hero--no-image) .vml-single-hero-media {
		position: relative;
		aspect-ratio: auto;
		height: 100%;
		min-height: 0;
	}
	.vml-single-hero:not(.vml-single-hero--no-image) .vml-single-hero-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}
}
.vml-single-hero--no-image {
	grid-template-columns: 1fr;
	max-width: 420px;
	margin-left: auto;
}
@media (max-width: 992px) {
	.vml-single-hero {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.vml-single-hero--no-image {
		max-width: none;
		margin-left: 0;
	}
}

.vml-single-main {
	max-width: 100%;
}

.vml-single-section {
	margin-bottom: 32px;
}
.vml-single-section h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--vml-color-border);
}
.vml-single-map-address {
	margin: -8px 0 16px;
	color: var(--vml-color-muted);
	font-size: 0.95rem;
}

.vml-overview-stats {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 12px;
}
.vml-overview-stats li {
	background: var(--vml-color-bg-soft);
	border-radius: var(--vml-radius-sm);
	padding: 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vml-stat-num {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--vml-color-primary);
}
.vml-overview-stats li > span:last-child {
	font-size: 0.8rem;
	color: var(--vml-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.vml-single-description {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--vml-color-text);
}
.vml-single-description p { margin: 0 0 1em; }

.vml-amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}
.vml-amenities li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--vml-color-bg-soft);
	border-radius: var(--vml-radius-sm);
	font-size: 0.95rem;
}
.vml-amenities svg {
	fill: var(--vml-color-success);
	flex-shrink: 0;
}

.vml-photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.vml-photo-gallery__item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid var(--vml-color-border);
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--vml-color-bg-soft);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.vml-photo-gallery__item:hover {
	box-shadow: var(--vml-shadow-hover);
	transform: translateY(-1px);
}
.vml-photo-gallery__item:focus-visible {
	outline: 2px solid var(--vml-color-primary);
	outline-offset: 2px;
}
.vml-photo-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.vml-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.88);
}
.vml-lightbox[hidden] {
	display: none !important;
}
.vml-lightbox__stage {
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 48px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.vml-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	width: auto;
	height: auto;
	border-radius: 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.vml-lightbox__close,
.vml-lightbox__prev,
.vml-lightbox__next {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.vml-lightbox__close:hover,
.vml-lightbox__prev:hover,
.vml-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.22);
}
.vml-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
}
.vml-lightbox__prev,
.vml-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
}
.vml-lightbox__prev {
	left: 16px;
}
.vml-lightbox__next {
	right: 16px;
}
.vml-lightbox__prev[hidden],
.vml-lightbox__next[hidden] {
	display: none !important;
}
body.vml-lightbox-open {
	overflow: hidden;
}

/* ---------- Map ---------- */
.vml-archive-map-section {
	margin: 0 0 24px;
	border: 1px solid var(--vml-color-border);
	border-radius: calc(var(--vml-radius) + 2px);
	background: linear-gradient(180deg, #ffffff 0%, var(--vml-color-bg-soft) 100%);
	box-shadow: var(--vml-shadow);
	overflow: hidden;
}
.vml-filter-bar + .vml-archive-map-section {
	margin-top: 20px;
}
.vml-archive-map-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--vml-color-border);
	background: rgba(255, 255, 255, 0.92);
}
.vml-archive-map-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.vml-archive-map-icon {
	color: var(--vml-color-primary);
	flex-shrink: 0;
}
.vml-archive-map-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--vml-color-text);
}
.vml-archive-map-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(0, 169, 79, 0.1);
	color: var(--vml-color-primary-dark);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}
.vml-archive-map-frame {
	position: relative;
	padding: 12px;
	background:
		radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.08), transparent 42%),
		radial-gradient(circle at 88% 0%, rgba(0, 169, 79, 0.1), transparent 36%),
		var(--vml-color-bg-soft);
}
.vml-archive-map-frame::before {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: var(--vml-radius);
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
	z-index: 1;
}
.vml-archive-map {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 440px;
	border-radius: var(--vml-radius);
	background: var(--vml-color-bg-soft);
	border: 1px solid rgba(148, 163, 184, 0.35);
	overflow: hidden;
}
.vml-map-notice {
	margin: 0;
	padding: 12px 18px 16px;
	background: var(--vml-color-bg-soft);
	border-top: 1px dashed var(--vml-color-border);
	color: var(--vml-color-muted);
	font-size: 0.9rem;
}

/* Desktop: map left, scrollable listing right */
@media (min-width: 1024px) {
	.vml-map-list-split {
		display: grid;
		grid-template-columns: minmax(360px, 65%) minmax(0, 1fr);
		grid-template-rows: 1fr;
		gap: 24px;
		align-items: stretch;
		margin-top: 20px;
		height: calc(100vh - 48px);
		max-height: 900px;
	}

	.vml-filter-bar + .vml-map-list-split {
		margin-top: 20px;
	}

	.vml-map-list-split__map {
		position: sticky;
		top: 24px;
		align-self: stretch;
		display: flex;
		flex-direction: column;
	}

	.vml-map-list-split__map .vml-archive-map-section {
		margin: 0;
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.vml-map-list-split__map .vml-archive-map-frame {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.vml-map-list-split__map .vml-archive-map {
		flex: 1;
		height: auto;
		min-height: 0;
	}

	.vml-map-list-split__list {
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: 8px;
		scrollbar-gutter: stable;
	}

	.vml-map-list-split__list .vml-results-bar {
		position: sticky;
		top: 0;
		z-index: 2;
		margin-bottom: 16px;
		padding-bottom: 12px;
		background: var(--vml-color-bg);
		border-bottom: 1px solid var(--vml-color-border);
	}

	.vml-map-list-split__list .vml-grid {
		grid-template-columns: 1fr;
	}

	.vml-map-list-split__list .vml-card {
		flex-direction: row;
		align-items: stretch;
	}

	.vml-map-list-split__list .vml-card-media {
		position: relative;
		width: 198px;
		margin: 0;
		align-self: stretch;
		flex-shrink: 0;
		overflow: hidden;
	}

	.vml-map-list-split__list .vml-card-media img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center;
	}

	.vml-map-list-split__list .vml-card-body {
		padding: 10px 12px;
		gap: 4px;
		min-width: 0;
		overflow: hidden;
	}

	.vml-map-list-split__list .vml-card-title {
		font-size: 0.95rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.vml-map-list-split__list .vml-card-location {
		font-size: 0.78rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.vml-map-list-split__list .vml-card-desc {
		display: none;
	}

	.vml-map-list-split__list .vml-card-stats {
		margin-top: 0;
		gap: 10px;
		font-size: 0.78rem;
	}

	.vml-map-list-split__list .vml-card-footer {
		padding-top: 6px;
		margin-top: auto;
	}

	.vml-map-list-split__list .vml-card-price {
		font-size: 1rem;
	}

	.vml-map-list-split__list .vml-card-cta {
		font-size: 0.8rem;
	}

	.vml-map-list-split__list .vml-badge {
		top: 6px;
		font-size: 0.6rem;
		padding: 2px 8px;
	}

	.vml-map-list-split__list .vml-pagination {
		margin-top: 20px;
		padding-bottom: 8px;
	}
}

/* Custom VML map pins (Advanced Markers) */
.vml-map-pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transform: translateY(-4px);
	transition: transform 0.2s ease;
}
.vml-map-pin:hover,
.vml-map-pin:focus-within {
	transform: translateY(-8px) scale(1.04);
}
.vml-map-pin__bubble {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--vml-pin-color, var(--vml-color-primary));
	border: 3px solid #ffffff;
	box-shadow:
		0 8px 18px rgba(15, 23, 42, 0.22),
		0 0 0 1px rgba(0, 169, 79, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.vml-map-pin__logo {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
	background: #ffffff;
	border-radius: 50%;
	padding: 3px;
}
.vml-map-pin__pointer {
	display: block;
	width: 0;
	height: 0;
	margin-top: -2px;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 14px solid var(--vml-pin-color, var(--vml-color-primary));
	filter: drop-shadow(0 3px 2px rgba(15, 23, 42, 0.2));
}

/* Google InfoWindow card */
.vml-map-info--card {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 10px;
	align-items: start;
	min-width: 220px;
	max-width: 280px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--vml-color-text);
}
.vml-map-info__media img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--vml-radius-sm);
	border: 1px solid var(--vml-color-border);
}
.vml-map-info__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vml-map-info__title {
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--vml-color-text);
}
.vml-map-info__price {
	font-size: 1rem;
	font-weight: 800;
	color: var(--vml-color-primary);
}
.vml-map-info__address {
	font-size: 0.85rem;
	color: var(--vml-color-muted);
	line-height: 1.5;
}
.vml-map-info__link {
	display: inline-flex;
	margin-top: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--vml-color-primary);
	text-decoration: none;
}
.vml-map-info__link:hover {
	color: var(--vml-color-primary-dark);
	text-decoration: underline;
}
.vml-map-info:not(.vml-map-info--card) {
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	min-width: 160px;
}
.vml-map-info:not(.vml-map-info--card) a {
	color: var(--vml-color-primary);
	font-weight: 600;
}

/* Google Maps InfoWindow shell */
.vml-archive-map .gm-style-iw-c,
.vml-map .gm-style-iw-c {
	box-shadow:
		0 10px 28px rgba(15, 23, 42, 0.22),
		0 4px 12px rgba(15, 23, 42, 0.12) !important;
	border-radius: var(--vml-radius-sm) !important;
}

/* Google Maps InfoWindow content spacing + typography */
.vml-archive-map .gm-style-iw-d,
.vml-map .gm-style-iw-d {
	margin: 10px;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.vml-map {
	width: 100%;
	height: 380px;
	min-height: 380px;
	border-radius: var(--vml-radius);
	background: var(--vml-color-bg-soft);
	border: 1px solid var(--vml-color-border);
	box-shadow: var(--vml-shadow);
}
.vml-single-location .vml-map {
	border-radius: 0;
}

@media (max-width: 640px) {
	.vml-archive-map {
		height: 320px;
	}
	.vml-archive-map-header {
		flex-wrap: wrap;
		padding: 12px 14px;
	}
	.vml-archive-map-frame {
		padding: 8px;
	}
}

.vml-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--vml-radius);
	overflow: hidden;
}
.vml-embed iframe,
.vml-embed object,
.vml-embed embed,
.vml-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ---------- Inquiry form (sticky aside) ---------- */
.vml-single-aside {
	position: relative;
	align-self: start;
}
.vml-inquiry {
	background: var(--vml-color-bg);
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius);
	padding: 24px;
	box-shadow: var(--vml-shadow);
	position: sticky;
	top: 20px;
}
.vml-inquiry-title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 700;
}
.vml-inquiry-intro {
	color: var(--vml-color-muted);
	font-size: 0.9rem;
	margin: 0 0 16px;
}
.vml-inquiry-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}
.vml-inquiry label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--vml-color-muted);
}
.vml-inquiry label em {
	color: var(--vml-color-danger);
	font-style: normal;
}
.vml-inquiry input,
.vml-inquiry textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vml-color-border);
	border-radius: var(--vml-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--vml-color-text);
	background: var(--vml-color-bg);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.vml-inquiry input:focus,
.vml-inquiry textarea:focus {
	outline: none;
	border-color: var(--vml-color-primary);
	box-shadow: 0 0 0 3px rgba(0, 169, 79, 0.15);
}
.vml-inquiry-message { margin-bottom: 14px; }
.vml-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.vml-inquiry-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.vml-inquiry-status {
	font-size: 0.85rem;
	color: var(--vml-color-muted);
}
.vml-inquiry-status.is-success { color: var(--vml-color-success); }
.vml-inquiry-status.is-error { color: var(--vml-color-danger); }

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

/* ---------- Accessibility helpers ---------- */
.vml-properties .screen-reader-text,
.vml-single .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
