/**
 * Jorato WordPress Templates — case catalog, list, and case detail.
 *
 * Typography + colors follow the shared design system (Poppins, blue / gold / green palette).
 * Tokens are scoped to plugin roots so the active theme is not affected.
 */

/* —— Design tokens (scoped) —— */

.jorato-case-catalog,
.jorato-case-detail,
.jorato-case-detail__booking,
.jorato-case-detail__lightbox,
.jorato-facilities {
	/* Palette */
	--jorato-color-blue: #2c3a60;
	/* Shared hover color for all blue buttons — change here to update everywhere. */
	--jorato-color-blue-hover: #7c859c;
	--jorato-color-gold: #baa558;
	/* Shared hover color for gold buttons — change here to update everywhere. */
	--jorato-color-gold-hover: #d2c597;
	--jorato-color-green: #b9c8b9;
	--jorato-color-grey: #4c4c4c;
	/* Muted surface used for empty / no-results states. */
	--jorato-color-surface-muted: #f1f5f1;
	--jorato-color-white: #ffffff;
	--jorato-color-white-90: rgba(255, 255, 255, 0.9);
	--jorato-color-overlay: rgba(44, 58, 96, 0.35);
	--jorato-color-text: #242424;

	/* Layout */
	--jorato-radius: 10px;
	--jorato-shadow: 0 4px 20px rgba(44, 58, 96, 0.08);

	/* Typography: mobile-first (< 1280px); desktop overrides below. */
	--jorato-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--jorato-heading-lh: 1.2;
	--jorato-heading-weight: 600;
	--jorato-heading-ls: 0;
	--jorato-h1: 41px;
	--jorato-h2: 34px;
	--jorato-h3: 29px;
	--jorato-h4: 24px;
	--jorato-h5: 20px;
	--jorato-h6: 16px;

	/* Body */
	--jorato-body-lh: 1.4;
	--jorato-body-ls: 0;
	--jorato-p-size: 14px;
	--jorato-p-weight: 300;
	--jorato-p-bold-weight: 600;
	--jorato-p-small-size-mobile: 12px;
	--jorato-p-small2-size-mobile: 10px;
	--jorato-p-small-size: var(--jorato-p-small-size-mobile);
	--jorato-p-small2-size: var(--jorato-p-small2-size-mobile);

	font-family: var(--jorato-font-family);
	color: var(--jorato-color-text);
	line-height: var(--jorato-body-lh);
	letter-spacing: var(--jorato-body-ls);
	-webkit-font-smoothing: antialiased;
}

/* —— Case catalog (list + filters) —— */

.jorato-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@keyframes jorato-catalog-spin {
	to {
		transform: rotate(360deg);
	}
}

.jorato-case-catalog {
	/* Mobile-first: docs/responsive-layout-guidelines.md — 884px rail, 1.5rem gutters. */
	--jorato-content-rail-max: 884px;
	--jorato-list-max: 100%;
	--jorato-list-pad-x: 1.5rem;
	/* Full-bleed cap mirrors the MGH Hero image (max-width: 1920px, centered). */
	--jorato-fullbleed-max: 1920px;
	--jorato-filters-panel-bg: #b9c8b966;
	--jorato-card-w: 444px;
	--jorato-card-h: 444px;
	--jorato-card-img-h: 230px;
	--jorato-grid-gap-x: 40px;
	--jorato-grid-gap-y: 60px;

	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: var(--jorato-content-rail-max);
	margin: 0 auto 2.5rem;
	overflow-x: clip;
}

.jorato-case-catalog.jorato-case-catalog--loading::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.72);
	pointer-events: none;
}

.jorato-case-catalog.jorato-case-catalog--loading::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 2.25rem;
	height: 2.25rem;
	margin: -1.125rem 0 0 -1.125rem;
	z-index: 21;
	border: 3px solid rgba(44, 58, 96, 0.22);
	border-top-color: var(--jorato-color-blue);
	border-radius: 50%;
	animation: jorato-catalog-spin 0.65s linear infinite;
	pointer-events: none;
}

.jorato-case-filters {
	box-sizing: border-box;
	position: relative;
	z-index: 10;
	width: 100%;
}

.jorato-case-filters__panel {
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	background: transparent;
	padding: 40px 1.5rem;
	margin-bottom: 60px;
}

.jorato-case-filters__panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(100vw, var(--jorato-fullbleed-max));
	background: var(--jorato-filters-panel-bg);
}

.jorato-case-filters__toolbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	min-height: 52px;
	max-width: var(--jorato-list-max, 1512px);
	margin: 0 auto;
}

.jorato-case-filters__select {
	appearance: none;
	box-sizing: border-box;
	height: 52px;
	background: var(--jorato-color-white);
	border: 1px solid rgba(76, 76, 76, 0.2);
	border-radius: var(--jorato-radius);
	padding: 0 2.25rem 0 0.85rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	min-width: 12rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234c4c4c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	cursor: pointer;
}

.jorato-case-filters__select--location {
	flex: 0 1 auto;
	width: min(350px, 100%);
	max-width: 100%;
	min-width: 0;
}

.jorato-case-filters__field--location {
	flex: 0 1 auto;
	width: min(350px, 100%);
	max-width: 100%;
	min-width: 0;
}

.jorato-shadcn-select--location {
	width: 100%;
}

.jorato-case-filters__select--wide {
	flex: 1 1 14rem;
	max-width: 22rem;
}

.jorato-case-filters__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 52px;
	margin-left: 20px;
	padding: 0 30px;
	background: var(--jorato-color-blue);
	color: var(--jorato-color-white);
	border: none;
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	cursor: pointer;
	transition: background 0.15s ease;
}

.jorato-case-filters__toggle:hover,
.jorato-case-filters__toggle:focus-visible {
	background: var(--jorato-color-blue-hover);
}

.jorato-case-filters__count {
	/* Desktop Paragraph Bold + blue (design system). */
	margin: 0;
	margin-left: 30px;
	flex: 0 0 auto;
	align-self: center;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	letter-spacing: var(--jorato-body-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-filters__advanced {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	overflow: visible;
	transition:
		grid-template-rows 300ms ease,
		margin-top 300ms ease;
}

.jorato-case-filters__advanced--open {
	grid-template-rows: 1fr;
	margin-top: 1.5rem;
}

.jorato-case-filters__advanced-inner {
	max-width: var(--jorato-list-max, 1512px);
	margin: 0 auto;
	width: 100%;
	min-height: 0;
	overflow: hidden;
}

.jorato-case-filters__advanced--open .jorato-case-filters__advanced-inner {
	overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
	.jorato-case-filters__advanced {
		transition: none;
	}
}

.jorato-case-filters__ranges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	gap: 40px;
	margin-bottom: 0;
}

.jorato-case-filters__ranges > .jorato-case-filters__field {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
}

.jorato-case-filters__ranges .jorato-case-filters__select--wide {
	flex: none;
	width: 100%;
	max-width: none;
}

.jorato-case-filters__field--rooms {
	flex: 1 1 0;
	min-width: 0;
}

/* Shadcn-style multi-select (rooms filter). */
.jorato-shadcn-select {
	position: relative;
	z-index: 1;
	width: 100%;
}

.jorato-shadcn-select.is-open {
	z-index: 20;
}

.jorato-shadcn-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 0.85rem;
	background: var(--jorato-color-white);
	border: 1px solid rgba(76, 76, 76, 0.2);
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jorato-shadcn-select__trigger:hover {
	border-color: rgba(44, 58, 96, 0.35);
}

.jorato-shadcn-select__trigger:focus-visible {
	outline: none;
	border-color: var(--jorato-color-blue);
	box-shadow: 0 0 0 2px rgba(44, 58, 96, 0.18);
}

.jorato-shadcn-select.is-open .jorato-shadcn-select__trigger {
	border-color: var(--jorato-color-blue);
	box-shadow: 0 0 0 2px rgba(44, 58, 96, 0.18);
}

.jorato-shadcn-select__value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jorato-shadcn-select__chevron {
	flex: 0 0 auto;
	width: 12px;
	height: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234c4c4c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 8px;
	transition: transform 0.15s ease;
}

.jorato-shadcn-select.is-open .jorato-shadcn-select__chevron {
	transform: rotate(180deg);
}

.jorato-shadcn-select__popover {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	box-sizing: border-box;
	max-height: 18rem;
	overflow-y: auto;
	padding: 0.25rem;
	background: var(--jorato-color-white);
	border: 1px solid rgba(76, 76, 76, 0.2);
	border-radius: var(--jorato-radius);
	box-shadow: var(--jorato-shadow);
}

.jorato-shadcn-select__popover[hidden] {
	display: none;
}

.jorato-shadcn-select__option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border-radius: calc(var(--jorato-radius) - 2px);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	cursor: pointer;
	user-select: none;
}

.jorato-shadcn-select__option:hover:not(.is-disabled) {
	background: rgba(44, 58, 96, 0.06);
}

.jorato-shadcn-select__option.is-selected:not(.is-disabled) {
	background: rgba(44, 58, 96, 0.08);
}

.jorato-shadcn-select__option.is-disabled {
	color: var(--jorato-color-grey);
	opacity: 0.55;
	cursor: not-allowed;
}

.jorato-shadcn-select__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jorato-shadcn-select__option-text {
	flex: 1 1 auto;
	min-width: 0;
}

.jorato-shadcn-select__count {
	flex: 0 0 auto;
	margin-left: auto;
	font-variant-numeric: tabular-nums;
	color: var(--jorato-color-grey);
}

.jorato-shadcn-select__check {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border: 1px solid rgba(76, 76, 76, 0.35);
	border-radius: 3px;
	background: var(--jorato-color-white);
	position: relative;
}

.jorato-shadcn-select__option.is-selected .jorato-shadcn-select__check {
	background: var(--jorato-color-blue);
	border-color: var(--jorato-color-blue);
}

.jorato-shadcn-select__option.is-selected .jorato-shadcn-select__check::after {
	content: "";
	position: absolute;
	left: 0.28rem;
	top: 0.12rem;
	width: 0.28rem;
	height: 0.48rem;
	border: solid var(--jorato-color-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.jorato-case-filters__label {
	/* Mobile Paragraph BOLD / Desktop Paragraph Bold (design system). */
	display: block;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	letter-spacing: var(--jorato-body-ls);
	margin-bottom: 0.5rem;
	color: var(--jorato-color-blue);
}

.jorato-dual-range {
	position: relative;
	height: 40px;
	margin-bottom: 0;
}

.jorato-dual-range__track {
	display: none;
}

.jorato-dual-range__input {
	/* Thumb art as data URI + on input for WebKit pseudo inheritance. */
	--jorato-dual-range-thumb-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%232C3A60'/%3E%3Cpath fill='%23ffffff' d='M18.5057 14.6868L17.9414 15.2511L22.3157 19.6254L17.9414 23.9997L18.5057 24.564L23.4443 19.6254L18.5057 14.6868Z'/%3E%3C/svg%3E");
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: 100%;
	height: 40px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	z-index: 1;
}

.jorato-dual-range__input.is-active {
	z-index: 3;
}

.jorato-dual-range__input::-webkit-slider-runnable-track {
	height: 1px;
	background: rgba(44, 58, 96, 0.2);
	border: none;
	border-radius: 0;
}

.jorato-dual-range__input--max {
	z-index: 2;
}

.jorato-dual-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin-top: -19.5px;
	border-radius: 50%;
	border: none;
	background-color: var(--jorato-color-blue);
	background-image: var(--jorato-dual-range-thumb-image);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 40px 40px;
	box-shadow: 0 2px 8px rgba(44, 58, 96, 0.18);
	cursor: pointer;
}

.jorato-dual-range__input--min::-webkit-slider-thumb {
	transform: scaleX(-1);
}

.jorato-dual-range__input::-moz-range-track {
	height: 1px;
	background: rgba(44, 58, 96, 0.2);
	border: none;
	border-radius: 0;
}

.jorato-dual-range__input::-moz-range-thumb {
	box-sizing: border-box;
	pointer-events: auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: var(--jorato-color-blue);
	background-image: var(--jorato-dual-range-thumb-image);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 40px 40px;
	box-shadow: 0 2px 8px rgba(44, 58, 96, 0.18);
	cursor: pointer;
}

.jorato-dual-range__input--min::-moz-range-thumb {
	transform: scaleX(-1);
}

.jorato-dual-range__values {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-small-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
}

/* Desktop-first filter chrome: stack below 1280px (see responsive-layout-guidelines.md). */
@media (max-width: 1279px) {
	.jorato-case-filters__toolbar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		min-height: 0;
	}

	.jorato-case-filters__select--location,
	.jorato-case-filters__field--location {
		width: 100%;
		max-width: none;
		flex: 1 1 auto;
	}

	.jorato-case-filters__toggle {
		display: flex;
		margin-left: 0;
		width: 100%;
		max-width: none;
		align-self: stretch;
	}

	.jorato-case-filters__count {
		margin-left: 0;
		width: 100%;
		flex: none;
		text-align: left;
	}

	.jorato-case-filters__ranges {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}

	.jorato-case-filters__ranges > .jorato-case-filters__field {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}
}

/* Tablet: widen the catalog so the filters band matches the full-bleed hero. */
@media (min-width: 900px) and (max-width: 1279px) {
	.jorato-case-catalog {
		max-width: 100%;
	}

	.jorato-case-results {
		max-width: var(--jorato-content-rail-max);
	}
}

.jorato-case-results {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	padding-left: var(--jorato-list-pad-x);
	padding-right: var(--jorato-list-pad-x);
	margin-left: auto;
	margin-right: auto;
}

.jorato-case-results__heading {
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h4);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
	margin: 0 0 1.25rem;
}

.jorato-case-grid {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: var(--jorato-grid-gap-x, 40px);
	row-gap: var(--jorato-grid-gap-y, 60px);
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

@media (min-width: 1280px) {
	.jorato-case-catalog,
	.jorato-case-detail,
	.jorato-case-detail__booking,
	.jorato-case-detail__lightbox,
	.jorato-facilities {
		--jorato-h1: 53px;
		--jorato-h2: 42px;
		--jorato-h3: 34px;
		--jorato-h4: 27px;
		--jorato-h5: 21px;
		--jorato-h6: 17px;
		--jorato-p-small-size: 11px;
		--jorato-p-small2-size: 8px;
	}

	.jorato-case-catalog {
		--jorato-list-max: 1512px;
		--jorato-list-pad-x: 50px;
		/* Catalog widens to the hero's full-bleed cap so the filters band can
		   stretch to 1920px; content below is re-constrained to the 1512px rail. */
		max-width: var(--jorato-fullbleed-max);
	}

	.jorato-case-filters__panel {
		padding: 40px 50px;
		margin-bottom: 100px;
	}

	/* Keep the results (heading + grid) on the 1512px content rail, centered on
	   the same axis as the filters band so nothing shifts when the band widens. */
	.jorato-case-results {
		max-width: var(--jorato-list-max);
	}

	.jorato-case-catalog--desktop-cols-2 .jorato-case-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: var(--jorato-list-max, 1512px);
		justify-content: stretch;
	}

	.jorato-case-catalog--desktop-cols-2 {
		--jorato-card-img-h: 355px;
	}

	.jorato-case-catalog--desktop-cols-3 .jorato-case-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: var(--jorato-list-max, 1512px);
		justify-content: stretch;
	}

	.jorato-case-catalog--desktop-cols-2 .jorato-case-card,
	.jorato-case-catalog--desktop-cols-3 .jorato-case-card {
		max-width: none;
		justify-self: stretch;
	}

	/* In 2-column mode the cards are wide, so left-align the stats with a fixed
	   gap instead of stretching them across the full row. */
	.jorato-case-catalog--desktop-cols-2 .jorato-case-card__stats {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		grid-template-columns: none;
		column-gap: 2rem;
		row-gap: 0.5rem;
	}
}

.jorato-case-grid__empty {
	grid-column: 1 / -1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	width: fit-content;
	max-width: min(100%, 43.2rem);
	margin: 2rem auto;
	padding: 70px 50px;
	background: var(--jorato-color-surface-muted);
	border-radius: var(--jorato-radius);
}

.jorato-case-grid__empty-title {
	margin: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h4);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-grid__empty-text {
	margin: 0;
	max-width: 43.2rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
}

.jorato-case-grid__empty-button {
	box-sizing: border-box;
	display: inline-block;
	margin: 0;
	padding: 15px 30px 17px;
	border: none;
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	color: #fff;
	background: var(--jorato-color-gold);
	text-decoration: none;
	transition: background 0.15s ease;
}

.jorato-case-grid__empty-button:hover,
.jorato-case-grid__empty-button:focus-visible {
	color: #fff;
	background: var(--jorato-color-gold-hover);
}

.jorato-case-grid__empty-button:focus-visible {
	outline: 2px solid var(--jorato-color-gold);
	outline-offset: 2px;
}

.jorato-case-results__more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.jorato-case-results__more-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 220px;
	padding: 15px 36px 17px;
	border: 2px solid var(--jorato-color-blue);
	border-radius: var(--jorato-radius);
	background: transparent;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.jorato-case-results__more-button:hover,
.jorato-case-results__more-button:focus-visible {
	background: var(--jorato-color-blue);
	color: #fff;
}

.jorato-case-results__more-button:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

.jorato-case-results__more-button:disabled {
	cursor: default;
}

.jorato-case-results__more-spinner {
	display: none;
	width: 1.05em;
	height: 1.05em;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: jorato-catalog-spin 0.65s linear infinite;
}

.jorato-case-results__more-button.is-loading {
	background: var(--jorato-color-blue);
	color: #fff;
}

.jorato-case-results__more-button.is-loading .jorato-case-results__more-spinner {
	display: inline-block;
}

.jorato-case-card {
	background: var(--jorato-color-white);
	border-radius: var(--jorato-radius) var(--jorato-radius) 0 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--jorato-card-w, 444px);
	height: auto;
	min-height: var(--jorato-card-h, 444px);
	justify-self: center;
}

.jorato-case-card__media {
	position: relative;
	width: 100%;
	height: var(--jorato-card-img-h, 230px);
	flex-shrink: 0;
	overflow: hidden;
	background: var(--jorato-color-green);
	border-radius: var(--jorato-radius) var(--jorato-radius) 0 0;
}

.jorato-case-card__imglink {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
	text-decoration: none;
	overflow: hidden;
}

.jorato-case-card__slider {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.jorato-case-card__slide {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: scale(1);
	transition: opacity 0.25s ease, transform 300ms ease-out;
	z-index: 0;
}

.jorato-case-card__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.jorato-case-card:hover .jorato-case-card__slide,
.jorato-case-card:focus-within .jorato-case-card__slide {
	transform: scale(1.01);
}

.jorato-case-card__slide--placeholder {
	background: linear-gradient(135deg, #d4e0d4, #a8b8a8);
}

.jorato-case-card__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	background-color: var(--jorato-color-white-90);
	background-image: url("../images/chevron-arrow.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

.jorato-case-card__nav--prev {
	left: 0.5rem;
	transform: translateY(-50%) scaleX(-1);
}

.jorato-case-card__nav--next {
	right: 0.5rem;
	transform: translateY(-50%);
}

.jorato-case-card__nav:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

.jorato-case-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 10px;
	max-width: calc(100% - 3rem);
	background: var(--jorato-color-blue);
	border-bottom-right-radius: 8px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 0;
	color: #fff;
	font-family: var(--jorato-font-family);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 18px;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.jorato-case-card__overlay {
	position: absolute;
	left: 0;
	right: auto;
	bottom: 0;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: max-content;
	max-width: calc(100% - 0.5rem);
	height: 34px;
	padding: 10px;
	background: #baa558;
	border-top-right-radius: 8px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.jorato-case-card__overlay-text {
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--jorato-font-family);
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.jorato-case-card__body {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	width: 100%;
	min-width: 100%;
	align-self: stretch;
	padding: 20px 0 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-height: 0;
	border-bottom: 1px solid #c8c8c8;
}

/* “Ledig fra” / “Anvendelse” row — 12px on all breakpoints, label not bold. */
.jorato-case-card__avail {
	margin: 0 0 0.35rem;
	max-width: 100%;
	min-width: 0;
	font-family: var(--jorato-font-family);
	font-size: 12px;
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-grey);
}

.jorato-case-card__avail-label {
	white-space: normal;
}

.jorato-case-card__avail-date {
	white-space: normal;
}

.jorato-case-card__title {
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h5);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
}

.jorato-case-card__title-link {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	/* Slightly looser than heading lh so descenders (g, j, p) are not clipped by line-clamp. */
	line-height: 1.35;
	word-break: break-word;
	overflow-wrap: anywhere;
	color: var(--jorato-color-blue);
	text-decoration: none;
	transition: color 0.15s ease;
}

.jorato-case-card:hover .jorato-case-card__title-link,
.jorato-case-card:focus-within .jorato-case-card__title-link {
	color: var(--jorato-color-gold);
}

.jorato-case-card__address {
	margin: 10px 0 30px;
	max-width: 100%;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-grey);
}

.jorato-case-card__address-icon {
	flex-shrink: 0;
	width: 14px;
	height: auto;
	margin-top: 0.1em;
	display: block;
}

.jorato-case-card__address-text {
	min-width: 0;
}

.jorato-case-card__stats {
	display: grid;
	/* Wider middle column so the price fits on one row; equal outer columns keep it centered. */
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(0, 1.05fr);
	align-items: center;
	column-gap: 1.25rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: auto;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-grey);
}

.jorato-case-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	color: inherit;
	justify-self: start;
}

.jorato-case-card__stat--third {
	min-height: 1.25rem;
}

.jorato-case-card__stat-icon {
	flex-shrink: 0;
	display: block;
}

.jorato-case-card__stat--rent .jorato-case-card__stat-text {
	color: var(--jorato-color-blue);
}

/* —— Case detail (mobile-first) —— */

.jorato-case-detail {
	--jorato-detail-split-gap: 40px;
	--jorato-detail-col-main: 800px;
	--jorato-detail-col-aside: 552px;
	--jorato-content-max: 1512px;
	/* Vertical rhythm between major page sections (60px mobile / 100px desktop). */
	--jorato-section-space: 60px;
	box-sizing: border-box;
	max-width: 48rem;
	margin: 0 auto;
	width: 100%;
}

.jorato-case-detail__body {
	box-sizing: border-box;
	width: 100%;
}

/* Two-column layout (≥1280px): 800px main + gap + 552px contact / prospectus. Mobile: single column. */
.jorato-case-detail__split {
	box-sizing: border-box;
	width: 100%;
	margin-top: var(--jorato-section-space);
}

.jorato-case-detail__split-lead,
.jorato-case-detail__split-lead-secondary {
	box-sizing: border-box;
	min-width: 0;
}

.jorato-case-detail__split-aside {
	box-sizing: border-box;
	padding-top: 2rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.jorato-case-detail__aside-card {
	box-sizing: border-box;
	width: 100%;
}

.jorato-case-detail__aside-prospectus {
	margin-top: 1rem;
}

.jorato-case-detail__cta--aside-full {
	width: 100%;
}

@media (min-width: 1280px) {
	.jorato-case-detail {
		--jorato-section-space: 100px;
		max-width: min(
			100%,
			calc(var(--jorato-detail-col-main) + var(--jorato-detail-split-gap) + var(--jorato-detail-col-aside))
		);
	}

	.jorato-case-detail__split--has-aside {
		display: grid;
		/* Fluid columns keep the 800:552 proportions but shrink to fit between
		   1280px and the 1512px design width (avoids fixed-track overflow). */
		grid-template-columns: minmax(0, 800fr) minmax(0, 552fr);
		column-gap: clamp(24px, 3vw, var(--jorato-detail-split-gap));
		align-items: start;
		justify-content: center;
	}

	.jorato-case-detail__split--has-aside .jorato-case-detail__split-lead {
		grid-column: 1;
		grid-row: 1;
	}

	.jorato-case-detail__split--has-aside .jorato-case-detail__split-aside {
		grid-column: 2;
		grid-row: 1 / span 2;
		padding-top: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.jorato-case-detail__split--has-aside .jorato-case-detail__split-lead-secondary {
		grid-column: 1;
		grid-row: 2;
	}

	.jorato-case-detail__split:not(.jorato-case-detail__split--has-aside) {
		max-width: var(--jorato-detail-col-main);
		margin-left: auto;
		margin-right: auto;
	}

	.jorato-case-detail__split-aside .jorato-case-detail__agent-photo {
		width: 100%;
		max-width: 552px;
		height: auto;
		aspect-ratio: 323 / 219;
		object-fit: cover;
	}

	/* H3-styled headings: 20px bottom margin on desktop. */
	.jorato-case-detail__title,
	.jorato-case-detail__description-title,
	.jorato-case-detail__map-heading,
	.jorato-case-detail__unit-selector-heading,
	.jorato-case-detail__facilities-heading {
		margin-bottom: 20px;
	}
}

.jorato-case-detail__section {
	box-sizing: border-box;
	margin: 0;
}

.jorato-case-detail__section--gallery {
	width: 100%;
}

.jorato-case-detail__section--intro,
.jorato-case-detail__section--location-map,
.jorato-case-detail__section--descriptions,
.jorato-case-detail__section--facts,
.jorato-case-detail__section--agent,
.jorato-case-detail__section--post-agent,
.jorato-case-detail__section--facilities {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.jorato-case-detail__section--location-map {
	padding-top: var(--jorato-section-space);
	padding-bottom: 2rem;
}

.jorato-case-detail__section--elementor {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--jorato-content-max, 1512px);
	margin-left: auto;
	margin-right: auto;
}

.jorato-case-detail__map-heading {
	/* Desktop H3 (uses --jorato-h3: 34px from 1280px; 29px below). */
	margin: 0 0 0.75rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__map-shell {
	position: relative;
	width: 100%;
	height: 600px;
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.06);
}

.jorato-case-detail__map {
	width: 100%;
	height: 100%;
	min-height: 280px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.jorato-case-detail__map-shell {
		height: 620px;
	}
}

.jorato-case-detail__map-toolbar {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	align-items: flex-start;
	max-width: calc(100% - 20px);
	pointer-events: none;
}

.jorato-case-detail__map-filter {
	appearance: none;
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--jorato-color-blue);
	background: var(--jorato-color-white);
	color: var(--jorato-color-blue);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	pointer-events: auto;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.jorato-case-detail__map-filter:hover {
	background: rgba(44, 58, 96, 0.06);
}

.jorato-case-detail__map-filter.is-active {
	background: var(--jorato-color-blue);
	color: var(--jorato-color-white);
	border-color: var(--jorato-color-blue);
}

.jorato-case-detail__map-filter.is-active:hover {
	background: var(--jorato-color-blue-hover);
	border-color: var(--jorato-color-blue-hover);
	color: var(--jorato-color-white);
}

.jorato-case-detail__map .mapboxgl-canvas {
	outline: none;
}

/* Mapbox sets inline z-index on markers by latitude; popups default to 1 and render behind icons. */
.jorato-case-detail__map-shell .mapboxgl-popup {
	z-index: 9999 !important;
}

/* Mapbox default close control: larger hit target and clearer placement (scoped to case detail map). */
.jorato-case-detail__map-shell .jorato-case-detail__mapbox-popup.mapboxgl-popup .mapboxgl-popup-content {
	padding: 12px 44px 12px 14px;
}

.jorato-case-detail__map-shell .jorato-case-detail__mapbox-popup.mapboxgl-popup .mapboxgl-popup-close-button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.55);
	background: transparent;
	border: 0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;
}

.jorato-case-detail__map-shell .jorato-case-detail__mapbox-popup.mapboxgl-popup .mapboxgl-popup-close-button:hover {
	color: rgba(0, 0, 0, 0.85);
	background: rgba(0, 0, 0, 0.06);
}

.jorato-case-detail__map-marker {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	line-height: 0;
	position: relative;
	z-index: 1;
}

.jorato-case-detail__map-marker img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
	pointer-events: none;
}

.jorato-case-detail__map-marker--poi {
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	padding: 5px;
	border-radius: 50%;
	background-color: var(--jorato-color-white, #fff);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	transition: background-color 0.15s ease;
}

.jorato-case-detail__map-marker--poi img {
	width: 100%;
	height: 100%;
	transition: filter 0.15s ease;
}

.jorato-case-detail__map-marker--poi.is-active {
	background-color: var(--jorato-color-blue, #2c3a60);
}

.jorato-case-detail__map-marker--poi.is-active img {
	filter: brightness(0) invert(1);
}

.jorato-case-detail__map-marker--case {
	z-index: 10;
	align-items: center;
}

.jorato-case-detail__map-marker--case img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 50%;
	background-color: var(--jorato-color-blue, #2c3a60);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.jorato-case-detail__map-popup {
	padding: 2px 0;
	font-size: 0.875rem;
	line-height: 1.35;
}

.jorato-case-detail__map-popup-title {
	display: block;
	margin-bottom: 0.25rem;
}

.jorato-case-detail__map-popup-line,
.jorato-case-detail__map-popup-distance {
	margin: 0.15rem 0 0;
	color: rgba(0, 0, 0, 0.72);
}

.jorato-case-detail__poi-local {
	margin-top: 1.5rem;
	box-sizing: border-box;
}

.jorato-case-detail__poi-local-heading {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--jorato-color-blue);
}

.jorato-case-detail__poi-local-grid {
	display: grid;
	/* Four cards: Transport, Institutioner, Indkøb, Natur (Skoler is map filter only). */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-grid {
		gap: 1rem;
	}
}

.jorato-case-detail__poi-local-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
	width: 100%;
	padding: 0.65rem 0.35rem;
	border-radius: 10px;
	background: var(--jorato-color-white);
	border: 1px solid rgba(44, 58, 96, 0.1);
	text-align: center;
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-card {
		padding: 1.25rem 1rem;
		border-radius: 12px;
	}
}

.jorato-case-detail__poi-local-card-icon {
	align-self: center;
	flex-shrink: 0;
	line-height: 0;
	margin-bottom: 0.45rem;
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-card-icon {
		margin-bottom: 0.75rem;
	}
}

.jorato-case-detail__poi-local-card-icon img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
	background-color: var(--jorato-color-white, #fff);
	border-radius: 50%;
	padding: 4px;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-card-icon img {
		width: 40px;
		height: 40px;
		padding: 5px;
	}
}

.jorato-case-detail__poi-local-card-title {
	margin: 0 0 0.45rem;
	padding: 0 0.125rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jorato-color-blue);
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-card-title {
		margin: 0 0 0.75rem;
		font-size: 1rem;
	}
}

.jorato-case-detail__poi-local-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	text-align: left;
}

.jorato-case-detail__poi-local-item {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	margin: 0;
	padding: 0.3rem 0;
	font-size: 0.625rem;
	line-height: 1.35;
	color: var(--jorato-color-blue);
	border-top: 1px solid rgba(44, 58, 96, 0.12);
	width: 100%;
	min-width: 0;
	gap: 0;
}

.jorato-case-detail__poi-local-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jorato-case-detail__poi-local-sep {
	flex-shrink: 0;
	white-space: pre;
}

.jorato-case-detail__poi-local-dist {
	flex-shrink: 0;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.jorato-case-detail__poi-local-item {
		padding: 0.4rem 0;
		font-size: 0.875rem;
		line-height: 1.45;
	}
}

.jorato-case-detail__poi-local-item:first-child {
	border-top: none;
	padding-top: 0;
}

.jorato-case-detail__gallery {
	position: relative;
	width: 100%;
	background: var(--jorato-color-green);
}

.jorato-case-detail__gallery-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	max-height: 70vh;
	touch-action: pan-y;
}

.jorato-case-detail__gallery-track {
	display: flex;
	height: 100%;
	transition: transform 0.28s ease;
	will-change: transform;
}

.jorato-case-detail__gallery-slide {
	flex-shrink: 0;
	height: 100%;
	position: relative;
}

.jorato-case-detail__gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	cursor: zoom-in;
}

.jorato-case-detail__gallery--floorplans .jorato-case-detail__gallery-slide {
	background-color: var(--jorato-color-white);
}

.jorato-case-detail__gallery--floorplans .jorato-case-detail__gallery-img {
	object-fit: contain;
}

.jorato-case-detail__gallery-slide--empty {
	background: linear-gradient(135deg, #d4e0d4, #a8b8a8);
	cursor: default;
}

.jorato-case-detail__section--gallery-empty .jorato-case-detail__gallery-nav {
	visibility: hidden;
	pointer-events: none;
}

.jorato-case-detail__gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	background-color: var(--jorato-color-white-90);
	background-image: url("../images/chevron-arrow.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

.jorato-case-detail__gallery-nav--prev {
	left: 0.5rem;
	transform: translateY(-50%) scaleX(-1);
}

.jorato-case-detail__gallery-nav--next {
	right: 0.5rem;
	transform: translateY(-50%);
}

.jorato-case-detail__gallery-nav:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

.jorato-case-detail__gallery-tabs {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 20px;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.jorato-case-detail__gallery-tab {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 15px 20px;
	border: none;
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: 12px;
	font-weight: var(--jorato-p-bold-weight);
	line-height: 1.2;
	color: #fff;
	background: var(--jorato-color-blue);
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		opacity 0.15s ease;
}

.jorato-case-detail__gallery-tab:hover {
	background: var(--jorato-color-blue-hover);
}

.jorato-case-detail__gallery-tab-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: #fff;
}

.jorato-case-detail__gallery-tab-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.jorato-case-detail__gallery-tab-icon img {
	display: block;
	width: 16px;
	height: auto;
}

.jorato-case-detail__gallery-tab-label {
	white-space: nowrap;
}

.jorato-case-detail__gallery-tab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 1279px) {
	.jorato-case-detail__gallery-tabs {
		flex-wrap: nowrap;
		gap: 8px;
		left: 1rem;
		right: 1rem;
	}

	.jorato-case-detail__gallery-tab {
		padding: 12px 12px;
		gap: 6px;
	}
}

@media (max-width: 480px) {
	.jorato-case-detail__gallery-tabs--compact [data-jorato-detail-tab="pictures"] .jorato-case-detail__gallery-tab-label {
		display: none;
	}

	.jorato-case-detail__gallery-tabs--compact [data-jorato-detail-tab="pictures"] {
		padding: 12px;
		gap: 0;
	}
}

@media (max-width: 390px) {
	.jorato-case-detail__gallery-tabs--compact [data-jorato-detail-tab="floorplans"] .jorato-case-detail__gallery-tab-label {
		display: none;
	}

	.jorato-case-detail__gallery-tabs--compact [data-jorato-detail-tab="floorplans"] {
		padding: 12px;
		gap: 0;
	}
}

.jorato-case-detail__section--intro {
	padding-top: 0;
	padding-bottom: 0.25rem;
}

/* 12px mobile, 14px desktop (does not follow Paragraph Small's 11px desktop size). */
.jorato-case-detail__avail {
	margin: 0 0 0.5rem;
	font-family: var(--jorato-font-family);
	font-size: 12px;
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-grey);
}

@media (min-width: 1280px) {
	.jorato-case-detail__avail {
		font-size: 14px;
	}
}

.jorato-case-detail__title {
	margin: 0 0 0.75rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__address {
	margin: 0 0 1rem;
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-grey);
}

.jorato-case-detail__address-icon {
	flex-shrink: 0;
	width: 14px;
	height: auto;
	margin-top: 0.1em;
	display: block;
}

.jorato-case-detail__desc-block {
	margin: 0 0 1.25rem;
}

.jorato-case-detail__desc {
	margin: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.jorato-case-detail__readmore {
	display: inline-block;
	margin-top: 0.35rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-small-size);
	font-weight: var(--jorato-p-bold-weight);
	color: var(--jorato-color-blue);
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s ease;
}

.jorato-case-detail__readmore:hover,
.jorato-case-detail__readmore:focus-visible {
	color: var(--jorato-color-gold);
	text-decoration: none;
}

.jorato-case-detail__readmore--toggle {
	margin-top: 0.5rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 14px;
	background: none;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
}

.jorato-case-detail__readmore--toggle::after {
	content: "";
	width: 0.85em;
	height: 0.85em;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%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' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.25s ease;
}

.jorato-case-detail__readmore--toggle[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

.jorato-case-detail__readmore.is-hidden {
	display: none;
}

.jorato-case-detail__cta {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.85rem 1rem;
	border: none;
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	color: #fff;
	background: var(--jorato-color-blue);
	cursor: pointer;
	transition: background 0.15s ease;
}

.jorato-case-detail__cta:hover,
.jorato-case-detail__cta:focus-visible {
	background: var(--jorato-color-blue-hover);
}

.jorato-case-detail__cta:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

@media (min-width: 1280px) {
	.jorato-case-detail__section--intro > .jorato-case-detail__cta {
		width: auto;
		display: inline-block;
		padding: 15px 30px 17px;
	}
}

a.jorato-case-detail__cta--link {
	display: block;
	text-align: center;
	text-decoration: none;
}

a.jorato-case-detail__cta--link:hover,
a.jorato-case-detail__cta--link:focus-visible {
	color: #fff;
}

.jorato-case-detail__section--post-agent {
	padding-top: 1.25rem;
}

.jorato-case-detail__section--unit-selector {
	padding-top: var(--jorato-section-space);
}

.jorato-case-detail__unit-selector-heading {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__unit-selector-shell {
	width: 100%;
	/* Clip horizontal bleed from the isometry canvas only. Vertical overflow:hidden
	   prevented the mobile tenancy detail panel from scrolling to its bottom. */
	overflow-x: clip;
	overflow-y: visible;
}

/*
 * The embedded viewer app sizes itself with height:100% chains and expects a
 * container with a definite height (the plugin renderer only sets min-height,
 * which lets the unit list grow unbounded). Floor at 800px so the embedded
 * viewer has ample room above its own internal min-height.
 *
 * Mobile embed locks height to window.innerHeight (UnitSelectorViewer); use svh
 * so the shell height matches and the flex scroll chain is not clipped.
 */
.jorato-case-detail__unit-selector-shell .jorato-unit-selector {
	height: clamp(800px, 80svh, 1000px);
}

@media (max-width: 1279px) {
	.jorato-case-detail__unit-selector-shell .jorato-unit-selector {
		height: 100svh;
		max-height: 100svh;
		min-height: 520px;
	}
}

.jorato-case-detail__section--facilities {
	padding-top: var(--jorato-section-space);
}

.jorato-case-detail__facilities-heading {
	margin: 0 0 1rem;
	font-family: var(--jorato-font-family);
	/* Mobile H3 (29px) / Desktop H3 (34px from 1280px) via --jorato-h3, matching "Beliggenhed". */
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

/*
 * Shared facilities accordion.
 *
 * Used by both the case detail page facilities list and the "Jorato Property
 * Facilities" Elementor widget (rendered via Jorato_Templates_Facilities_Renderer),
 * so they display identically. Single-open height animation lives in
 * assets/js/jorato-facilities.js.
 */
.jorato-facilities {
	font-family: var(--jorato-font-family);
}

/*
 * Standalone (property facilities) widget only: provide the same horizontal
 * padding / centering as the surrounding ".mgh-facilities" sections so it lines
 * up with the rest of the property page. The case detail page does NOT use this
 * modifier — there the padding comes from .jorato-case-detail__section--facilities.
 */
.jorato-facilities--standalone {
	box-sizing: border-box;
	max-width: 884px;
	margin-left: auto;
	margin-right: auto;
	padding: 60px 20px 0 20px;
}

@media (min-width: 1280px) {
	.jorato-facilities--standalone {
		max-width: 100%;
		padding: 100px 50px 0 50px;
	}
}

.jorato-facilities__title {
	margin: 0 0 1rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-facilities__columns {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.jorato-facilities__column {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
	min-width: 0;
}

@media (min-width: 1280px) {
	/*
	 * Side-by-side columns with independent row heights so expanding one facility
	 * does not stretch the opposite column (unlike a shared-row CSS grid).
	 */
	.jorato-facilities__columns {
		flex-direction: row;
		column-gap: 2.5rem;
	}
}

.jorato-facilities__item-wrap {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e0e0e0;
}

.jorato-facilities__item-wrap:first-of-type {
	border-top: 1px solid #e0e0e0;
}

.jorato-facilities__item {
	margin: 0;
}

.jorato-facilities__summary {
	list-style: none;
	cursor: pointer;
	box-sizing: border-box;
	padding: 24px 0 20px;
	font-family: var(--jorato-font-family);
	display: flex;
	align-items: center;
	gap: 0;
}

.jorato-facilities__summary--static {
	cursor: default;
}

.jorato-facilities__summary::-webkit-details-marker {
	display: none;
}

.jorato-facilities__summary:focus {
	outline: none;
}

.jorato-facilities__summary:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

.jorato-facilities__summary-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

/* Figma: Smart animate — 300ms ease-out (toggle + panel). */
.jorato-facilities__toggle {
	position: relative;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.25em;
	margin-left: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jorato-facilities__toggle-char {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h6);
	font-weight: var(--jorato-heading-weight);
	line-height: 1;
	color: var(--jorato-color-blue);
	transition: opacity 300ms ease-out;
}

.jorato-facilities__toggle-char--minus {
	opacity: 0;
	pointer-events: none;
}

.jorato-facilities__item[open] .jorato-facilities__toggle-char--plus {
	opacity: 0;
	pointer-events: none;
}

.jorato-facilities__item[open] .jorato-facilities__toggle-char--minus {
	opacity: 1;
	pointer-events: auto;
}

/* Height animation is driven in JS (native closed <details> skips layout of body). */
.jorato-facilities__body-outer {
	overflow: hidden;
	transition: height 300ms ease-out;
}

.jorato-facilities__item:not([open]) > .jorato-facilities__body-outer {
	height: 0;
}

.jorato-facilities__item[open] > .jorato-facilities__body-outer {
	height: auto;
}

.jorato-facilities__icon-wrap {
	flex-shrink: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background-color: var(--jorato-color-blue);
	padding: 5px;
}

.jorato-facilities__icon-wrap img,
.jorato-facilities__icon-wrap svg {
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	/* White glyph on blue tile (works best with dark / full-color icons). */
	filter: brightness(0) invert(1);
}

.jorato-facilities__title-text {
	margin: 0;
	font-size: var(--jorato-h6);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-facilities__body {
	box-sizing: border-box;
	overflow: hidden;
	min-height: 0;
	padding: 0 0 20px calc(32px + 10px);
}

@media (prefers-reduced-motion: reduce) {
	.jorato-facilities__toggle-char,
	.jorato-facilities__body-outer {
		transition-duration: 0.01ms;
	}
}

.jorato-facilities__desc {
	margin: 0 0 0.5rem;
}

.jorato-facilities__desc-p {
	margin: 0 0 0.625rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
}

.jorato-facilities__desc-p:last-child {
	margin-bottom: 0;
}

.jorato-facilities__desc--empty {
	font-style: italic;
	color: var(--jorato-color-grey);
}

.jorato-facilities__sizes {
	margin: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-small-size);
	color: var(--jorato-color-grey);
}

.jorato-case-detail__post-agent-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jorato-case-detail__section--facts {
	padding-top: 1.75rem;
}

.jorato-case-detail__section--descriptions {
	padding-top: 3rem;
}

.jorato-case-detail__description-item + .jorato-case-detail__description-item {
	margin-top: 2.25rem;
}

.jorato-case-detail__description-title {
	margin: 0 0 0.75rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__description-body {
	margin: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__description-body.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.jorato-case-detail__description-body.is-animating {
	overflow: hidden;
	transition: height 0.35s ease;
}

.jorato-case-detail__facts {
	margin: 0;
	padding: 0;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	line-height: var(--jorato-body-lh);
}

.jorato-case-detail__fact-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #e0e0e0;
}

.jorato-case-detail__fact-row:first-child {
	border-top: 1px solid #e0e0e0;
}

.jorato-case-detail__fact-label {
	margin: 0;
	font-weight: var(--jorato-p-bold-weight);
	color: var(--jorato-color-text);
	flex-shrink: 0;
}

.jorato-case-detail__fact-value {
	margin: 0;
	font-weight: var(--jorato-p-weight);
	color: var(--jorato-color-grey);
	text-align: right;
}

.jorato-case-detail__section--agent {
	padding-top: 2rem;
}

.jorato-case-detail__agent-heading {
	margin: 0 0 1rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h5);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__agent-photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--jorato-radius);
	margin-bottom: 1rem;
	object-fit: cover;
	object-position: top;
}

.jorato-case-detail__agent-name {
	margin: 0 0 0.35rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-h6);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__agent-title {
	margin: 0 0 0.75rem;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-blue);
}

/* Gold email/phone links with leading icon (matches MGH Contact widget). */
.jorato-case-detail__agent-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
}

.jorato-case-detail__agent-link,
.jorato-case-detail__agent-link:visited,
.jorato-case-detail__agent-link:active,
.jorato-case-detail__agent-link:focus,
.jorato-case-detail__agent-link span {
	color: var(--jorato-color-gold);
	text-decoration: none;
}

.jorato-case-detail__agent-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	line-height: var(--jorato-body-lh);
}

.jorato-case-detail__agent-link--email span {
	word-break: break-all;
}

.jorato-case-detail__agent-link svg {
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: middle;
	color: inherit;
}

.jorato-case-detail__agent-link svg [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

.jorato-case-detail__agent-link svg [fill]:not([fill="none"]) {
	fill: currentColor;
}

.jorato-case-detail__agent-link:hover,
.jorato-case-detail__agent-link:hover span,
.jorato-case-detail__agent-link:hover svg,
.jorato-case-detail__agent-link:focus-visible,
.jorato-case-detail__agent-link:focus-visible span,
.jorato-case-detail__agent-link:focus-visible svg {
	color: var(--jorato-color-blue);
	text-decoration: none;
}

.jorato-case-detail__agent-actions {
	margin-top: 1.25rem;
}

.jorato-case-detail__agent-demo-notice {
	margin: 0 0 1rem;
	padding: 0.65rem 0.75rem;
	font-family: var(--jorato-font-family);
	font-size: 0.8125rem;
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: var(--jorato-radius);
}

.jorato-case-detail__agent-demo-notice a {
	color: var(--jorato-color-blue);
	font-weight: var(--jorato-p-bold-weight);
}

.jorato-case-detail__agent-photo--demo {
	display: block;
	width: 100%;
	aspect-ratio: 323 / 219;
	max-height: 374px;
	background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.jorato-case-detail__agent-link--demo {
	cursor: default;
}

.jorato-case-detail__agent-demo .jorato-case-detail__agent-name--demo,
.jorato-case-detail__agent-demo .jorato-case-detail__agent-title--demo {
	opacity: 0.72;
}

/* Lightbox */
.jorato-case-detail__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 0.75rem 0.75rem;
	box-sizing: border-box;
}

.jorato-case-detail__lightbox[hidden] {
	display: none !important;
}

.jorato-case-detail__lightbox-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.88);
}

.jorato-case-detail__lightbox-stage {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: pan-y;
}

.jorato-case-detail__lightbox--floorplan .jorato-case-detail__lightbox-stage {
	background-color: var(--jorato-color-white);
	box-sizing: border-box;
	max-width: min(95vw, 100%);
	max-height: 90vh;
	padding: 1rem;
	overflow: hidden;
}

.jorato-case-detail__lightbox-img {
	max-width: 100%;
	max-height: min(90vh, 100%);
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: default;
}

.jorato-case-detail__lightbox--floorplan .jorato-case-detail__lightbox-img {
	max-width: 100%;
	max-height: calc(90vh - 2rem);
}

.jorato-case-detail__lightbox-img[hidden] {
	display: none !important;
}

.jorato-case-detail__lightbox--tour .jorato-case-detail__lightbox-stage {
	width: min(1280px, 95vw);
	height: min(85vh, 100%);
	max-width: 95vw;
	padding: 0;
	background-color: #000;
}

.jorato-case-detail__lightbox-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.jorato-case-detail__lightbox-iframe[hidden] {
	display: none !important;
}

.jorato-case-detail__lightbox-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	background: var(--jorato-color-white-90);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--jorato-color-text);
}

.jorato-case-detail__lightbox-close::before {
	content: "×";
}

.jorato-case-detail__lightbox-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.jorato-case-detail__lightbox-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
	background-color: var(--jorato-color-white-90);
	background-image: url("../images/chevron-arrow.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

.jorato-case-detail__lightbox-nav--prev {
	left: 0.5rem;
	transform: translateY(-50%) scaleX(-1);
}

.jorato-case-detail__lightbox-nav--next {
	right: 0.5rem;
	transform: translateY(-50%);
}

.jorato-case-detail__lightbox-nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.jorato-case-detail__media-json {
	display: none !important;
}

/* Booking modal ("Book fremvisning"): full-screen sheet on mobile, centered 800px dialog on desktop. */
.jorato-case-detail__booking {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-family: var(--jorato-font-family);
	color: var(--jorato-color-text);
	line-height: var(--jorato-body-lh);
}

.jorato-case-detail__booking[hidden] {
	display: none !important;
}

.jorato-case-detail__booking-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* #2C3A60 at 90% per design. */
	background: rgba(44, 58, 96, 0.9);
}

.jorato-case-detail__booking-dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background: var(--jorato-color-white);
	padding: 100px 30px;
}

.jorato-case-detail__booking-close {
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--jorato-color-blue);
}

.jorato-case-detail__booking-close::before {
	content: "×";
}

.jorato-case-detail__booking-close:focus-visible {
	outline: 2px solid var(--jorato-color-blue);
	outline-offset: 2px;
}

.jorato-case-detail__booking-title {
	margin: 0 0 1rem;
	font-size: var(--jorato-h3);
	font-weight: var(--jorato-heading-weight);
	line-height: var(--jorato-heading-lh);
	letter-spacing: var(--jorato-heading-ls);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__booking-property {
	margin: 0 0 0.75rem;
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-bold-weight);
	color: var(--jorato-color-blue);
}

.jorato-case-detail__booking-address {
	margin: 0 0 1rem;
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	color: var(--jorato-color-grey);
}

.jorato-case-detail__booking-address-icon {
	flex-shrink: 0;
	width: 14px;
	height: auto;
	margin-top: 0.1em;
	display: block;
}

.jorato-case-detail__booking-intro {
	margin: 0 0 35px;
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	color: var(--jorato-color-text);
}

.jorato-case-detail__booking-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jorato-case-detail__booking-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	margin: -1px;
	padding: 0;
	border: 0;
}

.jorato-case-detail__booking-field {
	display: flex;
	flex-direction: column;
}

.jorato-case-detail__booking-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.jorato-case-detail__booking-row .jorato-case-detail__booking-field {
	flex: 1 1 180px;
	min-width: 0;
}

.jorato-case-detail__booking-label {
	margin-bottom: 6px;
	font-size: var(--jorato-p-small-size);
	font-weight: var(--jorato-p-weight);
	color: var(--jorato-color-text);
}

.jorato-case-detail__booking-input {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 0.85rem;
	background: var(--jorato-color-white);
	border: 1px solid rgba(76, 76, 76, 0.2);
	border-radius: var(--jorato-radius);
	font-family: var(--jorato-font-family);
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	line-height: var(--jorato-body-lh);
	color: var(--jorato-color-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jorato-case-detail__booking-input::placeholder {
	color: var(--jorato-color-grey);
	opacity: 0.7;
}

.jorato-case-detail__booking-input:focus-visible {
	outline: none;
	border-color: var(--jorato-color-blue);
	box-shadow: 0 0 0 2px rgba(44, 58, 96, 0.18);
}

.jorato-case-detail__booking-error {
	margin: 0;
	font-size: var(--jorato-p-small-size);
	font-weight: var(--jorato-p-weight);
	color: #b3261e;
}

.jorato-case-detail__booking-error[hidden] {
	display: none !important;
}

.jorato-case-detail__booking-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.jorato-case-detail__booking-submit:disabled {
	opacity: 0.65;
	cursor: default;
}

.jorato-case-detail__booking-submit-arrow {
	flex-shrink: 0;
	display: block;
}

.jorato-case-detail__booking-view--success {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
}

.jorato-case-detail__booking-view--success[hidden] {
	display: none !important;
}

.jorato-case-detail__booking-success-text {
	margin: 0 0 1.75rem;
	font-size: var(--jorato-p-size);
	font-weight: var(--jorato-p-weight);
	color: var(--jorato-color-text);
}

@media (min-width: 900px) {
	.jorato-case-detail__booking {
		padding: 2rem;
	}

	.jorato-case-detail__booking-dialog {
		width: 800px;
		max-width: 100%;
		height: auto;
		max-height: calc(100vh - 4rem);
		border-radius: var(--jorato-radius);
		padding: 100px;
	}

	.jorato-case-detail__booking.is-success .jorato-case-detail__booking-dialog {
		width: 560px;
		padding: 50px;
	}

	.jorato-case-detail__booking-view--success {
		display: block;
		min-height: 0;
	}

	.jorato-case-detail__booking-success-text {
		margin-bottom: 1.5rem;
	}

	.jorato-case-detail__booking-success-close {
		width: auto;
		display: inline-block;
		padding: 0.85rem 1.75rem;
	}
}
