/**
 * Travel26 Insider Tip
 *
 * Contents
 * 1. Variables and photo
 * 2. Card
 * 3. Icon, label and text
 * 4. Editor hint
 * 5. Responsive
 *
 * Colours read the Inoforest Core Design System when it is active, with the Travel26 design as fallback.
 */

/* 1. Variables and photo -------------------------------------------------------- */
.travel26-tip {
	--travel26-tip-ratio: 4 / 4.4;
	--travel26-tip-icon: var(--inoforest-color-primary, #0b7a75);
	--travel26-tip-icon-bg: #e5f3f2;
	position: relative;
	padding-bottom: 50px;
}

.travel26-tip .travel26-tip__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--travel26-tip-ratio);
	object-fit: cover;
	border-radius: 24px;
}

/* 2. Card ------------------------------------------------------------------------- */
.travel26-tip .travel26-tip__card {
	position: absolute;
	right: 50px;
	bottom: 0;
	left: -30px;
	display: flex;
	gap: 16px;
	padding: 24px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(13, 27, 42, 0.16);
}

.travel26-tip[data-card="right"] .travel26-tip__card {
	right: -30px;
	left: 50px;
}

/* 3. Icon, label and text --------------------------------------------------------------- */
.travel26-tip .travel26-tip__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	font-size: 22px;
	color: var(--travel26-tip-icon);
	background: var(--travel26-tip-icon-bg);
	border-radius: 50%;
}

.travel26-tip .travel26-tip__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.travel26-tip .travel26-tip__label {
	display: block;
	margin-bottom: 4px;
	font-family: "Caveat", cursive;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--inoforest-color-accent, #ff6a3d);
}

.travel26-tip .travel26-tip__text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--inoforest-color-heading, #0d1b2a);
}

/* 4. Editor hint ------------------------------------------------------------------- */
.travel26-tip__empty {
	margin: 0 0 12px;
	padding: 14px 18px;
	font-size: 13px;
	text-align: center;
	border: 1px dashed var(--inoforest-color-border, #e5ebef);
	border-radius: 12px;
}

/* 5. Responsive: the card stays inside the photo once it would reach the screen edge --------- */
@media (max-width: 1259px) {
	.travel26-tip[data-card="right"] .travel26-tip__card {
		right: 0;
	}
}

@media (max-width: 991px) {
	.travel26-tip .travel26-tip__card,
	.travel26-tip[data-card="right"] .travel26-tip__card {
		right: 20px;
		left: 20px;
	}
}

@media (max-width: 767px) {
	.travel26-tip {
		padding-bottom: 70px;
	}

	.travel26-tip .travel26-tip__card,
	.travel26-tip[data-card="right"] .travel26-tip__card {
		right: 12px;
		left: 12px;
		padding: 18px;
	}
}
