/**
 * MY/SOLIA homepage — Bayut-inspired layout on the MY/SOLIA palette.
 *
 * Everything is scoped under .mysolia-home so the parent Houzez/Bootstrap
 * styles on the rest of the site are left alone.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

.mysolia-home {
	--ms-primary: #57a0d3;
	--ms-primary-600: #4189bd;
	--ms-primary-700: #2f74a7;
	--ms-primary-050: #eef5fb;
	--ms-primary-100: #d8e8f5;

	--ms-accent: #ffcb3d;
	--ms-accent-600: #f0bc28;
	--ms-green: #34c37a;
	--ms-green-050: #eafaf2;

	--ms-ink: #1c2d41;
	--ms-ink-2: #40556d;
	--ms-muted: #6b7c8f;
	--ms-faint: #93a2b1;

	--ms-surface: #ffffff;
	--ms-bg: #f7f8f9;
	--ms-bg-2: #eef1f4;
	--ms-border: #e2e7ec;
	--ms-border-strong: #cfd7df;

	--ms-r-sm: 8px;
	--ms-r: 12px;
	--ms-r-lg: 16px;
	--ms-r-pill: 999px;

	--ms-sh-sm: 0 1px 2px rgba(28, 45, 65, .06), 0 1px 3px rgba(28, 45, 65, .05);
	--ms-sh: 0 2px 6px rgba(28, 45, 65, .06), 0 8px 20px rgba(28, 45, 65, .07);
	--ms-sh-lg: 0 10px 24px rgba(28, 45, 65, .10), 0 24px 60px rgba(28, 45, 65, .12);

	--ms-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--ms-max: 1200px;
	--ms-gutter: 1.25rem;

	font-family: var(--ms-font);
	color: var(--ms-ink);
	background: var(--ms-surface);
}

body.mysolia-bayut-home {
	background: var(--ms-surface);
}

/* ==========================================================================
   Primitives
   ========================================================================== */

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

.ms-container {
	width: min(100% - (var(--ms-gutter) * 2), var(--ms-max));
	margin-inline: auto;
}

.ms-section {
	padding: 3.25rem 0;
}

.ms-section--tight {
	padding: 2.25rem 0;
}

.ms-section--alt {
	background: var(--ms-bg);
}

.ms-icon {
	width: 1em;
	height: 1em;
	flex: none;
	display: inline-block;
	vertical-align: -0.125em;
}

/* Section headings ------------------------------------------------------- */

.ms-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.ms-head__title {
	font-size: clamp(1.45rem, 1.05rem + 1.35vw, 1.95rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.022em;
	color: var(--ms-ink);
	margin: 0;
}

.ms-head__sub {
	margin: 0.4rem 0 0;
	color: var(--ms-muted);
	font-size: 0.975rem;
	line-height: 1.55;
	max-width: 46ch;
}

.ms-head__aside {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

.ms-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--ms-primary-700);
	font-weight: 600;
	font-size: 0.94rem;
	text-decoration: none;
	white-space: nowrap;
}

.mysolia-home .ms-link:hover {
	color: var(--ms-primary-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ms-link .ms-icon {
	font-size: 1.05em;
	transition: transform .16s ease;
}

.ms-link:hover .ms-icon {
	transform: translateX(2px);
}

/* Buttons ---------------------------------------------------------------- */

.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--ms-r-sm);
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.ms-btn:focus-visible {
	outline: 3px solid rgba(87, 160, 211, .45);
	outline-offset: 2px;
}

.mysolia-home .ms-btn--primary {
	background: var(--ms-primary);
	color: #fff;
}

.mysolia-home .ms-btn--primary:hover {
	background: var(--ms-primary-600);
	color: #fff;
}

.mysolia-home .ms-btn--ghost {
	background: transparent;
	border-color: var(--ms-border-strong);
	color: var(--ms-ink);
}

.mysolia-home .ms-btn--ghost:hover {
	border-color: var(--ms-primary);
	color: var(--ms-primary-700);
	background: var(--ms-primary-050);
}

.mysolia-home .ms-btn--light {
	background: #fff;
	color: var(--ms-ink);
}

.mysolia-home .ms-btn--light:hover {
	background: var(--ms-primary-050);
	color: var(--ms-primary-700);
}

/* Carousel rails ---------------------------------------------------------- */

.ms-rail {
	position: relative;
}

.ms-rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(272px, 1fr);
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* Bleed to the viewport edge on small screens so cards peek past the gutter. */
	padding: 0.35rem calc(var(--ms-gutter) * 0) 1.25rem;
	margin-inline: 0;
}

.ms-rail__track::-webkit-scrollbar {
	display: none;
}

.ms-rail__track > * {
	scroll-snap-align: start;
}

.ms-rail__nav {
	display: none;
	gap: 0.5rem;
}

.ms-rail__btn {
	width: 2.4rem;
	height: 2.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ms-r-pill);
	border: 1px solid var(--ms-border-strong);
	background: #fff;
	color: var(--ms-ink);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.ms-rail__btn:hover:not(:disabled) {
	border-color: var(--ms-primary);
	color: var(--ms-primary-700);
	background: var(--ms-primary-050);
}

.ms-rail__btn:disabled {
	opacity: .35;
	cursor: default;
}

@media (min-width: 768px) {
	.ms-rail__nav {
		display: flex;
	}
}

/* Grid used where a rail is not wanted */
.ms-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ms-empty {
	color: var(--ms-muted);
	background: var(--ms-bg);
	border: 1px dashed var(--ms-border-strong);
	border-radius: var(--ms-r);
	padding: 2rem;
	text-align: center;
	margin: 0;
}

/* ==========================================================================
   Hero + search
   ========================================================================== */

.ms-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(430px, 46vw, 560px);
	padding: 3.5rem 0 4.5rem;
	color: #fff;
	background: var(--ms-ink);
}

.ms-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #223549;
	/* Gives back a little of the colour the scrim above takes away. */
	filter: saturate(1.12);
}

.ms-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(16, 30, 45, .58) 0%, rgba(16, 30, 45, .42) 55%, rgba(16, 30, 45, .75) 100%);
}

.ms-hero__inner {
	width: min(100% - (var(--ms-gutter) * 2), var(--ms-max));
	margin-inline: auto;
	text-align: center;
}

.ms-hero__title {
	margin: 0;
	font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #fff;
	text-shadow: 0 2px 18px rgba(10, 22, 34, .35);
}

.ms-hero__sub {
	margin: 0.85rem auto 0;
	max-width: 42rem;
	font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, .9);
	text-shadow: 0 1px 12px rgba(10, 22, 34, .35);
}

.ms-hero__search {
	margin-top: 2rem;
}

/* Tabs -------------------------------------------------------------------- */

.ms-tabs {
	display: flex;
	gap: 0.25rem;
	padding: 0.25rem;
	background: rgba(255, 255, 255, .16);
	backdrop-filter: blur(6px);
	border-radius: var(--ms-r-sm) var(--ms-r-sm) 0 0;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.ms-tabs::-webkit-scrollbar {
	display: none;
}

.ms-tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	padding: 0.62rem 1.25rem;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .16s ease, color .16s ease;
}

.ms-tab:hover {
	background: rgba(255, 255, 255, .18);
}

.ms-tab.is-active {
	background: #fff;
	color: var(--ms-primary-700);
}

/* Search bar -------------------------------------------------------------- */

.ms-search {
	background: #fff;
	border-radius: 0 var(--ms-r) var(--ms-r) var(--ms-r);
	box-shadow: var(--ms-sh-lg);
	text-align: left;
	color: var(--ms-ink);
}

.ms-search__row {
	display: flex;
	align-items: stretch;
	padding: 0.4rem;
	gap: 0;
}

/* One search segment (location, type, beds, price) */
.ms-seg {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
}

.ms-seg + .ms-seg::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	bottom: 0.55rem;
	width: 1px;
	background: var(--ms-border);
}

.ms-seg--location {
	flex: 1.7 1 0;
}

.ms-seg__btn {
	appearance: none;
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	padding: 0.7rem 0.9rem;
	border-radius: var(--ms-r-sm);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	transition: background-color .14s ease;
}

.ms-seg__btn:hover,
.ms-seg.is-open .ms-seg__btn {
	background: var(--ms-primary-050);
}

.ms-seg__text {
	min-width: 0;
	flex: 1;
}

.ms-seg__label {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ms-faint);
	line-height: 1.2;
}

.ms-seg__value {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ms-ink);
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-seg__value.is-placeholder {
	color: var(--ms-muted);
	font-weight: 500;
}

.ms-seg__caret {
	color: var(--ms-faint);
	font-size: 1.05rem;
	transition: transform .18s ease;
}

.ms-seg.is-open .ms-seg__caret {
	transform: rotate(180deg);
}

/* Location field: chips + free text input */
.ms-loc {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.9rem;
	border-radius: var(--ms-r-sm);
	min-width: 0;
}

.ms-loc__pin {
	color: var(--ms-primary);
	font-size: 1.25rem;
}

.ms-loc__field {
	flex: 1;
	min-width: 0;
}

.ms-loc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.25rem;
}

.ms-loc__chips:empty {
	display: none;
}

.ms-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--ms-primary-050);
	border: 1px solid var(--ms-primary-100);
	color: var(--ms-primary-700);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.2rem 0.35rem 0.2rem 0.55rem;
	border-radius: var(--ms-r-pill);
	max-width: 100%;
}

.ms-chip__x {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	padding: 0.1rem;
	border-radius: 50%;
	font-size: 0.85rem;
	opacity: .65;
}

.ms-chip__x:hover {
	opacity: 1;
	background: var(--ms-primary-100);
}

.mysolia-home .ms-loc__input {
	width: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ms-ink);
	box-shadow: none;
	height: auto;
	line-height: 1.45;
}

.mysolia-home .ms-loc__input::placeholder {
	color: var(--ms-muted);
	font-weight: 500;
}

.mysolia-home .ms-loc__input:focus {
	outline: none;
	box-shadow: none;
}

.ms-search__actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding-left: 0.4rem;
	flex: none;
}

.ms-search__filters {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 0.9rem;
	border-radius: var(--ms-r-sm);
	color: var(--ms-ink-2);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid var(--ms-border);
	background: #fff;
	cursor: pointer;
}

.mysolia-home .ms-search__filters:hover {
	background: var(--ms-primary-050);
	border-color: var(--ms-primary-100);
	color: var(--ms-primary-700);
}

.ms-search__submit {
	padding: 0.85rem 1.6rem;
	font-size: 0.98rem;
}

/* Popovers ---------------------------------------------------------------- */

.ms-pop {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 40;
	min-width: 280px;
	max-width: min(420px, calc(100vw - 2rem));
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	box-shadow: var(--ms-sh-lg);
	padding: 0.9rem;
	display: none;
}

.ms-seg.is-open .ms-pop,
.ms-pop.is-open {
	display: block;
}

.ms-pop--right {
	left: auto;
	right: 0;
}

.ms-pop__title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ms-faint);
	margin: 0 0 0.5rem;
}

.ms-pop__group + .ms-pop__group {
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--ms-border);
}

.ms-pop__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.9rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--ms-border);
}

.ms-pop__clear {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ms-muted);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.35rem 0;
}

.ms-pop__clear:hover {
	color: var(--ms-ink);
	text-decoration: underline;
}

.ms-pop__done {
	padding: 0.55rem 1.1rem;
	font-size: 0.88rem;
}

/* Typeahead list */
.ms-sug {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 290px;
	overflow-y: auto;
}

.ms-sug__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.55rem 0.6rem;
	border: 0;
	background: transparent;
	border-radius: var(--ms-r-sm);
	font: inherit;
	font-size: 0.93rem;
	color: var(--ms-ink);
	cursor: pointer;
	text-align: left;
}

.ms-sug__item:hover,
.ms-sug__item.is-cursor {
	background: var(--ms-primary-050);
}

.ms-sug__item .ms-icon {
	color: var(--ms-faint);
	font-size: 1.1rem;
}

.ms-sug__label {
	flex: 1;
	font-weight: 600;
}

.ms-sug__label mark {
	background: transparent;
	color: var(--ms-primary-700);
	padding: 0;
}

.ms-sug__group {
	font-size: 0.75rem;
	color: var(--ms-faint);
	font-weight: 600;
}

.ms-sug__none {
	padding: 0.75rem 0.6rem;
	color: var(--ms-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* Checkbox rows inside popovers */
.ms-check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.5rem;
	border-radius: var(--ms-r-sm);
	cursor: pointer;
	font-size: 0.93rem;
	font-weight: 600;
	color: var(--ms-ink);
}

.ms-check:hover {
	background: var(--ms-primary-050);
}

.mysolia-home .ms-check input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--ms-primary);
	margin: 0;
	flex: none;
}

.ms-check__count {
	margin-left: auto;
	color: var(--ms-faint);
	font-weight: 500;
	font-size: 0.85rem;
}

/* Segmented number pickers (beds / baths) */
.ms-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ms-pill {
	appearance: none;
	border: 1px solid var(--ms-border-strong);
	background: #fff;
	color: var(--ms-ink);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.42rem 0.8rem;
	border-radius: var(--ms-r-sm);
	cursor: pointer;
	transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.ms-pill:hover {
	border-color: var(--ms-primary);
	color: var(--ms-primary-700);
}

.ms-pill.is-active {
	background: var(--ms-primary);
	border-color: var(--ms-primary);
	color: #fff;
}

/* Price inputs */
.ms-range {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.ms-range__sep {
	color: var(--ms-faint);
	font-weight: 600;
}

.mysolia-home .ms-range input {
	width: 100%;
	border: 1px solid var(--ms-border-strong);
	border-radius: var(--ms-r-sm);
	padding: 0.55rem 0.7rem;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ms-ink);
	background: #fff;
	height: auto;
}

.mysolia-home .ms-range input:focus {
	outline: none;
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 3px rgba(87, 160, 211, .18);
}

.ms-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.6rem;
}

/* Hero search: mobile ----------------------------------------------------- */

@media (max-width: 900px) {
	.ms-hero {
		min-height: 0;
		padding: 2.5rem 0 3rem;
	}

	.ms-search__row {
		flex-direction: column;
		padding: 0.35rem;
	}

	.ms-seg {
		flex: 1 1 auto;
	}

	.ms-seg + .ms-seg::before {
		left: 0.9rem;
		right: 0.9rem;
		top: 0;
		bottom: auto;
		width: auto;
		height: 1px;
	}

	.ms-search__actions {
		flex-direction: column;
		align-items: stretch;
		padding: 0.35rem 0 0;
		border-top: 1px solid var(--ms-border);
		margin-top: 0.35rem;
	}

	.ms-search__filters {
		justify-content: center;
		border: 0;
	}

	.ms-search__submit {
		width: 100%;
	}

	.ms-pop {
		left: 0;
		right: 0;
		max-width: none;
	}
}

/* ==========================================================================
   Trending search chips
   ========================================================================== */

.ms-trending {
	border-bottom: 1px solid var(--ms-border);
	padding: 1.15rem 0;
	background: #fff;
}

.ms-trending__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.ms-trending__label {
	margin: 0;
	flex: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ms-faint);
}

.ms-trending__list {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.ms-trending__list::-webkit-scrollbar {
	display: none;
}

.mysolia-home .ms-trending__list a {
	display: inline-block;
	white-space: nowrap;
	padding: 0.42rem 0.9rem;
	border-radius: var(--ms-r-pill);
	border: 1px solid var(--ms-border);
	background: var(--ms-bg);
	color: var(--ms-ink-2);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.mysolia-home .ms-trending__list a:hover {
	background: var(--ms-primary-050);
	border-color: var(--ms-primary-100);
	color: var(--ms-primary-700);
}

@media (max-width: 700px) {
	.ms-trending__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}

	.ms-trending__list {
		width: 100%;
	}
}

/* ==========================================================================
   Property card
   ========================================================================== */

.ms-prop {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mysolia-home a.ms-prop:hover {
	color: inherit;
	border-color: var(--ms-border-strong);
	box-shadow: var(--ms-sh);
	transform: translateY(-3px);
}

.ms-prop__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ms-bg-2);
	overflow: hidden;
}

.ms-prop__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ms-prop:hover .ms-prop__media img {
	transform: scale(1.045);
}

.ms-prop__tags {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.ms-tag {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 0.25rem 0.5rem;
	border-radius: 5px;
	background: rgba(28, 45, 65, .78);
	color: #fff;
	backdrop-filter: blur(4px);
}

.ms-tag--featured {
	background: var(--ms-accent);
	color: var(--ms-ink);
}

.ms-tag--status {
	background: rgba(255, 255, 255, .92);
	color: var(--ms-ink);
}

.ms-prop__body {
	padding: 0.9rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.ms-prop__price {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ms-ink);
}

.ms-prop__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ms-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ms-prop__addr {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.3rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--ms-muted);
}

.ms-prop__addr .ms-icon {
	font-size: 1rem;
	margin-top: .1em;
	color: var(--ms-faint);
}

.ms-prop__addr span {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ms-prop__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	margin: auto 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--ms-border);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ms-ink-2);
}

.ms-prop__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.ms-prop__meta .ms-icon {
	font-size: 1.1rem;
	color: var(--ms-primary);
}

/* ==========================================================================
   Place cards (areas / cities)
   ========================================================================== */

.ms-place {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--ms-r);
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background: var(--ms-ink);
	isolation: isolate;
}

/*
 * Two ways a tile gets its ground: a real <img> when the term has a photo
 * (so it can lazy-load), or the tinted span when it doesn't. Both sit on the
 * same layer and behave identically.
 */
.ms-place__bg,
.ms-place__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	transition: transform .45s ease;
}

.ms-place__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	/* Held until decoded so a half-painted image never flashes over the tint. */
	background: var(--ms-ink);
}

.ms-place:hover .ms-place__bg,
.ms-place:hover .ms-place__img {
	transform: scale(1.06);
}

.ms-place__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(16, 30, 45, 0) 32%, rgba(16, 30, 45, .82) 100%);
}

.ms-place__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1rem;
}

.mysolia-home .ms-place:hover {
	color: #fff;
}

.ms-place__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ms-place__meta {
	margin: 0.15rem 0 0;
	font-size: 0.83rem;
	color: rgba(255, 255, 255, .82);
	font-weight: 500;
}

/* Compact variant for the wider area grid */
.ms-place--wide {
	aspect-ratio: 16 / 10;
}

/* ==========================================================================
   Property type tiles
   ========================================================================== */

.ms-types {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.ms-types {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ms-types {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ms-type {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	text-decoration: none;
	color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mysolia-home a.ms-type:hover {
	color: inherit;
	border-color: var(--ms-primary-100);
	box-shadow: var(--ms-sh-sm);
	transform: translateY(-2px);
}

.ms-type__icon {
	width: 2.75rem;
	height: 2.75rem;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: var(--ms-r-sm);
	background: var(--ms-primary-050);
	color: var(--ms-primary-700);
	font-size: 1.45rem;
}

.ms-type__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
}

.ms-type__meta {
	margin: 0.1rem 0 0;
	font-size: 0.82rem;
	color: var(--ms-muted);
}

/* ==========================================================================
   Market insights
   ========================================================================== */

.ms-insights__stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 1.5rem;
}

.ms-stat {
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	padding: 1.1rem 1.2rem;
}

.ms-stat__label {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ms-faint);
}

.ms-stat__label .ms-icon {
	font-size: 1.1rem;
	color: var(--ms-primary);
}

.ms-stat__value {
	margin: 0.5rem 0 0;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--ms-ink);
	line-height: 1.15;
}

.ms-stat__note {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: var(--ms-muted);
}

/* Median price by type — horizontal bars */
.ms-bars {
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	padding: 1.25rem 1.35rem;
}

.ms-bars__title {
	margin: 0 0 1rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--ms-ink);
}

.ms-bars__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.ms-bar__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.35rem;
}

.mysolia-home .ms-bar__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ms-ink);
	text-decoration: none;
}

.mysolia-home .ms-bar__name:hover {
	color: var(--ms-primary-700);
	text-decoration: underline;
}

.ms-bar__value {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ms-ink);
	white-space: nowrap;
}

.ms-bar__track {
	height: 8px;
	border-radius: var(--ms-r-pill);
	background: var(--ms-bg-2);
	overflow: hidden;
}

.ms-bar__fill {
	display: block;
	height: 100%;
	border-radius: var(--ms-r-pill);
	background: linear-gradient(90deg, var(--ms-primary), var(--ms-primary-600));
}

.ms-bar__count {
	margin: 0.25rem 0 0;
	font-size: 0.78rem;
	color: var(--ms-faint);
}

.ms-insights__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.1rem;
	margin: 1rem 0 0;
	font-size: 0.8rem;
	color: var(--ms-faint);
	line-height: 1.5;
}

.ms-insights__foot .ms-link {
	font-size: 0.84rem;
}

/* ==========================================================================
   Agents
   ========================================================================== */

.ms-agent {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.15rem;
	padding: 1.5rem 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mysolia-home a.ms-agent:hover {
	color: inherit;
	border-color: var(--ms-primary-100);
	box-shadow: var(--ms-sh);
	transform: translateY(-3px);
}

.ms-agent__avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0.75rem;
	background: var(--ms-bg-2);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--ms-border);
}

.ms-agent__avatar--fallback {
	display: grid;
	place-items: center;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--ms-primary-700);
	background: var(--ms-primary-050);
}

.ms-agent__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.ms-agent__role {
	margin: 0.1rem 0 0;
	font-size: 0.85rem;
	color: var(--ms-muted);
	min-height: 1.2em;
}

.ms-agent__count {
	margin: 0.75rem 0 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ms-primary-700);
	background: var(--ms-primary-050);
	border-radius: var(--ms-r-pill);
	padding: 0.28rem 0.7rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.ms-services {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.ms-service {
	display: block;
	padding: 1.35rem 1.4rem;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	text-decoration: none;
	color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mysolia-home a.ms-service:hover {
	color: inherit;
	border-color: var(--ms-primary-100);
	box-shadow: var(--ms-sh);
	transform: translateY(-2px);
}

.ms-service__icon {
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border-radius: var(--ms-r-sm);
	background: var(--ms-primary-050);
	color: var(--ms-primary-700);
	font-size: 1.4rem;
	margin-bottom: 0.85rem;
}

.ms-service__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.ms-service__desc {
	margin: 0.4rem 0 0;
	font-size: 0.885rem;
	line-height: 1.55;
	color: var(--ms-muted);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.ms-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-r);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mysolia-home a.ms-post:hover {
	color: inherit;
	border-color: var(--ms-border-strong);
	box-shadow: var(--ms-sh);
	transform: translateY(-3px);
}

.ms-post__media {
	aspect-ratio: 16 / 9;
	background: var(--ms-bg-2);
	overflow: hidden;
}

.ms-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ms-post:hover .ms-post__media img {
	transform: scale(1.04);
}

.ms-post__body {
	padding: 1rem 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.ms-post__date {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ms-faint);
}

.ms-post__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ms-post__excerpt {
	margin: 0;
	font-size: 0.885rem;
	line-height: 1.6;
	color: var(--ms-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   App banner
   ========================================================================== */

.ms-app {
	background: var(--ms-ink);
	color: #fff;
	border-radius: var(--ms-r-lg);
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	display: grid;
	gap: 2rem;
	align-items: center;
	grid-template-columns: 1fr;
	position: relative;
	overflow: hidden;
}

.ms-app::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(87, 160, 211, .38), transparent 68%);
	pointer-events: none;
}

.ms-app__title {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: #fff;
}

.ms-app__text {
	margin: 0.7rem 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: 0.98rem;
	line-height: 1.6;
	max-width: 44ch;
}

.ms-app__points {
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.ms-app__points li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, .88);
}

.ms-app__points .ms-icon {
	color: var(--ms-green);
	font-size: 1.1rem;
}

.ms-app__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
	position: relative;
	z-index: 1;
}

.ms-store {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 1.15rem;
	border-radius: var(--ms-r-sm);
	background: #fff;
	border: 1px solid #fff;
	text-decoration: none;
	color: var(--ms-ink);
	transition: transform .16s ease, background-color .16s ease;
}

.mysolia-home .ms-store:hover {
	color: var(--ms-ink);
	transform: translateY(-2px);
	background: var(--ms-primary-050);
}

.ms-store__icon {
	font-size: 1.6rem;
	color: var(--ms-ink);
}

.ms-store__lines small {
	display: block;
	font-size: 0.68rem;
	line-height: 1.3;
	color: var(--ms-muted);
	font-weight: 600;
}

.ms-store__lines strong {
	display: block;
	font-size: 0.95rem;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.ms-app__art {
	display: none;
}

@media (min-width: 900px) {
	.ms-app {
		grid-template-columns: 1.35fr 1fr;
	}

	.ms-app__art {
		display: block;
		justify-self: center;
		position: relative;
		z-index: 1;
	}
}

/* AI eyebrow above the app section heading. */
.ms-app__eyebrow {
	margin: 0 0 0.6rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border-radius: var(--ms-r-pill);
	background: rgba(87, 160, 211, .18);
	border: 1px solid rgba(87, 160, 211, .38);
	color: #bcdcf3;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/*
 * Real app screenshot in a device frame. Screenshots are very tall, so the
 * frame crops from the top: the part that carries the branding — headline,
 * "powered by AI" line, the search field and voice button — stays visible,
 * and the list below it is trimmed rather than shrinking everything.
 */
.ms-app__shot {
	width: 232px;
	height: 452px;
	border-radius: 30px;
	border: 6px solid #0f1b27;
	background: #0f1b27;
	overflow: hidden;
	box-shadow: var(--ms-sh-lg);
	transform: rotate(-4deg);
}

.ms-app__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Stylised phone mock, drawn in CSS so no image asset is needed. */
.ms-phone {
	width: 190px;
	height: 380px;
	border-radius: 30px;
	background: linear-gradient(165deg, #2b425a, #1a2939);
	border: 6px solid #0f1b27;
	box-shadow: var(--ms-sh-lg);
	padding: 0.9rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	transform: rotate(-4deg);
}

.ms-phone__bar {
	height: 30px;
	border-radius: var(--ms-r-pill);
	background: rgba(255, 255, 255, .14);
}

.ms-phone__tile {
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	flex: 1;
}

.ms-phone__tile--accent {
	background: linear-gradient(160deg, rgba(87, 160, 211, .55), rgba(87, 160, 211, .18));
}

/* ==========================================================================
   Valuation CTA
   ========================================================================== */

.ms-cta {
	padding: 0 0 3.5rem;
}

.ms-cta__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--ms-r-lg);
	background: linear-gradient(120deg, var(--ms-primary-050), #fff 65%);
	border: 1px solid var(--ms-primary-100);
}

.ms-cta__title {
	margin: 0;
	font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--ms-ink);
}

.ms-cta__text {
	margin: 0.5rem 0 0;
	color: var(--ms-ink-2);
	font-size: 0.98rem;
	line-height: 1.6;
	max-width: 52ch;
}

.ms-cta__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.mysolia-home *,
	.mysolia-home *::before,
	.mysolia-home *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Motion
   --------------------------------------------------------------------------
   The .ms-motion class is set on <html> by a small inline script in wp_head,
   before first paint, and only when the visitor has NOT asked for reduced
   motion and IntersectionObserver exists. Every rule that hides something is
   scoped under it, so with JS off / unsupported / failed the page renders
   fully visible and static. The same inline script clears the class after a
   timeout if motion.js never reports in, so a failed script can't leave the
   page blank.
   ========================================================================== */

:root {
	--ms-ease: cubic-bezier(.22, 1, .36, 1);
	--ms-rise: 18px;
}

/* Scroll reveal — containers stagger their own children ------------------- */

.ms-motion .ms-rail__track > *,
.ms-motion .ms-types > *,
.ms-motion .ms-services > *,
.ms-motion .ms-insights__stats > *,
.ms-motion .ms-bars__list > *,
.ms-motion .ms-trending__list > *,
.ms-motion .ms-grid > * {
	opacity: 0;
	transform: translateY(var(--ms-rise));
	transition:
		opacity .55s var(--ms-ease),
		transform .55s var(--ms-ease);
}

.ms-motion .is-in > * {
	opacity: 1;
	transform: none;
}

/* Scroll reveal — elements that reveal themselves ------------------------- */

.ms-motion .ms-head,
.ms-motion .ms-bars,
.ms-motion .ms-app,
.ms-motion .ms-cta__panel,
.ms-motion .ms-insights__foot {
	opacity: 0;
	transform: translateY(var(--ms-rise));
	transition:
		opacity .55s var(--ms-ease),
		transform .55s var(--ms-ease);
}

.ms-motion .ms-head.is-in,
.ms-motion .ms-bars.is-in,
.ms-motion .ms-app.is-in,
.ms-motion .ms-cta__panel.is-in,
.ms-motion .ms-insights__foot.is-in {
	opacity: 1;
	transform: none;
}

/* Hero entrance ---------------------------------------------------------- */

@keyframes ms-hero-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ms-motion .ms-hero__title,
.ms-motion .ms-hero__sub,
.ms-motion .ms-hero__search {
	opacity: 0;
	animation: ms-hero-rise .85s var(--ms-ease) forwards;
}

.ms-motion .ms-hero__title  { animation-delay: .12s; }
.ms-motion .ms-hero__sub    { animation-delay: .24s; }
.ms-motion .ms-hero__search { animation-delay: .36s; }

/*
 * The photograph fades up once decoded rather than snapping in. home.js sets
 * opacity inline after the image loads, which wins over the rule below and
 * triggers the transition.
 *
 * Deliberately no scale here: .ms-hero__media is inset:0 full-bleed, so any
 * transform above 1 pushes past the viewport and produces a horizontal
 * scrollbar. Clipping it would mean overflow:hidden on .ms-hero, which also
 * clips the search field's popovers where they extend below the hero.
 */
.ms-motion .ms-hero__media {
	opacity: 0;
	transition: opacity 1s ease;
}

/* A soft lift behind the search card so it sits off the photograph. */
.ms-hero__inner::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 55%;
	width: min(880px, 90vw);
	height: 320px;
	transform: translate(-50%, -50%);
	background: radial-gradient(ellipse at center, rgba(87, 160, 211, .28), transparent 70%);
	filter: blur(28px);
	pointer-events: none;
	z-index: -1;
}

.ms-hero__inner {
	position: relative;
}

/* ==========================================================================
   Data band — the page's one loud moment
   --------------------------------------------------------------------------
   Targeted by aria-labelledby rather than a new class so the template markup
   stays untouched.
   ========================================================================== */

.mysolia-home section[aria-labelledby="ms-insights-title"] {
	background: linear-gradient(168deg, #14283e 0%, #0d1b2a 62%, #101f31 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}

/* Faint grid, like a plotting surface. Purely atmospheric, kept very low. */
.mysolia-home section[aria-labelledby="ms-insights-title"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
	pointer-events: none;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] > * {
	position: relative;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-head__title {
	color: #fff;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-head__sub {
	color: rgba(255, 255, 255, .62);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-stat {
	background: rgba(255, 255, 255, .045);
	border-color: rgba(255, 255, 255, .1);
	backdrop-filter: blur(2px);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-stat__label {
	color: rgba(255, 255, 255, .5);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-stat__label .ms-icon {
	color: var(--ms-primary);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-stat__value {
	color: #fff;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-stat__note {
	color: rgba(255, 255, 255, .48);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bars {
	background: rgba(255, 255, 255, .045);
	border-color: rgba(255, 255, 255, .1);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bars__title,
.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bar__value {
	color: #fff;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bar__name {
	color: rgba(255, 255, 255, .82);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bar__name:hover {
	color: #fff;
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bar__track {
	background: rgba(255, 255, 255, .08);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-bar__count,
.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-insights__foot {
	color: rgba(255, 255, 255, .42);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-link {
	color: var(--ms-primary);
}

.mysolia-home section[aria-labelledby="ms-insights-title"] .ms-link:hover {
	color: #fff;
}

/* Bars grow from nothing once the band is reached. */
.ms-motion .ms-bar__fill {
	transition: width 1.1s var(--ms-ease);
}

/* Numbers are data: align them in columns wherever they appear. */
.ms-stat__value,
.ms-bar__value,
.ms-bar__count,
.ms-prop__price,
.ms-prop__meta,
.ms-type__meta,
.ms-place__meta,
.ms-agent__count {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Micro-interactions
   ========================================================================== */

.ms-type__icon,
.ms-service__icon {
	transition:
		background-color .22s var(--ms-ease),
		color .22s var(--ms-ease),
		transform .22s var(--ms-ease);
}

.ms-type:hover .ms-type__icon,
.ms-service:hover .ms-service__icon {
	background: var(--ms-primary);
	color: #fff;
	transform: translateY(-2px);
}

.ms-agent__avatar {
	transition: transform .22s var(--ms-ease);
}

.ms-agent:hover .ms-agent__avatar {
	transform: scale(1.05);
}

.ms-tag--featured {
	box-shadow: 0 2px 10px rgba(255, 203, 61, .35);
}

/*
 * Reduced motion.
 *
 * The head guard normally means .ms-motion is never set for these visitors at
 * all. This block covers the case where the preference is switched on after
 * the page has already loaded: the class is still on <html>, so everything it
 * hides has to be forced back into view with no transition left running.
 */
@media (prefers-reduced-motion: reduce) {
	.ms-motion .ms-hero__title,
	.ms-motion .ms-hero__sub,
	.ms-motion .ms-hero__search,
	.ms-motion .ms-hero__media,
	.ms-motion .ms-head,
	.ms-motion .ms-bars,
	.ms-motion .ms-app,
	.ms-motion .ms-cta__panel,
	.ms-motion .ms-insights__foot,
	.ms-motion .ms-rail__track > *,
	.ms-motion .ms-types > *,
	.ms-motion .ms-services > *,
	.ms-motion .ms-insights__stats > *,
	.ms-motion .ms-bars__list > *,
	.ms-motion .ms-trending__list > *,
	.ms-motion .ms-grid > * {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}

	.ms-motion .ms-bar__fill {
		transition: none;
	}
}
