/* Villa Olivia mobile system.
 * Loaded after every page stylesheet so desktop presentation remains intact. */

@media (max-width: 767px) {
	:where(.voh-homepage, .voa, .von, .vocn, .voc),
	:where(.voh-homepage, .voa, .von, .vocn, .voc) * {
		box-sizing: border-box;
	}

	:where(.voh-homepage, .voa, .von, .vocn, .voc) {
		width: 100%;
		max-width: 100%;
		overflow-x: clip;
	}

	:where(.voh-homepage, .voa, .von, .vocn, .voc) :where(img, video, svg, iframe, table) {
		max-width: 100%;
	}

	:where(.voh-homepage, .voa, .von, .vocn, .voc) :where(a, button, input, select, textarea) {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	:where(.voh-homepage, .voa, .von, .vocn, .voc) :where(input, select, textarea) {
		font-size: 16px !important;
	}

	/* Shared liquid-glass navigation used outside the homepage hero. */
	.voa-header,
	.voc .voa-header {
		top: max(9px, env(safe-area-inset-top)) !important;
		right: 10px !important;
		left: 10px !important;
		width: auto !important;
		height: 60px !important;
		min-height: 60px !important;
		padding: 7px 8px 7px 16px !important;
		transform: none !important;
		border-radius: 20px !important;
		-webkit-backdrop-filter: blur(14px) saturate(145%) !important;
		backdrop-filter: blur(14px) saturate(145%) !important;
	}

	.admin-bar .voa-header,
	.admin-bar .voc .voa-header {
		top: calc(46px + max(9px, env(safe-area-inset-top))) !important;
	}

	.voa-header__brand,
	.voc .voa-header__brand {
		width: 42px;
		height: 42px;
		display: grid;
		place-items: center;
	}

	.voa-header__nav,
	.voa-header__language,
	.voa-header .voa-pill,
	.voc .voa-header__nav,
	.voc .voa-header__language,
	.voc .voa-header .voa-pill {
		display: none !important;
	}

	.voa-header__menu,
	.voc .voa-header__menu {
		display: block !important;
		width: 44px;
		height: 44px;
		padding: 11px;
	}

	.voa-mobile-nav {
		padding: calc(82px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
	}

	.voa-mobile-nav nav {
		width: 100%;
		gap: 12px;
	}

	.voa-mobile-nav nav a {
		padding: 7px 0;
		font-size: clamp(38px, 12vw, 58px) !important;
	}

	.voa-mobile-nav > button {
		top: max(18px, env(safe-area-inset-top));
		right: 18px;
		width: 48px;
		height: 48px;
	}

	/* Homepage hero: preserve its composition while fitting real phone viewports. */
	.voh-hero {
		height: max(720px, 100svh);
		min-height: max(720px, 100svh);
	}

	.voh-hero__header {
		top: max(9px, env(safe-area-inset-top));
		right: 10px;
		left: 10px;
		height: 60px;
		padding: 0 9px 0 16px;
		border-radius: 20px;
		-webkit-backdrop-filter: blur(14px) saturate(145%);
		backdrop-filter: blur(14px) saturate(145%);
	}

	.voh-hero__menu-button {
		width: 44px;
		height: 44px;
	}

	.voh-hero__mobile-menu {
		padding: calc(84px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));
	}

	.voh-hero__mobile-menu nav a {
		padding: 6px 0;
		font-size: clamp(42px, 13vw, 62px) !important;
	}

	/* Homepage content. */
	.voh-home__inner {
		width: calc(100% - 28px);
		padding: 70px 0;
	}

	.voh-home__about-grid,
	.voh-home__location-grid,
	.voh-home__section-head {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.voh-home__about-copy,
	.voh-home__location-copy {
		min-width: 0;
	}

	.voh-home__about-media,
	.voh-home__location-media {
		width: 100%;
		height: min(122vw, 520px);
		min-height: 390px;
		border-radius: 44px;
	}

	.voh-home__lead,
	.voh-home__section-head > p,
	.voh-home__amenity p,
	.voh-home__final-inner .voh-home__final-panel > p {
		font-size: 18px !important;
		line-height: 1.58 !important;
	}

	.voh-home__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		border: 0;
	}

	.voh-home__facts .voh-home__fact,
	.voh-home__facts .voh-home__fact:last-child {
		min-height: 132px;
		padding: 18px 10px;
		border: 1px solid var(--voh-home-line);
		border-radius: 18px;
	}

	.voh-home__amenities-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.voh-home__amenity {
		min-height: 230px;
		padding: 24px;
		border-radius: 22px;
	}

	.voh-home__button {
		width: 100%;
		min-height: 56px;
	}

	.voh-home__beach-tags {
		display: flex;
		overflow-x: auto;
		padding-bottom: 5px;
		flex-wrap: nowrap;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.voh-home__beach-tags::-webkit-scrollbar {
		display: none;
	}

	.voh-home__beach-tags span {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.voh-home__final-inner {
		min-height: 700px;
		padding: 54px 14px calc(22px + env(safe-area-inset-bottom));
	}

	.voh-home__final-panel {
		min-height: 510px;
		padding: 48px 20px;
		border-radius: 28px;
	}

	.voh-home__final-actions {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
	}

	/* Cinematic walkthrough: maintain scroll storytelling with a phone-safe frame. */
	.voh-walkthrough {
		height: var(--voh-walk-mobile-height, 850svh);
	}

	.voh-walkthrough__sticky {
		height: 100svh;
		min-height: 620px;
	}

	.voh-walkthrough__intro {
		top: 84px;
		left: 16px;
		max-width: calc(100% - 32px);
	}

	.voh-walkthrough__visual {
		top: 40%;
		width: calc(100vw - 24px);
		height: min(47svh, 510px);
		min-height: 300px;
	}

	.voh-walkthrough__frame {
		border-radius: 18px;
	}

	.voh-walkthrough__copy,
	.voh-walkthrough__scene--left .voh-walkthrough__copy,
	.voh-walkthrough__scene--right .voh-walkthrough__copy {
		right: 18px;
		bottom: 74px;
		left: 18px;
		width: auto;
	}

	.voh-walkthrough__copy > div {
		max-width: 100%;
		font-size: 15px !important;
		line-height: 1.45;
	}

	.voh-walkthrough__scroll-hint {
		display: none;
	}

	/* Supplied route visual: full route remains visible instead of overflowing. */
	.voh-location-route {
		padding: 48px 10px;
	}

	.voh-location-route__head {
		padding: 0 6px;
	}

	.voh-location-route__canvas {
		width: 100%;
		aspect-ratio: 1672 / 941;
		overflow: hidden;
	}

	.voh-location-route__map,
	.voh-location-route__canvas svg.voh-location-route__overlay {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	/* Accommodation page and the Croatissimo-style booking flow. */
	.voa .jlvb-villa {
		--jlvb-mobile-gutter: 12px;
		--jlvb-mobile-header-clearance: calc(82px + env(safe-area-inset-top));
		padding-bottom: calc(94px + env(safe-area-inset-bottom));
	}

	.voa .jlvb-villa__pre-gallery,
	.voa .jlvb-villa__heading,
	.voa .jlvb-villa__layout {
		width: calc(100% - (var(--jlvb-mobile-gutter) * 2));
		max-width: 560px;
		margin-right: auto;
		margin-left: auto;
	}

	.voa .jlvb-villa__pre-gallery {
		padding-top: var(--jlvb-mobile-header-clearance);
	}

	.voa .jlvb-villa-gallery,
	.admin-bar .voa .jlvb-villa-gallery {
		width: calc(100% - 20px);
		max-width: 540px;
		aspect-ratio: 1.2 / 1;
		border-radius: 18px;
	}

	.voa .jlvb-villa-gallery__all {
		min-width: 0;
		min-height: 46px;
		max-width: calc(100% - 22px);
		padding: 8px 14px !important;
		font-size: 13px !important;
	}

	.voa .jlvb-villa__heading {
		padding: 30px 0 28px;
		gap: 22px;
	}

	.voa .jlvb-villa__heading h1 {
		font-size: clamp(44px, 14.5vw, 62px) !important;
	}

	.voa .jlvb-villa__quick-specs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.voa .jlvb-villa__quick-specs > span {
		min-width: 0;
		min-height: 64px;
		padding: 8px 4px;
		justify-content: center;
		flex-direction: column;
		gap: 4px;
		font-size: 12px !important;
		text-align: center;
		white-space: normal;
	}

	.voa .jlvb-villa__quick-specs .jlvb-villa-icon {
		width: 18px;
		height: 18px;
	}

	.voa .jlvb-villa__layout {
		display: block;
	}

	.voa .jlvb-villa-section {
		padding-top: 66px;
		padding-bottom: 66px;
	}

	.voa .jlvb-villa-section h2 {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.voa .jlvb-villa-description__copy,
	.voa .jlvb-villa-description__copy p {
		font-size: 17px !important;
		line-height: 1.62 !important;
	}

	.voa .jlvb-editorial-image {
		min-height: 0;
		aspect-ratio: 4 / 5;
		border-radius: 20px;
	}

	.voa .jlvb-speciality-tags,
	.voa .jlvb-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.voa .jlvb-speciality-tag {
		min-height: 58px;
		font-size: 15px !important;
	}

	.voa .jlvb-facts {
		gap: 8px;
	}

	.voa .jlvb-fact {
		min-height: 104px;
		padding: 18px;
	}

	.voa .jlvb-location-block,
	.voa .jlvb-amenities {
		grid-template-columns: minmax(0, 1fr);
	}

	.voa .jlvb-location-visual {
		min-height: 360px;
		border-radius: 20px;
	}

	.voa .jlvb-amenities__tabs {
		display: flex;
		overflow-x: auto;
		gap: 7px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.voa .jlvb-amenities__tabs::-webkit-scrollbar {
		display: none;
	}

	.voa .jlvb-amenities__tabs button {
		flex: 0 0 auto;
		min-width: 135px;
		min-height: 48px;
		padding: 0 15px;
		scroll-snap-align: start;
	}

	.voa .jlvb-amenities__panels {
		min-height: 0;
		padding: 28px 20px;
	}

	.voa .jlvb-amenity-group ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.voa .jlvb-bedroom-grid,
	.voa .jlvb-recommendations-grid {
		display: flex;
		overflow-x: auto;
		gap: 12px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.voa .jlvb-bedroom-grid::-webkit-scrollbar,
	.voa .jlvb-recommendations-grid::-webkit-scrollbar {
		display: none;
	}

	.voa .jlvb-bedroom-card,
	.voa .jlvb-recommendation-card {
		flex: 0 0 min(86vw, 390px);
		min-width: 0;
		scroll-snap-align: start;
	}

	.voa .jlvb-calendar {
		padding: 18px 8px 22px;
		border-radius: 18px;
	}

	.voa .jlvb-calendar__months {
		grid-template-columns: minmax(0, 1fr);
	}

	.voa .jlvb-price-table,
	.voa .jlvb-price-table tbody,
	.voa .jlvb-price-table tr,
	.voa .jlvb-price-table td {
		display: block;
		width: 100%;
	}

	.voa .jlvb-price-table thead {
		display: none;
	}

	.voa .jlvb-price-table tr {
		margin-bottom: 10px;
		padding: 14px;
		border: 1px solid rgba(6, 29, 49, .12);
		border-radius: 16px;
	}

	.voa .jlvb-price-table td {
		display: grid;
		grid-template-columns: minmax(110px, .9fr) minmax(0, 1.1fr);
		min-height: 38px;
		padding: 8px 0;
		align-items: center;
		gap: 12px;
		border-bottom: 1px solid rgba(6, 29, 49, .08);
		text-align: right;
	}

	.voa .jlvb-price-table td:last-child {
		border-bottom: 0;
	}

	.voa .jlvb-price-table td::before {
		content: attr(data-label);
		font-weight: 700;
		text-align: left;
	}

	.voa .jlvb-rules > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}

	.voa .jlvb-rules dd {
		text-align: left;
	}

	/* Exact three-part action bar pattern from the requested reference. */
	.voa .jlvb-mobile-booking-bar {
		position: fixed;
		z-index: 999900;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		min-height: calc(78px + env(safe-area-inset-bottom));
		padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
		display: grid;
		grid-template-columns: minmax(72px, .72fr) minmax(100px, .95fr) minmax(108px, 1.05fr);
		align-items: center;
		gap: 7px;
		border-top: 1px solid rgba(6, 29, 49, .14);
		background: rgba(244, 239, 230, .97);
		box-shadow: 0 -12px 36px rgba(6, 29, 49, .13);
		-webkit-backdrop-filter: blur(14px) saturate(140%);
		backdrop-filter: blur(14px) saturate(140%);
	}

	.voa .jlvb-mobile-booking-bar__enquiry,
	.voa .jlvb-mobile-booking-bar__price,
	.voa .jlvb-mobile-booking-bar__open {
		width: 100%;
		min-width: 0;
		min-height: 50px;
		margin: 0 !important;
		padding: 0 7px !important;
		border-radius: 999px !important;
		box-shadow: none !important;
	}

	.voa .jlvb-mobile-booking-bar__enquiry {
		display: flex;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(6, 29, 49, .18);
		background: transparent;
		color: #061d31 !important;
		font-size: 13px !important;
		font-weight: 600;
	}

	.voa .jlvb-mobile-booking-bar__price {
		display: grid !important;
		grid-template-columns: auto auto;
		align-content: center;
		justify-content: center;
		gap: 0 3px;
		border: 0 !important;
		background: transparent !important;
		color: #061d31 !important;
		text-align: center;
	}

	.voa .jlvb-mobile-booking-bar__price strong {
		font-size: 17px !important;
		font-weight: 700;
		white-space: nowrap;
	}

	.voa .jlvb-mobile-booking-bar__price span,
	.voa .jlvb-mobile-booking-bar__price small {
		font-size: 12px !important;
		white-space: nowrap;
	}

	.voa .jlvb-mobile-booking-bar__price small {
		grid-column: 1 / -1;
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	.voa .jlvb-mobile-booking-bar__open {
		border: 0 !important;
		background: linear-gradient(135deg, #0d4f7c, #061d31) !important;
		color: #fff !important;
		font-size: 13px !important;
		font-weight: 700;
	}

	body.jlvb-mobile-booking-open .voa .jlvb-mobile-booking-bar,
	body.jlvb-lightbox-open .voa .jlvb-mobile-booking-bar,
	body.voa-gallery-open .voa .jlvb-mobile-booking-bar {
		display: none !important;
	}

	.voa .jlvb-villa__booking-column {
		position: fixed;
		z-index: 1000000;
		inset: 0;
		padding: max(8px, env(safe-area-inset-top)) 9px max(8px, env(safe-area-inset-bottom));
		align-items: flex-end;
		justify-content: center;
		background: rgba(6, 29, 49, .64);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.voa .jlvb-booking,
	.admin-bar .voa .jlvb-booking {
		width: min(100%, 520px);
		max-height: calc(100dvh - max(16px, env(safe-area-inset-top)));
		padding-right: 16px;
		padding-left: 16px;
		border-radius: 24px;
	}

	/* Nearby guide. */
	.von-intro,
	.von-places,
	.von-practical,
	.von-map {
		width: calc(100% - 24px);
	}

	.von-intro {
		grid-template-columns: minmax(0, 1fr);
		padding-top: calc(104px + env(safe-area-inset-top));
		gap: 26px;
	}

	.von-intro__copy {
		padding: 20px 0 8px;
	}

	.von-intro__visual {
		height: min(72vw, 390px);
		min-height: 270px;
		border-radius: 22px;
	}

	.von-intro__stats {
		grid-column: 1;
		margin-top: 8px;
	}

	.von-section-head {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 40px;
		gap: 24px;
	}

	.von-section-head > p,
	.von-place p,
	.von-journey__summary {
		font-size: 17px !important;
		line-height: 1.58 !important;
	}

	.von-filters {
		overflow-x: auto;
		margin-right: -12px;
		margin-left: -12px;
		padding: 0 12px 7px;
		flex-wrap: nowrap;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.von-filters::-webkit-scrollbar {
		display: none;
	}

	.von-filters button {
		flex: 0 0 auto;
		min-height: 46px;
		padding: 0 18px;
		scroll-snap-align: start;
	}

	.von-places__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.von-place,
	.von-place:nth-child(1),
	.von-place:nth-child(5) {
		grid-column: 1;
		border-radius: 22px;
	}

	.von-place figure,
	.von-place:nth-child(1) figure,
	.von-place:nth-child(5) figure {
		height: min(72vw, 330px);
	}

	.von-place__body {
		min-height: 0;
		padding: 24px 20px 26px;
	}

	.von-practical__row {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 86px;
		padding: 15px 4px;
	}

	.von-practical__row > span,
	.von-practical__row strong {
		grid-column: 1;
	}

	.von-practical__row b {
		grid-column: 2;
		grid-row: 1 / 3;
		align-self: center;
	}

	.von-practical__row i,
	.von-practical__row small {
		display: none;
	}

	.von-journey {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 22px;
	}

	.von-journey__info {
		padding: 32px 22px 26px;
	}

	.von-journey__map {
		width: 100%;
		min-height: 0;
		aspect-ratio: 1672 / 941;
	}

	.von-footer__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.von-footer__actions .voa-pill,
	.von-footer__secondary {
		width: 100%;
		min-height: 54px;
		justify-content: space-between;
	}

	/* Contact page. */
	.vocn-intro,
	.vocn-contact-shell {
		width: calc(100% - 24px);
	}

	.vocn-intro {
		grid-template-columns: minmax(0, 1fr);
		padding: calc(108px + env(safe-area-inset-top)) 0 52px;
		gap: 28px;
	}

	.vocn-intro__text,
	.vocn-form-card > header > span,
	.vocn-details__card > p:not(.vocn-kicker) {
		font-size: 17px !important;
		line-height: 1.58 !important;
	}

	.vocn-contact-shell {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 82px;
	}

	.vocn-form-card {
		padding: 30px 20px;
		border-radius: 22px;
	}

	.vocn-form-card > header,
	.vocn-fields,
	.vocn-details {
		grid-template-columns: minmax(0, 1fr);
	}

	.vocn-fields input,
	.vocn-fields textarea {
		min-height: 54px;
		border-radius: 12px;
	}

	.vocn-consent {
		font-size: 14px !important;
	}

	.vocn-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.vocn-form__footer button {
		width: 100%;
		min-height: 58px;
	}

	.vocn-details {
		position: static;
	}

	.vocn-details figure {
		height: auto;
		min-height: 320px;
	}

	/* Checkout page. */
	.voc-shell {
		width: calc(100% - 24px);
		padding-top: calc(98px + env(safe-area-inset-top));
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.voc-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.voc-flow,
	.voc-summary {
		width: 100%;
		min-width: 0;
	}

	.voc-summary {
		position: static;
		order: -1;
	}

	.voc-progress {
		overflow: hidden;
		margin-bottom: 24px;
		padding: 5px;
	}

	.voc-progress li {
		min-width: 0;
		font-size: 12px;
	}

	.voc-step,
	.voc-summary {
		border-radius: 22px;
	}

	.voc-step {
		padding: 28px 18px;
	}

	.voc-fields,
	.voc-guests,
	.voc-payment-split,
	.voc-phone {
		grid-template-columns: minmax(0, 1fr);
	}

	.voc-fields input,
	.voc-fields select {
		min-height: 52px;
	}

	.voc-guest-control {
		grid-template-columns: minmax(0, 1fr) 44px 36px 44px;
		min-height: 54px;
	}

	.voc-guest-control button {
		width: 44px;
		height: 44px;
	}

	.voc-payment-split > div + div {
		padding-top: 20px;
		padding-left: 0;
		border-top: 1px solid var(--voc-line);
		border-left: 0;
	}

	.voc-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.voc-primary,
	.voc-back {
		width: 100%;
		min-height: 56px;
	}

	.voc-summary__villa {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 13px;
		padding: 13px;
	}

	.voc-summary__villa > img {
		width: 96px;
		height: 108px;
	}

	.voc-summary__pills {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.voc-summary__prices {
		margin-right: 16px;
		margin-left: 16px;
	}

	.voc-bank-preview dl div {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

@media (max-width: 390px) {
	.voa .jlvb-mobile-booking-bar {
		padding-right: 7px;
		padding-left: 7px;
		grid-template-columns: 70px minmax(92px, 1fr) minmax(100px, 1.05fr);
		gap: 5px;
	}

	.voa .jlvb-mobile-booking-bar__enquiry,
	.voa .jlvb-mobile-booking-bar__open {
		font-size: 12px !important;
	}

	.voa .jlvb-mobile-booking-bar__price strong {
		font-size: 16px !important;
	}

	.voh-home__facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.von-intro__stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.von-intro__stats > div + div {
		border-top: 1px solid var(--von-line);
		border-left: 0;
	}

	.voc-progress li {
		font-size: 11px;
	}

	.voc-progress li span {
		display: none;
	}

	.voc-summary__pills {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) and (max-height: 680px) {
	.voh-hero {
		height: 680px;
		min-height: 680px;
	}

	.voa .jlvb-booking,
	.admin-bar .voa .jlvb-booking {
		max-height: calc(100dvh - 8px);
		border-radius: 20px;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	:where(.voh-homepage, .voa, .von, .vocn, .voc) *,
	:where(.voh-homepage, .voa, .von, .vocn, .voc) *::before,
	:where(.voh-homepage, .voa, .von, .vocn, .voc) *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* v3.8 final mobile corrections. These rules intentionally live last. */
@media (max-width: 767px) {
	/* Keep the complete homepage hero photograph behind the desktop-style composition. */
	.voh-hero {
		height: max(760px, 100svh);
		min-height: max(760px, 100svh);
	}

	.voh-hero__stage,
	.voh-hero__image-wrap,
	.voh-hero__image-wrap picture,
	.voh-hero__image {
		width: 100% !important;
		height: 100% !important;
		min-height: 100% !important;
	}

	.voh-hero__image {
		object-fit: cover !important;
		object-position: center center;
	}

	.voh-hero__scrim {
		background:
			linear-gradient(180deg, rgba(3, 12, 22, .12) 0%, rgba(3, 12, 22, .02) 44%, rgba(3, 12, 22, .38) 100%),
			linear-gradient(90deg, rgba(3, 12, 22, .18), transparent 72%);
	}

	.voh-hero__title {
		top: 18% !important;
		right: 10px !important;
		left: 14px !important;
		height: clamp(126px, 39vw, 178px);
	}

	.voh-hero__title-top,
	.voh-hero__title-bottom {
		left: 0 !important;
		font-size: clamp(66px, 20vw, 92px) !important;
		line-height: .8 !important;
	}

	.voh-hero__title-top {
		top: 0 !important;
	}

	.voh-hero__title-bottom {
		top: clamp(52px, 15vw, 69px) !important;
		left: clamp(112px, 34.5vw, 150px) !important;
	}

	.voh-hero__title-top-edge,
	.voh-hero__title-bottom-initial {
		clip-path: none !important;
	}

	.voh-hero__title-note {
		top: 32.5%;
		left: 16px;
		font-size: 9px !important;
	}

	.voh-hero__signature {
		top: 37%;
		right: 16px;
		max-width: 210px;
	}

	.voh-hero__message {
		right: 16px;
		bottom: 7%;
		left: 16px;
	}

	.voh-homepage .voh-hero__where {
		margin: 0 0 -3px !important;
		font-size: clamp(35px, 10vw, 46px) !important;
		line-height: .92 !important;
		letter-spacing: -.055em !important;
		text-align: left !important;
	}

	.voh-homepage .voh-hero__message h2 {
		max-width: 340px;
		font-size: clamp(35px, 10vw, 46px) !important;
		line-height: .92 !important;
	}

	/* Restore the compact walkthrough introduction above the first photograph. */
	.voh-homepage .voh-walkthrough__intro {
		top: 92px;
		left: 18px;
		max-width: calc(100% - 36px);
	}

	.voh-homepage .voh-walkthrough__intro p {
		margin-bottom: 16px !important;
	}

	.voh-homepage .voh-walkthrough__intro h2 {
		max-width: 320px;
		font-size: clamp(36px, 10.2vw, 42px) !important;
		line-height: .92 !important;
		letter-spacing: -.055em !important;
	}

	.voh-homepage .voh-walkthrough__intro > span {
		max-width: 315px;
		margin-top: 14px;
		font-size: 16px !important;
		line-height: 1.42 !important;
	}

	.voh-homepage .voh-walkthrough__visual {
		top: 55%;
	}

	.voh-hero__primary-cta {
		width: min(100%, 310px);
		margin-top: 21px;
	}

	.voh-hero__microcopy,
	.voh-hero__location {
		display: none;
	}

	/* The homepage header is now identical in behaviour to every other page. */
	.voh-homepage > .voh-hero__header,
	.voh-hero__header {
		position: fixed !important;
		top: max(9px, env(safe-area-inset-top)) !important;
		right: 10px !important;
		left: 10px !important;
		width: auto !important;
		height: 60px !important;
		grid-template-columns: 1fr auto !important;
		padding: 7px 8px 7px 16px !important;
		border-radius: 20px !important;
	}

	.admin-bar .voh-homepage > .voh-hero__header,
	.admin-bar .voh-hero__header {
		top: calc(46px + max(9px, env(safe-area-inset-top))) !important;
	}

	.voh-hero__menu-button,
	.voa-header__menu,
	.voc .voa-header__menu {
		position: relative;
		width: 88px !important;
		height: 44px !important;
		display: block !important;
		padding: 0 36px 0 14px !important;
		border: 0 !important;
		border-radius: 999px !important;
		color: #fff !important;
		background: #0d4f7c !important;
	}

	.voh-hero__menu-button::before,
	.voa-header__menu::before,
	.voc .voa-header__menu::before {
		content: "MENU";
		display: block;
		font-size: 11px !important;
		font-weight: 750;
		line-height: 1;
		letter-spacing: .07em;
	}

	.voh-hero__menu-button span,
	.voa-header__menu i,
	.voc .voa-header__menu i {
		position: absolute;
		right: 12px;
		width: 18px;
		height: 1px;
		margin: 0;
		background: #fff !important;
	}

	.voh-hero__menu-button span:first-child,
	.voa-header__menu i:first-child,
	.voc .voa-header__menu i:first-child { top: 17px; }

	.voh-hero__menu-button span:last-child,
	.voa-header__menu i:last-child,
	.voc .voa-header__menu i:last-child { top: 25px; }

	.voh-hero__menu-close,
	.voa-mobile-nav > button {
		display: grid !important;
		place-items: center !important;
		padding: 0 !important;
		text-align: center !important;
		font-size: 0 !important;
		line-height: 1 !important;
	}

	.voh-hero__menu-close {
		position: relative;
	}

	.voh-hero__menu-close::before,
	.voh-hero__menu-close::after,
	.voa-mobile-nav > button::before,
	.voa-mobile-nav > button::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 18px;
		height: 1.5px;
		border-radius: 999px;
		background: currentColor;
		content: "";
	}

	.voh-hero__menu-close::before,
	.voa-mobile-nav > button::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.voh-hero__menu-close::after,
	.voa-mobile-nav > button::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	/* Final walkthrough button stays inside the viewport and starts at the left gutter. */
	.voh-home__button.voh-walkthrough__cta {
		right: auto !important;
		left: 18px !important;
		width: calc(100% - 36px) !important;
		max-width: 420px;
		padding-left: 20px;
	}

	/* Larger, intentionally cropped map: route labels remain readable on a phone. */
	.voh-location-route {
		padding-right: 0;
		padding-left: 0;
	}

	.voh-location-route__head {
		padding-right: 16px;
		padding-left: 16px;
	}

	.voh-location-route__canvas {
		width: calc(100% - 20px);
		height: clamp(265px, 76vw, 330px);
		margin: 0 auto;
		aspect-ratio: auto;
		border-radius: 20px;
	}

	.voh-location-route__map,
	.voh-location-route__canvas svg.voh-location-route__overlay {
		position: absolute !important;
		top: 50% !important;
		left: 42% !important;
		width: auto !important;
		height: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		transform: translate(-42%, -50%);
	}

	/* Croatissimo Villa Speciality geometry, translated to Villa Olivia blue. */
	.voa .jlvb-speciality-tags {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-auto-rows: 56px;
		gap: 9px;
	}

	.voa .jlvb-speciality-tag,
	.voa .jlvb-speciality-tag--extra,
	.voa button.jlvb-speciality-tag--extra,
	.voa button.jlvb-speciality-tag--extra:hover,
	.voa button.jlvb-speciality-tag--extra:focus-visible,
	.voa button.jlvb-speciality-tag--extra.is-selected,
	.voa button.jlvb-speciality-tag--extra[aria-pressed="true"] {
		width: 100% !important;
		height: 56px !important;
		min-width: 0 !important;
		min-height: 56px !important;
		padding: 8px 10px !important;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(13, 79, 124, .2) !important;
		border-radius: 9px !important;
		color: #fff !important;
		background: #0d4f7c !important;
		font-size: 12px !important;
		font-weight: 650;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
		box-shadow: none !important;
	}

	.voa button.jlvb-speciality-tag--extra {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 6px;
	}

	.voa button.jlvb-speciality-tag--extra .jlvb-speciality-tag__name {
		position: static !important;
		width: auto !important;
		display: -webkit-box !important;
		overflow: hidden !important;
		color: inherit !important;
		font-size: 11.5px !important;
		line-height: 1.15;
		text-align: center;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2 !important;
	}

	.voa button.jlvb-speciality-tag--extra .jlvb-speciality-tag__price {
		position: static !important;
		padding: 0 0 0 6px !important;
		border: 0 !important;
		border-left: 1px solid rgba(255, 255, 255, .34) !important;
		color: #fff !important;
		font-size: 10.5px !important;
	}

	.voa button.jlvb-speciality-tag--extra .jlvb-speciality-tag__status {
		display: none !important;
	}

	.voa .jlvb-amenities__tabs {
		align-items: center;
		padding-right: 2px;
		padding-left: 2px;
		scroll-padding-inline: 2px;
	}

	.voa .jlvb-amenities__tabs button {
		width: max-content !important;
		min-width: 0 !important;
		max-width: none !important;
		min-height: 44px;
		padding: 0 15px !important;
		flex: 0 0 auto !important;
		white-space: nowrap;
	}

	/* Both route visuals receive a readable mobile crop. */
	.voa .jlvb-location-visual,
	.von-journey__map {
		height: clamp(290px, 82vw, 370px) !important;
		min-height: 290px !important;
		aspect-ratio: auto !important;
		overflow: hidden;
	}

	.voa .jlvb-location-visual > img,
	.von-journey__map > img {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: cover !important;
		object-position: 42% center !important;
	}

	/* Centred enquiry labels in the card and in the persistent booking bar. */
	.voa .jlvb-booking__enquiry,
	.voa .jlvb-mobile-booking-bar__enquiry {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 6px 8px !important;
		text-align: center !important;
		line-height: 1.15 !important;
	}

	/* Contact actions are real full-width buttons, never squeezed text links. */
	.voh-home__text-link,
	.voa-footer .voa-pill,
	.von-footer .voa-pill {
		width: 100% !important;
		min-width: 0 !important;
		min-height: 56px;
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 8px 8px 8px 20px !important;
		border: 1px solid rgba(255, 255, 255, .32);
		border-radius: 999px;
		color: #fff !important;
		background: rgba(255, 255, 255, .08);
		font-size: 14px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		white-space: nowrap;
	}

	.voh-home__text-link span,
	.voa-footer .voa-pill i,
	.voa-footer .voa-pill span,
	.von-footer .voa-pill i,
	.von-footer .voa-pill span {
		width: 40px;
		height: 40px;
		min-width: 40px;
		display: grid;
		place-items: center;
		border-radius: 50%;
		color: #061d31 !important;
		background: #fff;
	}

	/* Remove inherited Elementor canvas height after the homepage widget. */
	.elementor-widget-villa-olivia-hero,
	.elementor-widget-villa-olivia-hero > .elementor-widget-container,
	.voh-homepage,
	.voh-home--final {
		height: auto !important;
		min-height: 0;
		margin-bottom: 0 !important;
		padding-bottom: 0;
	}

	.e-con:has(.elementor-widget-villa-olivia-hero),
	.elementor-section:has(.elementor-widget-villa-olivia-hero) {
		min-height: 0 !important;
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
}

/* Site-wide mobile booking bar. Accommodation keeps its own interactive copy. */
.voh-site-booking-bar {
	display: none;
}

@media (max-width: 767px) {
	.voh-site-booking-bar {
		position: fixed;
		z-index: 999900;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		min-height: calc(78px + env(safe-area-inset-bottom));
		padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
		display: grid;
		grid-template-columns: minmax(72px, .72fr) minmax(100px, .95fr) minmax(108px, 1.05fr);
		align-items: center;
		gap: 7px;
		border-top: 1px solid rgba(6, 29, 49, .14);
		background: rgba(244, 239, 230, .97);
		box-shadow: 0 -12px 36px rgba(6, 29, 49, .13);
		-webkit-backdrop-filter: blur(14px) saturate(140%);
		backdrop-filter: blur(14px) saturate(140%);
		font-family: "VO Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	}

	.voh-site-booking-bar :where(a) {
		width: 100%;
		min-width: 0;
		min-height: 50px;
		margin: 0 !important;
		padding: 0 7px !important;
		border-radius: 999px !important;
		box-shadow: none !important;
		text-decoration: none !important;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__enquiry {
		display: flex;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(6, 29, 49, .18);
		color: #061d31 !important;
		font-size: 13px !important;
		font-weight: 650;
		line-height: 1.1;
		text-align: center;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__price {
		display: grid;
		grid-template-columns: auto auto;
		align-content: center;
		justify-content: center;
		gap: 0 3px;
		color: #061d31 !important;
		text-align: center;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__price strong {
		font-size: 17px !important;
		font-weight: 750;
		white-space: nowrap;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__price span,
	.voh-site-booking-bar .jlvb-mobile-booking-bar__price small {
		font-size: 12px !important;
		white-space: nowrap;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__price small {
		grid-column: 1 / -1;
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	.voh-site-booking-bar .jlvb-mobile-booking-bar__open {
		display: flex;
		align-items: center;
		justify-content: center;
		border: 0 !important;
		color: #fff !important;
		background: linear-gradient(135deg, #0d4f7c, #061d31) !important;
		font-size: 13px !important;
		font-weight: 750;
		text-align: center;
	}

	/* Never duplicate the interactive Accommodation bar or cover Checkout actions. */
	body:has([data-jlvb-mobile-booking-bar]:not([data-voh-global-booking-bar])) .voh-site-booking-bar,
	body:has([data-voc-checkout]) .voh-site-booking-bar {
		display: none !important;
	}

	/* Homepage already includes its own finished footer; suppress trailing theme canvas. */
	html:has(.voh-homepage),
	body:has(.voh-homepage),
	body:has(.voh-homepage) :where(#page, #content, #primary, #main, .site, .site-content, .content-area, .site-main, .page-content, .entry-content, .elementor, .elementor-section-wrap) {
		height: auto !important;
		min-height: 0 !important;
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}

body:has(.voh-homepage) :where(#site-footer, #colophon, .site-footer, .elementor-location-footer) {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}
}

/* v3.9.1 mobile polish: crisp icons, clear walkthrough intro and full-width host CTA. */
@media (max-width: 767px) {
	.voh-homepage .voh-walkthrough__intro {
		top: 44px !important;
	}

	.voh-homepage .voh-walkthrough__intro p {
		margin-bottom: 12px !important;
	}

	.voh-homepage .voh-walkthrough__intro > span {
		margin-top: 11px !important;
	}

	.voh-homepage .voh-walkthrough__visual {
		top: 58% !important;
		height: min(45svh, 500px) !important;
	}

	.voh-homepage .voh-ui-arrow {
		font-family: Arial, sans-serif !important;
		font-size: 0 !important;
	}

	.voh-homepage .voh-ui-arrow svg,
	.voh-homepage .voh-home__final-foot > a svg {
		width: 18px !important;
		height: 18px !important;
		flex: 0 0 auto;
	}

	.voh-homepage .voh-home__final-actions {
		width: 100% !important;
		align-items: stretch !important;
		gap: 14px !important;
	}

	.voh-homepage .voh-home__final-actions .voh-home__text-link {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: none !important;
		min-height: 62px !important;
		display: flex !important;
		align-self: stretch !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 18px !important;
		margin: 0 !important;
		padding: 8px 9px 8px 22px !important;
		border: 1px solid rgba(255, 255, 255, .32) !important;
		border-radius: 999px !important;
		color: #fff !important;
		background: rgba(255, 255, 255, .08) !important;
		font-size: 14px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		letter-spacing: .035em !important;
		text-align: left !important;
		text-decoration: none !important;
		white-space: nowrap !important;
	}

	.voh-homepage .voh-home__final-actions .voh-home__text-link .voh-ui-arrow {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		display: grid !important;
		place-items: center !important;
		margin: 0 !important;
		border-radius: 50% !important;
		color: #061d31 !important;
		background: #fff !important;
	}
}

/* v3.9.9 — faster, lighter cinematic walkthrough on touch screens. */
@media (max-width: 820px) {
	.voh-homepage .voh-walkthrough__sticky {
		perspective: none;
	}

	/* The blurred duplicate gallery was the largest mobile compositing cost. */
	.voh-homepage .voh-walkthrough__backdrops {
		display: none !important;
	}

	.voh-homepage .voh-walkthrough__ambient {
		background: linear-gradient(180deg, rgba(2, 9, 15, .5), transparent 30%, rgba(2, 9, 15, .14) 54%, rgba(2, 9, 15, .92) 84%);
	}

	.voh-homepage .voh-walkthrough__ambient::after {
		display: none;
	}

	.voh-homepage .voh-walkthrough__scene,
	.voh-homepage .voh-walkthrough__visual,
	.voh-homepage .voh-walkthrough__copy,
	.voh-homepage .voh-walkthrough__room-word {
		will-change: auto;
	}
}

/* Nearby footer must override the shared accommodation footer grid. */
@media (max-width: 767px) {
	.von-footer .voa-footer__inner > .von-footer__actions {
		width: 100% !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		margin: 34px 0 28px !important;
		padding: 0 !important;
		gap: 12px !important;
		border: 0 !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions > a {
		box-sizing: border-box !important;
		grid-column: 1 !important;
		width: 100% !important;
		max-width: none !important;
		min-height: 60px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		margin: 0 !important;
		padding: 8px 8px 8px 21px !important;
		border-radius: 999px !important;
		font-size: 14px !important;
		line-height: 1 !important;
		white-space: nowrap !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions > .voa-pill {
		border-color: #fff !important;
		color: #061d31 !important;
		background: #fff !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions > .von-footer__secondary {
		border: 1px solid rgba(255, 255, 255, .34) !important;
		color: #fff !important;
		background: rgba(255, 255, 255, .08) !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions .von-ui-arrow {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		display: grid !important;
		place-items: center !important;
		margin: 0 !important;
		border-radius: 50% !important;
		font-size: 0 !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions > .voa-pill .von-ui-arrow {
		color: #fff !important;
		background: #061d31 !important;
	}

	.von-footer .voa-footer__inner > .von-footer__actions > .von-footer__secondary .von-ui-arrow {
		color: #061d31 !important;
		background: #fff !important;
	}
}

/* v3.10.3 — mobile walkthrough performance pass.
 * Only the two scenes participating in the current crossfade get compositor
 * layers. Heavy desktop effects stay off phones, while the scene itself slides
 * on the GPU for a continuous, low-cost transition. */
@media (max-width: 820px) {
	.voh-homepage .voh-walkthrough__sticky {
		perspective: none !important;
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}

	.voh-homepage .voh-walkthrough__scene {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		will-change: auto !important;
	}

	.voh-homepage .voh-walkthrough__scene.is-mobile-active {
		will-change: opacity, transform !important;
	}

	.voh-homepage .voh-walkthrough__visual,
	.voh-homepage .voh-walkthrough__copy,
	.voh-homepage .voh-walkthrough__room-word {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		will-change: auto !important;
	}

	.voh-homepage .voh-walkthrough__frame {
		contain: paint;
		box-shadow: 0 18px 48px rgba(0, 0, 0, .3), 0 5px 18px rgba(0, 0, 0, .2) !important;
	}

	.voh-homepage .voh-walkthrough__frame::after {
		background: linear-gradient(180deg, transparent 68%, rgba(0, 0, 0, .18)) !important;
	}

	.voh-homepage .voh-walkthrough__frame img {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translateZ(0);
	}
}

/* v3.10.4 — iOS/Safari walkthrough compositor mode.
 * While the sticky walkthrough is actively scrolling, remove live backdrop
 * blurs from fixed UI that sits above the changing photography. Safari would
 * otherwise re-rasterize those large blur regions on nearly every frame. */
@media (max-width: 820px) {
	body.voh-walkthrough-performance-mode .voh-hero__header {
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		background: rgba(6, 28, 49, .94) !important;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(0, 12, 24, .18) !important;
	}

	body.voh-walkthrough-performance-mode .voh-site-booking-bar {
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		background: #f4efe6 !important;
		box-shadow: 0 -6px 18px rgba(6, 29, 49, .08) !important;
	}

	.voh-homepage .voh-walkthrough__scene.is-mobile-active {
		contain: layout paint style;
	}

	.voh-homepage .voh-walkthrough__frame {
		box-shadow: 0 10px 28px rgba(0, 0, 0, .24) !important;
	}

	.voh-homepage .voh-walkthrough__room-word,
	.voh-homepage .voh-walkthrough__copy,
	.voh-homepage .voh-walkthrough__visual {
		filter: none !important;
	}
}
