/**
 * Listing page header options (Customizer > Single Listing Options): primary
 * action, short description and compact logo. Loaded only where one of them is
 * on, or with the Listeo Elementor Listing Primary Action widget.
 */
.listing-header-extras {
	display: block;
	margin: 18px 0 28px;
}

.listing-header-extras .listing-header-excerpt {
	max-width: 640px;
	margin: 0 0 18px;
	color: #555;
	font-size: 17px;
	line-height: 26px;
}

a.button.listing-primary-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
	text-align: center;
}

a.button.listing-primary-action i {
	margin: 0;
	font-size: 13px;
	line-height: 1;
}

a.button.listing-primary-action--sidebar {
	display: flex;
	width: 100%;
	margin-bottom: 20px;
}

#classifieds_price + a.button.listing-primary-action--sidebar {
	margin-top: 12px;
}

/* Compact logo in line with the title */
.listeo-listing-header-logo #titlebar.listing-titlebar {
	align-items: center;
}

.listeo-listing-header-logo #titlebar.listing-titlebar .listing-logo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin-right: 18px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
}

.listeo-listing-header-logo #titlebar.listing-titlebar .listing-logo img {
	display: block;
	width: 100%;
	min-width: 0;
	height: 100%;
	max-height: none;
	box-sizing: border-box;
	padding: 11%;
	border-radius: inherit;
	object-fit: contain;
}

/* The stars are added by a script: their room is kept before it runs. */
.listeo-listing-header-logo #titlebar.listing-titlebar .star-rating:not(:has(.star))::before {
	content: "";
	float: left;
	width: 110px;
	height: 27px;
}

/* Under the 992px breakpoint of the sidebar column: a full width button under the title. */
@media (max-width: 991px) {
	.listing-header-extras a.button.listing-primary-action {
		display: flex;
		width: 100%;
	}

	.listing-header-extras .listing-header-excerpt {
		font-size: 16px;
		line-height: 24px;
	}

	/* The theme stacks and centres the title under the logo here: one row instead. */
	.listeo-listing-header-logo #titlebar.listing-titlebar {
		flex-direction: row;
		align-items: flex-start;
	}

	.listeo-listing-header-logo #titlebar.listing-titlebar .listing-titlebar-title {
		flex: 1 1 auto;
		min-width: 0;
	}

	.listeo-listing-header-logo #titlebar.listing-titlebar .listing-logo {
		flex-basis: 56px;
		align-self: flex-start;
		width: 56px;
		height: 56px;
		margin-right: 14px;
	}
}
