/*
Theme Name: Marchand
Template: generatepress
Description: Child theme for marchand.llc rental listings.
Version: 0.2.0
*/

:root {
	--m-charcoal: #2c2c2a;
	--m-muted: #5f5e5a;
	--m-line: #e5e4df;
	--m-soft: #f6f6f4;
	--m-accent: #185fa5;
	--m-accent-dark: #0c447c;
}

body {
	color: var(--m-charcoal);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.separate-containers .inside-article,
.separate-containers .site-main > * {
	background: transparent;
}

.site-header {
	border-bottom: 1px solid var(--m-line);
}

.site-logo img,
.custom-logo {
	max-height: 44px;
	width: auto;
}

.main-navigation a {
	color: var(--m-charcoal);
}
@media (min-width: 769px) and (max-width: 1100px) {
	.main-navigation .main-nav ul li a { padding-left: 12px; padding-right: 12px; }
	.site-logo img, .custom-logo { max-width: 260px; height: auto; }
}

h1, h2, h3 {
	color: var(--m-charcoal);
	font-weight: 600;
	letter-spacing: -0.01em;
}

a { color: var(--m-accent); }

/* Buttons and links */
.m-button,
.ff-btn-submit,
.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-block;
	background: var(--m-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	padding: 12px 20px !important;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.m-button:hover,
.ff-btn-submit:hover {
	background: var(--m-accent-dark) !important;
	color: #fff;
}

.m-button.is-secondary {
	background: transparent !important;
	color: var(--m-charcoal) !important;
	border: 1px solid var(--m-charcoal) !important;
}

.m-link {
	display: inline-block;
	margin: 8px 0;
	font-weight: 600;
}

/* Status badge */
.m-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
}

.m-badge.is-available { background: var(--m-accent); color: #fff; }
.m-badge.is-rented { background: var(--m-soft); color: var(--m-muted); border: 1px solid var(--m-line); }

/* Home */
.m-hero {
	padding: 48px 0 32px;
	max-width: 720px;
}

.m-hero h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.m-hero p { font-size: 18px; color: var(--m-muted); }
.m-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.m-section-title { font-size: 22px; margin: 16px 0; }

.m-page-head { padding: 32px 0 16px; max-width: 720px; }
.m-page-head p { color: var(--m-muted); }

/* Card grid */
.m-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.m-card {
	display: block;
	border: 1px solid var(--m-line);
	color: var(--m-charcoal);
	text-decoration: none;
	transition: border-color 0.15s;
}

.m-card:hover { border-color: var(--m-accent); color: var(--m-charcoal); box-shadow: 0 0 0 1px var(--m-accent); }
.m-card:hover .m-card__title { color: var(--m-accent); }

.m-card__photo {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--m-soft);
	overflow: hidden;
}

.m-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-card__photo .m-badge { position: absolute; top: 12px; left: 12px; }
.m-card__body { padding: 14px 16px 16px; }
.m-card__title { font-weight: 600; margin: 0 0 4px; }
.m-card__price { font-size: 20px; font-weight: 700; margin: 0; color: var(--m-accent); }
.m-card__price span, .m-price span { font-size: 14px; font-weight: 400; color: var(--m-muted); }
.m-card__muted { color: var(--m-accent); font-weight: 600; margin: 0; }

/* Unit page */
.m-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 180px;
	gap: 6px;
	margin: 24px 0;
}

.m-gallery__item { display: block; overflow: hidden; background: var(--m-soft); }
.m-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-gallery__item.is-lead { grid-row: span 2; }
.m-gallery__item { position: relative; }
.m-gallery__item { cursor: zoom-in; }
.m-gallery { position: relative; }
.m-gallery__all {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	padding: 8px 14px;
	background: #fff !important;
	color: var(--m-charcoal) !important;
	border: 1px solid var(--m-charcoal) !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.m-gallery__all:hover { background: var(--m-soft) !important; }

/* Share buttons */
.m-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.m-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff !important;
	color: var(--m-charcoal) !important;
	border: 1px solid var(--m-line) !important;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}
.m-share__btn:hover { border-color: var(--m-charcoal) !important; background: var(--m-soft) !important; }
.m-share__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-share.has-native .m-share__btn:not(.m-share__native) { display: none; }
.m-share__native[hidden] { display: none; }

/* Photo viewer caption */
.pswp__caption {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	max-width: min(720px, calc(100% - 32px));
	padding: 8px 14px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	border-radius: 6px;
}
.pswp__caption[hidden] { display: none; }

.m-unit__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	margin-bottom: 48px;
}

.m-unit__title { font-size: clamp(26px, 4vw, 34px); margin: 12px 0 4px; }
.m-unit__location { color: var(--m-muted); margin-bottom: 16px; }

.m-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0 0 24px;
	padding: 16px 0;
	border-top: 1px solid var(--m-line);
	border-bottom: 1px solid var(--m-line);
}

.m-section { margin-bottom: 28px; }
.m-section h2 { font-size: 20px; margin-bottom: 10px; }
.m-list { columns: 2; margin-left: 1.2em; }

.m-details dl, .m-terms {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 8px 16px;
	margin: 0;
}

.m-details dt, .m-terms dt { color: var(--m-muted); }
.m-details dd, .m-terms dd { margin: 0; }

.m-map { width: 100%; height: 320px; border: 0; }

.m-panel {
	position: sticky;
	top: 24px;
	border: 1px solid var(--m-line);
	padding: 24px;
}

.m-price { font-size: 32px; font-weight: 700; margin: 0 0 12px; }
.m-terms { margin-bottom: 16px; }
.m-panel .m-button { width: 100%; margin-bottom: 8px; }
.m-panel__heading { font-size: 18px; margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--m-line); }
.m-panel__lead { font-weight: 600; margin-bottom: 4px; }
.m-panel__contact { font-size: 14px; color: var(--m-muted); margin: 12px 0 0; }

/* Forms */
.fluentform .ff-el-form-control {
	border-radius: 2px;
	border-color: #ccc;
}

/* Footer */
.site-info { background: var(--m-accent-dark); color: rgba(255, 255, 255, 0.85); border-top: 0; }
.m-footer { max-width: 860px; margin: 0 auto; text-align: left; font-size: 13px; }
.m-footer p { margin-bottom: 8px; }
.m-eho { font-size: 16px; }
.m-footer a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.m-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

/* How to apply */
.m-lead { font-size: 18px; color: var(--m-muted); max-width: 720px; }
.m-glance {
	list-style: none;
	margin: 24px 0 40px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.m-glance li { margin: 0; padding: 16px; background: var(--m-soft); border: 1px solid var(--m-line); border-radius: 8px; }
.m-glance strong { display: block; font-size: 20px; line-height: 1.3; color: var(--m-charcoal); }
.m-glance span { font-size: 14px; color: var(--m-muted); }
.m-steps {
	list-style: none;
	margin: 0 0 48px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	counter-reset: step;
}
.m-steps li { margin: 0; position: relative; counter-increment: step; }
.m-steps__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--m-accent);
	color: #fff;
	position: relative;
}
.m-steps .m-steps__icon::after {
	content: counter(step);
	position: absolute;
	top: -4px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--m-charcoal);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.m-steps svg, .m-glance svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-steps h2 { font-size: 18px; margin: 14px 0 6px; }
.m-steps p { font-size: 15px; color: var(--m-muted); margin: 0; }
.m-checklist {
	margin: 0 0 48px;
	padding: 24px 28px;
	border: 1px solid var(--m-line);
	border-left: 4px solid var(--m-accent);
	border-radius: 8px;
}
.m-checklist h2, .m-faq h2 { font-size: 22px; margin: 0 0 14px; }
.m-checklist ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.m-checklist li { break-inside: avoid; padding: 0 0 10px 28px; position: relative; margin: 0; }
.m-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--m-accent);
	border-bottom: 2px solid var(--m-accent);
	transform: rotate(-45deg);
}
.m-faq { margin: 0 0 48px; max-width: 820px; }
.m-faq details { border-bottom: 1px solid var(--m-line); }
.m-faq details:first-of-type { border-top: 1px solid var(--m-line); }
.m-faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 600; list-style: none; position: relative; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--m-muted); }
.m-faq details[open] summary::after { content: "\2212"; }
.m-faq details p { margin: 0 0 16px; color: var(--m-muted); }
.m-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 48px; }
.m-note { padding: 20px 24px; background: var(--m-soft); border-radius: 8px; }
.m-note h2 { font-size: 17px; margin: 0 0 8px; }
.m-note p { font-size: 15px; color: var(--m-muted); margin: 0; }
.m-cta { padding: 32px; text-align: center; border: 1px solid var(--m-line); border-radius: 8px; margin: 0 0 24px; }
.m-cta__title { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.m-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.m-cta__contact { margin: 16px 0 0; color: var(--m-muted); }

@media (max-width: 900px) {
	.m-steps { grid-template-columns: 1fr; gap: 20px; }
	.m-steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
	.m-steps h2 { margin: 2px 0 4px; grid-column: 2; }
	.m-steps p { grid-column: 2; }
	.m-steps__icon { grid-row: span 2; }
	.m-glance { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.m-checklist ul { columns: 1; }
	.m-notes { grid-template-columns: 1fr; }
	.m-checklist { padding: 20px; }
	.m-cta { padding: 24px 16px; }
}

/* Residents */
.m-alert {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 24px 0 32px;
	padding: 24px 28px;
	background: #fcebeb;
	border: 1px solid #f0c4c4;
	border-left: 4px solid #a32d2d;
	border-radius: 8px;
}
.m-alert h2 { font-size: 22px; margin: 0 0 6px; color: #791f1f; }
.m-alert p { margin: 0 0 6px; }
.m-alert__911 { font-size: 15px; }
.m-alert__text { flex: 1; }
.m-button.m-button--call { background: #a32d2d !important; border-color: #a32d2d !important; white-space: nowrap; font-size: 18px; }
.m-button.m-button--call:hover { background: #791f1f !important; }
.m-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
.m-action { padding: 24px; border: 1px solid var(--m-line); border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.m-action h2 { font-size: 19px; margin: 14px 0 6px; }
.m-action p { color: var(--m-muted); font-size: 15px; flex: 1; }
.m-action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-invite p { margin: 0; }
.m-triage { margin: 0 0 48px; }
.m-triage h2 { font-size: 22px; margin: 0 0 14px; }
.m-triage__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m-triage__col { padding: 20px 24px; background: var(--m-soft); border-radius: 8px; }
.m-triage__col.is-urgent { background: #fcebeb; }
.m-triage__col h3 { font-size: 17px; margin: 0 0 10px; }
.m-triage__col.is-urgent h3 { color: #791f1f; }
.m-triage__col ul { margin: 0 0 0 20px; }
.m-triage__col li { margin: 0 0 6px; font-size: 15px; }
.m-triage__note { margin: 14px 0 0; color: var(--m-muted); }

@media (max-width: 900px) {
	.m-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.m-alert { flex-direction: column; align-items: stretch; padding: 20px; }
	.m-alert .m-button--call { display: block; text-align: center; }
	.m-triage__cols { grid-template-columns: 1fr; }
}

/* Home intro + About */
.m-hero.has-photo {
	max-width: none;
	position: relative;
	margin: 24px 0 0;
	padding: 72px 40px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(90deg, rgba(20, 20, 18, 0.78) 0%, rgba(20, 20, 18, 0.45) 60%, rgba(20, 20, 18, 0.15) 100%), var(--m-hero-img) center / cover no-repeat;
	color: #fff;
}
.m-hero.has-photo h1 { color: #fff; }
.m-hero.has-photo p { color: rgba(255, 255, 255, 0.92); }
.m-hero__inner { max-width: 620px; }
.m-hero.has-photo .m-button.is-secondary { background: rgba(255, 255, 255, 0.95) !important; border-color: #fff !important; }
.m-points { list-style: none; margin: 16px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-points li { margin: 0; padding: 16px; background: var(--m-soft); border: 1px solid var(--m-line); border-top: 4px solid var(--m-accent); border-radius: 8px; }
.m-points strong { display: block; font-size: 17px; margin-bottom: 4px; color: var(--m-accent-dark); }
.m-points span { font-size: 14px; color: var(--m-muted); }
.m-about-teaser { display: flex; align-items: center; gap: 24px; margin: 48px 0 24px; padding: 24px; border: 1px solid var(--m-line); border-radius: 8px; }
.m-about-teaser__photo { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex: none; }
.m-about-teaser h2 { font-size: 22px; margin: 0 0 6px; }
.m-about-teaser p { color: var(--m-muted); margin: 0 0 8px; }
.m-about { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: center; margin: 8px 0 40px; }
.m-about__photo { width: 100%; height: auto; border-radius: 10px; display: block; }
.m-about__text p { margin: 0 0 14px; }

@media (max-width: 900px) {
	.m-points { grid-template-columns: 1fr 1fr; }
	.m-about { grid-template-columns: 1fr; gap: 24px; }
	.m-about__media { max-width: 420px; }
}
@media (max-width: 600px) {
	/* Home: listings first on phones, compact points chips below */
	.m-home-body { display: flex; flex-direction: column; }
	.m-home-units { order: 1; }
	.m-points { order: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
	.m-points li { padding: 8px 12px; border-top-width: 1px; border-left: 3px solid var(--m-accent); border-radius: 6px; }
	.m-points strong { font-size: 14px; margin: 0; }
	.m-points span { display: none; }
	.m-hero.has-photo { padding: 40px 20px; background: linear-gradient(rgba(20, 20, 18, 0.62), rgba(20, 20, 18, 0.62)), var(--m-hero-img) center / cover no-repeat; }
	.m-points { grid-template-columns: 1fr; }
	.m-about-teaser { flex-direction: column; align-items: flex-start; }
	.m-about-teaser__photo { width: 96px; height: 96px; }
}

.m-button.m-apply { display: block; width: 100%; margin: 10px 0 0; text-align: center; }
.m-button.m-criteria { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 0; }
.m-criteria svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.m-mobile-cta { display: none; }

/* Mobile */
@media (max-width: 860px) {
	.m-mobile-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
	.m-mobile-cta .m-price { margin: 0; font-size: 26px; }
	.site-logo img, .custom-logo { max-width: 210px; height: auto; }
	.inside-header { flex-wrap: nowrap; }
	.m-unit__layout { grid-template-columns: 1fr; gap: 24px; }
	.m-panel { position: static; }
	.m-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
	.m-gallery__item.is-lead { grid-column: span 2; grid-row: span 2; }
	.m-list { columns: 1; }
}
