/*
 * The trip editor's price box and the parts of its media and trip info sections (templates/admin/trip/price.html,
 * preview/*), drawn like the trip page, after admin-trip-preview.css.
 */
.eb-site-map {
	background: #fff;
	border: 1px solid var(--site-line);
	border-radius: 0.75rem;
	padding: 1rem;
}

.eb-site-map img {
	margin: 0 auto;
	max-width: 820px;
	width: 100%;
}

.eb-site-video {
	aspect-ratio: 16 / 9;
	border-radius: 0.75rem;
	overflow: hidden;
}

.eb-site-video iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.eb-site-gallery {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.eb-site-gallery img {
	aspect-ratio: 3 / 2;
	border-radius: 0.5rem;
	object-fit: cover;
	width: 100%;
}

/* Cards, such as a packing group, a meal or an add-on. */
.eb-site-cards {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.eb-site-card {
	border: 1px solid var(--site-line);
	border-radius: 0.625rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}

.eb-site-card h4 {
	color: var(--site-navy);
	font-weight: 600;
}

.eb-site-card img {
	aspect-ratio: 3 / 2;
	border-radius: 0.5rem;
	object-fit: cover;
	width: 100%;
}

/* Pairs of a name and a line, such as an amenity or a time of day. */
.eb-site-pairs {
	display: flex;
	flex-direction: column;
}

.eb-site-pairs > div {
	border-bottom: 1px solid var(--site-line);
	display: grid;
	gap: 1rem;
	grid-template-columns: 11rem 1fr;
	padding: 0.5rem 0;
}

.eb-site-pairs dt {
	color: var(--site-navy);
	font-weight: 600;
}

.eb-site-score strong {
	color: var(--site-navy);
	font-size: 1.5rem;
}

/* How the trip climbs: a bar a day, the night's height in blue and the day's high point in gold behind it. */
.eb-site-climb {
	align-items: flex-end;
	display: flex;
	gap: 0.375rem;
	height: 180px;
}

.eb-site-climb-day {
	align-items: center;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.25rem;
	height: 100%;
}

.eb-site-climb-bars {
	align-items: flex-end;
	display: flex;
	flex: 1;
	position: relative;
	width: 100%;
}

.eb-site-climb-high,
.eb-site-climb-sleep {
	border-radius: 0.25rem 0.25rem 0 0;
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
}

.eb-site-climb-high {
	background: #f5b301;
}

.eb-site-climb-sleep {
	background: var(--site-blue);
}

.eb-site-climb-day small {
	color: #4b5563;
	font-size: 0.75rem;
}

/* The price, under the banner: the price and days on the left, the group prices beside them. */
.eb-trip-price .eb-trip-preview {
	align-items: center;
	display: grid;
	gap: 0.25rem 2rem;
	grid-template-columns: auto minmax(0, 480px);
	justify-content: start;
}

.eb-trip-price .eb-price-table {
	grid-column: 2;
	grid-row: 1 / span 2;
}
.eb-price strong {
	color: var(--site-navy);
	font-size: 2.25rem;
	font-weight: 700;
}

.eb-price-days {
	margin-top: -0.75rem;
}

.eb-price-table {
	background: var(--site-tint);
	border-radius: 0.5rem;
	width: 100%;
}

.eb-price-table th,
.eb-price-table td {
	padding: 0.375rem 0.875rem;
	text-align: left;
}

.eb-price-table th:last-child,
.eb-price-table td:last-child {
	text-align: right;
}

.eb-price-table th {
	color: #4b5563;
	font-size: 0.8125rem;
	font-weight: 500;
}
