/*
 * MHA Listings — front-end. Uses the mha-modern theme's CSS variables
 * (--navy, --orange, etc.), degrading gracefully if the theme is inactive.
 */

/* Type tag (extend the theme's .ltag) */
.ltag--type, .ltag--mfr { background: var(--navy, #0A1A2E); color: #fff; letter-spacing: .02em; }

/* Card image fills the placeholder box */
.mhal-card__img { padding: 0; overflow: hidden; }
.mhal-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mhal-card__img .ltag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.limg .ltag--mfr { position: absolute; top: 14px; left: 14px; }
.mhal-card__media { display: block; }

/* Model card body */
.lmodel { font-family: var(--font-display, serif); font-size: 20px; font-weight: 700; color: var(--navy, #0A1A2E); line-height: 1.2; margin: 0 0 4px; }
.lmodel a { color: inherit; text-decoration: none; }
.lmodel a:hover { color: var(--orange, #E66830); }
.lmeta { color: var(--muted, #5A6B82); font-size: 14px; margin: 0 0 12px; }
.lcard__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--orange, #E66830); font-weight: 600; font-size: 14px; text-decoration: none; }
.lcard__link:hover { gap: 9px; }

.listings__intro { max-width: 720px; color: var(--muted, #5A6B82); font-size: 16px; margin: -6px 0 26px; }

.mhal-empty, .mhal-grid-front:empty::after { color: var(--muted, #5A6B82); font-style: italic; }

/* "Don't see the right home?" CTA band on the archive */
.models-cta { margin-top: 56px; padding: 40px 32px; border-radius: var(--radius-xl, 18px); background: var(--navy, #0A1A2E); color: #fff; text-align: center; }
.models-cta__title { font-family: var(--font-display, serif); font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.models-cta__text { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 22px; }
.models-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Manufacturer eyebrow on the single model page */
.single-home__mfr { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--orange, #E66830); margin-bottom: 6px; }

/* ---- Single home ---- */
.single-home__back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #5A6B82); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.single-home__back:hover { color: var(--orange, #E66830); }

.single-home__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.single-home__hero { position: relative; border-radius: var(--radius-xl, 18px); overflow: hidden; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #4A6E94, #2A4264); }
.single-home__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-home__hero .ltag { position: absolute; top: 16px; left: 16px; }

.single-home__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.single-home__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md, 10px); display: block; }

.single-home__price { font-family: var(--font-display, serif); color: var(--navy, #0A1A2E); font-size: 34px; font-weight: 700; margin-bottom: 6px; }
.single-home__title { font-family: var(--font-display, serif); font-size: 26px; font-weight: 700; color: var(--navy, #0A1A2E); margin-bottom: 10px; line-height: 1.15; }
.single-home__addr { display: flex; align-items: center; gap: 6px; color: var(--muted, #5A6B82); margin-bottom: 22px; }
.single-home__addr .mha-icon { color: var(--orange, #E66830); }

.single-home__specs { display: flex; flex-wrap: wrap; gap: 22px; padding: 20px 0; margin-bottom: 22px; border-top: 1px solid var(--border, #E3DDD0); border-bottom: 1px solid var(--border, #E3DDD0); list-style: none; }
.single-home__specs li { font-size: 14px; color: var(--muted, #5A6B82); }
.single-home__specs strong { display: block; font-family: var(--font-display, serif); font-size: 24px; color: var(--navy, #0A1A2E); font-weight: 700; }

.single-home__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.single-home__desc { margin-top: 40px; max-width: 760px; }

@media (min-width: 768px) {
	.single-home__grid { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 40px; }
}
