:root {
	--color-bg: #f7f6f2;
	--color-surface: #ffffff;
	--color-ink: #1f2430;
	--color-muted: #5c6375;
	--color-accent: #1f3b5c;
	--color-accent-strong: #14263d;
	--color-highlight: #c9a227;
	--color-border: #e4e3dd;
	--color-footer: #14263d;
	--radius: 10px;
	--shadow-sm: 0 1px 2px rgba(20, 38, 61, .06);
	--shadow-md: 0 10px 30px rgba(20, 38, 61, .12);
	--max: 1200px;
	--font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-ink);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); }
a:hover, a:focus { color: var(--color-accent-strong); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-accent-strong); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; top: -40px; left: 0; background: var(--color-accent);
	color: #fff; padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	position: sticky; top: 0; z-index: 100;
	box-shadow: var(--shadow-sm);
}
.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.brand {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	line-height: 1;
	color: var(--color-accent-strong);
}
.brand__mark { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; }
.brand__sub { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-top: 4px; }

.site-header__phone {
	margin-left: auto;
	text-decoration: none;
	color: var(--color-accent-strong);
	font-weight: 600;
	font-size: .95rem;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	background: none; border: 1px solid var(--color-border);
	border-radius: 8px; padding: 10px; cursor: pointer;
}
.nav-toggle__bar {
	display: block; width: 22px; height: 2px; background: var(--color-ink); margin: 4px 0; transition: transform .2s;
}

.primary-nav { width: 100%; }
.primary-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
	border-top: 1px solid var(--color-border);
}
.primary-nav__list > li { position: relative; }
.primary-nav__list a, .submenu-toggle {
	display: block; padding: 14px 16px;
	text-decoration: none; color: var(--color-ink);
	font-weight: 500; font-size: .95rem;
	background: none; border: 0; cursor: pointer;
	font-family: inherit;
}
.primary-nav__list a:hover, .submenu-toggle:hover,
.primary-nav__list a:focus, .submenu-toggle:focus {
	color: var(--color-accent); background: var(--color-bg);
}
.has-submenu > ul {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	min-width: 240px;
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 10;
}
.has-submenu:hover > ul,
.has-submenu:focus-within > ul,
.has-submenu.is-open > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.has-submenu > ul a { padding: 10px 18px; }
.submenu-toggle::after { content: " \25BE"; font-size: .8em; color: var(--color-muted); }

.nav-cta {
	background: var(--color-accent) !important;
	color: #fff !important;
	border-radius: 999px;
	margin: 8px 0;
	padding: 10px 20px !important;
}
.nav-cta:hover, .nav-cta:focus { background: var(--color-accent-strong) !important; color: #fff !important; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--color-surface);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-md);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; gap: 0; border-top: 0; }
	.primary-nav__list > li { border-bottom: 1px solid var(--color-border); }
	.has-submenu > ul {
		position: static; box-shadow: none; border: 0;
		opacity: 1; visibility: visible; transform: none;
		display: none; padding: 0 0 8px 12px; min-width: 0;
	}
	.has-submenu.is-open > ul { display: block; }
	.nav-cta { margin: 8px 16px; display: inline-block !important; }
}

/* Main */
.site-main {
	max-width: var(--max);
	margin: 0 auto;
	padding: 40px 20px 60px;
}

/* Hero (index) */
.hero {
	background: linear-gradient(135deg, rgba(20,38,61,.85), rgba(31,59,92,.75)), url('images/header_graphic.jpg') center/cover;
	color: #fff;
	border-radius: var(--radius);
	padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
	margin-bottom: 40px;
	text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto 24px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .1s ease, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-highlight); color: var(--color-accent-strong); }
.btn--primary:hover { background: #b48e1e; color: var(--color-accent-strong); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-strong); color: #fff; }

/* Features strip */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 48px;
	list-style: none;
	padding: 0;
}
.features li {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px 20px;
	font-weight: 500;
	box-shadow: var(--shadow-sm);
}
.features li::before { content: "✓"; color: var(--color-highlight); font-weight: 700; margin-right: 8px; }

/* Section headings */
.section-title {
	text-align: center;
	margin: 48px 0 24px;
}
.section-title::after {
	content: ""; display: block; width: 60px; height: 3px;
	background: var(--color-highlight); margin: 12px auto 0;
}

/* Property grid */
.property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.property-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.property-card a { display: block; text-decoration: none; color: inherit; }
.property-card__image { aspect-ratio: 16/10; overflow: hidden; }
.property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-card__image img { transform: scale(1.04); }
.property-card__body { padding: 18px 20px 22px; }
.property-card__title { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 8px; color: var(--color-accent-strong); }
.property-card__features { list-style: none; padding: 0; margin: 0; color: var(--color-muted); font-size: .92rem; }
.property-card__features li { padding: 2px 0; }

/* Property detail */
.property-detail { display: grid; gap: 32px; }
.property-detail__hero {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
}
.property-detail__hero img#mainimage {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	aspect-ratio: 3/2;
}
.property-detail__meta { padding: 24px; }
.property-detail__meta h1 { margin-bottom: 4px; }
.property-detail__address { display: block; color: var(--color-muted); font-style: italic; margin-bottom: 16px; font-size: 1.05rem; }
.property-detail__body { background: var(--color-surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--color-border); }

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.gallery button {
	display: block; width: 100%; padding: 0;
	border: 2px solid transparent; background: none;
	border-radius: 8px; overflow: hidden; cursor: pointer;
	transition: transform .15s, border-color .15s;
}
.gallery button:hover, .gallery button:focus { border-color: var(--color-highlight); transform: translateY(-2px); }
.gallery img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* Contact side card (bsnb/engelke/sherry) */
.contact-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px 22px;
	box-shadow: var(--shadow-sm);
	max-width: 360px;
	margin: 32px 0 0;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card address { font-style: normal; line-height: 1.7; color: var(--color-ink); }
.contact-card a { color: var(--color-accent); }

/* Contact page layout */
.contact-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	align-items: start;
}
.contact-info, .contact-tips {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-sm);
}
.contact-info address { font-style: normal; line-height: 1.9; font-size: 1.05rem; }
.contact-tips ol { padding-left: 1.2em; }
.contact-tips li { margin-bottom: 8px; }

/* Map */
#map_canvas {
	width: 100%; height: 420px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	margin: 32px 0;
}
.infowindow { padding: 8px; max-width: 320px; }
.infowindow img { width: 120px; height: 80px; object-fit: cover; float: left; margin-right: 10px; border-radius: 6px; }
.infowindow h1 { font-size: 1.1rem; margin: 0 0 6px; }
.infowindow ul { margin: 0; padding-left: 18px; font-size: .88rem; }

/* Forms */
.form-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 40px);
	box-shadow: var(--shadow-sm);
	max-width: 820px;
	margin: 0 auto;
}
.form-card h1 { text-align: center; margin-bottom: 8px; }
.form-intro { text-align: center; color: var(--color-muted); margin-bottom: 32px; }
.form-section { margin: 24px 0; }
.form-section h2 { font-size: 1.1rem; border-bottom: 2px solid var(--color-highlight); padding-bottom: 6px; margin-bottom: 16px; }
.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--color-muted); }
.field input, .field textarea, .field select {
	font: inherit;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	color: var(--color-ink);
	width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
	border-color: var(--color-accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	padding: 0; margin: 0; list-style: none;
}
.checkbox-grid label {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	cursor: pointer;
	background: var(--color-bg);
	transition: background .15s, border-color .15s;
	font-weight: 500;
	color: var(--color-ink);
}
.checkbox-grid label:hover { border-color: var(--color-accent); background: #fff; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.form-alert {
	background: #fff4f4; border: 1px solid #e7b6b6; color: #8a1f1f;
	padding: 12px 16px; border-radius: 8px; margin: 16px 0;
	display: none;
}
.form-alert.is-visible { display: block; }
.form-actions { margin-top: 28px; text-align: center; }
.success-card {
	max-width: 620px; margin: 40px auto; padding: 40px;
	background: var(--color-surface); border-radius: var(--radius);
	border: 1px solid var(--color-border); text-align: center; box-shadow: var(--shadow-sm);
}
.success-card h1 { color: var(--color-accent-strong); }

/* Renter's guide */
.guide article h2 { margin-top: 32px; }
.guide ul { padding-left: 20px; }
.guide li { margin-bottom: 8px; }

/* Footer */
.site-footer {
	background: var(--color-footer);
	color: #d5d8de;
	margin-top: 80px;
}
.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 48px 20px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}
.site-footer h3 {
	color: #fff; font-family: var(--font-sans);
	font-size: .9rem; text-transform: uppercase; letter-spacing: .15em;
	margin-bottom: 14px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-highlight); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__copy {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 20px;
	font-size: .85rem;
	color: #aeb5c2;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	max-width: var(--max);
	margin: 0 auto;
}
.site-footer__copy-main { text-align: center; }
.site-footer__credit { text-align: right; }
.site-footer__credit a { color: inherit; text-decoration: none; display: inline-block; }
.site-footer__credit a:hover { opacity: .8; }
.site-footer__credit img { max-height: 48px; width: auto; display: inline-block; vertical-align: middle; }
@media (max-width: 640px) {
	.site-footer__copy {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.site-footer__copy-spacer { display: none; }
	.site-footer__credit { text-align: center; }
}

/* Utility */
.center { text-align: center; }
.muted { color: var(--color-muted); }
.stack > * + * { margin-top: 16px; }
