/**
 * Frontend styles for The Appartment Elementor widgets.
 */

.ta-loop-grid {
	--ta-loop-grid-columns: 3;
	--ta-loop-grid-columns-desktop: 3;
	--ta-loop-grid-columns-tablet: 2;
	--ta-loop-grid-columns-mobile: 1;
	--ta-loop-grid-border: #e5e5e5;
	--ta-loop-grid-text: #1f1f1f;
	--ta-loop-grid-muted: #666;
	clear: both;
	display: block;
	position: relative;
}

.ta-loop-grid--columns-1 {
	--ta-loop-grid-columns: 1;
}

.ta-loop-grid--columns-2 {
	--ta-loop-grid-columns: 2;
}

.ta-loop-grid--columns-3 {
	--ta-loop-grid-columns: 3;
}

.ta-loop-grid--columns-4 {
	--ta-loop-grid-columns: 4;
}

.ta-loop-grid--columns-5 {
	--ta-loop-grid-columns: 5;
}

.ta-loop-grid--columns-6 {
	--ta-loop-grid-columns: 6;
}

.ta-loop-grid__toolbar {
	clear: both;
	display: block !important;
	margin: 0 0 28px;
	opacity: 1 !important;
	overflow: visible;
	position: relative;
	visibility: visible !important;
	width: 100%;
	z-index: 20;
}

.ta-loop-grid__controls {
	align-items: stretch;
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100%;
}

.ta-loop-grid__search,
.ta-loop-grid__term {
	appearance: auto;
	background-color: #fff;
	border: 1px solid var(--ta-loop-grid-border);
	border-radius: 6px;
	color: var(--ta-loop-grid-text);
	display: block !important;
	font: inherit;
	min-height: 44px;
	opacity: 1 !important;
	padding: 10px 12px;
	visibility: visible !important;
}

.ta-loop-grid__search {
	flex: 1 1 260px;
}

.ta-loop-grid__term {
	flex: 0 1 240px;
}

.ta-loop-grid__template-switcher {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 8px;
}

.ta-loop-grid__template-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ta-loop-grid-border);
	border-radius: 6px;
	color: var(--ta-loop-grid-text);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 8px;
	width: 44px;
}

.ta-loop-grid__template-button.is-active {
	border-color: var(--ta-loop-grid-text);
	box-shadow: inset 0 0 0 1px var(--ta-loop-grid-text);
}

.ta-loop-grid__template-button i,
.ta-loop-grid__template-button svg {
	display: block;
	font-size: 22px;
	height: 22px;
	line-height: 1;
	width: 22px;
}

.ta-loop-grid__template-button svg {
	fill: currentColor;
}

.ta-loop-grid__template-button-label {
	font-size: 12px;
	line-height: 1;
}

.ta-loop-grid__status {
	color: var(--ta-loop-grid-muted);
	font-size: 14px;
	min-height: 20px;
	position: relative;
	z-index: 2;
}

.ta-loop-grid__content {
	clear: both;
	position: relative;
	z-index: 1;
}

.ta-loop-grid__results {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--ta-loop-grid-columns-desktop), minmax(0, 1fr));
	position: relative;
}

.ta-loop-grid.is-loading:not(.is-loading-message) .ta-loop-grid__content {
	opacity: 0.45;
	pointer-events: none;
}

.ta-loop-grid__loading {
	align-items: center;
	color: var(--ta-loop-grid-muted);
	display: flex;
	font-size: 16px;
	justify-content: center;
	min-height: 180px;
	padding: 32px;
	text-align: center;
	width: 100%;
}

.ta-loop-grid.is-switching-template .ta-loop-grid__content {
	min-height: var(--ta-loop-grid-loading-height, 240px);
	opacity: 0;
	overflow: hidden;
}

.ta-loop-grid__item {
	border: 1px solid var(--ta-loop-grid-border);
	border-radius: 8px;
	overflow: hidden;
}

.ta-loop-grid__item--template {
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.ta-loop-grid--equal-height .ta-loop-grid__results {
	align-items: stretch;
}

.ta-loop-grid--equal-height .ta-loop-grid__item {
	display: flex;
	height: 100%;
}

.ta-loop-grid--equal-height .ta-loop-grid__item--template > .elementor,
.ta-loop-grid--equal-height .ta-loop-grid__link {
	flex: 1;
	width: 100%;
}

.ta-loop-grid__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.ta-loop-grid__image {
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
	overflow: hidden;
}

.ta-loop-grid__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ta-loop-grid__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
}

.ta-loop-grid__title {
	color: var(--ta-loop-grid-text);
	font-size: 20px;
	line-height: 1.25;
	margin: 0;
}

.ta-loop-grid__excerpt {
	color: var(--ta-loop-grid-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ta-loop-grid__button {
	align-self: flex-start;
	color: var(--ta-loop-grid-text);
	font-size: 14px;
	font-weight: 600;
	margin-top: auto;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ta-loop-grid__empty {
	grid-column: 1 / -1;
	margin: 0;
}

.ta-loop-grid__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 28px;
}

.ta-loop-grid__page {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ta-loop-grid-border);
	border-radius: 6px;
	color: var(--ta-loop-grid-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	justify-content: center;
	min-height: 38px;
	min-width: 38px;
	padding: 8px 12px;
}

.ta-loop-grid__page.is-active {
	background: var(--ta-loop-grid-text);
	border-color: var(--ta-loop-grid-text);
	color: #fff;
	cursor: default;
}

@media (max-width: 1024px) {
	.ta-loop-grid__results {
		grid-template-columns: repeat(var(--ta-loop-grid-columns-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ta-loop-grid__controls {
		display: grid;
	}

	.ta-loop-grid__template-switcher {
		justify-content: flex-start;
	}

	.ta-loop-grid__results {
		grid-template-columns: repeat(var(--ta-loop-grid-columns-mobile), minmax(0, 1fr));
	}
}

/* Product Carousel */
.ta-product-carousel {
	--ta-pc-gap: 28px;
	--ta-pc-intro-width: 32%;
	--ta-pc-visible: 2.15;
	align-items: center;
	display: grid;
	grid-template-columns: var(--ta-pc-intro-width) minmax(0, 1fr);
	position: relative;
	width: 100%;
}

.ta-product-carousel--clip {
	overflow: hidden;
}

.ta-product-carousel__intro {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-right: clamp(24px, 4vw, 72px);
	position: relative;
	z-index: 2;
}

.ta-product-carousel__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ta-product-carousel__eyebrow,
.ta-product-carousel__title,
.ta-product-carousel__description,
.ta-product-carousel__description p,
.ta-product-carousel__card-title,
.ta-product-carousel__card-text {
	margin: 0;
}

.ta-product-carousel__eyebrow {
	font-size: 17px;
	line-height: 1.35;
}

.ta-product-carousel__title {
	font-size: clamp(36px, 3vw, 54px);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ta-product-carousel__description {
	font-size: 17px;
	line-height: 1.6;
	margin-top: 4px;
	max-width: 28ch;
}

.ta-product-carousel__navigation {
	display: flex;
	gap: 10px;
	margin-top: 42px;
}

.ta-product-carousel__arrow {
	align-items: center;
	appearance: none;
	border-style: solid;
	box-shadow: none;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	margin: 0;
	padding: 0;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.ta-product-carousel__arrow svg {
	fill: currentColor;
}

.ta-product-carousel__arrow:disabled {
	cursor: default;
	opacity: 0.35;
}

.ta-product-carousel__arrow:focus-visible,
.ta-product-carousel__viewport:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ta-product-carousel__viewport {
	cursor: grab;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding: 2px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x pan-y pinch-zoom;
	user-select: none;
	-webkit-user-select: none;
}

.ta-product-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.ta-product-carousel__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.ta-product-carousel__viewport.is-repositioning {
	scroll-behavior: auto !important;
	scroll-snap-type: none;
}

.ta-product-carousel__viewport.is-dragging a {
	pointer-events: none;
}

.ta-product-carousel__track {
	align-items: stretch;
	display: flex;
	gap: var(--ta-pc-gap);
	width: max-content;
}

.ta-product-carousel__card {
	color: inherit;
	display: flex;
	flex: 0 0 calc((100cqw - (var(--ta-pc-visible) - 1) * var(--ta-pc-gap)) / var(--ta-pc-visible));
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	scroll-snap-align: start;
	text-decoration: none;
}

a.ta-product-carousel__card {
	cursor: pointer;
}

.ta-product-carousel__card img {
	pointer-events: none;
	-webkit-user-drag: none;
}

.ta-product-carousel__viewport {
	container-type: inline-size;
}

.ta-product-carousel--equal-height .ta-product-carousel__card {
	align-self: stretch;
}

.ta-product-carousel__image {
	background: #e9e5e1;
	flex: 0 0 auto;
	overflow: hidden;
	width: 100%;
}

.ta-product-carousel__image img {
	display: block;
	height: 100%;
	object-position: center;
	transition: transform 400ms ease;
	width: 100%;
}

a.ta-product-carousel__card:hover .ta-product-carousel__image img {
	transform: scale(1.025);
}

.ta-product-carousel__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
}

.ta-product-carousel__card-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
}

.ta-product-carousel__card-text {
	color: #5b5b61;
	font-size: 17px;
	line-height: 1.4;
}

@supports not (width: 1cqw) {
	.ta-product-carousel__card {
		flex-basis: calc((100vw - var(--ta-pc-intro-width) - (var(--ta-pc-visible) - 1) * var(--ta-pc-gap)) / var(--ta-pc-visible));
	}
}

@media (max-width: 767px) {
	.ta-product-carousel {
		align-items: start;
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-product-carousel__intro {
		padding-bottom: 32px;
		padding-right: 0;
	}

	.ta-product-carousel__description {
		max-width: 38ch;
	}

	.ta-product-carousel__navigation {
		margin-top: 24px;
	}

	.ta-product-carousel__viewport {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-product-carousel__viewport {
		scroll-behavior: auto;
	}

	.ta-product-carousel__image img,
	.ta-product-carousel__arrow {
		transition: none;
	}
}

/* Sticky media showcase */
.ta-sticky-showcase {
	--ta-ss-active-shift: 20px;
	--ta-ss-left: 48%;
	--ta-ss-right: 48%;
	--ta-ss-media-gap: 28px;
	--ta-ss-media-height: 72vh;
	--ta-ss-media-height-a: 72vh;
	--ta-ss-media-height-b: 48vh;
	align-items: start;
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, var(--ta-ss-left)) minmax(0, var(--ta-ss-right));
	justify-content: space-between;
	width: 100%;
}

.elementor-widget-the_appartment_sticky_media_showcase,
.elementor-widget-the_appartment_sticky_media_showcase > .elementor-widget-container {
	overflow: visible !important;
}

.ta-sticky-showcase__left {
	align-self: stretch;
}

.ta-sticky-showcase__left,
.ta-sticky-showcase__gallery {
	min-width: 0;
}

.ta-sticky-showcase__sticky {
	position: sticky;
	top: 40px;
}

.ta-sticky-showcase__title,
.ta-sticky-showcase__description,
.ta-sticky-showcase__description p,
.ta-sticky-showcase__item-title,
.ta-sticky-showcase__item-description {
	margin: 0;
}

.ta-sticky-showcase__title {
	font-size: clamp(22px, 2vw, 34px);
	font-weight: 400;
	line-height: 1.15;
}

.ta-sticky-showcase__description {
	font-size: clamp(18px, 1.75vw, 28px);
	line-height: 1.55;
	margin-top: clamp(28px, 5vw, 72px);
	max-width: 35em;
}

.ta-sticky-showcase__intro {
	margin-bottom: 48px;
}

.ta-sticky-showcase__intro:empty {
	display: none;
}

.ta-sticky-showcase__items {
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	padding-right: calc(var(--ta-ss-active-shift) + 2px);
}

.ta-sticky-showcase__item {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #5f5a57;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: block;
	font: inherit;
	padding: 12px 0;
	text-align: left;
	width: 100%;
}

.ta-sticky-showcase .ta-sticky-showcase__item:hover,
.ta-sticky-showcase .ta-sticky-showcase__item:focus,
.ta-sticky-showcase .ta-sticky-showcase__item:active {
	background-color: transparent;
	color: inherit;
}

.ta-sticky-showcase__item:first-child {
	border-top: 1px solid #5f5a57;
}

.ta-sticky-showcase__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.ta-sticky-showcase__item-title {
	display: block;
	font-size: clamp(20px, 1.75vw, 30px);
	line-height: 1.2;
	transform: translateX(0);
	transition: color 260ms ease, transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ta-sticky-showcase__item.is-active .ta-sticky-showcase__item-title {
	transform: translateX(var(--ta-ss-active-shift));
}

.ta-sticky-showcase__item-description {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	margin-top: 6px;
	opacity: 0.75;
}

.ta-sticky-showcase__gallery {
	display: flex;
	flex-direction: column;
	gap: var(--ta-ss-media-gap);
}

.ta-sticky-showcase__group {
	display: flex;
	flex-direction: column;
	gap: var(--ta-ss-media-gap);
	scroll-margin-top: 24px;
}

.ta-sticky-showcase__media {
	background: #eeeae6;
	height: var(--ta-ss-media-height);
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ta-sticky-showcase--alternate-heights .ta-sticky-showcase__media:nth-child(odd) {
	height: var(--ta-ss-media-height-a);
}

.ta-sticky-showcase--alternate-heights .ta-sticky-showcase__media:nth-child(even) {
	height: var(--ta-ss-media-height-b);
}

.ta-sticky-showcase__media img,
.ta-sticky-showcase__media video,
.ta-sticky-showcase__media iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.ta-sticky-showcase__media img,
.ta-sticky-showcase__media video {
	object-fit: cover;
}

.ta-sticky-showcase__media--video iframe {
	position: absolute;
	inset: 0;
}

@media (max-width: 767px) {
	.ta-sticky-showcase {
		display: block;
	}

	.ta-sticky-showcase__sticky {
		position: static;
	}

	.ta-sticky-showcase__left {
		margin-bottom: 32px;
	}

	.ta-sticky-showcase__description {
		margin-top: 24px;
	}

	.ta-sticky-showcase__intro {
		margin-bottom: 28px;
	}

	.ta-sticky-showcase__items {
		padding-right: 0;
	}

	.ta-sticky-showcase__item.is-active .ta-sticky-showcase__item-title {
		transform: none;
	}

	.ta-sticky-showcase__gallery {
		gap: var(--ta-ss-media-gap);
	}

	.ta-sticky-showcase__media {
		height: min(var(--ta-ss-media-height), 72vh);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-sticky-showcase__item-title {
		transition: none;
	}
}

/* [TA] Gallery */
.ta-gallery {
	display: block;
	width: 100%;
}

.ta-gallery__grid {
	--ta-gallery-columns: 4;
	display: grid;
	grid-template-columns: repeat(var(--ta-gallery-columns), minmax(0, 1fr));
	width: 100%;
}

.ta-gallery__item {
	display: block;
	margin: 0;
	min-width: 0;
}

.ta-gallery__item.is-hidden {
	display: none;
}

.ta-gallery__image {
	aspect-ratio: 4 / 3;
	background-color: #f3f3f3;
	display: block;
	overflow: hidden;
	width: 100%;
}

.ta-gallery__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease;
	width: 100%;
}

.ta-gallery__caption {
	margin: 0;
}

.ta-gallery__footer {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.ta-gallery__button {
	align-items: center;
	background-color: #1f1f1f;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 8px;
	justify-content: center;
	line-height: 1;
	padding: 12px 24px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ta-gallery__button svg {
	fill: currentColor;
	height: 1em;
	width: 1em;
}

@media (prefers-reduced-motion: reduce) {
	.ta-gallery__image img,
	.ta-gallery__button {
		transition: none;
	}
}
