/*
 * Guidos Travel Planner and Diary Pro – display style "Magazine".
 * Large cover photo, bordered cards, dark day labels.
 */

/* Trip header: cover photo with the title on it. */

.gtpdp-style-magazine .gtpdp-header__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: var(--gtpdp-hero-height, clamp(240px, 42vw, 460px));
	overflow: hidden;
	border-radius: var(--gtpdp-hero-radius, 0);
	background: var(--gtpdp-hero-bg, var(--gtpdp-ink));
	color: var(--gtpdp-hero-color, #fff);
}

.gtpdp-style-magazine .gtpdp-header:not(.gtpdp-header--has-image) .gtpdp-header__hero {
	min-height: 0;
}

.gtpdp-style-magazine .gtpdp-header__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the lower part of the photo so the title stays readable. */
.gtpdp-style-magazine .gtpdp-header--has-image .gtpdp-header__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gtpdp-hero-overlay, linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 65%));
}

.gtpdp-style-magazine .gtpdp-header__body {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(20px, 4vw, 48px);
}

.gtpdp-style-magazine .gtpdp-header__title {
	font-size: clamp(2rem, 5vw, 3.75rem);
	line-height: 1.08;
}

.gtpdp-style-magazine .gtpdp-header__meta {
	font-size: 1.15em;
	opacity: 0.92;
}

.gtpdp-style-magazine .gtpdp-header__badge--type {
	border-color: #fff;
	background: #fff;
	color: var(--gtpdp-ink);
}

/* Destinations: numbered list. */

.gtpdp-style-magazine .gtpdp-stops__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid var(--gtpdp-border);
}

.gtpdp-style-magazine .gtpdp-stops__number {
	display: none;
}

.gtpdp-style-magazine .gtpdp-stops--numbered .gtpdp-stops__number {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 2px solid var(--gtpdp-accent);
	border-radius: 50%;
	color: var(--gtpdp-accent);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
}

/* Timeline. */

.gtpdp-style-magazine .gtpdp-timeline__daylabel {
	padding: 8px 18px;
	border-radius: 20px;
	background: var(--gtpdp-day-bg, var(--gtpdp-ink));
	color: var(--gtpdp-day-color, var(--gtpdp-on-ink));
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
}

.gtpdp-style-magazine .gtpdp-timeline__daynumber {
	font-weight: 700;
}

.gtpdp-style-magazine .gtpdp-timeline__dayplaces {
	opacity: 0.8;
}

.gtpdp-style-magazine .gtpdp-timeline__stage-label {
	padding: 8px 20px;
	border-radius: 999px;
	background: var(--gtpdp-stage-bg, var(--gtpdp-accent));
	color: var(--gtpdp-stage-color, var(--gtpdp-on-accent));
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.4;
}

.gtpdp-style-magazine .gtpdp-timeline__card {
	border: 1px solid var(--gtpdp-border);
}

/* Diary entry. */

.gtpdp-style-magazine .gtpdp-info__item {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--gtpdp-chip-bg, rgba(128, 128, 128, 0.14));
}
