/* =========================================================
 * Villa Services Tabs
 * Defaults here are overridden by the Elementor Style controls.
 * ======================================================= */

.vst-wrap {
	display: grid;
	grid-template-columns: var(--vst-left-col, 320px) 1fr;
	column-gap: 48px;
	align-items: start;
}

.vst-left {
	align-self: start;
}

/* ---------------- Left panel ---------------- */

.vst-eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8a8a;
	margin-bottom: 20px;
}

.vst-eyebrow::before {
	content: "\25C6";
	color: #a97b46;
	margin-right: 8px;
	font-size: 10px;
}

.vst-heading {
	font-size: 40px;
	line-height: 1.1;
	font-weight: 500;
	margin: 0 0 16px;
	color: #162350;
}

.vst-subheading {
	color: #6d6d6d;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 28px;
	max-width: 280px;
}

/* ---------------- Buttons ---------------- */
.vst-buttons-stack {
	position: relative;
	margin-top: 28px;
}

/* The mobile copy is hidden on desktop; the desktop copy is hidden on mobile. */
.vst-buttons-stack--mobile {
	display: none;
}

.vst-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vst-buttons[hidden] {
	display: none;
}

.vst-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 4px;
	overflow: visible;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.vst-btn--primary {
	background: #162350;
	color: #fff;
}

.vst-btn--primary:hover {
	background: #a97b46;
	color: #fff;
}

.vst-btn--ghost {
	background: transparent;
	color: #162350;
	border-color: #d8d8d8;
}

.vst-btn--ghost:hover {
	background: #162350;
	color: #fff;
	border-color: #162350;
}

/* Diamond hover animation: left slides out, right slides in */
.vst-btn-label {
	position: relative;
	display: inline-block;
}

.vst-btn-label::before,
.vst-btn-label::after {
	content: "\25C6"; /* diamond */
	position: absolute;
	top: 50%;
	font-size: 0.7em;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.vst-btn-label::before {
	left: -1.5em;
	transform: translateY(-50%);
	opacity: 1;
}

.vst-btn-label::after {
	right: -1.5em;
	transform: translateY(-50%) translateX(-8px);
	opacity: 0;
}

.vst-btn:hover .vst-btn-label::before {
	opacity: 0;
	transform: translateY(-50%) translateX(8px);
}

.vst-btn:hover .vst-btn-label::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* Diamond colours (overridable). Ghost button icon = navy blue #162350 */
.vst-btn--primary .vst-btn-label::before,
.vst-btn--primary .vst-btn-label::after {
	color: #a97b46;
}

.vst-btn--ghost .vst-btn-label::before,
.vst-btn--ghost .vst-btn-label::after {
	color: #162350;
}

.vst-btn--ghost:hover .vst-btn-label::before,
.vst-btn--ghost:hover .vst-btn-label::after {
	color: #fff;
}

/* ---------------- Tabs ---------------- */
.vst-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

.vst-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	background-color: transparent;
	background-image: none;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a4a4a;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.vst-tab.is-active {
	background-color: #162350;
	border-color: #162350;
	color: #fff;
}

/* Tab diamond hover animation (matches the buttons) */
.vst-tab-label {
	position: relative;
	display: inline-block;
}

.vst-tab-label::before,
.vst-tab-label::after {
	content: "\25C6"; /* diamond */
	position: absolute;
	top: 50%;
	font-size: 0.7em;
	color: #a97b46;
	transition: opacity 0.25s ease, transform 0.25s ease, color 0.3s ease;
}

/* Hidden by default; the diamond only appears on the active tab and on hover */
.vst-tab-label::before {
	left: -1.4em;
	transform: translateY(-50%) translateX(-6px);
	opacity: 0;
}

.vst-tab-label::after {
	right: -1.4em;
	transform: translateY(-50%);
	opacity: 0;
}

.vst-tab.is-active .vst-tab-label::before,
.vst-tab:hover .vst-tab-label::before {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* ---------------- Panels & cards ---------------- */
.vst-panel[hidden] {
	display: none;
}

.vst-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.vst-card {
	position: relative;
	display: block;
	height: 260px;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
}

.vst-card-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #2a2a2a;
	transition: transform 0.4s ease;
}

.vst-card:hover .vst-card-media {
	transform: scale(1.05);
}

.vst-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

.vst-card-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 500;
	z-index: 1;
}

.vst-empty {
	color: #999;
	grid-column: 1 / -1;
}

/* =========================================================
 * Responsive
 * These rules set grid-template-columns / flex-direction directly,
 * so they win over the Elementor control values (which only set the
 * --vst-left-col variable and desktop card columns).
 * ======================================================= */

/* Tablet and below: single column. Desktop buttons hidden, a separate
   button block appears at the very bottom, after the cards. */
@media (max-width: 1024px) {
	.vst-wrap {
		display: block;
	}
	.vst-buttons-stack--desktop {
		display: none;
	}
	.vst-buttons-stack--mobile {
		display: block;
		margin-top: 32px;
	}
	.vst-subheading {
		max-width: 100%;
	}
	.vst-heading {
		font-size: 34px;
	}
}

/* Phones: stack the two tab buttons, keep cards 2-up */
@media (max-width: 767px) {
	.vst-tabs {
		grid-template-columns: 1fr;
	}
	.vst-heading {
		font-size: 30px;
	}
	.vst-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.vst-btn {
		width: 100%;
	}
}

/* Small phones */
@media (max-width: 480px) {
	.vst-heading {
		font-size: 26px;
	}
	.vst-card-title {
		font-size: 15px;
	}
}


/* Left panel is not sticky on tablet/mobile (layout stacks) */
@media (max-width: 1024px) {
	.vst-left { position: static !important; top: auto !important; }
}


/* Sticky tabs: no padding when pinned; disabled on tablet/mobile */
.vst-tabs { padding-block: 0; }
@media (max-width: 1024px) {
	.vst-tabs { position: static !important; top: auto !important; }
}
