/* ============================================
   MILANA LISTINGS — FRONTEND STYLES
   Powers both the Available Homes grid + single listing pages
   Brand: Navy #1F3F5C + Lime Green #A4CE4E + DM Sans + Cormorant Garamond
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
	--ml-navy: #1F3F5C;
	--ml-navy-deep: #15293d;
	--ml-green: #A4CE4E;
	--ml-green-deep: #8eb83d;
	--ml-white: #ffffff;
	--ml-soft: #f7f9fb;
	--ml-cream: #faf8f3;
	--ml-line: #e3e8ee;
	--ml-line-soft: #eef1f5;
	--ml-muted: #6b7785;
	--ml-font-display: 'Cormorant Garamond', Georgia, serif;
	--ml-font-body: 'DM Sans', sans-serif;
}

/* ============================================
   AVAILABLE HOMES GRID (cards section)
   ============================================ */
.ml-grid-wrapper {
	background: var(--ml-white);
	padding: 90px 40px 110px;
	font-family: var(--ml-font-body);
	color: var(--ml-navy);
}

.ml-grid-wrapper *,
.ml-grid-wrapper *::before,
.ml-grid-wrapper *::after { box-sizing: border-box; }

.ml-grid-inner { max-width: 1320px; margin: 0 auto; }

.ml-grid-header { text-align: center; margin-bottom: 60px; }

.ml-grid-eyebrow {
	font-family: var(--ml-font-body);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ml-navy);
	margin-bottom: 16px;
}
.ml-grid-eyebrow span { color: var(--ml-green); }

.ml-grid-title {
	font-family: var(--ml-font-display) !important;
	font-weight: 800 !important;
	font-size: clamp(38px, 5vw, 60px);
	line-height: 1.08;
	color: var(--ml-navy);
	margin: 0 0 22px;
	letter-spacing: -0.005em;
}

.ml-grid-subtitle {
	font-family: var(--ml-font-body);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ml-muted);
	max-width: 720px;
	margin: 0 auto;
}

.ml-grid-filters {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
	margin-bottom: 60px;
}

.ml-grid-filter {
	appearance: none; background: var(--ml-white);
	border: 1.5px solid var(--ml-line);
	color: var(--ml-navy);
	font-family: var(--ml-font-body);
	font-size: 14px; font-weight: 500;
	letter-spacing: 0.02em;
	padding: 12px 24px; border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ml-grid-filter:hover { border-color: var(--ml-green); color: var(--ml-green-deep); transform: translateY(-1px); }
.ml-grid-filter.is-active { background: var(--ml-navy); border-color: var(--ml-navy); color: var(--ml-white); box-shadow: 0 6px 18px -6px rgba(31, 63, 92, 0.4); }

.ml-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 28px;
}

.ml-card {
	display: flex; flex-direction: column;
	background: var(--ml-white);
	border: 1px solid var(--ml-line);
	border-radius: 14px;
	overflow: hidden; position: relative;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
	opacity: 0; transform: translateY(40px);
	animation: mlFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ml-card.is-hidden { display: none; }
.ml-card.is-revealing { animation: mlFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.ml-card:hover { transform: translateY(-10px); border-color: rgba(164, 206, 78, 0.4); box-shadow: 0 30px 60px -22px rgba(31, 63, 92, 0.32); }

.ml-card::after {
	content: ''; position: absolute; bottom: 0; left: 0;
	width: 0; height: 3px;
	background: linear-gradient(90deg, var(--ml-green) 0%, var(--ml-green-deep) 100%);
	transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 5;
}
.ml-card:hover::after { width: 100%; }

.ml-card:nth-child(1) { animation-delay: 0.05s; }
.ml-card:nth-child(2) { animation-delay: 0.15s; }
.ml-card:nth-child(3) { animation-delay: 0.25s; }
.ml-card:nth-child(4) { animation-delay: 0.35s; }
.ml-card:nth-child(5) { animation-delay: 0.45s; }
.ml-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes mlFadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.ml-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }

.ml-card-gallery {
	position: relative; width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ml-soft);
}
.ml-card-gallery img {
	position: absolute !important; top: 0 !important; left: 0 !important;
	width: 100% !important; height: 100% !important;
	object-fit: cover !important; object-position: center !important;
	display: block !important; margin: 0 !important; border: none !important;
	transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.ml-card:hover .ml-card-gallery img { transform: scale(1.08) !important; }

.ml-card-placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, #2a4d6e 0%, #1F3F5C 50%, #15293d 100%);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: var(--ml-white); text-align: center; padding: 30px 24px; gap: 14px;
}
.ml-card-placeholder svg { width: 36px; height: 36px; color: var(--ml-green); }
.ml-card-placeholder-name { font-family: var(--ml-font-display); font-size: 22px; font-weight: 600; margin: 0; color: var(--ml-white); }
.ml-card-placeholder-meta { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-green); }

.ml-card-badge {
	position: absolute; top: 16px; left: 16px; z-index: 4;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px;
	background: var(--ml-green); color: var(--ml-navy);
	font-family: var(--ml-font-body);
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase;
	border-radius: 6px;
	transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.ml-card:hover .ml-card-badge { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(31, 63, 92, 0.35); }
.ml-card-badge.badge-construction { background: var(--ml-white); color: var(--ml-navy); box-shadow: 0 4px 12px rgba(31, 63, 92, 0.15); }
.ml-card-badge.badge-construction::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ml-green); }
.ml-card-badge.badge-lot { background: var(--ml-white); color: var(--ml-navy); }
.ml-card-badge.badge-soon { background: #888; color: var(--ml-white); }
.ml-card-badge.badge-sold { background: #c44545; color: var(--ml-white); }

.ml-card-content { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; flex: 1 1 auto; }
.ml-card-location {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--ml-font-body);
	font-size: 13px; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ml-green-deep);
	transition: color 0.4s ease;
}
.ml-card-location::before { content: ''; width: 18px; height: 2px; background: var(--ml-green); border-radius: 1px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.ml-card:hover .ml-card-location::before { width: 32px; }
.ml-card:hover .ml-card-location { color: var(--ml-navy); }

.ml-card-name { font-family: var(--ml-font-display) !important; font-size: 30px !important; font-weight: 700 !important; line-height: 1.1; color: var(--ml-navy); margin: 0; letter-spacing: -0.005em; }
.ml-card-address { font-family: var(--ml-font-body); font-size: 15px; color: var(--ml-muted); margin: 0; font-weight: 500; }

.ml-card-specs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 14px;
	padding: 18px 0;
	border-top: 1px solid var(--ml-line);
	border-bottom: 1px solid var(--ml-line);
}
.ml-card-spec { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.ml-card-spec-label { font-family: var(--ml-font-body) !important; font-size: 11px; font-weight: 500 !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ml-muted); }
.ml-card-spec-value { font-family: var(--ml-font-display) !important; font-size: 22px; font-weight: 700 !important; color: var(--ml-navy); line-height: 1; }
.ml-card-spec-value sup { font-family: var(--ml-font-body) !important; font-size: 10px; font-weight: 500; color: var(--ml-muted); margin-left: 2px; top: -0.7em; }

.ml-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: auto; }
.ml-card-price-wrap { display: flex; flex-direction: column; gap: 2px; }
.ml-card-price-label { font-family: var(--ml-font-body) !important; font-size: 11px; font-weight: 500 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ml-muted); }
.ml-card-price { font-family: var(--ml-font-display) !important; font-size: 28px; font-weight: 700 !important; color: var(--ml-navy); letter-spacing: -0.005em; line-height: 1.1; }

.ml-card-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--ml-font-body);
	font-size: 16px; font-weight: 600;
	color: var(--ml-navy);
	padding: 12px 22px;
	background: var(--ml-green);
	border-radius: 10px;
	transition: background 0.4s ease, gap 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}
.ml-card-link:hover .ml-card-cta {
	background: var(--ml-green-deep);
	gap: 13px;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(164, 206, 78, 0.55);
}
.ml-card-cta-arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px;
	background: var(--ml-navy); color: var(--ml-white);
	border-radius: 50%;
	font-size: 12px; line-height: 1;
	flex-shrink: 0;
	transition: transform 0.4s ease;
}
.ml-card-link:hover .ml-card-cta-arrow { transform: translateX(2px); }

/* Zillow link wrapper - sits inside card with matching padding */
.ml-card-zillow-wrap {
	padding: 0 26px 26px;
	margin-top: -16px;
}

/* Zillow link on cards - subtle text link below the View Home button */
.ml-card-zillow-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 16px;
	background: transparent;
	color: var(--ml-muted);
	text-decoration: none;
	font-family: var(--ml-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1px solid var(--ml-line);
	border-radius: 8px;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	box-sizing: border-box;
}
.ml-card-zillow-link:hover {
	background: var(--ml-soft);
	color: var(--ml-navy);
	border-color: var(--ml-navy);
	transform: translateY(-1px);
}
.ml-card-zillow-link svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.ml-card-zillow-link:hover svg {
	transform: translate(1px, -1px);
}

/* Make sure card has position relative for layout */
.ml-card { position: relative; }

.ml-grid-load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 70px; }
.ml-grid-count-info { font-family: var(--ml-font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ml-muted); }
.ml-grid-count-info strong { color: var(--ml-navy); font-weight: 700; }

.ml-grid-load-more {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--ml-font-body);
	font-size: 18px; font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ml-navy);
	padding: 16px 36px;
	background: transparent;
	border: 2px solid var(--ml-navy);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ml-grid-load-more:hover { background: var(--ml-navy); color: var(--ml-white); gap: 18px; transform: translateY(-2px); }
.ml-grid-load-more .arrow { transition: transform 0.45s ease; }
.ml-grid-load-more:hover .arrow { transform: translateY(3px); }

.ml-grid-empty { text-align: center; padding: 60px 0; color: var(--ml-muted); font-family: var(--ml-font-body); font-size: 16px; }

/* ============================================
   SINGLE LISTING PAGE
   ============================================ */
.ml-lp-wrapper {
	font-family: var(--ml-font-body);
	color: var(--ml-navy);
	background: var(--ml-white);
	font-size: 17px;
	line-height: 1.6;
}
.ml-lp-wrapper *, .ml-lp-wrapper *::before, .ml-lp-wrapper *::after { box-sizing: border-box; }

.ml-lp-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* HERO */
.ml-lp-hero {
	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	left: 50%; right: 50%;
	margin-left: -50vw !important; margin-right: -50vw !important;
	height: 78vh; min-height: 560px; max-height: 820px;
	overflow: hidden;
	background: var(--ml-navy);
}
.ml-lp-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml-lp-hero-image img {
	width: 100% !important; height: 100% !important;
	object-fit: cover !important; object-position: center !important;
	display: block !important; margin: 0 !important; border: none !important;
}
.ml-lp-hero-image::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(31, 63, 92, 0.55) 0%, rgba(31, 63, 92, 0.35) 35%, rgba(31, 63, 92, 0.7) 70%, rgba(21, 41, 61, 0.95) 100%),
		linear-gradient(90deg, rgba(31, 63, 92, 0.65) 0%, rgba(31, 63, 92, 0.4) 40%, rgba(31, 63, 92, 0.25) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Ensure hero content sits above the overlay */
.ml-lp-hero-content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 60px 40px 70px;
	z-index: 3;
}
.ml-lp-hero-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #2a4d6e 0%, #1F3F5C 50%, #15293d 100%); }
.ml-lp-hero-inner { max-width: 1320px; margin: 0 auto; }

.ml-lp-breadcrumb {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--ml-font-body);
	font-size: 12px; font-weight: 500;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 22px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.ml-lp-breadcrumb a { color: rgba(255, 255, 255, 0.92); text-decoration: none; transition: color 0.3s ease; }
.ml-lp-breadcrumb a:hover { color: var(--ml-green); }
.ml-lp-breadcrumb-sep { color: var(--ml-green); }

.ml-lp-hero-status {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 16px;
	background: var(--ml-green); color: var(--ml-navy);
	font-family: var(--ml-font-body); font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
	border-radius: 6px; margin-bottom: 24px;
}
.ml-lp-hero-status.status-under-construction { background: var(--ml-white); }
.ml-lp-hero-status.status-available-lot { background: var(--ml-white); }
.ml-lp-hero-status.status-coming-soon { background: #888; color: var(--ml-white); }
.ml-lp-hero-status.status-sold { background: #c44545; color: var(--ml-white); }

.ml-lp-hero-title {
	font-family: var(--ml-font-display) !important;
	font-weight: 700 !important;
	font-size: clamp(40px, 6vw, 78px);
	line-height: 0.98;
	color: var(--ml-white) !important;
	margin: 0 0 14px !important;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.ml-lp-hero-address {
	font-family: var(--ml-font-body); font-size: 18px; font-weight: 500;
	color: rgba(255, 255, 255, 0.95); margin: 0 0 36px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.ml-lp-hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); }

/* Request Information button in hero */
.ml-lp-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 28px;
	margin: 0 0 36px;
	background: var(--ml-green);
	color: var(--ml-navy) !important;
	font-family: var(--ml-font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	border-radius: 10px;
	transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 12px 32px -10px rgba(164, 206, 78, 0.55);
	border: none;
	align-self: flex-start;
}
.ml-lp-hero-cta:hover {
	background: #ffffff;
	color: var(--ml-navy) !important;
	transform: translateY(-2px);
	gap: 14px;
	box-shadow: 0 16px 40px -10px rgba(255, 255, 255, 0.4);
}
.ml-lp-hero-cta svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.4s ease;
}
.ml-lp-hero-cta:hover svg {
	transform: translateX(2px);
}

/* Enable smooth scroll site-wide for anchor links */
html {
	scroll-behavior: smooth;
}
.ml-lp-hero-stat { display: flex; flex-direction: column; gap: 6px; }
.ml-lp-hero-stat-label { font-family: var(--ml-font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ml-green); }
.ml-lp-hero-stat-value { font-family: var(--ml-font-display) !important; font-size: 32px; font-weight: 700 !important; line-height: 1; color: var(--ml-white); }
.ml-lp-hero-stat-value sup { font-family: var(--ml-font-body); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.65); margin-left: 2px; top: -0.7em; }

/* SECTION */
.ml-lp-section { padding: 100px 0; }
.ml-lp-section.is-soft { background: var(--ml-soft); }
.ml-lp-section.is-cream { background: var(--ml-cream); }
.ml-lp-section.is-navy { background: var(--ml-navy); color: var(--ml-white); }

.ml-lp-eyebrow {
	font-family: var(--ml-font-body) !important;
	font-size: 13px; font-weight: 600 !important;
	letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--ml-green-deep);
	margin-bottom: 14px;
	display: flex; align-items: center; gap: 14px;
}
.ml-lp-eyebrow::before { content: ''; width: 32px; height: 1.5px; background: var(--ml-green); }
.ml-lp-section.is-navy .ml-lp-eyebrow { color: var(--ml-green); }

.ml-lp-section-title {
	font-family: var(--ml-font-display) !important;
	font-weight: 700 !important;
	font-size: clamp(34px, 4.4vw, 54px);
	line-height: 1.08;
	color: var(--ml-navy) !important;
	margin: 0 0 20px;
	letter-spacing: -0.005em;
}
.ml-lp-section.is-navy .ml-lp-section-title { color: var(--ml-white) !important; }

.ml-lp-section-intro { max-width: 680px; font-family: var(--ml-font-body); font-size: 17px; line-height: 1.7; color: var(--ml-muted); margin: 0; }

/* OVERVIEW */
.ml-lp-overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.ml-lp-overview-text p { font-family: var(--ml-font-body); font-size: 17px; line-height: 1.75; color: var(--ml-navy); margin: 0 0 20px; font-weight: 400; }
.ml-lp-overview-text p:last-child { margin-bottom: 0; }
.ml-lp-overview-text .ml-lp-lead { font-family: var(--ml-font-display) !important; font-style: italic; font-size: 24px; line-height: 1.5; color: var(--ml-navy); margin-bottom: 28px; font-weight: 500 !important; }

.ml-lp-overview-highlights { display: flex; flex-direction: column; background: var(--ml-white); border: 1px solid var(--ml-line); border-radius: 14px; overflow: hidden; }
.ml-lp-highlight { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-bottom: 1px solid var(--ml-line-soft); transition: background 0.3s ease; }
.ml-lp-highlight:last-child { border-bottom: none; }
.ml-lp-highlight:hover { background: var(--ml-soft); }
.ml-lp-highlight-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(164, 206, 78, 0.14); color: var(--ml-green-deep); border-radius: 50%; flex-shrink: 0; }
.ml-lp-highlight-icon svg { width: 20px; height: 20px; }
.ml-lp-highlight-text { display: flex; flex-direction: column; gap: 2px; }
.ml-lp-highlight-label { font-family: var(--ml-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-muted); }
.ml-lp-highlight-value { font-family: var(--ml-font-display) !important; font-size: 22px; font-weight: 700 !important; color: var(--ml-navy); line-height: 1.2; }

.ml-lp-specs-row { display: grid; grid-template-columns: repeat(5, 1fr); padding: 56px 0; border-top: 2px solid var(--ml-line); border-bottom: 2px solid var(--ml-line); margin-top: 60px; }
.ml-lp-spec { text-align: center; padding: 0 18px; border-right: 1px solid var(--ml-line); }
.ml-lp-spec:last-child { border-right: none; }
.ml-lp-spec-label { font-family: var(--ml-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ml-muted); margin-bottom: 10px; display: block; }
.ml-lp-spec-value { font-family: var(--ml-font-display) !important; font-size: 38px; font-weight: 700 !important; color: var(--ml-navy); line-height: 1; }
.ml-lp-spec-value sup { font-family: var(--ml-font-body); font-size: 12px; font-weight: 500; color: var(--ml-muted); margin-left: 2px; top: -0.9em; }

/* GALLERY */
.ml-lp-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; margin-top: 50px; }
.ml-lp-gallery-item { position: relative; overflow: hidden; border-radius: 12px; background: var(--ml-soft); cursor: pointer; }
.ml-lp-gallery-item:nth-child(1) { grid-row: 1 / 3; }
.ml-lp-gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.ml-lp-gallery-item:hover img { transform: scale(1.06); }
.ml-lp-gallery-item-overlay { position: absolute; bottom: 14px; right: 14px; padding: 8px 14px; background: rgba(31, 63, 92, 0.85); backdrop-filter: blur(8px); color: var(--ml-white); font-family: var(--ml-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 6px; }

/* FLOOR PLAN */
.ml-lp-floorplan-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; align-items: center; margin-top: 50px; }
.ml-lp-floorplan-image { background: var(--ml-white); border: 1px solid var(--ml-line); border-radius: 14px; padding: 50px 40px; min-height: 480px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; text-align: center; }
.ml-lp-floorplan-image.has-image { padding: 16px; }
.ml-lp-floorplan-image svg { width: 64px; height: 64px; color: var(--ml-green-deep); opacity: 0.8; }
.ml-lp-floorplan-image-text { font-family: var(--ml-font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-muted); }

.ml-lp-floorplan-rooms { display: flex; flex-direction: column; }
.ml-lp-floorplan-room { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--ml-line); gap: 20px; }
.ml-lp-floorplan-room:last-child { border-bottom: none; }
.ml-lp-floorplan-room-name { font-family: var(--ml-font-display) !important; font-size: 22px; font-weight: 600 !important; color: var(--ml-navy); }
.ml-lp-floorplan-room-size { font-family: var(--ml-font-body); font-size: 14px; font-weight: 500; color: var(--ml-muted); letter-spacing: 0.04em; }
.ml-lp-floorplan-total { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 0; margin-top: 14px; border-top: 2px solid var(--ml-navy); gap: 20px; }
.ml-lp-floorplan-total-label { font-family: var(--ml-font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ml-navy); }
.ml-lp-floorplan-total-value { font-family: var(--ml-font-display) !important; font-size: 28px; font-weight: 700 !important; color: var(--ml-navy); }

.ml-lp-download-btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ml-font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--ml-navy); text-decoration: none; padding: 14px 22px; background: transparent; border: 1.5px solid var(--ml-navy); border-radius: 10px; margin-top: 26px; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
.ml-lp-download-btn:hover { background: var(--ml-navy); color: var(--ml-white); gap: 14px; }
.ml-lp-download-btn svg { width: 16px; height: 16px; }

/* TOUR */
.ml-lp-tour-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ml-navy-deep); margin-top: 50px; max-height: 620px; }
.ml-lp-tour-wrap iframe { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border: none !important; display: block !important; }

/* LOCATION */
.ml-lp-location-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; align-items: stretch; margin-top: 50px; }
.ml-lp-location-info { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.ml-lp-location-address { display: flex; gap: 18px; align-items: flex-start; }
.ml-lp-location-icon { width: 44px; height: 44px; background: var(--ml-green); color: var(--ml-navy); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-lp-location-icon svg { width: 20px; height: 20px; }
.ml-lp-location-details h4 { font-family: var(--ml-font-display) !important; font-size: 26px; font-weight: 700 !important; color: var(--ml-navy); margin: 0 0 6px; line-height: 1.2; }
.ml-lp-location-details p { font-family: var(--ml-font-body); font-size: 15px; color: var(--ml-muted); margin: 0; line-height: 1.6; }
.ml-lp-location-features { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ml-lp-location-feature { display: flex; align-items: center; gap: 12px; font-family: var(--ml-font-body); font-size: 14px; color: var(--ml-navy); font-weight: 500; }
.ml-lp-location-feature::before { content: ''; width: 6px; height: 6px; background: var(--ml-green); border-radius: 50%; flex-shrink: 0; }
.ml-lp-map { position: relative; min-height: 420px; border-radius: 14px; overflow: hidden; background: var(--ml-soft); }
.ml-lp-map iframe { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border: none !important; }

/* CONTACT FORM */
.ml-lp-contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 50px; }
.ml-lp-contact-intro { position: sticky; top: 40px; }
.ml-lp-contact-intro p { font-family: var(--ml-font-body); font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, 0.82); margin: 0 0 32px; }
.ml-lp-contact-meta { display: flex; flex-direction: column; gap: 18px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.ml-lp-contact-meta-item { display: flex; align-items: center; gap: 14px; font-family: var(--ml-font-body); font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.ml-lp-contact-meta-item a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.ml-lp-contact-meta-item a:hover { color: var(--ml-green); }
.ml-lp-contact-meta-item svg { width: 18px; height: 18px; color: var(--ml-green); flex-shrink: 0; }

.ml-lp-contact-form { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); border-radius: 16px; padding: 40px; }
.ml-lp-form-title { font-family: var(--ml-font-display) !important; font-size: 26px; font-weight: 700 !important; color: var(--ml-white); margin: 0 0 24px; }
.ml-lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ml-lp-form-field { margin-bottom: 16px; }
.ml-lp-form-field:last-of-type { margin-bottom: 24px; }
.ml-lp-form-label { display: block; font-family: var(--ml-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-green); margin-bottom: 8px; }
.ml-lp-form-input, .ml-lp-form-textarea { width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 8px; color: var(--ml-white); font-family: var(--ml-font-body); font-size: 15px; font-weight: 500; transition: border-color 0.3s ease, background 0.3s ease; outline: none; }
.ml-lp-form-input::placeholder, .ml-lp-form-textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.ml-lp-form-input:focus, .ml-lp-form-textarea:focus { border-color: var(--ml-green); background: rgba(255, 255, 255, 0.1); }
.ml-lp-form-textarea { min-height: 110px; resize: vertical; font-family: var(--ml-font-body); }

.ml-lp-form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 24px; background: var(--ml-green); color: var(--ml-navy); border: none; border-radius: 10px; font-family: var(--ml-font-body); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ml-lp-form-submit:hover { background: var(--ml-white); gap: 14px; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(164, 206, 78, 0.3); }
.ml-lp-form-submit svg { width: 16px; height: 16px; }

/* Zillow button */
.ml-lp-zillow-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px;
	margin-top: 24px;
	background: rgba(164, 206, 78, 0.15);
	border: 1.5px solid rgba(164, 206, 78, 0.5);
	border-radius: 10px;
	color: var(--ml-green);
	text-decoration: none;
	font-family: var(--ml-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ml-lp-zillow-btn:hover {
	background: var(--ml-green);
	color: var(--ml-navy);
	border-color: var(--ml-green);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -10px rgba(164, 206, 78, 0.5);
}
.ml-lp-zillow-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.ml-lp-zillow-btn .ml-lp-zillow-arrow {
	width: 14px;
	height: 14px;
	margin-left: auto;
	transition: transform 0.4s ease;
}
.ml-lp-zillow-btn:hover .ml-lp-zillow-arrow {
	transform: translate(2px, -2px);
}

/* Form alerts */
.ml-lp-form-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-family: var(--ml-font-body);
	font-size: 14px;
	font-weight: 500;
}
.ml-lp-form-alert-success {
	background: rgba(164, 206, 78, 0.18);
	border: 1px solid rgba(164, 206, 78, 0.45);
	color: var(--ml-green);
}
.ml-lp-form-alert-error {
	background: rgba(196, 69, 69, 0.18);
	border: 1px solid rgba(196, 69, 69, 0.45);
	color: #ff9b9b;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
	.ml-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
}
@media (max-width: 1024px) {
	.ml-lp-section { padding: 80px 0; }
	.ml-lp-overview { grid-template-columns: 1fr; gap: 50px; }
	.ml-lp-floorplan-wrap { grid-template-columns: 1fr; gap: 40px; }
	.ml-lp-location-wrap { grid-template-columns: 1fr; gap: 36px; }
	.ml-lp-contact-wrap { grid-template-columns: 1fr; gap: 50px; }
	.ml-lp-contact-intro { position: static; }
	.ml-lp-specs-row { grid-template-columns: repeat(3, 1fr); padding: 40px 0; gap: 32px 0; }
	.ml-lp-spec:nth-child(3) { border-right: none; }
	.ml-lp-hero-stats { gap: 36px; }
	.ml-lp-hero-stat-value { font-size: 28px; }
}
@media (max-width: 720px) {
	.ml-grid-wrapper { padding: 60px 18px 80px; }
	.ml-grid { grid-template-columns: 1fr; gap: 24px; }
	.ml-lp-container { padding: 0 20px; }
	.ml-lp-section { padding: 60px 0; }
	.ml-lp-hero { height: 70vh; min-height: 480px; }
	.ml-lp-hero-content { padding: 40px 20px 50px; }
	.ml-lp-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.ml-lp-hero-cta { padding: 14px 22px; font-size: 14px; margin-bottom: 28px; }
	.ml-lp-hero-stat-value { font-size: 24px; }
	.ml-lp-hero-address { font-size: 16px; margin-bottom: 28px; }
	.ml-lp-overview-text .ml-lp-lead { font-size: 20px; }
	.ml-lp-overview-text p { font-size: 16px; }
	.ml-lp-specs-row { grid-template-columns: repeat(2, 1fr); padding: 30px 0; gap: 28px 0; margin-top: 40px; }
	.ml-lp-spec { border-right: none; padding: 14px 12px; }
	.ml-lp-spec-value { font-size: 30px; }
	.ml-lp-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; gap: 10px; }
	.ml-lp-gallery-item:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
	.ml-lp-floorplan-image { padding: 36px 20px; min-height: 320px; }
	.ml-lp-floorplan-room-name { font-size: 18px; }
	.ml-lp-tour-wrap { aspect-ratio: 16 / 11; }
	.ml-lp-contact-form { padding: 28px 22px; }
	.ml-lp-form-row { grid-template-columns: 1fr; gap: 0; }

	.ml-card-name { font-size: 24px !important; }
	.ml-card-content { padding: 22px 20px; gap: 11px; }
	.ml-card-cta { font-size: 15px; padding: 11px 18px 11px 14px; gap: 8px; }
	.ml-card-badge { top: 14px; left: 14px; font-size: 11px; padding: 7px 12px; }
	.ml-card-zillow-wrap { padding: 0 20px 20px; }
	.ml-card-zillow-link { font-size: 11px; padding: 9px 14px; }
	.ml-grid-load-more { font-size: 16px; padding: 14px 28px; }
}
@media (max-width: 480px) {
	.ml-lp-hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
	.ml-lp-specs-row { grid-template-columns: 1fr 1fr; }
	.ml-lp-spec-value { font-size: 26px; }
	.ml-card-cta { font-size: 15px; padding: 12px 18px 12px 14px; }
	.ml-card-specs { grid-template-columns: repeat(2, 1fr); }
}
