/* MYCOlive home page — modern layout scoped under .home-page */

html:has(.home-page),
body:has(.home-page) {
	overflow-x: hidden;
}

.home-page {
	--home-teal: #1da390;
	--home-teal-dark: #167a6c;
	--home-ink: #1a1d1c;
	--home-muted: #5f6b68;
	--home-line: rgba(26, 29, 28, 0.08);
	--home-surface: #f4f7f6;
	--home-radius: 18px;
	--home-radius-sm: 12px;
	--home-font: "Plus Jakarta Sans", sans-serif;
	color: var(--home-ink);
	font-family: var(--home-font);
	overflow-x: clip;
	max-width: 100%;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-hero__brand,
.home-section__title,
.home-path__label,
.home-area__name {
	font-family: var(--home-font);
	letter-spacing: -0.03em;
}

/* ---------- Hero ---------- */
.home-hero {
	position: relative;
	min-height: min(62vh, 560px);
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
}

.home-hero__media {
	position: absolute;
	inset: 0;
	background-image: var(--home-hero-image);
	background-position: center 40%;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1.03);
	animation: home-hero-ken 18s ease-out forwards;
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 24, 22, 0.4) 0%, rgba(10, 24, 22, 0.56) 48%, rgba(10, 24, 22, 0.78) 100%),
		linear-gradient(90deg, rgba(29, 163, 144, 0.18) 0%, transparent 60%);
}

.home-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 64px;
	padding-bottom: 48px;
}

.home-hero__brand {
	margin: 0 0 12px;
	font-size: clamp(3rem, 4.5vw, 4.6rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #fff;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	animation: home-fade-up 0.7s ease both;
}

.home-hero__brand::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 12px;
	border-radius: 999px;
	background: var(--home-teal);
}

.home-hero__title {
	margin: 0 0 10px;
	max-width: 20ch;
	font-size: clamp(2rem, 2.8vw, 2.8rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.94);
	animation: home-fade-up 0.7s ease 0.08s both;
}

.home-hero__lead {
	margin: 0 0 24px;
	max-width: 40ch;
	font-size: 1.6rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.84);
	animation: home-fade-up 0.7s ease 0.16s both;
}

/* ---------- Search ---------- */
.home-search {
	animation: home-fade-up 0.75s ease 0.24s both;
}

.home-search__form {
	display: grid;
	grid-template-columns: 1.1fr 1.3fr 1.1fr auto;
	gap: 6px;
	align-items: stretch;
	padding: 8px;
	background: rgba(255, 255, 255, 0.97);
	border-radius: var(--home-radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(12px);
}

.home-page #front-search-form .home-search__field.form-group {
	position: relative;
	display: block;
	align-items: stretch;
	justify-content: flex-start;
	margin: 0 !important;
	min-width: 0;
	min-height: 0;
	padding: 10px 16px 8px;
	border-radius: var(--home-radius-sm);
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.home-page #front-search-form .home-search__field.form-group:hover,
.home-page #front-search-form .home-search__field.form-group:focus-within {
	background: var(--home-surface);
	border-color: var(--home-line);
}

.home-page #front-search-form .home-search__field label {
	display: block;
	margin: 0 0 2px;
	padding: 0;
	position: static !important;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--home-muted) !important;
}

.home-page #front-search-form .home-search__field label.error {
	position: absolute !important;
	top: auto !important;
	bottom: -18px;
	left: 18px;
	color: #c0392b !important;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.home-page #front-search-form .form-group select,
.home-page #front-search-form .form-group input {
	color: var(--home-ink) !important;
	padding: 0 !important;
	font-size: 1.5rem;
}

.home-page #front-search-form .form-group .input-group-append {
	position: static;
	right: auto;
	bottom: auto;
}

.home-page .home-search .select2-container {
	width: 100% !important;
}

.home-page .home-search .select2-container--default .select2-selection--single {
	border: 0 !important;
	background: transparent !important;
	height: auto !important;
	min-height: 0;
}

.home-page .home-search .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 !important;
	color: var(--home-ink) !important;
	line-height: 1.4 !important;
	font-size: 1.5rem;
}

.home-page .home-search .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 0;
	height: 100%;
}

.home-page .home-search .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #8a9592 !important;
}

.home-search__dates {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: static !important;
	text-align: left;
}

.home-search__dates:focus {
	outline: none;
}

.home-search__dates:focus-visible {
	outline: 2px solid rgba(29, 163, 144, 0.35);
	outline-offset: 4px;
	border-radius: 8px;
}

.home-search__date-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 1.5rem;
	color: var(--home-ink);
	line-height: 1.4;
}

.home-search__date-sep {
	color: var(--home-teal);
	font-weight: 600;
}

.home-search__date-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--home-teal);
	font-size: 1.5rem;
}

/* Date picker styles live in css/mycolive-daterangepicker.css */

.home-search__submit,
.home-page #searchButton {
	align-self: stretch;
	margin: 0 !important;
	padding: 14px 32px 14px 46px !important;
	border: 0;
	border-radius: var(--home-radius-sm) !important;
	background: var(--home-teal) url(../images/search.svg) no-repeat 16px center !important;
	background-size: 18px !important;
	box-shadow: none !important;
	font-size: 1.6rem !important;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-search__submit:hover,
.home-page #searchButton:hover {
	background-color: var(--home-teal-dark) !important;
	transform: translateY(-1px);
	color: #fff !important;
}

/* ---------- Shared sections ---------- */
.home-section {
	padding: 72px 0 64px;
}

.home-section__header {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
}

.home-section__eyebrow {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--home-teal);
}

.home-section__title {
	margin: 0 0 10px;
	font-size: clamp(2.6rem, 3.4vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--home-ink);
}

.home-section__title span {
	color: var(--home-teal);
}

.home-section__subtitle {
	margin: 0;
	font-size: 1.6rem;
	line-height: 1.55;
	color: var(--home-muted);
}

.home-btn {
	padding: 14px 36px !important;
	border-radius: var(--home-radius-sm) !important;
	font-size: 1.5rem !important;
	font-weight: 600;
	text-transform: none;
}

/* ---------- Paths ---------- */
.home-paths {
	background: #fff;
}

.home-paths__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.home-path {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--home-line);
	border-radius: var(--home-radius);
	background:
		linear-gradient(135deg, rgba(29, 163, 144, 0.06), transparent 55%),
		#fff;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-path:hover {
	color: inherit;
	transform: translateY(-3px);
	border-color: rgba(29, 163, 144, 0.35);
	box-shadow: 0 16px 36px rgba(22, 70, 62, 0.1);
}

.home-path__icon {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: rgba(29, 163, 144, 0.1);
}

.home-path__icon img,
.home-path__icon .lucide {
	width: 28px;
	height: 28px;
	color: var(--home-teal, #1da390);
}

.home-search__date-icon .lucide,
.home-path__arrow .lucide,
.home-cta__button .lucide,
.home-property .lucide,
.home-hot__meta .lucide {
	width: 1em;
	height: 1em;
}

.home-path__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.home-path__label {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.home-path__meta {
	font-size: 1.4rem;
	color: var(--home-muted);
}

.home-path__arrow {
	color: var(--home-teal);
	font-size: 1.6rem;
	transition: transform 0.25s ease;
}

.home-path:hover .home-path__arrow {
	transform: translateX(4px);
}

/* ---------- Featured ---------- */
.home-featured {
	background: var(--home-surface);
}

.home-featured .properties-box,
.home-property {
	border-radius: var(--home-radius);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-featured .properties-box:hover,
.home-property:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(22, 70, 62, 0.12);
}

.home-featured .properties-box .grid figure {
	height: 230px;
}

.home-featured .properties-info,
.home-property .properties-info {
	text-align: left;
}

.home-featured .properties-info .location,
.home-property .properties-info .location {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.4rem;
	margin: 0;
	padding-left: 0;
	text-align: left;
	min-height: 0;
}

.home-featured .properties-info .location .lucide,
.home-property .properties-info .location .lucide,
.home-featured .properties-info .location i,
.home-property .properties-info .location i {
	position: static;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 0.2em;
	color: var(--home-teal);
}

.home-featured__cta {
	margin-top: 12px;
}

/* ---------- Hot + Areas ---------- */
.home-explore {
	background: #fff;
}

.home-hot {
	margin-bottom: 72px;
}

.home-hot__swiper {
	padding-bottom: 48px;
}

.home-hot__card {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	min-height: 360px;
	overflow: hidden;
	border-radius: var(--home-radius);
	background: #111;
	color: #fff;
}

.home-hot__card:hover {
	color: #fff;
}

.home-hot__image {
	min-height: 280px;
	overflow: hidden;
}

.home-hot__image .remote-image {
	min-height: 280px;
}

.home-hot__image img,
.home-hot__image .remote-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.home-hot__card:hover .home-hot__image .remote-image.is-loaded .remote-image__img {
	transform: scale(1.04);
}

.home-hot__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 36px;
	background:
		linear-gradient(160deg, #1b2a27 0%, #121816 100%);
}

.home-hot__eyebrow {
	margin: 0 0 10px;
	font-size: 1.2rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.home-hot__info h3 {
	margin: 0 0 18px;
	font-size: clamp(2.2rem, 2.8vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.home-hot__price {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 24px;
	padding: 8px 16px;
	width: fit-content;
	border-radius: var(--home-radius-sm);
	background: var(--home-teal);
	font-size: 1.6rem;
	font-weight: 600;
}

.home-hot__price span {
	font-size: 1.2rem;
	font-weight: 500;
	opacity: 0.9;
}

.home-hot__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.4rem;
}

.home-hot__meta i {
	margin-right: 6px;
	color: var(--home-teal);
}

.home-page .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	opacity: 0.35;
	background: var(--home-teal);
}

.home-page .swiper-pagination-bullet-active {
	opacity: 1;
	width: 22px;
	border-radius: 999px;
}

.home-areas__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
}

.home-area {
	position: relative;
	grid-column: span 4;
	min-height: 260px;
	overflow: hidden;
	border-radius: var(--home-radius);
	color: #fff;
}

.home-area--lg {
	grid-column: span 8;
}

.home-area img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.home-area::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(8, 18, 16, 0.78) 100%);
}

.home-area:hover {
	color: #fff;
}

.home-area:hover img {
	transform: scale(1.06);
}

.home-area__content {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.home-area__name {
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.home-area__count {
	font-size: 1.4rem;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- CTA ---------- */
.home-cta {
	padding: 80px 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 12% 20%, rgba(29, 163, 144, 0.18), transparent 42%),
		linear-gradient(180deg, #0f1a18 0%, #162421 100%);
}

.home-cta__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
	align-items: stretch;
}

.home-cta__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 40px;
	border-radius: var(--home-radius);
	background:
		linear-gradient(145deg, rgba(29, 163, 144, 0.95), rgba(22, 122, 108, 0.98));
	color: #fff;
}

.home-cta__brand {
	margin: 0 0 14px;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.85;
}

.home-cta__panel h2 {
	margin: 0 0 14px;
	font-size: clamp(2.8rem, 3.6vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
}

.home-cta__panel p {
	margin: 0 0 28px;
	max-width: 34ch;
	font-size: 1.6rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

.home-cta__button {
	align-self: flex-start;
	padding: 14px 28px;
	border-radius: var(--home-radius-sm);
	background: #0f1a18;
	color: #fff !important;
	font-size: 1.5rem;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.2s ease;
}

.home-cta__button i {
	margin-left: 8px;
}

.home-cta__button:hover {
	background: #fff;
	color: #0f1a18 !important;
	transform: translateY(-1px);
}

.home-cta__video {
	position: relative;
	overflow: hidden;
	border-radius: var(--home-radius);
	background: #000;
	min-height: 320px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.home-cta__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Reviews ---------- */
.home-reviews {
	background: var(--home-surface);
}

/* ---------- Motion ---------- */
@keyframes home-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes home-hero-ken {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__media,
	.home-hero__brand,
	.home-hero__title,
	.home-hero__lead,
	.home-search,
	.home-path,
	.home-property,
	.home-area img,
	.home-hot__image img {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.home-hero {
		min-height: min(52vh, 480px);
		align-items: center;
	}

	.home-hero__content {
		padding-top: 48px;
		padding-bottom: 36px;
	}

	.home-search__form {
		grid-template-columns: 1fr;
		border-radius: var(--home-radius);
		padding: 14px;
	}

	.home-page #front-search-form .home-search__field.form-group {
		border-radius: var(--home-radius-sm);
		border-color: var(--home-line);
		background: #fff;
	}

	.home-search__submit,
	.home-page #searchButton {
		width: 100%;
		justify-content: center;
	}

	.home-paths__grid,
	.home-cta__grid,
	.home-hot__card {
		grid-template-columns: 1fr;
	}

	.home-hot__card {
		min-height: 0;
	}

	.home-hot__image,
	.home-hot__image .remote-image {
		min-height: 220px;
		max-height: 260px;
	}

	.home-area,
	.home-area--lg {
		grid-column: span 6;
		min-height: 220px;
	}
}

@media (max-width: 767px) {
	.home-section {
		padding: 56px 0 48px;
	}

	.home-hero {
		min-height: min(48vh, 440px);
	}

	.home-hero__brand {
		font-size: 3rem;
	}

	.home-hero__title {
		max-width: none;
		font-size: 2.1rem;
	}

	.home-hero__lead {
		font-size: 1.45rem;
		margin-bottom: 18px;
	}

	.home-path {
		padding: 18px;
	}

	.home-path__label {
		font-size: 1.8rem;
	}

	.home-area,
	.home-area--lg {
		grid-column: span 12;
		min-height: 200px;
	}

	.home-cta {
		padding: 56px 0;
	}

	.home-cta__panel {
		padding: 32px 24px;
	}

	.home-cta__video {
		min-height: 240px;
	}

	.home-hot__info {
		padding: 28px 22px;
	}
}

/* Legacy helpers kept for any residual markup */
.video_container {
	display: flex;
	gap: 2rem;
}

@media only screen and (max-width: 1200px) {
	.video_container {
		flex-direction: column;
	}
}
