/*
 * Mirrors the Elementor Collection Loop on bmggroup.logrise.pt/unlock-sea and
 * /unlock-land (pages 1795 and 1741). Values come from those pages' post CSS
 * and from Elementor's widget defaults (icon-box, image-carousel, button).
 * Breakpoints match the site: 1200 (tablet extra), 1024 (tablet), 767 (mobile).
 */

@font-face {
	font-family: "M PLUS 1";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/mplus1-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "M PLUS 1";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/mplus1-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.uel-loop,
.uel-loop * {
	box-sizing: border-box;
}

.uel-loop {
	--uel-ink: #093655;
	--uel-body: #093655;
	--uel-tile: rgba(9, 54, 85, 0.06);
	--uel-accent: #ff711f;
	--uel-label: #a3a3a3;
	display: block;
	width: 100%;
	/* Atomic collection loop: 10px inline padding on loop, layout and item. */
	padding: 0 10px;
}

.uel-loop--land {
	--uel-ink: #758156;
	--uel-body: #2e351c;
	--uel-tile: rgba(117, 129, 86, 0.12);
}

.uel-loop .uel-loop__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 40px;
	margin: 0;
	padding: 0 10px;
}

.uel-loop .uel-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	margin: 0;
	padding: 0 10px;
	border-radius: 30px;
}

.uel-loop--land .uel-card {
	animation: uel-fade-in 600ms ease-in both;
}

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

/* Image carousel (Elementor image-carousel, arrows inside). */

.uel-carousel {
	position: relative;
	width: 100%;
}

.uel-carousel__viewport {
	position: relative;
	overflow: hidden;
}

.uel-carousel__track {
	display: flex;
	transition: transform 500ms ease;
	will-change: transform;
}

.uel-carousel__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.uel-loop .uel-carousel__slide img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 675 / 392;
	object-fit: cover;
	border: 0;
	border-radius: 20px;
	box-shadow: none;
}

.uel-loop .uel-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: inline-flex;
	font-size: 25px;
	line-height: 1;
	color: hsla(0, 0%, 93%, 0.9);
	transform: translateY(-50%);
	cursor: pointer;
}

.uel-carousel__arrow--prev {
	left: 10px;
}

.uel-carousel__arrow--next {
	right: 10px;
}

/* Card body. */

.uel-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.uel-loop .uel-card__title {
	margin: 0;
	padding: 0;
	max-width: 100%;
	font-family: "Dolce Vita", sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-align: start;
	color: var(--uel-ink);
}

.uel-loop .uel-card__text {
	width: 100%;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-family: "M PLUS 1", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.7;
	text-align: start;
	color: var(--uel-body);
}

/* The reference text is inline spans, so paragraphs run together. */
.uel-loop .uel-card__text p {
	display: inline;
	margin: 0;
}

.uel-loop .uel-card__text p + p::before {
	content: " ";
}

/* Meta tiles (Elementor icon-box, icon on top). */

.uel-loop .uel-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, 1fr);
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 10px 0 0;
	list-style: none;
}

.uel-loop .uel-meta__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 15px;
	border-radius: 10px;
	background: var(--uel-tile);
	text-align: center;
}

.uel-meta__icon {
	display: block;
	margin-bottom: 14px;
	font-size: 30px;
	line-height: 0;
	color: var(--uel-accent);
}

.uel-meta__icon i {
	display: inline-block;
	width: 1em;
	height: 1em;
	line-height: 1;
	text-align: center;
}

.uel-meta__icon i::before {
	line-height: 1;
}

/* line-height 3px is what the reference uses; the label sits tight on the value. */
.uel-meta__label {
	display: block;
	margin: 0;
	font-family: "Dolce Vita", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 3px;
	color: var(--uel-label);
}

.uel-meta__value {
	display: block;
	margin: 0;
	font-family: "M PLUS 1", sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--uel-body);
}

/* The reference's Idiomas tile has its own spacing. From tablet down its extra
   margin makes that grid row taller, and the 1fr rows follow it. */
.uel-meta__item:nth-child(2) .uel-meta__label {
	margin-bottom: 5px;
}

.uel-meta__item:nth-child(2) .uel-meta__value {
	line-height: 20px;
}

/* Buttons (Elementor button, float hover animation). */

.uel-actions {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
}

.uel-loop .uel-button {
	display: inline-block;
	margin: 4px 0 0;
	padding: 15px 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: "M PLUS 1", sans-serif;
	font-size: 16px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.3em;
	letter-spacing: 1.53px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.3s ease-out;
}

.uel-loop .uel-button:hover,
.uel-loop .uel-button:focus,
.uel-loop .uel-button:active {
	transform: translateY(-8px);
	text-decoration: none;
}

.uel-loop .uel-button--outline,
.uel-loop .uel-button--outline:hover,
.uel-loop .uel-button--outline:focus {
	background: transparent;
	color: var(--uel-ink);
	border-color: var(--uel-ink);
}

.uel-loop .uel-button--solid,
.uel-loop .uel-button--solid:hover,
.uel-loop .uel-button--solid:focus {
	background: var(--uel-accent);
	color: #fff;
	border-color: var(--uel-accent);
}

/* Booking modal (Elementor popup: 398px, dark overlay, close icon outside). */

.uel-modal[hidden] {
	display: none;
}

.uel-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.uel-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.uel-modal__dialog {
	position: relative;
	z-index: 1;
	width: 398px;
	max-width: 100%;
	padding: 0;
	background: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
}

.uel-loop .uel-modal__close {
	position: absolute;
	top: -5%;
	right: 100%;
	display: flex;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
}

.uel-modal__frame {
	position: relative;
	display: block;
	width: 100%;
	max-width: 400px;
	height: 600px;
	min-height: 450px;
	max-height: 600px;
	margin: auto;
	border: 0;
}

.uel-empty {
	margin: 0;
	font-family: "M PLUS 1", sans-serif;
	color: var(--uel-body, #093655);
}

@media (max-width: 1200px) {
	.uel-loop .uel-loop__grid {
		column-gap: 15px;
	}

	.uel-loop .uel-card__title {
		font-size: 26px;
	}

	.uel-loop .uel-card__text {
		font-size: 16px;
	}

	.uel-meta__value {
		font-size: 16px;
	}

	.uel-actions {
		margin-top: 10px;
	}

	.uel-loop .uel-button {
		margin: 0;
	}
}

@media (max-width: 1024px) {
	.uel-loop .uel-loop__grid {
		grid-template-columns: minmax(0, 1fr);
		column-gap: 10px;
		row-gap: 20px;
	}

	.uel-card__body {
		align-items: center;
	}

	.uel-loop .uel-card__title,
	.uel-loop .uel-card__text {
		text-align: center;
	}

	.uel-loop .uel-card__title {
		width: 424px;
		max-width: 424px;
		font-size: 32px;
	}

	.uel-loop .uel-card__text {
		font-size: 15px;
	}

	.uel-meta__value,
	.uel-meta__item:nth-child(2) .uel-meta__value {
		font-size: 15px;
		line-height: 2em;
	}

	.uel-loop .uel-button {
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.uel-loop .uel-card {
		min-height: 264px;
	}

	.uel-carousel {
		min-height: 196px;
		margin-top: 30px;
	}

	.uel-loop .uel-card__title {
		width: 320px;
		max-width: 320px;
		font-size: 22px;
	}

	.uel-loop .uel-meta {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
	}

	.uel-loop .uel-meta__item {
		padding: 10px;
	}

	.uel-meta__value,
	.uel-meta__item:nth-child(2) .uel-meta__value {
		font-size: 14px;
	}

	.uel-actions {
		flex-wrap: wrap-reverse;
		justify-content: center;
		align-items: center;
	}

	.uel-loop .uel-button {
		font-size: 14px;
		padding: 12px;
	}
}
