.maplibregl-popup {
	max-height: 80vh;
	overflow: auto;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
	border-bottom-color: var(--dark-grey);
}

.maplibregl-popup-close-button {
	appearance: none;
	outline: none;
	font-size: var(--medium-small);
	color: var(--dark-grey);
	font-family: var(--body);
	background-color: rgba(255,255,255,0.75);
	right: 2px;
	top: 2px;
	height: 22px;
	width: 22px;
	padding: 0 0 3px;
	border-radius: 11px;
}

.maplibregl-popup-content {
	box-sizing: border-box;
	padding: 0 0 14px;
	border-radius: 0;
}

.maplibregl-popup-content .showroom-type-brand,
.maplibregl-popup-content .showroom-type-multibrand {
	background-color: var(--red);
	position: absolute;
	left: 0;
	top: 0;
	color: var(--lightest-grey);
	z-index: 1;
    padding: 5px 10px;
    font-size: var(--small);
}

.maplibregl-popup-content .showroom-type-reseller {
	background-color: var(--ochre);
	position: absolute;
	left: 0;
	top: 0;
	color: var(--lightest-grey);
	z-index: 1;
    padding: 5px 10px;
    font-size: var(--small);
}

.maplibregl-popup-content .showroom-image-container {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	aspect-ratio: 1 / 1;
}

.maplibregl-popup-content .showroom-image-container img {
	display: inline-block;
	width: 100%;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	object-fit: cover;
	object-position: center center;
}

.maplibregl-popup-content .showroom-navigation-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 0;
	gap: 6px;
}

.maplibregl-popup-content .showroom-navigation-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.maplibregl-popup-content .showroom-navigation-dot.active {
	background-color: var(--darker-grey);
}

.maplibregl-popup-content .showroom-navigation-dot:hover {
	background-color: rgba(0, 0, 0, 0.5);
}

.maplibregl-popup-content .showroom-text-container {
	padding: 14px 14px 0;
}

.maplibregl-popup-content .showroom-image-container ~ .showroom-text-container {
	padding: 7px 14px 0;
}

.maplibregl-popup-content .showroom-type-brand + .showroom-text-container,
.maplibregl-popup-content .showroom-type-multibrand + .showroom-text-container,
.maplibregl-popup-content .showroom-type-reseller + .showroom-text-container {
  padding: 40px 14px 0;
}

.maplibregl-popup-content .showroom-text-container h2 {
	font-family: var(--body);
	font-size: var(--medium-small);
	font-weight: var(--medium-bold);
	color: var(--darker-grey);
	margin: 0;
	padding-bottom: 4px;
	line-height: normal;
	max-width: calc(100% - 10px);
}

.maplibregl-popup-content .showroom-text-container p {
	font-family: var(--body);
	font-size: var(--small);
	font-weight: var(--normal);
	color: var(--darker-grey);
	margin: 0;
	padding-bottom: 3px;
}

.maplibregl-popup-content .showroom-text-container a.showroom-directions {
	padding-bottom: 6px;
}

.maplibregl-popup-content .showroom-text-container details {
	font-size: var(--small);
	padding-bottom: 4px;
	position: relative;
}

.maplibregl-popup-content .showroom-text-container details summary::before {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	width: 20px;
	height: 20px;
	cursor: pointer;
	text-align: center;
    border: 1px solid;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: 16px;
}

.maplibregl-popup-content .showroom-text-container details[open] summary::before {
	content: '-';
}

.maplibregl-popup-content .showroom-text-container details summary {
	display: block;
	font-size: var(--small);
	padding-bottom: 3px;
}

.maplibregl-popup-content .showroom-text-container details summary span {
	display: block;
	max-width: calc(100% - 20px);
}

.maplibregl-popup-content .showroom-text-container details summary::-webkit-details-marker { 
	display: none 
}

.maplibregl-popup-content .showroom-text-container details .showroom-working-hours-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 0 10px 0 8px;
}

.maplibregl-popup-content .showroom-text-container details .showroom-working-hours-container .showroom-working-days,
.maplibregl-popup-content .showroom-text-container details .showroom-working-hours-container .showroom-working-hours {
	display: inline-block;
	vertical-align: top;
}

.maplibregl-popup-content .showroom-text-container details .showroom-working-hours-container .showroom-working-hours {
	text-align: right;
}

.maplibregl-popup-content .showroom-text-container a {
	outline: none;
	text-underline-offset: 2px;
	color: var(--dark-grey);
	font-size: var(--small);
	color: var(--darker-grey);
	display: block;
}

.maplibregl-popup-content .showroom-text-container a.showroom-email {
	padding-top: 4px;
}

.maplibregl-popup-content .showroom-text-container .showroom-available-models-details {
	margin-top: 8px;
	padding-bottom: 0;
}

.maplibregl-popup-content .showroom-text-container .showroom-available-models-details .showroom-available-models-container {
	padding: 0 10px 0 8px;
	text-align: center;
}

.maplibregl-popup-content .showroom-text-container .showroom-available-models-details a.showroom-available-model {
	display: inline-block;
	margin: 0 6px 1px 0;
	padding: 0;
}

@media screen and (max-width: 500px) {
	.maplibregl-ctrl-bottom-left {
		display: none;
	}
}