/**
 * Advisory page — mobile and tablet layout.
 * Desktop (≥992px) stays on the existing tabbed-block overlay.
 */

body.sln-advisory-page .sln-advisory-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem 0.85rem;
	margin: 0.35rem auto 0;
	max-width: 52rem;
}

body.sln-advisory-page .sln-advisory-links .btn {
	margin: 0 !important;
}

@media (max-width: 991.98px) {
	body.sln-advisory-page .entry-content.blocks {
		overflow-x: hidden;
	}

	body.sln-advisory-page .tabbed-block,
	body.sln-advisory-page .tabbed-block-wrap {
		top: 0;
		margin-bottom: 0;
	}

	body.sln-advisory-page .tabbed-block-inner {
		padding-bottom: 1.5rem !important;
	}

	body.sln-advisory-page .tabbed-block .m-order-1 {
		padding-left: 0.35rem;
		padding-right: 0.35rem;
		padding-bottom: 0.5rem;
	}

	body.sln-advisory-page .tabbed-block h2 {
		font-family: "Montserrat", sans-serif;
		font-size: 2.15rem;
		letter-spacing: 0.02em;
		line-height: 1.15;
		margin-bottom: 0.75rem;
	}

	body.sln-advisory-page .tabbed-block .container-690 p {
		margin-bottom: 0.85rem;
	}

	body.sln-advisory-page .tabbed-block .container-690 p:last-child {
		display: none;
	}

	body.sln-advisory-page .tabbed-block .m-order-2,
	body.sln-advisory-page .tabbed-block .owl-carousel {
		display: none !important;
	}

	body.sln-advisory-page .sln-advisory-links {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.7rem;
		max-width: none;
		padding: 0 0.15rem;
	}

	body.sln-advisory-page .sln-advisory-links .btn,
	body.sln-advisory-page .tabbed-block h6 .btn {
		align-items: center;
		background-color: #122346;
		border-color: #122346;
		display: inline-flex;
		font-family: "Montserrat", sans-serif;
		font-size: 0.72rem;
		font-weight: 600;
		justify-content: center;
		letter-spacing: 0.04em;
		line-height: 1.25;
		min-height: 44px;
		padding: 0.65rem 0.7rem;
		text-align: center;
		white-space: normal;
		width: 100%;
	}

	body.sln-advisory-page #text-block-1 {
		display: none !important;
	}

	body.sln-advisory-page .portfolio-block {
		overflow-x: hidden;
	}

	body.sln-advisory-page .portfolio-block:after {
		display: none;
	}

	body.sln-advisory-page .portfolio-block .portfolio-bg.col-md-6,
	body.sln-advisory-page .portfolio-block .portfolio-bg.col-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	body.sln-advisory-page .portfolio-block .portfolio-bg,
	body.sln-advisory-page .portfolio-block .portfolio-bg:nth-child(4n+2),
	body.sln-advisory-page .portfolio-block .portfolio-bg:nth-child(4n+3),
	body.sln-advisory-page .portfolio-block .portfolio-bg:nth-child(4n+4) {
		align-items: stretch !important;
		justify-content: stretch !important;
		padding: 0.9rem !important;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content-wrapper {
		max-width: none;
		padding: 0;
		width: 100%;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content {
		box-shadow: 0 12px 28px rgba(18, 35, 68, 0.1);
		min-height: 0 !important;
		min-width: 0 !important;
		padding: 1.35rem 1.25rem !important;
		width: 100%;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content h2,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content h2 {
		font-size: 1.85rem;
		letter-spacing: 0.06em;
		line-height: 1.15;
		margin-bottom: 0.75rem;
		text-align: left !important;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content p,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content p {
		align-items: center;
		clear: both;
		display: flex;
		gap: 0.75rem;
		line-height: 1.4;
		margin-bottom: 0.7rem;
		text-align: left !important;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content p:last-child {
		margin-bottom: 0;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content img,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content img {
		flex: 0 0 48px;
		height: 48px;
		margin: 0 !important;
		max-width: 48px;
		width: 48px;
	}

	body.sln-advisory-page .portfolio-block .blockquote {
		font-size: 1rem;
		margin: 0;
	}

	body.sln-advisory-page .portfolio-block .blockquote pre {
		display: none;
	}

	body.sln-advisory-page #text-block-3 .container-950 {
		padding: 1.75rem 1rem !important;
	}

	body.sln-advisory-page #text-block-3 .px-sm-5 {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.sln-advisory-page #text-block-3 h2 {
		font-size: 1.65rem;
		letter-spacing: 0.03em;
		line-height: 1.2;
		margin-bottom: 1rem !important;
	}

	body.sln-advisory-page .multifamily-key-services .layout-container {
		padding-bottom: 2.25em;
		padding-top: 2.25em;
	}

	body.sln-advisory-page .multifamily-key-services .text-block-title {
		font-size: 1.7rem;
		letter-spacing: 0.04em;
		line-height: 1.2;
		margin-bottom: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
		text-align: center;
	}

	body.sln-advisory-page .multifamily-key-services .container-690 {
		background: rgba(255, 255, 255, 0.9);
		border-radius: 12px;
		box-shadow: 0 12px 28px rgba(18, 35, 68, 0.08);
		margin-left: auto;
		margin-right: auto;
		max-width: 28rem;
		padding: 1.15rem 1.35rem 1.25rem;
	}

	body.sln-advisory-page .multifamily-key-services .col-sm-6 {
		flex: 0 0 100%;
		max-width: 100%;
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}

	body.sln-advisory-page .multifamily-key-services ul {
		margin: 0 0 0.2rem;
		padding-left: 1.2rem;
		width: 100%;
	}

	body.sln-advisory-page .multifamily-key-services li {
		padding: 0.28rem 0;
	}
}

@media (max-width: 767.98px) {
	body.sln-advisory-page .tabbed-block h2 {
		font-size: 1.85rem;
	}

	body.sln-advisory-page .sln-advisory-links {
		grid-template-columns: 1fr;
	}

	body.sln-advisory-page .portfolio-block .portfolio-bg:nth-child(1) {
		padding-top: 0.25rem !important;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content h2,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content h2 {
		font-size: 1.65rem;
		margin-bottom: 0.65rem;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content {
		padding: 1.15rem 1.1rem !important;
	}

	body.sln-advisory-page #text-block-3 h2 {
		font-size: 1.45rem;
	}

	body.sln-advisory-page .multifamily-key-services .text-block-title {
		font-size: 1.45rem;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	body.sln-advisory-page .tabbed-block .m-order-1 {
		padding: 1.75rem 1rem 0.75rem;
	}

	body.sln-advisory-page .portfolio-block .portfolio-bg {
		min-height: 0;
	}

	body.sln-advisory-page .portfolio-block .portfolio-content h2,
	body.sln-advisory-page .page-id-61 .portfolio-block .portfolio-content-wrapper .portfolio-content h2 {
		font-size: 1.7rem;
	}
}

/* Representation children (Tenant / Landlord / Buyer / Seller). */
body.sln-advisory-child .sln-adv-types {
	display: grid;
	gap: 1.1rem 0.75rem;
	grid-template-columns: 1fr;
	justify-items: center;
	margin: 0.5rem auto 1.25rem;
	max-width: 40rem;
	padding: 0;
}

body.sln-advisory-child .sln-adv-types__link {
	align-items: center;
	color: #122346;
	display: flex;
	flex-direction: column;
	font-family: "Montserrat", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.45rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	min-height: 44px;
	text-align: center;
	text-decoration: none;
}

body.sln-advisory-child .sln-adv-types__link:hover,
body.sln-advisory-child .sln-adv-types__link:focus {
	color: #1b2c4e;
	text-decoration: none;
}

body.sln-advisory-child .sln-adv-types img {
	display: block;
	height: 88px;
	margin: 0 auto;
	max-width: 88px;
	object-fit: contain;
	width: 88px;
}

body.sln-advisory-child .sln-adv-types__label {
	display: block;
}

body.sln-advisory-child #text-block-1 li span {
	background-color: transparent !important;
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-align: inherit !important;
}

body.sln-advisory-child .highlight-block-left:empty,
body.sln-advisory-child .highlight-block-right:empty,
body.sln-advisory-child .highlight-block-top:empty,
body.sln-advisory-child .highlight-block-bottom:empty {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
}

body.sln-advisory-child .sln-adv-photo {
	display: contents;
}

body.sln-advisory-child .sln-adv-caption {
	display: none;
}

@media (min-width: 600px) {
	body.sln-advisory-child .sln-adv-types {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 44rem;
	}
}

@media (max-width: 991.98px) {
	body.sln-advisory-child .entry-content.blocks {
		overflow-x: hidden;
	}

	body.sln-advisory-child #text-block-1 .px-sm-5,
	body.sln-advisory-child #text-block-2 .px-sm-5,
	body.sln-advisory-child #text-block-1 .p-sm-5,
	body.sln-advisory-child #text-block-2 .p-sm-5 {
		padding-left: 0.35rem !important;
		padding-right: 0.35rem !important;
	}

	body.sln-advisory-child #text-block-1 h2,
	body.sln-advisory-child #text-block-2 h2 {
		font-size: 1.7rem;
		letter-spacing: 0.02em;
		line-height: 1.2;
	}

	body.sln-advisory-child .blocks-with-highlight-text .col-md-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	body.sln-advisory-child .blocks-with-highlight-text h2 {
		font-size: 1.7rem;
		letter-spacing: 0.02em;
		line-height: 1.2;
		margin-bottom: 0.75rem;
		text-align: left !important;
	}

	body.sln-advisory-child .blocks-with-highlight-text p {
		text-align: left !important;
	}

	body.sln-advisory-child .blocks-with-highlight-text .p-3,
	body.sln-advisory-child .blocks-with-highlight-text .p-sm-5,
	body.sln-advisory-child .blocks-with-highlight-text .p-lg-6 {
		padding: 1.1rem 1rem !important;
	}

	body.sln-advisory-child .blocks-with-highlight-text .p-1 {
		padding: 0 !important;
	}

	body.sln-advisory-child .sln-adv-photo {
		display: block;
		margin: 0 0.15rem 1.75rem;
		position: relative;
	}

	body.sln-advisory-child .blocks-with-highlight-text img,
	body.sln-advisory-child .sln-adv-photo img {
		aspect-ratio: 2 / 1;
		border-radius: 14px;
		display: block;
		height: auto !important;
		max-height: none;
		object-fit: cover;
		width: 100%;
	}

	body.sln-advisory-child .sln-adv-photo--crop-bottom img {
		object-position: center top;
	}

	body.sln-advisory-child .sln-adv-photo--crop-top img {
		object-position: center bottom;
	}

	body.sln-advisory-child .sln-adv-caption {
		background: linear-gradient(180deg, #1a3260 0%, #122346 100%);
		border-radius: 12px;
		box-shadow: 0 14px 32px rgba(18, 35, 70, 0.24);
		color: #fff;
		display: block;
		font-family: "Montserrat", sans-serif;
		font-size: 0.94rem;
		font-style: normal;
		font-weight: 500;
		letter-spacing: 0.01em;
		line-height: 1.55;
		margin: -1.7rem 0.65rem 0;
		padding: 1rem 1.1rem 1.1rem 1.2rem;
		position: relative;
		z-index: 2;
	}

	body.sln-advisory-child .sln-adv-caption::before {
		background: rgba(255, 255, 255, 0.55);
		border-radius: 2px;
		content: "";
		display: block;
		height: 3px;
		margin: 0 0 0.7rem;
		width: 2.15rem;
	}

	body.sln-advisory-child .blocks-with-highlight-text .position-relative {
		overflow: visible;
	}

	body.sln-advisory-child .multifamily-key-services .layout-container {
		padding-bottom: 2.25em;
		padding-top: 2.25em;
	}

	body.sln-advisory-child .multifamily-key-services h2 {
		font-size: 1.7rem;
		letter-spacing: 0.04em;
		line-height: 1.2;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media (max-width: 599.98px) {
	body.sln-advisory-child .sln-adv-types {
		gap: 1.35rem;
		padding: 0.25rem 0 0.5rem;
	}

	body.sln-advisory-child #text-block-1 h2,
	body.sln-advisory-child #text-block-2 h2,
	body.sln-advisory-child .blocks-with-highlight-text h2 {
		font-size: 1.45rem;
	}

	body.sln-advisory-child .sln-adv-caption {
		font-size: 0.9rem;
		line-height: 1.5;
		margin: -1.55rem 0.45rem 0;
		padding: 0.95rem 1rem 1.05rem 1.05rem;
	}
}
