/* Villa detail pages (villa-type-1 / villa-type-2). Values = Figma 1440 frame. */

/* ---- Hero ---- */
.tm-villa-hero .elementor-heading-title { white-space: nowrap; }

/* ---- Gallery slider (center slide 622x519, side slides 467x390 at 28% opacity, 37px gaps) ---- */
.tm-villa-slider { position: relative; height: 519px !important; overflow: hidden !important; }
.tm-villa-slider > .tm-villa-slide {
	position: absolute !important; top: 65px; left: 50%; width: 467px !important; height: 390px; margin: 0 !important;
	opacity: 0; z-index: 1; pointer-events: none; transform: translateX(-50%);
	transition: left .5s ease, top .5s ease, width .5s ease, height .5s ease, opacity .5s ease, transform .5s ease;
}
.tm-villa-slide .elementor-widget-container { height: 100%; }
.tm-villa-slide img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; max-width: none !important;
	box-shadow: 6px 10px 15.7px 3px rgba(0, 0, 0, .25); }
.tm-villa-slider > .tm-villa-slide.is-active { top: 0; width: 622px !important; height: 519px; opacity: 1; z-index: 2; pointer-events: auto; }
.tm-villa-slider > .tm-villa-slide.is-prev { left: calc(50% - 348px); transform: translateX(-100%); opacity: .28; pointer-events: auto; cursor: pointer; }
.tm-villa-slider > .tm-villa-slide.is-next { left: calc(50% + 348px); transform: none; opacity: .28; pointer-events: auto; cursor: pointer; }
.tm-villa-nav { position: absolute !important; inset: 0; z-index: 3; pointer-events: none; margin: 0 !important; }
.tm-villa-nav .elementor-widget-container { height: 100%; }
.tm-villa-arrow {
	position: absolute; top: 249px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(70, 70, 70, .7); cursor: pointer; pointer-events: auto; line-height: 0; transition: background .2s;
}
.tm-villa-arrow:hover, .tm-villa-arrow:focus-visible { background: rgba(70, 70, 70, .9); }
.tm-villa-arrow svg { display: block; width: 40px; height: 40px; }
.tm-villa-arrow--prev { left: max(12px, calc(50% - 674px)); }
.tm-villa-arrow--next { left: min(calc(100% - 44px), calc(50% + 676px)); }

/* ---- Features ---- */
.tm-villa-feats, .tm-villa-amens { list-style: none; margin: 0; padding: 0; font-family: Montserrat, sans-serif; color: #123726; }
.tm-villa-feats {
	display: grid; grid-template-columns: 286px 278.5px 301.5px; row-gap: 67px;
	width: 866px; max-width: 100%; margin: 0 auto;
}
.tm-villa-feat { display: grid; grid-template-columns: 64px 1fr; column-gap: 39.5px; align-items: center; margin: 0; }
.tm-villa-feat__ico { display: flex; justify-content: center; align-items: center; height: 54px; }
.tm-villa-feat__ico img { display: block; max-width: none; }
.tm-villa-feat__txt { display: block; font-size: 18px; line-height: 1.22; white-space: nowrap; }
.tm-villa-feat__txt strong { display: block; font-weight: 700; }
.tm-villa-feat__txt span { display: block; margin-top: 10.04px; font-weight: 400; }
.tm-villa-rule { display: block; height: 0; margin: 0 0 0 calc(246 / 1440 * 100%); width: calc(927 / 1440 * 100%);
	border: 0; border-top: 1px solid #123728; margin-left: calc(246 / 1440 * 100%) !important; }

/* ---- Amenities (column centres 327/525/713/898/1076 of 1440) ---- */
.tm-villa-amens { position: relative; height: 285px; }
.tm-villa-amen { position: absolute; top: 0; width: 150px; margin: 0; text-align: center; }
.tm-villa-amen:nth-child(n+6) { top: 179px; }
.tm-villa-amen:nth-child(5n+1) { left: calc(327 / 1440 * 100% - 75px); }
.tm-villa-amen:nth-child(5n+2) { left: calc(525 / 1440 * 100% - 75px); }
.tm-villa-amen:nth-child(5n+3) { left: calc(713 / 1440 * 100% - 75px); }
.tm-villa-amen:nth-child(5n+4) { left: calc(898 / 1440 * 100% - 75px); }
.tm-villa-amen:nth-child(5n+5) { left: calc(1076 / 1440 * 100% - 75px); }
.tm-villa-amen__ico { display: flex; justify-content: center; align-items: center; height: 72px; }
.tm-villa-amen__ico img { display: block; max-width: none; }
.tm-villa-amen__lbl { display: block; margin-top: 10px; font-size: 18px; line-height: 1.22; white-space: nowrap; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.tm-villa-hero .elementor-heading-title { white-space: normal; }
	.tm-villa-slider { height: 440px !important; }
	.tm-villa-slider > .tm-villa-slide { top: 44px; width: 50% !important; height: 352px; }
	.tm-villa-slider > .tm-villa-slide.is-active { top: 0; width: 64% !important; height: 440px; }
	.tm-villa-slider > .tm-villa-slide.is-prev { left: calc(18% - 24px); }
	.tm-villa-slider > .tm-villa-slide.is-next { left: calc(82% + 24px); }
	.tm-villa-arrow { top: 200px; }
	.tm-villa-arrow--prev { left: 16px; }
	.tm-villa-arrow--next { left: auto; right: 16px; }
	.tm-villa-feat__txt { white-space: normal; }
	.tm-villa-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; column-gap: 24px; width: 100%; max-width: 640px; }
	.tm-villa-rule { margin: 0 auto !important; width: 100%; }
	.tm-villa-amens { position: static; height: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 36px; }
	.tm-villa-amen { position: static; width: auto; }
	.tm-villa-amen__lbl { font-size: 16px; white-space: normal; }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.tm-villa-slider { height: 260px !important; }
	.tm-villa-slider > .tm-villa-slide,
	.tm-villa-slider > .tm-villa-slide.is-active { top: 0; width: calc(100% - 40px) !important; height: 260px; }
	.tm-villa-slider > .tm-villa-slide.is-prev,
	.tm-villa-slider > .tm-villa-slide.is-next { left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; }
	.tm-villa-slide img { box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
	.tm-villa-arrow { top: 110px; }
	.tm-villa-arrow--prev { left: 28px; }
	.tm-villa-arrow--next { right: 28px; }
	.tm-villa-feats { grid-template-columns: 1fr; row-gap: 24px; max-width: 320px; }
	.tm-villa-feat { grid-template-columns: 56px 1fr; column-gap: 20px; }
	.tm-villa-feat__ico img { max-width: 48px; height: auto; }
	.tm-villa-feat__txt { font-size: 16px; }
	.tm-villa-feat__txt span { margin-top: 4px; }
	.tm-villa-amens { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; column-gap: 8px; }
	.tm-villa-amen__ico { height: 56px; }
	.tm-villa-amen__ico img { max-width: 44px; max-height: 44px; width: auto; height: auto; }
	.tm-villa-amen__lbl { font-size: 14px; margin-top: 6px; }
}
