/* =========================================================
   CCG – SINGLE VILLA
   Tokens first: restyle from here.
   ========================================================= */

.ccg-villa {
	--v-bg: #000;
	--v-surface: var();
	--v-surface: var(--nectar-extra-color-3);
	--v-glass: rgba(255, 255, 255, .06);
	--v-line: rgba(255, 255, 255, .12);
	--v-line-strong: rgba(255, 255, 255, .28);
	--v-text: #fff;
	--v-muted: rgba(255, 255, 255, .6);
	--v-eyebrow: #c2a477;        /* small uppercase labels */
	--v-accent: #fff;            /* primary button bg */
	--v-accent-ink: #000;        /* primary button text */
	--v-radius: var(--border-radius-value, 1rem);
	--v-radius-sm: 10px;
	--v-gutter: clamp(20px, 5vw, 80px);  /* mobile bar padding */
	--v-sticky: 110px;           /* where the enquiry card sticks */
	--v-ease: cubic-bezier(.2, .7, .2, 1);
	color: var(--v-text);
	background: var(--v-bg);
	font-size: 1rem;
	line-height: 1.55;
	padding-bottom: 96px;        /* room for the mobile bar */
}

/*
 * Salient sets overflow:hidden on <body>, which stops position:sticky
 * working inside the page. Undo it here (but leave the menu-open lock alone).
 *
 * overflow-x: clip still cuts off anything wider than the screen, so the page
 * can't be swiped left and right, but unlike hidden it doesn't turn <body>
 * (or the wrapper) into a scroll box, so the sticky enquiry card keeps working
 * at every width.
 */
html:not(.no-overflow-y) body.ccg-villa-page {overflow: visible;overflow-x: clip;}
.container-wrap.ccg-villa-wrap { overflow-x: clip; }

body.ccg-villa-page,
body.ccg-villa-page .container-wrap.ccg-villa-wrap {
	background: #000;
	padding-top: 0;
}

.container-wrap.ccg-villa-wrap > .ccg-villa {
    padding: 0;
}

p.villa-tile__meta {
    margin: 0px 0px 5px;
    opacity: 0.74;
}

p.villa-tile__price {
    font-size: 1rem;
}


.ccg-villa *,
.ccg-villa *::before,
.ccg-villa *::after { box-sizing: border-box; }

.ccg-villa h1, .ccg-villa h2, .ccg-villa h3, .ccg-villa p,
.ccg-villa ul, .ccg-villa li, .ccg-villa dl, .ccg-villa dt, .ccg-villa dd {
	margin: 0;
	padding: 0;
	color: inherit;
}
.ccg-villa ul, .ccg-villa li { list-style: none; }   /* Salient forces disc bullets */
.ccg-villa img { display: block; max-width: 100%; }
.ccg-villa button {color: inherit;cursor: pointer;}
.ccg-villa a { color: inherit; }

/* Salient's .main-content > .row adds bottom spacing we don't need here */
.ccg-villa-wrap .main-content > .row { padding-bottom: 0; }

/* ---------- Icons ---------- */

/* Base .villa-icon: vc-elements/cta-list/cta-list.css */
/* Editor-chosen icons (ACF Icon Picker) */
.villa-icon--svg { stroke: none; fill: currentColor; }
.villa-icon--img { object-fit: contain; }
.villa-icon--dash { width: 24px; height: 24px; font-size: 1.5rem; line-height: 1; }

/* ---------- Type helpers ---------- */

/* .villa-eyebrow: vc-elements/cta-list/cta-list.css */
.villa-muted { color: var(--v-muted); }
.villa-small {font-size: 0.8rem;color: var(--v-muted) !important;line-height: 1.45;}
body .villa-h2 {font-size: 1.75rem;font-weight: 400;margin-bottom: 35px;}

/* ---------- Buttons ---------- */

/* Base .villa-btn and .villa-btn--primary: vc-elements/cta-list/cta-list.css */
.villa-btn--glass {
	background: rgba(0, 0, 0, .5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.villa-btn--sm {padding: var(--button-padding-small);font-size: 0.7rem;line-height: 1;}
.villa-btn--block { width: 100%; }

/* Salient styles every submit in .container-wrap; keep ours consistent */
body div#ajax-content-wrap .container-wrap .ccg-villa button.villa-btn[type=submit] {
	width: 100%;
	font-size: 0.8rem !important;
	letter-spacing: .05em !important;
	padding: var(--button-padding) !important;
	color: #000 !important;
}
body div#ajax-content-wrap .container-wrap .ccg-villa button.villa-btn[type=submit]:hover {background: var(--v-eyebrow) !important;color: #000 !important;opacity: 1;}

.villa-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 8px 0 0PX;
	font-size: 0.85rem;
	text-decoration: none;
}
.villa-link-btn--underline {text-decoration: underline;text-underline-offset: 7px;font-weight: 500;}
.villa-link-btn.is--open .villa-icon { transform: rotate(-90deg); }

.villa-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	transition: background-color .2s;
}
.villa-icon-btn:hover {background: var(--nectar-extra-color-3);}

.ccg-villa :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Section nav ---------- */

.villa-subnav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 9990;
	background: rgba(0, 0, 0, .92);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--v-line);
	transform: translateY(-100%);
	transition: transform .35s var(--v-ease);
}
.villa-subnav.is--visible { transform: none; }
/* Desktop only (villa.js / boat.js only show it from 1000px). Hidden off the
   top it's still there, and its row of links is far wider than a phone. */
.villa-subnav { overflow-x: clip; }
@media (max-width: 999px) { .villa-subnav { display: none; } }
.villa-subnav__inner {display: flex;align-items: center;height: 72px;}
.villa-subnav ul {display: flex;gap: 28px;margin-right: auto;}
.villa-subnav ul a {font-size: 0.875rem;font-weight: 400;text-decoration: none;padding: 26px 0;opacity: 0.5;}
.villa-subnav ul a:hover {box-shadow: inset 0 -2px 0 #c2a477;opacity: 1;}

/* ---------- Top bar ---------- */

.villa-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 25px 0 8px;
}
.villa-crumbs {display: flex;flex-wrap: wrap;gap: 8px;font-size: 0.85rem;color: var(--v-muted);}
.villa-crumbs a { text-decoration: none; }
.villa-crumbs a:hover { color: var(--v-text); }

/* ---------- Gallery (full width) ---------- */

.villa-gallery {position: relative;padding: 0px 10px;}

.villa-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.villa-gallery__track::-webkit-scrollbar { display: none; }

.villa-gallery__item {
	flex: 0 0 100%;
	border-radius: 0;
	scroll-snap-align: start;
	aspect-ratio: 4 / 3;
	max-height: 575px;
	padding: 0;
	border: 0;
	background: var(--v-surface-2);
	overflow: hidden;
}
.villa-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--v-ease), filter .3s; }

.villa-gallery__track { border-radius: var(--v-radius); }
.villa-gallery__count {
	position: absolute;
	right: 20px;
	bottom: 10px;
	padding: 10px 15px;
	line-height: 1;
	border-radius: 999px;
	font-size: 0.8125rem;
	background: rgba(0, 0, 0, .6);
}
.villa-gallery__all { display: none; }

@media (min-width: 1000px) {
	.villa-gallery__track {
		display: grid;
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: repeat(2, 1fr);
		gap: 6px;
		height: clamp(420px, 68vh, 780px);
		overflow: hidden;
	}
	.villa-gallery__item { aspect-ratio: auto; }
	.villa-gallery__item:first-child {grid-row: span 2;max-height: unset;}
	.villa-gallery__item:nth-child(n+6) { display: none; }
	.villa-gallery__item:hover img { transform: scale(1.03); filter: brightness(.85); }
	.villa-gallery--few .villa-gallery__track { grid-template-columns: 1fr; grid-template-rows: 1fr; }
	.villa-gallery--few .villa-gallery__item:first-child { grid-row: auto; }
	.villa-gallery--few .villa-gallery__item:nth-child(n+2) { display: none; }
	.villa-gallery__count { display: none; }
	.villa-gallery__all {display: inline-flex;position: absolute;right: 25px;bottom: 20px;}
}

/* ---------- Layout ---------- */

.villa-layout {display: grid;padding-top: 0;grid-auto-flow: row;}

@media (max-width: 1300px) {
	body .villa-layout {
		grid-template-columns: minmax(0, 1fr) 370px;
		gap: 45px;
		align-items: start;
	}
	.villa-aside {display: grid;}  /* sticky only from 1000px, below */
}

@media (min-width: 1000px) {
	.villa-layout {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 55px;
		align-items: start;
	}
	.villa-aside { position: sticky; top: var(--v-sticky); }
}

.villa-section {padding: 35px 0;border-bottom: 1px solid var(--v-line);}

/* Overview: name, ref, specs */
.villa-overview {padding-top: 0 !important;}
body .villa-badges {display: flex;flex-wrap: wrap;gap: 8px;margin: 0.75rem 0rem 0.5rem;}
.villa-badges li {
	font-size: 0.65rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: var(--button-padding-small);
	border: var(--button-border);
	border-radius: 999px;
	border-color: var(--light-fade);
}
span.villa-meta__ref {
    opacity: 0.4;
}
.villa-title {font-size: clamp(2.25rem, 4vw, 3.25rem);line-height: 1.2;font-weight: 500;letter-spacing: -.01em;}
.villa-meta { margin-top: 10px; color: var(--v-muted); }
/* Ref / area / country are separate spans: .villa-meta__ref, .villa-meta__area, .villa-meta__country */
.villa-meta { display: flex; flex-wrap: wrap; align-items: baseline; }
.villa-meta > span + span::before { content: '·'; margin: 0 .5em; }
.villa-meta > .villa-meta__area + .villa-meta__country::before { content: ','; margin: 0 .3em 0 0; }
.villa-specs {display: flex;flex-wrap: wrap;gap: 7.5px 25px;margin-top: 24px;font-size: 0.95rem;}
.villa-specs li { display: inline-flex; align-items: center; gap: 10px; }

/* Presented by CCG (host row) */
.villa-host {display: flex;gap: 20px;align-items: center;padding: 1.75rem 0 !important;}
.villa-host__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--light-fade, var(--v-line));
	background: var(--v-surface-2);
	font-size: 0.75rem;
	letter-spacing: .1em;
}
.villa-host__mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.villa-host__tick {
	position: absolute;
	right: -4px;
	bottom: -4px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--v-eyebrow);
	color: #000;
}
.villa-host__tick .villa-icon {width: 13px;height: 13px;stroke-width: 2.5;stroke: #fff;}
.ccg-villa .villa-host__title {font-size: 1.15rem;font-weight: 500;line-height: 1.2;margin-bottom: 2.5px;}
.villa-host__text { font-size: 0.875rem; color: var(--v-muted); }
p.villa-host__text {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.7;
}

/* Key features */
.villa-features { display: grid; gap: 28px; }
.villa-features li { display: flex; gap: 20px; }
.villa-features .villa-icon { width: 28px; height: 28px; margin-top: 2px; }
.villa-features h3 {font-size: 1rem;font-weight: 500;margin-bottom: 0.25rem;}
.villa-features p {font-size: 0.875rem;line-height: 1.35;color: var(--v-muted);}

/* About */
body .villa-about__lead {font-size: 1.2rem;line-height: 1.35;margin-bottom: 16px;}
.villa-about__body {color: rgba(255, 255, 255, .8);font-size: 0.95rem;}
.villa-about__body p + p { margin-top: 1em; }
.villa-about__body.is--clamped {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.villa-about .villa-link-btn { margin-top: 12px; }
/* .villa-link-btn's display would beat the hidden attribute: "Show more" only
   shows when villa.js / boat.js find more text than the clamp shows */
.villa-about .villa-link-btn[hidden] { display: none; }

/* Amenities */
body .villa-amenities {display: grid;gap: 20px 32px;margin-bottom: 30px;}
.villa-amenities li {display: flex;align-items: center;gap: 16px;font-size: 0.95rem;}
.villa-amenities .villa-icon {width: 1.45rem;height: 1.45rem;stroke: var(--v-eyebrow);}
@media (min-width: 600px) { .villa-amenities { grid-template-columns: 1fr 1fr; } }
.villa-amenities--list { grid-template-columns: 1fr !important; gap: 0; }
.villa-amenities--list li {padding: 17.5px 0;border-bottom: 1px solid var(--v-line);font-size: 0.9rem;}

/* Rich text (description, house rules, cancellation): the reset above strips
   list spacing everywhere, so give lists and headings their room back here */
.villa-rich > * + * { margin-top: 1em; }
.villa-rich ul,
.villa-rich ol {margin: 1em 0 1.25em;padding-left: 0;}
.villa-rich ul:first-child,
.villa-rich ol:first-child { margin-top: 0; }
.villa-rich ul:last-child,
.villa-rich ol:last-child { margin-bottom: 0; }
.villa-rich ul li {
    font-size: 0.85rem;
}
.villa-rich ol li { list-style: decimal; }
.villa-rich li {padding-left: 0;}
.villa-rich li + li { margin-top: .5em; }
.villa-rich li::marker { color: var(--v-muted); }
.villa-rich h2,
.villa-rich h3,
.villa-rich h4 { margin: 1.75em 0 .6em; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: #fff; }
.villa-rich > h2:first-child,
.villa-rich > h3:first-child,
.villa-rich > h4:first-child { margin-top: 0; }
.villa-rich h2 + ul,
.villa-rich h3 + ul,
.villa-rich h4 + ul,
.villa-rich p + ul { margin-top: .6em; }

/* Arrival & departure */
body .villa-arrive__times {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
	margin-bottom: 32px;
}
.villa-arrive__times li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 1.25rem;
	border-radius: 0.5rem;
	background: var(--nectar-extra-color-3);
}
.villa-arrive__times .villa-icon {width: 1.25rem;height: 1.25rem;margin-bottom: 1rem;color: var(--v-eyebrow);}
.villa-arrive__label {font-size: 0.75rem;line-height: 1;letter-spacing: 0.1rem;text-transform: uppercase;color: var(--v-muted);}
.villa-arrive__value {font-size: 1rem;line-height: 0.95;font-weight: 500;}
.villa-arrive__notes { display: grid; gap: 24px; }
.villa-arrive__notes li { display: flex; gap: 18px; }
.villa-arrive__notes .villa-icon { width: 24px; height: 24px; margin-top: 2px; }
.villa-arrive__notes h3 { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.villa-arrive__notes p { font-size: 0.875rem; color: var(--v-muted); }
@media (min-width: 700px) {
	.villa-arrive__notes { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.villa-arrive__notes li { flex-direction: column; gap: 12px; }
}

/* Things to know: house rules + cancellation side by side */
.villa-know { border-bottom: 0; }
.villa-know__grid {display: grid;gap: 40px;grid-template-columns: 1fr;}
@media (min-width: 1000px) { .villa-know__grid {grid-template-columns: 1fr 1fr;gap: 50px;} }
.villa-know__grid .villa-icon {width: 25px;height: 25px;margin-bottom: 10px;}
.villa-know__grid h3 {font-size: 1.25rem;font-weight: 500;margin-bottom: 14px;}
.villa-know__text, .villa-know .villa-list {font-size: 0.875rem;color: var(--v-muted);}
.villa-list li + li {margin-top: 12.5px;}
.villa-know__text p + p { margin-top: .6em; }

/* ---------- Rates (same look as the boat pricing table) ---------- */

body .villa-rates .villa-h2 { margin: 12px 0 25px; }

.villa-rates__wrap {
	overflow: hidden;
	border-radius: var(--v-radius);
	background: var(--v-surface);
}

/* Salient styles every table (borders, near-white odd rows, a border on each
   row's first cell): these selectors beat its rules, so only ours show */
body .ccg-villa .villa-rates__wrap table.villa-rates__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 1rem;
}
body .ccg-villa .villa-rates__wrap table.villa-rates__table tr > th,
body .ccg-villa .villa-rates__wrap table.villa-rates__table tr > td {
	padding: 16px 24px;
	border: 0;
	background: transparent;
	color: inherit;
	vertical-align: middle;
	font-weight: 400;
}
body .ccg-villa .villa-rates__wrap table.villa-rates__table tr:nth-child(n) { background: transparent; }
body .ccg-villa .villa-rates__wrap table.villa-rates__table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .035); }
body .ccg-villa .villa-rates__wrap table.villa-rates__table thead tr > th {
	padding-top: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--v-line);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--v-muted);
}

.ccg-villa .villa-rates__table th { text-align: left; }
.ccg-villa .villa-rates__table td,
.ccg-villa .villa-rates__table thead th:not(:first-child) {
	width: 24%;
	text-align: right;
	white-space: nowrap;
}
.ccg-villa .villa-rates__table tbody th {
	font-size: 0.95rem;
	line-height: 1.3;
}
.villa-rates__year {
	margin-left: 6px;
	font-size: 0.75rem;
	color: var(--v-muted);
}
.ccg-villa .villa-rates__week {
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1;
}
.ccg-villa .villa-rates__night { color: var(--v-muted); }
.ccg-villa .villa-rates__none { font-size: 0.8rem; color: var(--v-muted); }
/* The top rate (July / August) in gold */
.ccg-villa .villa-rates__table tr.is--peak .villa-rates__week { color: var(--v-eyebrow); }

.ccg-villa .villa-rates__note { margin-top: 16px; font-size: 0.95rem; }
body .villa-rates__small { margin-top: 12px; max-width: 560px; }

/* Phones: two columns, the nightly price under the weekly one */
.villa-rates__sub { display: none; }
@media (max-width: 690px) {
	body .ccg-villa .villa-rates__wrap table.villa-rates__table tr > th,
	body .ccg-villa .villa-rates__wrap table.villa-rates__table tr > td { padding: 14px 18px; }
	body .ccg-villa .villa-rates__wrap table.villa-rates__table tr > :nth-child(3) { display: none; }
	.ccg-villa .villa-rates__table td,
	.ccg-villa .villa-rates__table thead th:not(:first-child) { width: auto; }
	.ccg-villa .villa-rates__table tbody th { font-size: 0.875rem; }
	.ccg-villa .villa-rates__week { font-size: 1rem; }
	.villa-rates__sub {
		display: block;
		margin-top: 5px;
		font-size: 0.75rem;
		font-weight: 400;
		color: var(--v-muted);
	}
	.villa-rates__year { display: block; margin: 2px 0 0; }
}

/* ---------- Enquiry card ---------- */

.villa-aside { padding: 40px 0; }

.villa-card {
	padding: 25px;
	border-radius: var(--v-radius);
	background: var(--nectar-extra-color-3);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.villa-card { scroll-margin-top: 100px; }
body .villa-card__title {
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	line-height: 1;
	font-weight: 300;
	letter-spacing: 0;
	color: var(--nectar-extra-color-2);
}
body .villa-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.villa-card__price strong {font-size: 1.45rem;line-height: 1;font-weight: 400;}
.villa-card__from, .villa-card__price span { color: var(--v-muted); font-size: 0.9375rem; }

/* "Or €100 per person a night, shared by 12 guests" (as on the boat page) */
.ccg-villa p.villa-card__pp {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: -10px 0 20px;
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--v-eyebrow);
}
.villa-card__pp .villa-icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 1px; }

.villa-card__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1.5px solid rgb(255 255 255 / 10%);
	border-radius: var(--v-radius-sm);
	overflow: hidden;
	margin-bottom: 20px;
}

body .villa-field {display: block;padding: 15px 17px;margin: 0;cursor: pointer;background: #00000038;}
body .villa-field + .villa-field {border-left: 1.5px solid rgb(255 255 255 / 10%);}
body .villa-field--full {grid-column: 1 / -1;border-left: 0 !important;border-top: 1.5px solid rgb(255 255 255 / 10%);}
body .villa-field span {
	display: block;
	font-size: 0.625rem;
	line-height: 1;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--v-eyebrow);
}

.villa-card {
    padding: 25px;
}

body .ccg-villa .villa-field input, body .ccg-villa .villa-field select {
	width: 100%;
	padding: 2px 0 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	color: var(--v-text) !important;
	font: inherit;
	font-size: 0.875rem;
	box-shadow: none !important;
	color-scheme: dark;
	-webkit-appearance: none;
	appearance: none;
	min-height: 0;
	height: auto;
	font-weight: 300 !important;
	font-size: 0.85rem !important;
	line-height: 1.5 !important;
	text-align: left;
	text-align-last: left;
}
/* Mobile Safari and Chrome centre a date's value on their own: keep every
   field's value (dates, guests, charter) on the left at every width */
body .ccg-villa .villa-field input::-webkit-date-and-time-value { text-align: left; margin: 0; }
body .villa-field select option { background: #111; }

/* Field states, drawn inside the field and rounded like the box so nothing
   moves: a soft white ring while it's in use, gold when a date can't be booked
   (in the past, check-out not after check-in, half typed: .is--invalid from
   villa.js / boat.js) */
body .villa-field { position: relative; }
body .villa-field::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: calc(var(--v-radius-sm) - 1.5px);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, box-shadow .2s;
}
body .villa-field:focus-within::after { opacity: 1; }
body .villa-field.is--invalid::after { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--nectar-extra-color-2, #c2a477); }
/* The ring shows focus, so the input doesn't need the page's outline box too */
body .ccg-villa .villa-field input:focus-visible,
body .ccg-villa .villa-field select:focus-visible { outline: 0; }
/* The part of the date being typed: a soft highlight, not the system blue */
body .ccg-villa .villa-field input::-webkit-datetime-edit-day-field:focus,
body .ccg-villa .villa-field input::-webkit-datetime-edit-month-field:focus,
body .ccg-villa .villa-field input::-webkit-datetime-edit-year-field:focus {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	border-radius: 3px;
}

body .villa-card__assure {display: grid;gap: 5px;margin-top: 20px;padding-top: 20px;border-top: 1px solid var(--v-line);font-size: 0.8125rem;color: var(--v-muted);}
body .villa-card__assure li { display: flex; align-items: center; gap: 10px; }
body .villa-card__assure .villa-icon { color: var(--v-eyebrow); }

.villa-card__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 0.8125rem;
	color: var(--v-muted) !important;
	text-decoration: none;
	order: 20;
}
.villa-card__rating:hover { color: var(--v-text) !important; }
.villa-stars { display: inline-flex; gap: 2px; color: var(--v-eyebrow); }
.villa-stars .villa-icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* Brochure: outline twin of the enquiry button above it */
.villa-card__brochure {margin-top: 10px;font-size: 0.8rem;letter-spacing: .05em;}
body .villa-card__estimate { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--v-line); }
.villa-card__estimate div {display: flex;justify-content: space-between;gap: 12px;font-weight: 300;}
.villa-card__estimate dt {text-decoration: unset;text-underline-offset: unset;font-weight: 400;}
/* The stay total in white, the split per guest (villa.js) in gold, as on the boat page */
.villa-card__estimate dd {margin: 0;color: var(--v-text) !important;white-space: nowrap;}
.villa-card__estimate .villa-estimate__pp { margin-top: 6px; }
.villa-card__estimate .villa-estimate__pp[hidden] { display: none; }
.villa-card__estimate .villa-estimate__pp dt,
.villa-card__estimate .villa-estimate__pp dd { color: var(--v-eyebrow) !important; }
.villa-card__estimate p {margin-top: 2.5px;font-size: 0.7rem;color: var(--v-muted);max-width: 190px;line-height: 1.3;}

/* Chat with Charlie (bottom of the right column) */
.villa-concierge {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding: 16px;
	/* border: 1px solid var(--v-line); */
	border-radius: var(--v-radius);
	text-decoration: none;
	transition: background-color .25s, border-color .25s;
	background: var(--nectar-extra-color-3);
}
.villa-concierge:hover {background: var(--v-glass);border-color: var(--v-line-strong);}
.villa-concierge__photo {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--light-fade, var(--v-line));
	background: var(--v-surface-2);
	overflow: hidden;
}
.villa-concierge__photo img { width: 100%; height: 100%; object-fit: cover; }
.villa-concierge__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.villa-concierge__title { font-size: 1rem; font-weight: 500; line-height: 1.25; }
.villa-concierge__sub {font-size: 0.8125rem;line-height: 1.25;color: var(--v-muted);}
.villa-concierge__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--v-line-strong);
	transition: background-color .25s, border-color .25s;
	background: var(--nectar-extra-color-3);
}
.villa-concierge__icon .villa-icon { width: 18px; height: 18px; transition: stroke .25s; }
.villa-concierge:hover .villa-concierge__icon { background: #fff; border-color: #fff; }
.villa-concierge:hover .villa-concierge__icon .villa-icon {}

/* Mobile uses the bottom bar instead of the card */
@media (max-width: 999px) {
	.villa-aside {display: flex;flex-direction: column;padding-bottom: 0px;}
}

p.villa-meta {
    margin: 10px 0px 15px;
}

.villa-dialog ul.villa-amenities.villa-amenities--list {
    gap: 0;
    margin: 0;
}

.villa-dialog__body h2.villa-h2 {
    margin-bottom: 5px;
}

.villa-rows div * {
    font-weight: 300;
}

.villa-section {padding: 2.5rem 0;border-bottom: 1px solid var(--v-line);}

/* ---------- Where you'll be ---------- */

.villa-where {padding-top: 55px;}
.villa-where__grid {display: grid;gap: 50px;}
@media (min-width: 750px) { .villa-where__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .villa-where__grid {grid-template-columns: repeat(3, 1fr);gap: 40px;} }

.villa-where__media {
	position: relative;
	aspect-ratio: 11 / 12;
	margin-bottom: 28px;
	max-height: 450px;
	width: 100%;
	overflow: hidden;
	background: var(--nectar-extra-color-3);
}
.villa-where__media > img { width: 100%; height: 100%; object-fit: cover; }
body .villa-where__title {margin: 12.5px 0 7.5px;font-size: clamp(1.625rem, 2.6vw, 2.125rem);font-weight: 400;line-height: 1.1;}

.villa-rows div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid var(--v-line);
	font-size: 0.9rem;
	line-height: 1.35;
}
.villa-rows dd {color: var(--v-muted);text-align: right;font-weight: 300 !important;}
body .villa-where__note {margin-top: 35px;}

/* Rounded like the rest of the page (map + the layout / good to know photos) */
.villa-where__media {
	border-radius: var(--v-radius);
	isolation: isolate;   /* Safari: clip the map iframe to the rounded corners */
}

/* Map: Google embed, darkened, made non-interactive, UI cropped off */
.villa-map iframe {
	position: absolute;
	top: -150px;
	left: 0;
	width: 100%;
	height: calc(100% + 300px);
	border: 0;
	pointer-events: none;
	filter: grayscale(1) invert(.92) contrast(.9) brightness(.95);
}
.villa-map__area {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: rgba(194, 164, 119, .18);
	border: 1px solid rgba(194, 164, 119, .6);
	pointer-events: none;
}
.villa-map__pin {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	color: #000;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.villa-map__open {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .7);
	font-size: 0.75rem;
	text-decoration: none;
}
.villa-map__open:hover { background: #000; }

/* ---------- Plan the whole trip ---------- */

/* The section itself is the CTA with list element: vc-elements/cta-list/cta-list.css.
   Only its spacing on this page is here. */
.ccg-villa .villa-trip {
	margin-top: 75px;
	margin-bottom: 75px;
}

/* ---------- Similar / cards ---------- */

.villa-similar {border-bottom: 0;padding-top: 0;padding-bottom: 75px;}
.villa-similar__more {display: flex;justify-content: center;margin-top: 75px;}
@media (max-width: 690px) { .villa-similar__more .villa-btn { width: 100%; } }

/* Desktop: "View all" sits level with the title (villa and boat pages).
   Below 1000px it drops under the cards, full width. */
@media (min-width: 1000px) {
	.ccg-villa .villa-similar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 24px;
	}
	.ccg-villa .villa-similar > .villa-h2 { grid-area: 1 / 1; margin-bottom: 0; }
	.ccg-villa .villa-similar > .villa-similar__more { grid-area: 1 / 2; margin: 0; }
	.ccg-villa .villa-similar > .villa-cards { grid-column: 1 / -1; margin-top: 25px; }
}
.villa-cards { display: grid; gap: 32px 24px; }
@media (min-width: 600px) { .villa-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .villa-cards { grid-template-columns: repeat(3, 1fr); } }

.villa-tile__link { display: block; text-decoration: none; }
.villa-tile__media {
	position: relative;
	aspect-ratio: 20 / 19;
	border-radius: var(--v-radius);
	overflow: hidden;
	background: var(--v-surface-2);
}
.villa-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--v-ease); }
.villa-tile__link:hover .villa-tile__media img { transform: scale(1.04); }
.villa-tile__badge {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 0.75rem;
	line-height: 0.8;
	font-weight: 500;
}
.villa-tile__body {padding-top: 17.5px;font-size: 0.9rem !important;}
.villa-tile__title {font-size: 1.35rem;font-weight: 500;margin-bottom: 7.5px !important;}
.villa-tile__place, .villa-tile__meta { color: var(--v-muted); }
.villa-tile__price { margin-top: 4px; }
.villa-tile__price strong { font-weight: 500; }

/* ---------- Mobile bar ---------- */

.villa-bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: rgba(0, 0, 0, .94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--v-line);
}
p.villa-bar__price {
    line-height: 1.4;
}
.villa-bar__price { font-size: 0.875rem; }
.villa-bar__price strong { font-size: 1.0625rem; font-weight: 500; }
.villa-bar__name {
	display: block;
	max-width: 20ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--v-muted);
}
.villa-bar { transition: transform .35s var(--v-ease); }
.villa-bar.is--hidden { transform: translateY(110%); }
@media (min-width: 1000px) {
	.villa-bar { display: none; }
	.ccg-villa { padding-bottom: 48px; }
}

/* ---------- Dialogs ---------- */

html.villa-lock { overflow: hidden; }

.villa-dialog {
	padding: 0;
	border: 0;
	color: var(--v-text);
	background: var(--v-bg);
	max-width: none;
	max-height: none;
}
.villa-dialog::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.villa-dialog[open] { animation: villa-in .35s var(--v-ease); }
@keyframes villa-in { from { opacity: 0; transform: translateY(24px); } }

.villa-dialog__bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0.9rem 15px;
	background: inherit;
	border-bottom: 1px solid var(--v-line);
}
.villa-dialog__title {font-weight: 500;text-transform: capitalize;font-size: 1.2rem;}
.villa-dialog__body {padding: 1.5rem 20px;}

/* Full screen (photos) */
.villa-dialog--full { width: 100vw; height: 100dvh; overflow-y: auto; }
.villa-photos {
	max-width: 860px;
	margin: 0 auto;
	padding: 20px 15px 65px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.villa-photos__item { padding: 0; border: 0; background: var(--v-surface-2); scroll-margin-top: 80px; }
.villa-photos__item:nth-child(3n+1) { grid-column: span 2; }
.villa-photos__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.villa-photos__item:nth-child(3n+1) img { aspect-ratio: 16 / 10; }

/* Sheet (amenities) */
.villa-dialog--sheet {
	width: min(640px, 100vw);
	max-height: 90dvh;
	overflow-y: auto;
	border-radius: var(--v-radius);
	background: var(--nectar-extra-color-3);
	border: 1px solid var(--v-line);
}
@media (max-width: 640px) {
	.villa-dialog--sheet { margin: auto 0 0; max-height: 94dvh; border-radius: var(--v-radius) var(--v-radius) 0 0; }
}

/* Viewer */
.villa-viewer { width: 100vw; height: 100dvh; overflow: hidden; }
.villa-viewer__bar {position: absolute;inset: 0 0 auto;z-index: 2;display: flex;justify-content: space-between;align-items: center;padding: 12px 16px;padding-bottom: 50px;font-size: 0.875rem;background: linear-gradient(180deg, #000000ad, transparent);}
.villa-viewer__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.villa-viewer__track::-webkit-scrollbar { display: none; }
.villa-viewer__track figure {flex: 0 0 100%;margin: 0;scroll-snap-align: center;display: grid;place-items: center;padding: 0;}
.villa-viewer__track img {max-width: 100%;max-height: 100%;width: auto;height: auto;object-fit: cover;height: 100vh;width: 100vw;}
.villa-viewer__nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); }
.villa-viewer__nav.is--prev { left: 24px; }
.villa-viewer__nav.is--next { right: 24px; }
@media (max-width: 749px) { .villa-viewer__nav { display: none; } }


@media (prefers-reduced-motion: reduce) {
	.ccg-villa *, .villa-dialog[open] { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


@media (max-width: 999px) {
	/* minmax(0, ...): a plain 1fr column can't shrink below its widest
	   content, which pushed the page wider than the screen */
	body .villa-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
}
	.villa-similar__more a.villa-btn {
    width: 100%;
}
	.villa-similar {
    border-bottom: 0;
    padding-top: 0;
    padding-bottom: 35px;
	}
	.villa-similar__more {
		margin-top: 45px;
	}
}

@media (max-width: 690px) {
	section.villa-section.villa-host {
    padding: 25px 0px;
    gap: 15px;
}
	section#amenities  button.villa-btn {width: 100%;}
	.villa-card__fields {
    grid-template-columns: 1fr;
}
	label.villa-field:first-child {
    border-bottom: 1.5px solid rgb(255 255 255 / 10%);
}

label.villa-field:nth-child(2) {
    border-left: unset;
}
}

@media (max-width: 690px) {
	.villa-gallery__item {
	    flex: 0 0 100%;
	    border-radius: 0;
	    scroll-snap-align: start;
	    aspect-ratio: 3 / 3;
	}
	.villa-similar__more {display: flex;justify-content: center;margin-top: 45px;}
	.ccg-villa .villa-trip {
		margin-top: 55px;
		margin-bottom: 55px;
	}
	.villa-similar {
        border-bottom: 0;
        padding-top: 0;
        padding-bottom: 55px;
    }
}

@media (max-width: 479px) {
	.villa-badges li {
		margin-left: -2px;
		font-size: 0.6rem;
	}
	.villa-card {
	    padding: 22px 20px;
	}
	body .villa-where__note {
	    margin-top: 35px;
	    text-align: center;
	    max-width: 280px;
	    margin-left: auto;
	    margin-right: auto;
	}
}

/* ---------- WhatsApp QR pop-up (desktop) ---------- */

/* parts/whatsapp-qr.php, also on the boat page: the homepage WhatsApp
   element's pop-up (vc-elements/whatsapp/whatsapp.css) showing the Chat
   with Charlie QR code as an image */
.whatsapp-modal.villa-qr { --wa-btn-bg: #000; --wa-btn-color: #fff; }
.villa-qr .whatsapp-modal__qr-canvas { background: none; }
.villa-qr .whatsapp-modal__qr-canvas img { display: block; width: 100%; height: 100%; }
