/**
 * Apartment features section — frontend.
 */

.m306-feat {
	--m306-feat-ink: #182220;
	--m306-feat-line: rgba(24, 34, 32, 0.45);
	--m306-feat-font: 'Fahkwang', 'Times New Roman', serif;
	--m306-feat-font-title: 'Cinzel', 'Times New Roman', serif;

	font-family: var(--m306-feat-font);
	color: var(--m306-feat-ink);
	background: #fff;
	padding: clamp(24px, 3.5vw, 40px) 0;
	box-sizing: border-box;
	width: 100%;
}

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

.m306-feat__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 40px;
	align-items: start;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 clamp(16px, 3vw, 40px);
}

.m306-feat__left {
	min-width: 0;
	width: 100%;
	position: sticky;
	top: 40px;
	align-self: start;
}

.m306-feat__title {
	margin: 0 0 18px;
	font-family: var(--m306-feat-font-title);
	font-size: 32px;
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 1.15;
	text-transform: uppercase;
	color: #182220;
}

.m306-feat__intro {
	margin: 0 0 14px;
	font-family: var(--m306-feat-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.65;
	color: #182220;
	max-width: none;
	width: 100%;
}

.m306-feat__media {
	margin: 28px 0 0;
	width: 100%;
}

.m306-feat__media img {
	width: 100%;
	max-height: 520px;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 0 !important;
}

.m306-feat-acc {
	border-bottom: 1px solid var(--m306-feat-line);
}

.m306-feat-acc__head,
.m306-feat button.m306-feat-acc__head,
.elementor .m306-feat-acc__head,
.elementor .m306-feat button.m306-feat-acc__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border: none !important;
	background: transparent !important;
	cursor: pointer;
	font-family: var(--m306-feat-font);
	text-align: left;
	color: #182220 !important;
	box-shadow: none !important;
	outline: none !important;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0 !important;
	transition: none;
}

.m306-feat-acc__head:hover,
.m306-feat-acc__head:focus,
.m306-feat-acc__head:focus-visible,
.m306-feat-acc__head:active,
.m306-feat-acc.is-open .m306-feat-acc__head,
.elementor .m306-feat-acc__head:hover,
.elementor .m306-feat-acc__head:focus,
.elementor .m306-feat-acc__head:active {
	background: transparent !important;
	color: #182220 !important;
	box-shadow: none !important;
	outline: none !important;
	border-color: transparent !important;
}

.m306-feat-acc__label {
	font-family: var(--m306-feat-font-title);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 1.35;
	text-transform: uppercase;
	color: #182220 !important;
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* 11px arms rotated 45° → 16px chevron */
.m306-feat-acc__chevron {
	width: 11px;
	height: 11px;
	border-right: 1.5px solid #182220;
	border-bottom: 1.5px solid #182220;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex: 0 0 auto;
	margin: 0 3px 5px;
	color: #182220;
}

.m306-feat-acc.is-open .m306-feat-acc__chevron {
	transform: rotate(-135deg);
	margin-bottom: 0;
	margin-top: 5px;
}

.m306-feat-acc__body {
	padding: 46px 0 22px;
}

/* Parking / check-in / text sections: 24px under the divider */
.m306-feat-acc__body:has(.m306-feat-lines) {
	padding-top: 24px;
}

.m306-feat-icons {
	display: grid;
	gap: 18px 24px;
	justify-content: start;
	justify-items: start;
	align-items: start;
}

.m306-feat-icons--cols-1 {
	grid-template-columns: max-content;
	max-width: none;
	margin: 0;
}

/* Pack items left — do NOT stretch into equal full-width columns */
.m306-feat-icons--cols-2 {
	grid-template-columns: repeat(2, max-content);
	column-gap: 48px;
}

.m306-feat-icons--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Fixed card width so icons share one vertical axis per column */
.m306-feat-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 8px;
	width: 120px;
	max-width: 100%;
	justify-self: start;
}

.m306-feat-icon__svg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	color: var(--m306-feat-ink);
	margin: 0;
}

.m306-feat-icon__svg svg {
	width: 48px;
	height: 48px;
	max-width: 100%;
	max-height: 100%;
	display: block;
}

.m306-feat-icon__label {
	font-family: var(--m306-feat-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.35;
	color: #182220;
	text-align: center;
	width: 100%;
}

.m306-feat-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

.m306-feat-lines li {
	font-family: var(--m306-feat-font);
	font-size: 16px;
	line-height: 1.35;
	font-weight: 300;
	color: #182220;
}

@media (max-width: 900px) {
	.m306-feat {
		overflow-x: visible;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.m306-feat__grid {
		display: flex;
		flex-direction: column;
		gap: 28px;
		padding: 0;
	}

	/* Flatten left so media can reorder above title */
	.m306-feat__left {
		display: contents;
	}

	.m306-feat__media,
	.m306-feat .m306-feat__media,
	.elementor .m306-feat__media {
		order: 1;
		width: 100vw !important;
		max-width: 100vw !important;
		margin: 0 !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: 0 !important;
		padding: 0 !important;
	}

	.m306-feat__media img,
	.m306-feat .m306-feat__media img,
	.elementor .m306-feat__media img {
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		max-height: none;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		display: block;
	}

	.m306-feat__title {
		order: 2;
		font-size: clamp(28px, 8vw, 40px);
		padding: 0 6vw;
		margin-top: 8px;
		box-sizing: border-box;
	}

	.m306-feat__intro {
		order: 3;
		padding: 0 6vw;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.m306-feat__right {
		order: 4;
		padding: 0 6vw;
		width: 100%;
		box-sizing: border-box;
	}

	.m306-feat-acc__label {
		font-size: clamp(15px, 4.2vw, 20px);
		letter-spacing: 0.14em;
		line-height: 1.4;
	}

	.m306-feat-acc__head {
		align-items: flex-start;
		padding: 16px 0;
	}

	.m306-feat-acc__chevron {
		margin-top: 8px;
	}

	/* Icon left + label right (list layout) */
	.m306-feat-icons,
	.m306-feat-icons--cols-1,
	.m306-feat-icons--cols-2,
	.m306-feat-icons--cols-3 {
		grid-template-columns: 1fr !important;
		gap: 18px;
		justify-items: stretch;
	}

	.m306-feat-icon {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		width: 100%;
		max-width: none;
		gap: 16px;
	}

	.m306-feat-icon__svg {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}

	.m306-feat-icon__svg svg {
		width: 36px;
		height: 36px;
	}

	.m306-feat-icon__label {
		text-align: left;
		width: auto;
		flex: 1 1 auto;
		font-size: clamp(14px, 3.8vw, 16px);
	}

	.m306-feat-lines li {
		font-size: clamp(14px, 3.8vw, 16px);
	}
}

@media (max-width: 520px) {
	.m306-feat-icons--cols-2,
	.m306-feat-icons--cols-3 {
		grid-template-columns: 1fr !important;
	}
}
