/**
 * "Showcase" listing page style (Customizer > Single Listing Options > Listing
 * page style, or Listeo Editor > Listing Types). Template:
 * listeo-core/templates/single-listing-showcase.php.
 *
 * Loaded in <head> only on listing pages with this style. Every rule is scoped
 * under the body class .listeo-listing-showcase.
 *
 * Colours: the main colour of the theme (--listeo-primary-color) and neutral
 * greys, all set in the variables below.
 */
.listeo-listing-showcase {
	--lsc-ink: var(--listeo-primary-color, #14161a);
	--lsc-ink-rgb: var(--listeo-primary-color-rgb, 20, 22, 26);
	--lsc-text: #3d3d3d;
	--lsc-muted: #666666;
	--lsc-line: #e8e8e8;
	--lsc-line-strong: #d4d4d4;
	--lsc-tint: #f7f7f7;
	--lsc-star: #f5a623;
	--lsc-radius: 14px;
	--lsc-shadow-hover: 0 6px 20px rgba(var(--lsc-ink-rgb), .07);
	--lsc-focus: 0 0 0 3px rgba(var(--lsc-ink-rgb), .16);
}

.listeo-listing-showcase .single-listing-page-titlebar {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Header: logo, title, short description, rating, primary action      */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase .listing-showcase-header {
	display: grid;
	grid-template-columns: 96px auto minmax(0, 1fr) auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 48px 0 36px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar,
.listeo-listing-showcase .listing-showcase-header .listing-titlebar-title,
.listeo-listing-showcase .listing-showcase-header .listing-header-extras {
	display: contents;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-logo {
	grid-column: 1;
	grid-row: 1 / span 3;
	align-self: start;
	box-sizing: border-box;
	width: 96px;
	height: 96px;
	margin: 0 12px 0 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--lsc-line);
	border-radius: 22px;
	background: #fff;
}

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

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar h1 {
	grid-column: 2 / span 2;
	grid-row: 1;
	margin: 0 0 0 12px;
	padding: 0;
	color: #111;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.listeo-listing-showcase .listing-showcase-header .listing-header-excerpt {
	grid-column: 2 / span 2;
	grid-row: 2;
	max-width: 620px;
	margin: 8px 0 0 12px;
	color: var(--lsc-text);
	font-size: 18px;
	line-height: 1.5;
}

/* Rating: one star, the average and the number of reviews. */
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .star-rating,
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .numerical-rating {
	grid-column: 2;
	grid-row: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0 12px;
	padding: 0;
	border-radius: 0;
	background: none;
	white-space: nowrap;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .star-rating .star {
	display: none;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .star-rating::before,
.listeo-listing-showcase.listeo-listing-header-logo #titlebar.listing-titlebar .star-rating:not(:has(.star))::before {
	content: "";
	float: none;
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--lsc-star);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.1 6.56.9-4.78 4.6 1.17 6.6L12 17.6l-5.89 3.1 1.17-6.6L2.5 9.5l6.56-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.1 6.56.9-4.78 4.6 1.17 6.6L12 17.6l-5.89 3.1 1.17-6.6L2.5 9.5l6.56-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .rating-counter {
	float: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 22px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .rating-counter a {
	color: var(--lsc-muted);
	font-size: 15px;
	font-weight: 400;
	transition: color .2s;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .rating-counter a:hover {
	color: var(--lsc-ink);
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .rating-counter strong {
	margin-right: 2px;
	color: #111;
	font-weight: 700;
}

/* Categories and the term of the "Logo" card, as one line of text. */
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags {
	grid-column: 3;
	grid-row: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
	margin: 14px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 22px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags {
	justify-self: start;
	width: fit-content;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f6f6f6;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags:empty {
	display: none;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags > span,
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags span.listing-tag {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--lsc-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags > span::before {
	content: "\00B7";
	margin: 0 10px;
	color: var(--lsc-line-strong);
	font-weight: 700;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags > span i {
	margin-right: 6px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags a,
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags span.listing-tag a {
	color: var(--lsc-muted);
	text-decoration: none;
	transition: color .2s;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags a:hover,
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags span.listing-tag a:hover {
	color: var(--lsc-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-showcase-address {
	display: none;
}

/* Primary action. */
.listeo-listing-showcase .listing-showcase-header a.button.listing-primary-action {
	grid-column: 4;
	grid-row: 1 / span 3;
	align-self: center;
	height: 48px;
	margin: 0 0 0 24px;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: var(--lsc-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 48px;
	white-space: nowrap;
	transition: background-color .2s, box-shadow .2s, transform .1s;
}

.listeo-listing-showcase .listing-showcase-header a.button.listing-primary-action:hover {
	background: rgba(var(--lsc-ink-rgb), .86);
	box-shadow: var(--lsc-shadow-hover);
}

.listeo-listing-showcase a.button.listing-primary-action:focus-visible,
.listeo-listing-showcase .add-review-collapse > summary:focus-visible {
	outline: 0;
	box-shadow: var(--lsc-focus);
}

.listeo-listing-showcase .listing-showcase-header a.button.listing-primary-action:active {
	transform: translateY(1px);
}

/* ------------------------------------------------------------------ */
/* Gallery: one large image and two beside it, a swipe row on phones    */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase .listing-showcase-gallery {
	margin: 0 0 48px;
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	margin: 0;
	overflow: visible;
	border-radius: 0;
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery.slg-one-photo {
	grid-template-columns: minmax(0, 1fr);
}

.listeo-listing-showcase .listing-showcase-gallery .slg-half,
.listeo-listing-showcase .listing-showcase-gallery body .slg-half {
	width: auto;
	margin: 0;
	min-width: 0;
}

.listeo-listing-showcase .listing-showcase-gallery .slg-grid {
	display: grid;
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	height: 100%;
}

.listeo-listing-showcase .listing-showcase-gallery .slg-grid-top,
.listeo-listing-showcase .listing-showcase-gallery .slg-grid-bottom,
.listeo-listing-showcase .listing-showcase-gallery .slg-grid-inner {
	display: block;
	width: auto;
	height: 100%;
	min-height: 0;
	margin: 0;
	overflow: visible;
}

/* Beyond three images, the rest open from "Show All Photos". */
.listeo-listing-showcase .listing-showcase-gallery .slg-grid-inner + .slg-grid-inner {
	display: none;
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img,
.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img-single {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--lsc-line);
	border-radius: var(--lsc-radius);
	background: var(--lsc-tint);
}

.listeo-listing-showcase .listing-showcase-gallery .slg-half:first-of-type a.slg-gallery-img,
.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img-single {
	height: auto;
	aspect-ratio: 16 / 10;
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img::before,
.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img-single::before {
	background: var(--lsc-ink);
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img:hover::before,
.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img-single:hover::before {
	opacity: .06;
}

.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a:hover img {
	transform: scale(1.015);
}

.listeo-listing-showcase .listing-showcase-gallery .slg-button[data-gallery-count] {
	display: none;
}

.listeo-listing-showcase .listing-showcase-gallery .slg-button:not([data-gallery-count="1"]):not([data-gallery-count="2"]):not([data-gallery-count="3"]) {
	right: 16px;
	bottom: 16px;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--lsc-ink);
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(var(--lsc-ink-rgb), .12);
}

/* ------------------------------------------------------------------ */
/* Content column                                                       */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-content {
	padding-right: 48px;
}

/* Description, with its lists as a two column checklist. */
.listeo-listing-showcase .listing-showcase-description {
	color: var(--lsc-text);
	font-size: 16px;
	line-height: 1.7;
}

.listeo-listing-showcase .listing-showcase-description > p {
	margin: 0 0 16px;
	color: var(--lsc-text);
	font-size: 16px;
	line-height: 1.7;
}

.listeo-listing-showcase .listing-showcase-description > h2,
.listeo-listing-showcase .listing-showcase-description > h3,
.listeo-listing-showcase .listing-showcase-description > h4 {
	margin: 32px 0 14px;
	color: #111;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.listeo-listing-showcase .listing-showcase-description > ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 28px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.listeo-listing-showcase .listing-showcase-description > ul > li {
	position: relative;
	margin: 0;
	padding: 0 0 0 30px;
	color: var(--lsc-text);
	font-size: 15px;
	line-height: 1.5;
}

.listeo-listing-showcase .listing-showcase-description > ul > li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--lsc-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
	box-shadow: inset 0 0 0 1px var(--lsc-line);
}

/* ------------------------------------------------------------------ */
/* Pricing: the period after the price                                  */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase #listing-pricing-list .listeo-pricing-period {
	color: var(--lsc-muted);
}

/* Rating bars in the main colour; low scores keep their warning colour. */
.listeo-listing-showcase #listing-reviews .rating-bars-rating.high .rating-bars-rating-inner,
.listeo-listing-showcase #listing-reviews .rating-bars-rating.mid .rating-bars-rating-inner {
	background-color: var(--lsc-ink);
}

/* Before the scripts run: the stars of the rating summary keep their room
   and the FAQ answers stay closed, as they are once the accordion starts. */
.listeo-listing-showcase #listing-reviews .rating-overview-box .star-rating {
	min-height: 27px;
}

.listeo-listing-showcase #listing-faq .accordion:not(.ui-accordion) > div {
	display: none;
}

.listeo-listing-showcase #listing-faq .accordion:not(.ui-accordion) {
	border: 1px solid #e0e0e0;
	border-radius: 5px;
}

.listeo-listing-showcase #listing-faq .accordion:not(.ui-accordion) > h3 {
	margin: -1px 0 0;
	padding: 16px 27px;
	border-top: 1px solid #e0e0e0;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	line-height: 26px;
}

.listeo-listing-showcase #listing-faq .accordion:not(.ui-accordion) > h3:first-child {
	border-top: 0;
}

/* ------------------------------------------------------------------ */
/* Reviews: the form opens from "Write a review"                        */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase .add-review-collapse {
	margin: 30px 0 0;
}

.listeo-listing-showcase .add-review-collapse > summary {
	display: inline-flex;
	align-items: center;
	height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--lsc-line-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--lsc-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.listeo-listing-showcase .add-review-collapse > summary:hover {
	border-color: var(--lsc-ink);
	background: var(--lsc-tint);
}

.listeo-listing-showcase .add-review-collapse > summary:active {
	transform: translateY(1px);
}

.listeo-listing-showcase .add-review-collapse > summary::-webkit-details-marker {
	display: none;
}

.listeo-listing-showcase .add-review-collapse[open] > summary {
	margin-bottom: 30px;
}

.listeo-listing-showcase .add-review-collapse > .add-review-box {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Sidebar: one card with the price, primary action and widgets         */
/* ------------------------------------------------------------------ */
.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-sidebar {
	margin-top: 0;
}

.listeo-listing-showcase .listing-showcase-sidebar {
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--lsc-line);
	border-radius: 16px;
	background: #fff;
}

.listeo-listing-showcase .listing-showcase-sidebar #classifieds_price {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--lsc-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-align: left;
}

.listeo-listing-showcase .listing-showcase-sidebar a.button.listing-primary-action--sidebar {
	height: 48px;
	margin: 0 0 4px;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--lsc-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 48px;
	transition: background-color .2s, transform .1s;
}

.listeo-listing-showcase .listing-showcase-sidebar a.button.listing-primary-action--sidebar:hover {
	background: rgba(var(--lsc-ink-rgb), .86);
}

.listeo-listing-showcase .listing-showcase-sidebar a.button.listing-primary-action--sidebar:active {
	transform: translateY(1px);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-widget,
.listeo-listing-showcase .listing-showcase-sidebar .listing-widget.widget_listing_facts {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-widget + .listing-widget,
.listeo-listing-showcase .listing-showcase-sidebar .listing-widget.widget_listing_facts {
	margin-top: 16px;
	padding-top: 8px;
	border-top: 1px solid var(--lsc-line);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-facts__row {
	padding: 12px 0;
	border-bottom-color: var(--lsc-line);
}

.listeo-listing-showcase .listing-showcase-sidebar .opening-hours .listing-badge {
	position: static;
	display: table;
	float: none;
	transform: none;
	width: auto;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 4px 10px;
	border-radius: 4px;
	line-height: 20px;
}

.listeo-listing-showcase .listing-showcase-gallery--content #listing-gallery {
	margin-bottom: 0 !important;
}

.listeo-listing-showcase .listing-showcase-gallery--content .listeo-content-gallery {
	border-radius: var(--lsc-radius);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-facts .listing-facts__label {
	color: var(--lsc-muted);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-facts .listing-facts__value {
	color: var(--lsc-ink);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-facts .listing-facts__value a {
	text-decoration-color: var(--lsc-line-strong);
}

.listeo-listing-showcase .listing-showcase-sidebar .listing-facts .listing-facts__value a:hover {
	text-decoration-color: currentColor;
}

/* The card stays in view next to the content (the theme's script sticks the whole column). */
@media (min-width: 992px) {
	.listeo-listing-showcase .listing-showcase-body {
		display: flex;
		align-items: stretch;
	}

	/* The sidebar comes first in the page source: it is moved to the right here,
	   and stays there while the content is still loading. */
	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-sidebar {
		order: 2;
		margin-left: auto;
	}

	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-content {
		order: 1;
	}

	.listeo-listing-showcase .listing-showcase--sidebar-left .listing-showcase-body > .listeo-single-listing-sidebar {
		order: 0;
		margin-left: 0;
	}

	.listeo-listing-showcase .listing-showcase--sidebar-left .listing-showcase-body > .listeo-single-listing-content {
		padding-right: 15px;
		padding-left: 48px;
	}

	.listeo-listing-showcase .listing-showcase-body::before,
	.listeo-listing-showcase .listing-showcase-body::after {
		display: none;
	}

	.listeo-listing-showcase .listing-showcase-sidebar {
		position: sticky;
		top: calc(var(--header-height, 72px) + 24px);
	}

	/* The admin bar pushes the sticky section nav down by its own height. */
	.admin-bar.listeo-listing-showcase .listing-showcase-sidebar {
		top: calc(var(--header-height, 72px) + 24px + 32px);
	}
}

/* Claim box and the Bookmarks & Share buttons: spacing inside the card. */
.listeo-listing-showcase .listing-showcase-sidebar .claim-badge {
	margin-top: 12px;
}

.listeo-listing-showcase .listing-showcase-sidebar .claim-badge,
.listeo-listing-showcase .listing-showcase-sidebar .claim-badge a {
	border-radius: 12px;
}

.listeo-listing-showcase .listing-showcase-sidebar .widget_buttons .listing-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 16px 0 0 !important;
	padding: 0;
}

.listeo-listing-showcase .listing-showcase-sidebar .widget_buttons .listing-share > button,
.listeo-listing-showcase .listing-showcase-sidebar .widget_buttons .listing-share > a {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Tablet and phone                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 1199px) {
	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-content {
		padding-right: 24px;
	}
}

@media (max-width: 991px) {
	.listeo-listing-showcase .listing-showcase-header {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		column-gap: 0;
		padding: 28px 0 24px;
	}

	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-logo {
		grid-column: 1;
		grid-row: 1;
		width: 64px;
		height: 64px;
		margin: 0;
		border-radius: 16px;
	}

	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar h1 {
		grid-column: 2 / span 2;
		grid-row: 1;
		align-self: center;
		margin: 0 0 0 16px;
		font-size: 30px;
	}

	.listeo-listing-showcase .listing-showcase-header .listing-header-excerpt {
		grid-column: 1 / -1;
		grid-row: 2;
		margin: 16px 0 0;
		font-size: 17px;
	}

	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .star-rating,
	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .numerical-rating {
		grid-column: 1 / -1;
		grid-row: 3;
		margin: 12px 0 0;
	}

	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags {
		grid-column: 1 / -1;
		grid-row: 4;
		margin: 4px 0 0;
	}

	.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar .listing-titlebar-tags > span:first-child::before {
		display: none;
	}

	.listeo-listing-showcase .listing-showcase-header a.button.listing-primary-action {
		grid-column: 1 / span 2;
		grid-row: 5;
		display: flex;
		width: auto;
		margin: 20px 0 0;
	}

	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-content {
		padding-right: 15px;
	}

	/* The sidebar card comes under the gallery, without a second button. */
	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-sidebar {
		width: 100%;
		margin: 0 0 8px;
	}

	.listeo-listing-showcase .listing-showcase-body > .listeo-single-listing-content {
		width: 100%;
	}

	.listeo-listing-showcase .listing-showcase-sidebar a.button.listing-primary-action--sidebar {
		display: none;
	}

}

/* Gallery on tablets and phones: a swipe row with the next image peeking in.
   768px: the breakpoint of the theme's own grid gallery rules. */
@media (max-width: 768px) {
	.listeo-listing-showcase .listing-showcase-gallery {
		margin: 0 -15px 32px;
	}

	.listeo-listing-showcase .listing-showcase-gallery--content {
		margin-left: 0;
		margin-right: 0;
	}

	.listeo-listing-showcase .listing-showcase-gallery > .row {
		margin: 0;
	}

	.listeo-listing-showcase .listing-showcase-gallery > .row > .col-md-12 {
		padding: 0;
	}

	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery,
	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery.slg-one-photo {
		display: flex;
		gap: 10px;
		height: auto;
		min-height: 0;
		margin: 0;
		padding: 0 15px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding: 0 15px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery::-webkit-scrollbar {
		display: none;
	}

	.listeo-listing-showcase .listing-showcase-gallery .slg-half,
	.listeo-listing-showcase .listing-showcase-gallery .slg-half:nth-child(3),
	.listeo-listing-showcase .listing-showcase-gallery .slg-grid,
	.listeo-listing-showcase .listing-showcase-gallery .slg-grid-top,
	.listeo-listing-showcase .listing-showcase-gallery .slg-grid-bottom,
	.listeo-listing-showcase .listing-showcase-gallery .slg-grid-inner,
	.listeo-listing-showcase .listing-showcase-gallery .slg-grid-inner + .slg-grid-inner {
		display: contents !important;
	}

	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img,
	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a.slg-gallery-img-single,
	.listeo-listing-showcase .listing-showcase-gallery .slg-half:first-of-type a.slg-gallery-img {
		flex: 0 0 86%;
		width: 86%;
		height: auto;
		aspect-ratio: 16 / 10;
		border-radius: 12px;
		scroll-snap-align: start;
	}

	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery.slg-one-photo a.slg-gallery-img-single {
		flex-basis: 100%;
		width: 100%;
	}

	/* Images in their order: the grid lists the third one after the fourth. */
	.listeo-listing-showcase .listing-showcase-gallery a[data-grid-start-index="1"] { order: 1; }
	.listeo-listing-showcase .listing-showcase-gallery a[data-grid-start-index="2"] { order: 2; }
	.listeo-listing-showcase .listing-showcase-gallery a[data-grid-start-index="3"] { order: 3; }
	.listeo-listing-showcase .listing-showcase-gallery a[data-grid-start-index="4"] { order: 4; }

	.listeo-listing-showcase .listing-showcase-gallery .slg-button,
	.listeo-listing-showcase .listing-showcase-gallery .slg-button:not([data-gallery-count="1"]):not([data-gallery-count="2"]):not([data-gallery-count="3"]) {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.listeo-listing-showcase .listing-showcase-description > ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery img {
		transition: none;
	}

	.listeo-listing-showcase .listing-showcase-gallery #single-listing-grid-gallery a:hover img {
		transform: none;
	}
}

/* Without a rating the first tag has nothing to be separated from. */
.listeo-listing-showcase .listing-showcase-header #titlebar.listing-titlebar:not(:has(.star-rating, .numerical-rating)) .listing-titlebar-tags > span:first-child::before {
	display: none;
}

/* ------------------------------------------------------------------ */
/* No gallery: the sidebar card starts next to the header               */
/* ------------------------------------------------------------------ */
/* Without photos nothing separates the header from the content, so the card
   moves up beside the header and holds the only primary action. Phones keep
   the order of the page source. */
@media (min-width: 992px) {
	.listeo-listing-showcase .listing-showcase--no-gallery {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		column-gap: 48px;
		align-items: start;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery::before,
	.listeo-listing-showcase .listing-showcase--no-gallery::after {
		display: none;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery .listing-showcase-header {
		grid-column: 1;
		grid-row: 1;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery .listing-showcase-header a.button.listing-primary-action {
		display: none;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery .listing-showcase-body {
		display: contents;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery .listing-showcase-body > .listeo-single-listing-content {
		grid-column: 1;
		grid-row: 2;
		width: auto;
		float: none;
		padding-right: 0;
		padding-left: 0;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery .listing-showcase-body > .listeo-single-listing-sidebar {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: stretch;
		width: auto;
		float: none;
		margin-left: 0;
		padding: 48px 0 0;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery.listing-showcase--sidebar-left {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}

	.listeo-listing-showcase .listing-showcase--no-gallery.listing-showcase--sidebar-left .listing-showcase-header,
	.listeo-listing-showcase .listing-showcase--no-gallery.listing-showcase--sidebar-left .listing-showcase-body > .listeo-single-listing-content {
		grid-column: 2;
	}

	.listeo-listing-showcase .listing-showcase--no-gallery.listing-showcase--sidebar-left .listing-showcase-body > .listeo-single-listing-sidebar {
		grid-column: 1;
	}
}

/* A listing without a logo must not reserve the logo column. */
.listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header {
 grid-template-columns: 0 auto minmax(0, 1fr) auto auto;
 column-gap: 0;
}
.listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header #titlebar.listing-titlebar h1,
.listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header .listing-header-excerpt,
.listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header #titlebar.listing-titlebar .star-rating,
.listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header #titlebar.listing-titlebar .numerical-rating {
 margin-left: 0;
}
@media (max-width: 991px) {
 .listeo-listing-showcase .listing-showcase--no-logo .listing-showcase-header {
  grid-template-columns: 0 minmax(0, 1fr) auto;
 }
}
