/**
 * Yachts editorial landing page.
 */

.myh-yl-hero {
	position: relative;
	min-height: 320px;
	background-color: #0a2540;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: visible;
}

.myh-yl-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		to bottom,
		rgba(8, 35, 68, 0.55) 0%,
		rgba(8, 35, 68, 0.72) 100%
	);
	pointer-events: none;
}

.myh-yl-hero .myh-header {
	z-index: 2;
}

.myh-yl-hero .myh-page-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: inherit;
}

.myh-yl-hero .myh-page-hero__inner,
.myh-yl-hero__inner {
	max-width: 1100px;
	padding-top: calc(var(--myh-header-height, 110px) + 1.5rem);
	padding-bottom: 2rem;
	width: 100%;
}

.myh-yl-hero .myh-page-hero__title {
	margin-bottom: 1rem;
	color: #fff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.myh-has-yl-hero .myh-yl-hero {
	min-height: clamp(300px, 40vw, 440px);
}

/* Tab links over hero image */
.myh-yl-hero .myh-yl__subnav {
	margin: 0;
}

.myh-yl-hero .myh-yl__subnav-link {
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.myh-yl-hero .myh-yl__subnav-link:hover,
.myh-yl-hero .myh-yl__subnav-link.is-current {
	color: var(--myh-primary, #0096e1);
	text-shadow: none;
}

.myh-yl,
.myh-yl * {
	font-family: "Gotham Book", sans-serif;
}

.myh-yl__intro-block {
	background: #fff;
	padding: 1.75rem 0 1.75rem;
	text-align: center;
}

.myh-yl__intro-block--lead-only {
	padding-top: 1.5rem;
}

.myh-yl__subnav {
	margin-bottom: 1.25rem;
}

.myh-yl__subnav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 1.75rem;
	padding: 0;
	margin: 0;
}

.myh-yl__subnav-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.myh-yl__subnav-link {
	display: inline-block;
	color: #3d4a5c;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	text-transform: capitalize;
	letter-spacing: 0.01em;
	transition: color 0.2s ease;
}

.myh-yl__subnav-link:hover,
.myh-yl__subnav-link.is-current {
	color: var(--myh-primary, #0096e1);
}

.myh-yl__lead {
	max-width: 46rem;
	margin: 0 auto;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.65;
}

/* Section headings */
.myh-yl__section-head {
	margin-bottom: 1.25rem;
}

.myh-yl__section-head--center {
	text-align: center;
}

.myh-yl__section-badge {
	display: inline-block;
	margin: 0;
	padding: 0.4rem 0.85rem;
	background: var(--myh-primary, #0096e1);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	border-radius: 2px;
}

.myh-yl__section-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	color: #0a2540;
	line-height: 1.2;
}

/* Search bar */
.myh-yl__search-wrap {
	padding: 0 0 2.5rem;
	background: #fff;
}

.myh-yl__search {
	background: #0a2540;
	border-radius: 6px;
	padding: 1.35rem 1.5rem 1.5rem;
	color: #fff;
}

.myh-yl__search-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.1rem;
}

.myh-yl__search-title {
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.25;
}

.myh-yl__search-all {
	color: var(--myh-primary, #0096e1);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.myh-yl__search-all:hover {
	color: #7ec8f0;
}

.myh-yl__search-form {
	display: grid;
	grid-template-columns: 1.4fr 1fr auto auto;
	gap: 1rem 1.15rem;
	align-items: end;
}

.myh-yl__field-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 0.4rem;
}

.myh-yl__field-control {
	position: relative;
	display: block;
}

.myh-yl__field-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa3af;
	pointer-events: none;
	display: flex;
}

.myh-yl__field--name input {
	width: 100%;
	height: 46px;
	padding: 0.5rem 0.85rem 0.5rem 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	font-size: 0.9rem;
}

.myh-yl__select {
	width: 100%;
	height: 46px;
	padding: 0.5rem 2rem 0.5rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
	background-size: 12px;
	appearance: none;
	color: #1a1a1a;
	font-size: 0.9rem;
}

.myh-yl__type-toggles {
	display: flex;
	gap: 0.5rem;
}

.myh-yl__type-toggle {
	margin: 0;
	cursor: pointer;
}

.myh-yl__type-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.myh-yl__type-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-width: 72px;
	height: 46px;
	padding: 0.25rem 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.myh-yl__type-toggle input:checked + .myh-yl__type-btn,
.myh-yl__type-toggle:hover .myh-yl__type-btn {
	background: rgba(0, 150, 225, 0.25);
	border-color: var(--myh-primary, #0096e1);
	color: #fff;
}

.myh-yl__search-btn {
	height: 46px;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 4px;
	background: var(--myh-primary, #0096e1);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.15s ease;
}

.myh-yl__search-btn:hover {
	background: #0078b8;
	transform: translateY(-1px);
}

/* Shared meta / cat */
.myh-yl-cat {
	color: var(--myh-primary, #0096e1);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0;
}

.myh-yl-meta {
	color: #9aa3af;
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Shared card carousel */
.myh-yl-carousel {
	position: relative;
	padding: 0 2.25rem;
}

.myh-yl-carousel__viewport {
	overflow: hidden;
}

.myh-yl-carousel__track {
	display: flex;
	gap: 1.15rem;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

.myh-yl-carousel__slide {
	flex: 0 0 calc((100% - 2.3rem) / 3);
	min-width: 0;
}

.myh-yl-carousel--latest .myh-yl-carousel__slide {
	flex: 0 0 calc((100% - 4.6rem) / 5);
}

.myh-yl-carousel__nav {
	position: absolute;
	top: 32%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 37, 64, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	padding: 0;
	cursor: pointer;
}

.myh-yl-carousel__nav:hover {
	background: rgba(10, 37, 64, 0.85);
}

.myh-yl-carousel__nav--prev {
	left: 0;
}

.myh-yl-carousel__nav--next {
	right: 0;
}

.myh-yl-carousel__nav[hidden] {
	display: none !important;
}

/* Fleet updates — featured + sidebar list (matches design) */
.myh-yl__fleet {
	background: #fff;
	padding: 1.5rem 0 3.25rem;
}

.myh-yl__fleet-head {
	margin-bottom: 1.5rem;
}

.myh-yl__fleet-title {
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 700;
	color: #0a2540;
	line-height: 1.2;
}

.myh-yl-fleet-featured__media {
	border-radius: 4px;
	overflow: hidden;
	display: block;
	background: #e5e5e5;
}

.myh-yl-fleet-featured__img,
.myh-yl-fleet-featured__placeholder {
	aspect-ratio: 16 / 10;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.myh-yl-fleet-featured__placeholder {
	background: var(--myh-border, #e5e5e5);
	min-height: 220px;
}

.myh-yl-fleet-featured__body {
	padding-top: 1.25rem;
}

.myh-yl-fleet-featured__title {
	font-family: Georgia, "Times New Roman", Times, serif !important;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0a2540;
	max-width: 28rem;
	margin: 0 auto 0.85rem;
}

.myh-yl-fleet-featured__title a {
	font-family: Georgia, "Times New Roman", Times, serif !important;
	color: inherit;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	text-decoration-color: #0a2540;
}

.myh-yl-fleet-featured__title a:hover {
	color: var(--myh-primary, #0096e1);
	text-decoration-color: var(--myh-primary, #0096e1);
}

.myh-yl-fleet-featured__excerpt {
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 auto 0.85rem;
	max-width: 32rem;
}

.myh-yl-fleet-list__item {
	padding: 1.15rem 0;
	border-bottom: 1px solid #e8ebef;
}

.myh-yl-fleet-list__item:first-child {
	padding-top: 0;
}

.myh-yl-fleet-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.myh-yl-fleet-list__link {
	color: inherit;
}

.myh-yl-fleet-list__thumb {
	width: 148px;
	height: 100px;
	border-radius: 4px;
	overflow: hidden;
	background: #e5e5e5;
}

.myh-yl-fleet-list__img,
.myh-yl-fleet-list__placeholder {
	width: 148px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.myh-yl-fleet-list__placeholder {
	background: var(--myh-border, #e5e5e5);
}

.myh-yl-fleet-list__title {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0a2540;
}

.myh-yl-fleet-list__link:hover .myh-yl-fleet-list__title {
	color: var(--myh-primary, #0096e1);
}

/* Photo of the Day */
.myh-yl__photos {
	background: #f3f4f6;
	padding: 2.5rem 0;
}

.myh-yl-photos {
	position: relative;
	padding: 0 2.5rem;
}

.myh-yl-photos__viewport {
	overflow: hidden;
}

.myh-yl-photos__track {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

.myh-yl-photos__slide {
	flex: 0 0 62%;
	opacity: 0.55;
	transform: scale(0.96);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.myh-yl-photos__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.myh-yl-photos__media {
	display: block;
	border-radius: 4px;
	overflow: hidden;
	background: #d1d5db;
	aspect-ratio: 16 / 9;
}

.myh-yl-photos__img,
.myh-yl-photos__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.myh-yl-photos__placeholder {
	background: #cbd5e1;
	min-height: 100%;
}

.myh-yl-photos__caption {
	display: block;
	margin-top: 0.85rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0a2540;
	line-height: 1.35;
}

.myh-yl-photos__nav {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 37, 64, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.myh-yl-photos__nav:hover {
	background: rgba(10, 37, 64, 0.85);
}

.myh-yl-photos__nav--prev {
	left: 0;
}

.myh-yl-photos__nav--next {
	right: 0;
}

/* Highlight — text left, image right (below Photo of the Day) */
.myh-yl__highlight {
	background: #fff;
	padding: 3.25rem 0 3.5rem;
}

.myh-yl-highlight {
	max-width: 28rem;
}

.myh-yl-highlight__title {
	font-family: Georgia, "Times New Roman", Times, serif !important;
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0a2540;
	margin: 0 0 1rem;
}

.myh-yl-highlight__title a {
	font-family: Georgia, "Times New Roman", Times, serif !important;
	color: inherit;
	text-decoration: none !important;
}

.myh-yl-highlight__title a:hover {
	color: var(--myh-primary, #0096e1);
}

.myh-yl-highlight__excerpt {
	color: #6b7280;
	font-size: 0.98rem;
	line-height: 1.7;
	margin: 0 0 1.15rem;
}

.myh-yl-highlight__media {
	border-radius: 10px;
	overflow: hidden;
	display: block;
	background: #e5e5e5;
}

.myh-yl-highlight__img,
.myh-yl-highlight__placeholder {
	aspect-ratio: 16 / 10;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.myh-yl-highlight__placeholder {
	background: #cbd5e1;
	min-height: 240px;
}

/* Latest news carousel */
.myh-yl__latest {
	background: #fff;
	padding: 2.75rem 0 3.5rem;
}

.myh-yl__latest-title {
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	color: #0a2540;
}

.myh-yl__see-all {
	color: var(--myh-primary, #0096e1);
	font-size: 0.9rem;
	font-weight: 600;
}

.myh-yl__see-all:hover {
	color: var(--myh-accent, #f05a28);
}

.myh-yl-card__media {
	border-radius: 4px;
	overflow: hidden;
	display: block;
	background: #e5e5e5;
	aspect-ratio: 16 / 11;
}

.myh-yl-card__img,
.myh-yl-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.myh-yl-card__placeholder {
	background: var(--myh-border, #e5e5e5);
	min-height: 100%;
}

.myh-yl-card__title {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0a2540;
	margin: 0 0 0.45rem;
}

.myh-yl-card__title a {
	color: inherit;
}

.myh-yl-card__title a:hover {
	color: var(--myh-primary, #0096e1);
}

/* Hide default page chrome on landing */
.myh-yachts-landing-page .wp-block-post-title,
.myh-yachts-landing-page .entry-title,
.myh-yachts-landing-page .myh-page-layout__title,
.myh-yachts-landing-page .myh-page-layout__updated {
	display: none !important;
}

.myh-yachts-landing-page .entry-content > .myh-yl:first-child,
.myh-yachts-landing-page .wp-block-post-content > .myh-yl:first-child {
	margin-top: 0;
}

/* Full-bleed page shell — no side gutters on landing */
body.myh-yachts-landing-page main.wp-block-group,
body.myh-yachts-landing-page.page:not(.myh-page-has-layout) main.wp-block-group,
body.myh-yachts-landing-page.myh-has-page-hero:not(.myh-page-has-layout) main.wp-block-group,
body.myh-yachts-landing-page.myh-has-yl-hero:not(.myh-page-has-layout) main.wp-block-group {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0 !important;
}

@media (max-width: 1199.98px) {
	.myh-yl-carousel--latest .myh-yl-carousel__slide {
		flex-basis: calc((100% - 3.45rem) / 4);
	}
}

@media (max-width: 991.98px) {
	.myh-yl__search-form {
		grid-template-columns: 1fr 1fr;
	}

	.myh-yl__search-btn {
		grid-column: 1 / -1;
		width: 100%;
	}

	.myh-yl-carousel__slide {
		flex-basis: calc((100% - 1.15rem) / 2);
	}

	.myh-yl-carousel--latest .myh-yl-carousel__slide {
		flex-basis: calc((100% - 2.3rem) / 3);
	}

	.myh-yl-photos__slide {
		flex: 0 0 78%;
	}

	.myh-yl-fleet-list__thumb {
		width: 110px;
		height: 78px;
	}

	.myh-yl-fleet-list__img,
	.myh-yl-fleet-list__placeholder {
		width: 110px;
		height: 78px;
	}
}

@media (max-width: 575.98px) {
	.myh-yl__intro-block {
		padding: 1.5rem 0 1.25rem;
	}

	.myh-yl__search {
		padding: 1.15rem 1rem 1.25rem;
		border-radius: 4px;
	}

	.myh-yl__search-form {
		grid-template-columns: 1fr;
	}

	.myh-yl__type-toggles {
		width: 100%;
	}

	.myh-yl__type-toggle {
		flex: 1;
	}

	.myh-yl-fleet-list__thumb {
		width: 88px;
		height: 64px;
	}

	.myh-yl-fleet-list__img,
	.myh-yl-fleet-list__placeholder {
		width: 88px;
		height: 64px;
	}

	.myh-yl__type-btn {
		width: 100%;
	}

	.myh-yl-carousel {
		padding: 0 1.75rem;
	}

	.myh-yl-carousel__slide {
		flex-basis: 88%;
	}

	.myh-yl-carousel--latest .myh-yl-carousel__slide {
		flex-basis: calc((100% - 1.15rem) / 2);
	}

	.myh-yl-photos {
		padding: 0 1.75rem;
	}

	.myh-yl-photos__slide {
		flex: 0 0 88%;
	}

	.myh-yl__intro-block {
		padding-top: 1.15rem;
	}

	.myh-yl__subnav {
		margin-bottom: 1rem;
	}

	.myh-yl__subnav-list {
		gap: 0.35rem 1.1rem;
	}

	.myh-yl__subnav-link {
		font-size: 0.84rem;
	}
}
