/**
 * Terra Kuta — villa widgets styles.
 *
 * Brand: terracotta #C17A5C · black #111111 · warm ivory #F6F0EB ·
 * soft sand #E8D9CF · muted sage #8D9585.
 * Type: Cormorant Garamond (headlines) · Inter (body/ui).
 *
 * Scoped to .tk-* classes only so Brizy & theme styles stay untouched.
 */

.tk-widget,
.tk-widget-body {
	width: 100%;
}

.tk-widget-body {
	position: relative;
}

.tk-empty {
	padding: 56px 24px;
	border: 1px dashed rgba(17, 17, 17, 0.2);
	background: var(--tk-sand, #E8D9CF);
	color: var(--tk-black, #111111);
	font-family: Inter, sans-serif;
	font-size: 15px;
	text-align: center;
}

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

.tk-btn {
	display: inline-block;
	padding: 16px 36px;
	border: 1px solid transparent;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
}

.tk-btn--terracotta {
	background: var(--tk-terracotta, #C17A5C);
	border-color: var(--tk-terracotta, #C17A5C);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-btn--terracotta:hover {
	background: var(--tk-terracotta-deep, #A9664B);
	border-color: var(--tk-terracotta-deep, #A9664B);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-btn--ivory {
	background: var(--tk-ivory, #F6F0EB);
	border-color: var(--tk-ivory, #F6F0EB);
	color: var(--tk-black, #111111);
}

.tk-btn--ivory:hover {
	background: var(--tk-black, #111111);
	border-color: var(--tk-black, #111111);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-btn--outline {
	background: transparent;
	border-color: var(--tk-black, #111111);
	color: var(--tk-black, #111111);
}

.tk-btn--outline:hover {
	background: var(--tk-black, #111111);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-btn--outline-ivory {
	background: transparent;
	border-color: rgba(246, 240, 235, 0.65);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-btn--outline-ivory:hover {
	background: var(--tk-ivory, #F6F0EB);
	color: var(--tk-black, #111111);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                 */
/* -------------------------------------------------------------------- */

.tk-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--tk-black, #111111);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-hero--full {
	min-height: 100vh;
}

.tk-hero--large {
	min-height: 70vh;
}

.tk-hero__media,
.tk-hero__media img,
.tk-hero__media video,
.tk-hero__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tk-hero__fallback {
	background: linear-gradient(160deg, #2E5A6B 0%, #C17A5C 55%, #111111 100%);
}

.tk-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0.12) 45%, rgba(17, 17, 17, 0.18) 100%);
}

.tk-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 48px 128px;
}

.tk-hero--align-center .tk-hero__inner {
	text-align: center;
}

.tk-hero__eyebrow {
	margin: 0 0 24px;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(246, 240, 235, 0.85);
}

.tk-hero__title {
	margin: 0 0 24px;
	max-width: 15em;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(2.75rem, 6.5vw, 5.5rem);
	line-height: 1.05;
	color: var(--tk-ivory, #F6F0EB);
}

.tk-hero--align-center .tk-hero__title {
	margin-left: auto;
	margin-right: auto;
}

.tk-hero__subtitle {
	margin: 0 0 40px;
	font-family: Inter, sans-serif;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	letter-spacing: 0.04em;
	color: rgba(246, 240, 235, 0.92);
}

.tk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.tk-hero--align-center .tk-hero__actions {
	justify-content: center;
}

.tk-hero__scroll {
	position: absolute;
	right: 48px;
	bottom: 48px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(246, 240, 235, 0.8);
}

.tk-hero__scroll span {
	display: block;
	width: 1px;
	height: 48px;
	background: linear-gradient(to bottom, rgba(246, 240, 235, 0.9), transparent);
	animation: tk-scroll-line 2.2s ease infinite;
}

@keyframes tk-scroll-line {
	0% { transform: scaleY(0); transform-origin: top; }
	45% { transform: scaleY(1); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 781px) {
	.tk-hero__inner {
		padding: 0 24px 96px;
	}

	.tk-hero__scroll {
		display: none;
	}
}

/* -------------------------------------------------------------------- */
/* Villa grid & cards                                                   */
/* -------------------------------------------------------------------- */

.tk-grid {
	display: grid;
	grid-template-columns: repeat(var(--tk-columns, 3), minmax(0, 1fr));
	gap: 32px 28px;
}

.tk-grid__footer {
	margin-top: 48px;
	text-align: center;
}

@media (max-width: 1023px) {
	.tk-grid {
		grid-template-columns: repeat(min(var(--tk-columns, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tk-grid {
		grid-template-columns: 1fr;
	}
}

.tk-villa-card {
	display: flex;
	flex-direction: column;
	background: var(--tk-ivory, #F6F0EB);
	color: var(--tk-black, #111111);
	transition: transform 0.45s ease;
}

.tk-villa-card:hover {
	transform: translateY(-6px);
}

.tk-villa-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tk-sand, #E8D9CF);
}

.tk-villa-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tk-villa-card:hover .tk-villa-card__media img {
	transform: scale(1.05);
}

.tk-villa-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 6px 14px;
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tk-ivory, #F6F0EB);
}

.tk-villa-card__badge--available { background: var(--tk-terracotta, #C17A5C); }
.tk-villa-card__badge--reserved { background: var(--tk-sage, #8D9585); }
.tk-villa-card__badge--sold { background: var(--tk-black, #111111); }

.tk-villa-card__body {
	padding: 24px 4px 0;
	border-top: 2px solid var(--tk-black, #111111);
	margin-top: 20px;
}

.tk-villa-card__title {
	margin: 0 0 10px;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-weight: 500;
	font-size: 1.6rem;
	line-height: 1.15;
}

.tk-villa-card__title a {
	color: inherit;
	text-decoration: none;
}

.tk-villa-card__specs {
	margin: 0 0 8px;
	font-family: Inter, sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	color: rgba(17, 17, 17, 0.72);
}

.tk-villa-card__price {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--tk-black, #111111);
}

.tk-villa-card__price .woocommerce-Price-currencySymbol {
	color: var(--tk-terracotta, #C17A5C);
}

/* -------------------------------------------------------------------- */
/* Carousel                                                             */
/* -------------------------------------------------------------------- */

.tk-carousel {
	position: relative;
}

.tk-carousel__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 8px;
}

.tk-carousel__track::-webkit-scrollbar {
	display: none;
}

.tk-carousel__track.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
}

.tk-carousel__slide {
	flex: 0 0 clamp(280px, 32%, 420px);
	scroll-snap-align: start;
}

.tk-carousel__arrow {
	position: absolute;
	top: 34%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(17, 17, 17, 0.25);
	background: var(--tk-ivory, #F6F0EB);
	color: var(--tk-black, #111111);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tk-carousel__arrow:hover {
	background: var(--tk-black, #111111);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-carousel__arrow--prev { left: -12px; }
.tk-carousel__arrow--next { right: -12px; }

/* -------------------------------------------------------------------- */
/* Gallery & lightbox                                                   */
/* -------------------------------------------------------------------- */

.tk-gallery {
	display: grid;
	grid-template-columns: repeat(var(--tk-columns, 3), minmax(0, 1fr));
	gap: var(--tk-gap, 24px);
}

@media (max-width: 1023px) {
	.tk-gallery {
		grid-template-columns: repeat(min(var(--tk-columns, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tk-gallery {
		grid-template-columns: 1fr;
	}
}

.tk-gallery__item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tk-sand, #E8D9CF);
}

.tk-gallery__item--wide {
	grid-column: span 2;
	aspect-ratio: 8 / 3;
}

.tk-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tk-gallery__item:hover img {
	transform: scale(1.05);
}

.tk-gallery__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 40px 20px 16px;
	background: linear-gradient(to top, rgba(17, 17, 17, 0.65), transparent);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.tk-gallery__item:hover .tk-gallery__caption {
	opacity: 1;
}

.tk-gallery__caption span {
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tk-ivory, #F6F0EB);
}

.tk-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	background: rgba(17, 17, 17, 0.94);
	animation: tk-fade-in 0.25s ease;
}

@keyframes tk-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.tk-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.tk-lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(246, 240, 235, 0.35);
	background: transparent;
	color: var(--tk-ivory, #F6F0EB);
	font-size: 24px;
	cursor: pointer;
}

/* -------------------------------------------------------------------- */
/* Stats                                                                */
/* -------------------------------------------------------------------- */

.tk-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 40px 32px;
	padding: 56px 0;
	border-top: 1px solid rgba(17, 17, 17, 0.15);
	border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.tk-stat__value {
	display: block;
	margin-bottom: 8px;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	line-height: 1;
	color: var(--tk-black, #111111);
}

.tk-stat__label {
	display: block;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(17, 17, 17, 0.6);
}

/* -------------------------------------------------------------------- */
/* Features (numbered)                                                  */
/* -------------------------------------------------------------------- */

.tk-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 48px 40px;
}

.tk-feature__number {
	display: block;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tk-terracotta, #C17A5C);
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	color: var(--tk-terracotta, #C17A5C);
}

.tk-feature__title {
	margin: 0 0 12px;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--tk-black, #111111);
}

.tk-feature__text {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(17, 17, 17, 0.72);
}

/* -------------------------------------------------------------------- */
/* FAQ                                                                  */
/* -------------------------------------------------------------------- */

.tk-faq {
	max-width: 780px;
	margin: 0 auto;
}

.tk-faq__item {
	border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.tk-faq__item:first-child {
	border-top: 1px solid rgba(17, 17, 17, 0.15);
}

.tk-faq__question {
	padding: 24px 48px 24px 0;
	list-style: none;
	cursor: pointer;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--tk-black, #111111);
	position: relative;
}

.tk-faq__question::-webkit-details-marker {
	display: none;
}

.tk-faq__question::after {
	content: "+";
	position: absolute;
	right: 8px;
	top: 24px;
	font-family: Inter, sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: var(--tk-terracotta, #C17A5C);
	transition: transform 0.3s ease;
}

.tk-faq__item[open] .tk-faq__question::after {
	transform: rotate(45deg);
}

.tk-faq__answer {
	padding: 0 0 24px;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(17, 17, 17, 0.72);
}

/* -------------------------------------------------------------------- */
/* CTA band                                                             */
/* -------------------------------------------------------------------- */

.tk-cta {
	background: var(--tk-terracotta, #C17A5C);
	color: var(--tk-ivory, #F6F0EB);
}

.tk-cta__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(72px, 10vw, 140px) 48px;
	text-align: center;
}

.tk-cta__heading {
	margin: 0 0 20px;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(2.25rem, 5vw, 4rem);
	line-height: 1.1;
	color: var(--tk-ivory, #F6F0EB);
}

.tk-cta__text {
	margin: 0 0 40px;
	font-family: Inter, sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.03em;
	color: rgba(246, 240, 235, 0.92);
}

.tk-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* -------------------------------------------------------------------- */
/* Contact                                                              */
/* -------------------------------------------------------------------- */

.tk-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}

.tk-contact__label {
	display: block;
	margin-bottom: 8px;
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(17, 17, 17, 0.5);
}

.tk-contact__value {
	font-family: Inter, sans-serif;
	font-size: 1rem;
	color: var(--tk-black, #111111);
}

.tk-contact__value a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--tk-terracotta, #C17A5C);
}

/* -------------------------------------------------------------------- */
/* Distances                                                            */
/* -------------------------------------------------------------------- */

.tk-distances {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.tk-distances {
		grid-template-columns: 1fr;
	}
}

.tk-distances__map {
	aspect-ratio: 4 / 3;
	background: var(--tk-sand, #E8D9CF);
}

.tk-distances__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.tk-distances__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-distances__item {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(17, 17, 17, 0.12);
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	color: var(--tk-black, #111111);
}

.tk-distances__item span:last-child {
	font-weight: 600;
	color: var(--tk-terracotta, #C17A5C);
}
