/*
 * Vita Properties - 2026 homepage redesign (handoff "design_handoff_vita_homepage", 23 Oct 2026).
 *
 * Loaded after style.css. Everything new uses "v2-" classes so the old rules cannot leak in,
 * plus a few overrides at the end that swap the old black (#1f2024) UI colour for the logo olive
 * site-wide.
 *
 * Fonts: the prototypes used Playfair Display / Work Sans as stand-ins. The handoff says to keep
 * the live theme's fonts, so the serif is Prata (already loaded) and the UI text uses the body
 * font stack the live header and search already use (Bootstrap's system-ui stack).
 *
 * One breakpoint, 992px (Bootstrap "lg"): the handoff suggests ~900px; 992 leaves the desktop
 * header (5 menu items + 2 buttons) enough room.
 */

:root {
	--v2-olive: #5F5D4E;
	--v2-olive-hover: #4A4940;
	--v2-olive-deep: #3F3E34;
	--v2-ink: #17171A;
	--v2-body: #5F5C54;
	--v2-muted: #8D8878;
	--v2-faint: #A29D8E;
	--v2-border: #DDD8CF;
	--v2-border-soft: #E6E2D9;
	--v2-border-card: #EBE7DE;
	--v2-divider: #ECE9E3;
	--v2-surface: #F6F5F1;
	--v2-track: #F3F1EC;
	--v2-online: #7FA36B;
	--v2-serif: "Prata", Georgia, serif;
	--v2-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.v2-icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Buttons ---------- */
.v2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border-radius: 2px;
	border: 1px solid transparent;
	font-family: var(--v2-sans);
	font-weight: 500;
	letter-spacing: .03em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s, border-color .18s, color .18s;
}
.v2-btn-olive { background: var(--v2-olive); border-color: var(--v2-olive); color: #fff; }
.v2-btn-olive:hover, .v2-btn-olive:focus-visible { background: var(--v2-olive-hover); border-color: var(--v2-olive-hover); color: #fff; }
.v2-btn-outline { background: #fff; border-color: var(--v2-olive); color: var(--v2-olive); }
.v2-btn-outline:hover, .v2-btn-outline:focus-visible { background: var(--v2-track); color: var(--v2-olive); }
.v2-btn-outline-soft { background: #fff; border-color: #D8D3C8; color: var(--v2-olive-deep); letter-spacing: .04em; }
.v2-btn-outline-soft:hover, .v2-btn-outline-soft:focus-visible { border-color: var(--v2-olive); color: var(--v2-olive-deep); }
.v2-btn-white { background: #fff; border-color: #fff; color: var(--v2-olive-deep); letter-spacing: .04em; }
.v2-btn-white:hover, .v2-btn-white:focus-visible { background: var(--v2-track); border-color: var(--v2-track); color: var(--v2-olive-deep); }
.v2-btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.v2-btn-ghost:hover, .v2-btn-ghost:focus-visible { border-color: rgba(255,255,255,.7); color: #fff; }

/* ---------- 1. Header ---------- */
.v2-header {
	position: relative;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--v2-divider);
	font-family: var(--v2-sans);
}
.v2-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
}
.v2-logo { display: block; line-height: 0; }
.v2-logo img { display: block; height: 38px; width: auto; }
.v2-header-actions-mobile { display: flex; align-items: center; gap: 8px; }
.v2-btn-phone { height: 40px; padding: 0 13px; gap: 7px; font-size: 13.5px; }
.v2-menu-btn {
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	background: none;
	border: 1px solid var(--v2-border);
	border-radius: 2px;
	cursor: pointer;
}
.v2-menu-btn span { display: block; width: 17px; height: 1.5px; background: var(--v2-olive); transition: transform .18s; }
.v2-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.v2-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu (the existing Bootstrap collapse, restyled) */
.v2-collapse { flex-basis: 100%; }
.v2-nav { list-style: none; margin: 0; padding: 10px 0 4px; }
.v2-nav > li { display: block; border-bottom: 1px solid var(--v2-divider); position: relative; }
.v2-nav a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--v2-olive-deep); }
.v2-nav > li > a { padding: 13px 2px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.v2-nav .icon-menu { font-size: .8rem; color: var(--v2-muted); transition: transform .18s; }
.v2-nav > li:hover > a .icon-menu, .v2-nav > li:focus-within > a .icon-menu { transform: rotate(90deg); }
.v2-nav .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 10px 14px; }
.v2-nav > li:hover > .sub-menu, .v2-nav > li:focus-within > .sub-menu { display: block; }
.v2-nav .sub-menu a { padding: 8px 2px; font-size: 15px; color: var(--v2-body); }
.v2-nav .sub-menu a:hover { color: var(--v2-olive-deep); }
.v2-header-buttons { display: flex; gap: 10px; padding: 14px 0 6px; }
.v2-header-buttons .v2-btn { flex: 1; height: 44px; padding: 0 16px; font-size: 14px; }
.v2-btn-phone-desktop { display: none !important; }

@media (min-width: 992px) {
	.v2-header-inner { flex-wrap: nowrap; height: 88px; padding: 0 32px; }
	.v2-logo img { height: 56px; }
	.v2-header-actions-mobile { display: none; }
	.v2-collapse, .v2-collapse.collapse:not(.show) { display: flex !important; flex-basis: auto; align-items: center; gap: 28px; height: auto !important; }
	.v2-nav { display: flex; gap: 22px; padding: 0; }
	.v2-nav > li { border: 0; }
	.v2-nav > li > a { padding: 8px 0; font-size: 13px; color: var(--v2-olive-deep); }
	.v2-nav > li > a:hover { color: var(--v2-olive); }
	.v2-nav .icon-menu { display: none; }
	.v2-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -18px;
		min-width: 15rem;
		padding: 12px 18px;
		background: #fff;
		border: 1px solid var(--v2-border-card);
		box-shadow: 0 18px 50px rgba(30,28,20,.16);
		z-index: 10;
	}
	.v2-nav .sub-menu li { white-space: nowrap; }
	.v2-nav .sub-menu a { font-size: 14.5px; padding: 7px 0; }
	.v2-header-buttons { padding: 0; }
	.v2-header-buttons .v2-btn { flex: none; padding: 0 20px; }
	.v2-btn-phone-desktop { display: inline-flex !important; }
}
@media (min-width: 1200px) {
	.v2-header-inner { padding: 0 64px; }
	.v2-collapse, .v2-collapse.collapse:not(.show) { gap: 40px; }
	.v2-nav { gap: 30px; }
}

/* ---------- 2. Hero ---------- */
.v2-hero {
	position: relative;
	height: 296px;
	overflow: hidden;
	background: #2c2f2a;
	font-family: var(--v2-sans);
}
.v2-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-hero-shape {
	position: absolute;
	inset: 0;
	background: rgba(22,22,18,.62);
	clip-path: polygon(0 0, 54% 0, 74% 100%, 0 100%);
	pointer-events: none;
}
.v2-hero-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.04) 30%, rgba(28,27,22,.72) 100%);
	pointer-events: none;
}
.v2-hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px 18px; color: #fff; }
.v2-hero-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.v2-hero-title { margin: 0; font-family: var(--v2-serif); font-weight: 400; font-size: 26px; line-height: 1.16; color: #fff; text-wrap: pretty; }
.v2-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 11px; font-size: 14.5px; color: rgba(255,255,255,.92); }
.v2-hero-sep { width: 1px; height: 13px; background: rgba(255,255,255,.35); }
.v2-hero-beds { display: inline-flex; align-items: center; gap: 6px; }
.v2-hero-cta { margin-top: 14px; height: 42px; padding: 0 18px; font-size: 13.5px; }

@media (min-width: 992px) {
	.v2-hero { height: 560px; }
	.v2-hero-shape { background: rgba(22,22,18,.64); clip-path: polygon(0 0, 53% 0, 66% 100%, 0 100%); }
	.v2-hero-fade { display: none; }
	.v2-hero-content {
		top: 0;
		right: auto;
		width: 760px;
		max-width: 66%;
		padding: 0 0 110px clamp(40px, 8.4vw, 120px);
		display: flex;
		flex-direction: column;
		justify-content: center;
		box-sizing: border-box;
	}
	.v2-hero-eyebrow { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.75); margin-bottom: 0; }
	.v2-hero-title { margin-top: 16px; font-size: 54px; line-height: 1.1; max-width: 600px; }
	.v2-hero-meta { gap: 18px; margin-top: 22px; font-size: 18px; }
	.v2-hero-sep { height: 16px; }
	.v2-hero-beds { gap: 8px; }
	.v2-hero-cta { align-self: flex-start; margin-top: 28px; height: 50px; padding: 0 24px; font-size: 14.5px; gap: 10px; }
}

/* ---------- 3. Search ---------- */
.v2-search-wrap { padding: 14px 14px 16px; background: #fff; font-family: var(--v2-sans); }
.v2-search {
	display: grid;
	gap: 10px;
	padding: 13px;
	border: 1px solid var(--v2-border-soft);
	background: #fff;
	margin: 0;
}
.v2-field { display: block; margin: 0; min-width: 0; }
.v2-label {
	display: block;
	margin-bottom: 5px;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--v2-muted);
}
.v2-label-type { display: none; }
.v2-field-type { margin-bottom: 2px; }

.v2-toggle { display: flex; padding: 3px; background: var(--v2-track); border-radius: 2px; }
.v2-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.v2-toggle label {
	flex: 1;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border-radius: 2px;
	font-size: 14px;
	letter-spacing: .05em;
	color: var(--v2-muted);
	background: transparent;
	cursor: pointer;
	transition: background .18s, color .18s, box-shadow .18s;
}
.v2-toggle input:checked + label { background: #fff; color: var(--v2-olive-deep); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.v2-toggle input:focus-visible + label { outline: 2px solid var(--v2-olive); outline-offset: 1px; }

.v2-select { position: relative; display: block; flex: 1; min-width: 0; }
.v2-select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 32px 0 12px;
	border: 1px solid var(--v2-border);
	border-radius: 2px;
	background: #fff;
	font-family: inherit;
	font-size: 15px; /* 15px+ keeps iOS from zooming on focus */
	color: var(--v2-ink);
	cursor: pointer;
}
.v2-select select:focus-visible { outline: 2px solid var(--v2-olive); outline-offset: -1px; }
.v2-select .v2-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--v2-muted); pointer-events: none; }

.v2-price { display: flex; align-items: center; border: 1px solid var(--v2-border); border-radius: 2px; background: #fff; overflow: hidden; }
.v2-price .v2-select select { border: 0; padding-right: 26px; }
.v2-price .v2-select .v2-icon { right: 8px; }
.v2-price-divider { flex: none; width: 1px; height: 24px; background: var(--v2-border-soft); }

.v2-search-btn { width: 100%; height: 46px; margin-top: 2px; gap: 10px; font-size: 15px; letter-spacing: .04em; }

@media (min-width: 992px) {
	.v2-search-wrap { position: relative; z-index: 2; max-width: 1200px; margin: -72px auto 0; padding: 0 40px; background: transparent; }
	.v2-search {
		grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr);
		gap: 16px;
		align-items: end;
		padding: 20px 24px;
		border: 0;
		box-shadow: 0 18px 50px rgba(30,28,20,.16);
	}
	.v2-label { font-size: 10.5px; margin-bottom: 6px; }
	.v2-label-type { display: block; }
	.v2-field-type { margin-bottom: 0; }
	.v2-toggle label { height: 42px; }
	.v2-select select { height: 48px; }
	.v2-price-divider { height: 26px; }
	.v2-field-price { grid-column: 1 / span 2; }
	.v2-search-btn { height: 48px; margin-top: 0; }
}
@media (min-width: 1200px) {
	/* one row: Looking to | Area | Bedrooms | Price | Search */
	.v2-search { grid-template-columns: 190px minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.6fr) 170px; }
	.v2-field-price { grid-column: auto; }
}

/* ---------- 4. Featured properties ---------- */
.v2-featured { background: var(--v2-surface); border-top: 1px solid var(--v2-divider); font-family: var(--v2-sans); }
.v2-featured-inner { padding: 32px 18px 30px; }
.v2-featured-head { text-align: center; }
.v2-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--v2-muted); }
.v2-section-title { margin: 11px 0 0; font-family: var(--v2-serif); font-weight: 400; font-size: 26px; line-height: 1.22; color: var(--v2-ink); text-wrap: pretty; }
.v2-featured-intro { margin: 12px auto 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: var(--v2-body); text-wrap: pretty; }
.v2-viewall { height: 46px; padding: 0 22px; gap: 10px; font-size: 14px; }
.v2-viewall-desktop { display: none; }
.v2-viewall-mobile { display: flex; width: 100%; margin-top: 16px; }

.v2-card-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.v2-card-grid + .v2-card-grid { margin-top: 16px; }
.v2-card { display: block; background: #fff; border: 1px solid var(--v2-border-card); color: inherit; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.v2-card:hover { border-color: #D8D3C8; box-shadow: 0 10px 30px rgba(30,28,20,.08); color: inherit; }
.v2-card-media { position: relative; display: block; height: 206px; background: #e9e6df; overflow: hidden; }
.v2-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-card-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 10px;
	background: rgba(255,255,255,.94);
	font-size: 10px;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--v2-olive);
}
.v2-card-body { display: block; padding: 15px; }
.v2-card-area { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-muted); }
.v2-card-title { display: block; margin-top: 8px; font-family: var(--v2-serif); font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--v2-ink); }
.v2-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #F0EDE6; }
.v2-card-price { font-size: 16px; font-weight: 500; color: var(--v2-ink); }
.v2-card-price small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 400; letter-spacing: .02em; color: var(--v2-muted); }
.v2-card-beds { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--v2-body); white-space: nowrap; }

@media (min-width: 992px) {
	.v2-featured { background: #fff; border-top: 0; }
	.v2-featured-inner { max-width: 1200px; margin: 0 auto; padding: 72px 40px 88px; }
	.v2-featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; text-align: left; }
	.v2-eyebrow { font-size: 12px; }
	.v2-section-title { margin-top: 12px; font-size: 40px; line-height: 1.15; }
	.v2-featured-intro { margin: 14px 0 0; max-width: 560px; font-size: 16px; }
	.v2-viewall { height: 48px; flex: none; }
	.v2-viewall-desktop { display: inline-flex; }
	.v2-viewall-mobile { display: none; }
	.v2-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
	.v2-card-grid + .v2-card-grid { margin-top: 28px; }
	.v2-card-media { height: 250px; }
	.v2-card-tag { top: 14px; left: 14px; padding: 6px 11px; font-size: 10.5px; }
	.v2-card-body { padding: 20px; }
	.v2-card-area { font-size: 11px; }
	.v2-card-title { margin-top: 9px; font-size: 21px; }
	.v2-card-foot { margin-top: 16px; padding-top: 16px; }
	.v2-card-price { font-size: 17px; }
}

/* ---------- 5. Footer ---------- */
.v2-footer { background: var(--v2-olive-deep); color: #fff; font-family: var(--v2-sans); }
.v2-footer a { text-decoration: none; }
.v2-footer-main {
	display: grid;
	grid-template-areas: "logo" "talk" "explore" "address";
	gap: 22px;
	padding: 28px 18px 0;
}
.v2-footer-brand { display: contents; }
.v2-footer-logo {
	grid-area: logo;
	display: block;
	height: 44px; /* 44px = native height of logo.png; not scaled up */
	width: auto;
	max-width: none;
	/* logo.png is a mid-grey/olive logo, not white, so on #3F3E34 it almost vanishes. Render it white
	   until Vita supply a white (ideally SVG or 2x) logo file. */
	filter: brightness(0) invert(1);
}
.v2-footer-talk { grid-area: talk; }
.v2-footer-explore { grid-area: explore; }
.v2-footer-address { grid-area: address; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.7); }
.v2-footer-heading { display: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.v2-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 13.5px; }
.v2-footer-links a { color: rgba(255,255,255,.86); }
.v2-footer-links a:hover { color: #fff; }
.v2-footer-contact { display: flex; flex-direction: column; gap: 10px; }
.v2-footer-contact .v2-btn { height: 42px; font-size: 14px; letter-spacing: .04em; }
/* the old style.css sizes a#footerEmail at 1.25rem; the id is kept for any tracking that uses it */
.v2-footer a#footerEmail, .v2-footer a#footerEmail:visited { font-size: 14px; color: #fff; }
.v2-email-long { display: none; }
.v2-footer-legal { padding: 10px 18px 96px; font-size: 12px; color: rgba(255,255,255,.5); } /* bottom room for the chat launcher */
.v2-footer-small { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 11.5px; }
.v2-footer-small a { color: rgba(255,255,255,.5); }
.v2-footer-small a:hover { color: rgba(255,255,255,.85); }

@media (min-width: 992px) {
	.v2-footer-main {
		max-width: 1200px;
		margin: 0 auto;
		padding: 64px 40px 40px;
		grid-template-areas: none;
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 48px;
	}
	.v2-footer-brand { display: block; }
	.v2-footer-logo { height: 44px; }
	.v2-footer-talk, .v2-footer-explore, .v2-footer-address { grid-area: auto; }
	.v2-footer-address { margin-top: 22px; padding-top: 0; border-top: 0; font-size: 14px; }
	.v2-footer-heading { display: block; }
	.v2-footer-links { margin-top: 18px; font-size: 14.5px; }
	.v2-footer-contact { margin-top: 18px; }
	.v2-footer-contact .v2-btn, .v2-footer a#footerEmail { height: 46px; font-size: 14.5px; }
	.v2-email-long { display: inline; }
	.v2-email-short { display: none; }
	.v2-footer-legal { max-width: 1200px; margin: 0 auto; padding: 20px 40px 32px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; }
}

/* ---------- Olive instead of black, site-wide ---------- */
.vtn-main-dark { background-color: var(--v2-olive); border-color: var(--v2-olive); color: #fff; border-radius: 2px; }
.vtn-main-dark:hover, .vtn-main-dark:focus, .vtn-main-dark :active { background-color: var(--v2-olive-hover); border-color: var(--v2-olive-hover); color: #fff; box-shadow: none; }
.vtn-main-wh:hover, .vtn-main-wh:focus, .vtn-main-wh :active { background-color: var(--v2-olive); border-color: var(--v2-olive); }
.item .priorityLabel, .item .soldLabel { background-color: var(--v2-olive); }
.section.signup .testbtn { background-color: var(--v2-olive); border-radius: 2px; font-weight: 500; letter-spacing: .04em; }
.section.signup .testbtn:hover { background-color: var(--v2-olive-hover); }
