/* ==========================================================================
   TuBydlo – detail nemovitosti
   ========================================================================== */

:root {
	--tb-bg: #f7f8f9;
	--tb-primary: #dd0770; /* kontrast 4,55:1 na #f7f8f9 – WCAG AA */
	--tb-primary-hover: #c10661;
	--tb-radius-img: 12px;
	--tb-radius-btn: 8px;
	--tb-gap: 16px;
	--tb-page-max: 1580px;
	--tb-content-max: 1076px;

	/* Typografie podle článků TuBydlo */
	--tb-heading: #102a43;
	--tb-text: #344054;
	--tb-muted: #636363;
	--tb-line: #b8bfcb; /* linky jako v Magazínu */
	--tb-input: #d0d5dd;

	/* Rozvržení podle Sreality: 728 + 48 + 300 = 1076 */
	--tb-aside: 300px;
	--tb-col-gap: 48px;
	--tb-sticky-top: 83px; /* hlavička 59 px + 24 px */
}

body.single-property {
	background-color: var(--tb-bg);
}

.tb-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Dodatečné CSS webu odsazuje obsah o 80 px, hlavička má ale 59 px.
   Na detailu inzerátu srovnáme na výšku hlavičky → galerie je 24 px pod menu. */
@media (min-width: 769px) {
	body.single-property:not(.houzez-dashboard-body) {
		padding-top: 59px !important;
	}
}

/* --------------------------------------------------------------------------
   Fotogalerie – desktop
   -------------------------------------------------------------------------- */
.tb-gallery {
	box-sizing: border-box;
	max-width: var(--tb-page-max);
	margin: 24px auto 0;
	padding: 0 24px;
}

.tb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: var(--tb-gap);
}

/* Výšku určují malé fotky 3:2, velká se roztáhne na jejich výšku (jako M&M) */
.tb-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--tb-radius-img);
	background: #e9ecef;
}

.tb-gallery__item--main {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	aspect-ratio: auto;
}

.tb-gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.tb-gallery__item:hover .tb-gallery__img {
	transform: scale(1.03);
}

.tb-gallery__item:focus-visible,
.tb-gallery__slide:focus-visible {
	outline: 3px solid var(--tb-primary);
	outline-offset: 2px;
}

/* 1–4 fotky */
.tb-gallery__grid--1 {
	grid-template-columns: 1fr;
	grid-template-rows: auto;
}
.tb-gallery__grid--1 .tb-gallery__item--main {
	grid-column: 1;
	grid-row: 1;
	aspect-ratio: 21 / 9;
}

.tb-gallery__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto;
}
.tb-gallery__grid--2 .tb-gallery__item {
	grid-column: auto;
	grid-row: auto;
	aspect-ratio: 3 / 2;
}

/* 3–4 fotky: výšku určuje velká fotka, malé se jí přizpůsobí */
.tb-gallery__grid--3 .tb-gallery__item--main,
.tb-gallery__grid--4 .tb-gallery__item--main {
	aspect-ratio: 3 / 2;
}

.tb-gallery__grid--3 .tb-gallery__item:not(.tb-gallery__item--main),
.tb-gallery__grid--4 .tb-gallery__item:not(.tb-gallery__item--main) {
	aspect-ratio: auto;
}

.tb-gallery__grid--3 .tb-gallery__item:not(.tb-gallery__item--main),
.tb-gallery__grid--4 .tb-gallery__item:nth-child(4) {
	grid-column: span 2;
}

/* „Zobrazit další“ */
.tb-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .4);
	transition: background-color .2s ease;
}

.tb-gallery__item:hover .tb-gallery__more {
	background: rgba(0, 0, 0, .5);
}

.tb-gallery__more-btn {
	padding: 12px 24px;
	border-radius: var(--tb-radius-btn);
	background: var(--tb-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
	transition: background-color .2s ease;
}

.tb-gallery__item:hover .tb-gallery__more-btn {
	background: var(--tb-primary-hover);
}

/* --------------------------------------------------------------------------
   Fotogalerie – mobil
   -------------------------------------------------------------------------- */
.tb-gallery__carousel {
	display: none;
}

@media (max-width: 767.98px) {
	.tb-gallery {
		margin: 0;
		padding: 0;
	}

	.tb-gallery__grid {
		display: none;
	}

	.tb-gallery__carousel {
		position: relative;
		display: block;
	}

	.tb-gallery__track {
		display: flex;
		aspect-ratio: 3 / 2;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		background: #e9ecef;
	}

	.tb-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.tb-gallery__slide {
		position: relative;
		flex: 0 0 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.tb-gallery__counter {
		position: absolute;
		right: 12px;
		bottom: 12px;
		padding: 6px 12px;
		border-radius: 999px;
		background: rgba(0, 0, 0, .6);
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		font-variant-numeric: tabular-nums;
		pointer-events: none;
	}
}

/* --------------------------------------------------------------------------
   Drobečková navigace – pod galerií, jen desktop
   -------------------------------------------------------------------------- */
.tb-breadcrumbs {
	box-sizing: border-box;
	width: min(var(--tb-content-max), 100% - 48px);
	margin: 24px auto 0;
}

.tb-breadcrumbs .breadcrumb-wrap,
.tb-breadcrumbs .breadcrumb {
	margin: 0;
	padding: 0;
}

.tb-breadcrumbs .breadcrumb {
	flex-wrap: wrap;
	row-gap: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
}

.tb-breadcrumbs .breadcrumb-item {
	font-size: inherit;
	line-height: inherit;
}

.tb-breadcrumbs a {
	color: var(--tb-primary);
}

.tb-breadcrumbs a:hover,
.tb-breadcrumbs a:focus-visible {
	color: var(--tb-primary-hover);
	text-decoration: underline;
}

@media (max-width: 767.98px) {
	.tb-breadcrumbs {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Rozvržení: hlavička přes celou šířku, pod ní obsah + karta prodejce
   -------------------------------------------------------------------------- */
.tb-layout {
	box-sizing: border-box;
	width: min(var(--tb-content-max), 100% - 48px);
	margin: 0 auto;
	padding-bottom: 64px;
	color: var(--tb-text);
}

.tb-aside {
	display: none;
}

@media (min-width: 992px) {
	.tb-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--tb-aside);
		grid-template-areas:
			"head head"
			"main aside";
		column-gap: var(--tb-col-gap);
	}

	.tb-head {
		grid-area: head;
	}

	.tb-main {
		grid-area: main;
		min-width: 0;
	}

	/* Pravý sloupec s widgety (reklama jako u článků) */
	.tb-aside {
		display: block;
		grid-area: aside;
		padding-top: 32px;
	}

	.tb-aside > .widget {
		margin-bottom: 24px;
	}
	/* Přichycení velké reklamy řídí plugin Seznamu (viz #sssp-sticky-end v single-property.php) */
}

@media (max-width: 767.98px) {
	.tb-layout {
		width: calc(100% - 32px);
	}
}

/* --------------------------------------------------------------------------
   Hlavička inzerátu
   -------------------------------------------------------------------------- */
.tb-head {
	padding-top: 24px;
}

.tb-head__title {
	margin: 0;
	color: var(--tb-heading);
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: -.01em;
}

.tb-head__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--tb-line);
}

.tb-head__price {
	margin: 0;
	color: var(--tb-heading);
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
}

.tb-head__price *,
.tb-params dd * {
	color: inherit;
	font: inherit;
}

/* Houzez nadpisy nastavuje na Roboto – držíme písmo webu (Inter) */
.tb-layout h1,
.tb-layout h2 {
	font-family: inherit;
}

/* Nástroje: Uložit · Sdílet · Vytisknout */
.tb-tools {
	display: flex;
	gap: 8px;
}

.tb-tool {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--tb-input);
	border-radius: var(--tb-radius-btn);
	background: #fff;
	color: var(--tb-heading);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}

.tb-tool:hover,
.tb-tool[aria-expanded="true"] {
	border-color: var(--tb-heading);
}

.tb-tool:focus-visible {
	outline: 3px solid var(--tb-primary);
	outline-offset: 2px;
}

.tb-tool .houzez-icon {
	font-size: 18px;
	line-height: 1;
}

/* Uloženo v oblíbených (třídu přidává Houzez) */
.tb-tool .text-danger {
	color: var(--tb-primary) !important;
}

/* Popisek při najetí myší / při ovládání klávesnicí */
.tb-tool[data-tooltip]::after {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 20;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--tb-heading);
	color: #fff;
	content: attr(data-tooltip);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity .15s ease, transform .15s ease;
}

.tb-tool:hover::after,
.tb-tool:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.tb-tool[aria-expanded="true"]::after {
	display: none;
}

@media (hover: none) {
	.tb-tool[data-tooltip]::after {
		display: none;
	}
}

/* Menu sdílení */
.tb-share {
	position: relative;
}

.tb-share__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	min-width: 240px;
	padding: 8px;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius-img);
	background: #fff;
	box-shadow: 0 12px 24px -4px rgba(16, 24, 40, .12), 0 4px 8px -2px rgba(16, 24, 40, .06);
}

.tb-share__menu[hidden] {
	display: none;
}

.tb-share__title {
	margin: 4px 12px 8px;
	color: var(--tb-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
}

.tb-share__menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-share__menu a,
.tb-share__menu button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--tb-radius-btn);
	background: none;
	color: var(--tb-heading);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.tb-share__menu a:hover,
.tb-share__menu a:focus-visible,
.tb-share__menu button:hover,
.tb-share__menu button:focus-visible {
	background: #f2f4f7;
	color: var(--tb-heading);
	outline: none;
}

@media (max-width: 767.98px) {
	.tb-tool--print {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.tb-head {
		padding-top: 20px;
	}

	.tb-head__title {
		font-size: 24px;
		line-height: 32px;
	}

	.tb-head__price {
		font-size: 26px;
		line-height: 32px;
	}
}

/* --------------------------------------------------------------------------
   Sekce obsahu
   -------------------------------------------------------------------------- */
.tb-section {
	padding: 32px 0;
	border-bottom: 1px solid var(--tb-line);
	scroll-margin-top: var(--tb-sticky-top);
}

.tb-main > .tb-section:last-of-type {
	border-bottom: 0;
}

.tb-section__title {
	margin: 0 0 20px;
	color: var(--tb-heading);
	font-size: 23px;
	font-weight: 700;
	line-height: 29px;
	letter-spacing: -.01em;
}

/* Popis */
.tb-desc__body {
	color: var(--tb-text);
	font-size: 19px;
	line-height: 1.78;
}

.tb-desc__body p {
	margin: 0 0 1em;
}

.tb-desc__body > :last-child {
	margin-bottom: 0;
}

.tb-desc__body a {
	color: var(--tb-primary);
	text-decoration: underline;
}

.tb-desc.is-collapsed .tb-desc__body {
	max-height: 340px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}

.tb-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tb-primary);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
}

.tb-link-btn:hover {
	color: var(--tb-primary-hover);
	text-decoration: underline;
}

.tb-desc__toggle[aria-expanded="true"] .tb-icon {
	transform: rotate(180deg);
}

@media (max-width: 767.98px) {
	.tb-desc__body {
		font-size: 17px;
		line-height: 1.7;
	}
}

/* Parametry */
.tb-params {
	margin: 0;
}

.tb-params__row {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tb-line);
}

.tb-params__row:last-child {
	border-bottom: 0;
}

.tb-params dt {
	color: var(--tb-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.tb-params dd {
	margin: 0;
	color: var(--tb-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

.tb-params dd a {
	color: var(--tb-primary);
}

/* Samostatný řádek pod tabulkou: ID nabídky · Vloženo · Aktualizováno */
.tb-params__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 32px;
	margin: 16px 0 0;
	color: var(--tb-muted);
	font-size: 14px;
	line-height: 20px;
}

.tb-params__meta strong,
.tb-params__meta time {
	color: var(--tb-heading);
	font-weight: 600;
}

/* ID nabídky: desktop v řádku s daty, mobil jako poslední řádek tabulky */
.tb-params__row--mobile {
	display: none;
}

.tb-params--has-ref .tb-params__row:nth-last-child(2) {
	border-bottom: 0;
}

@media (max-width: 767.98px) {
	.tb-params__row--mobile {
		display: grid;
	}

	.tb-params--has-ref .tb-params__row:nth-last-child(2) {
		border-bottom: 1px solid var(--tb-line);
	}

	.tb-params__ref {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.tb-params__row {
		grid-template-columns: 140px minmax(0, 1fr);
		gap: 12px;
	}
}

/* Vybavení */
.tb-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--tb-heading);
	font-size: 16px;
	line-height: 24px;
}

.tb-features .tb-icon {
	margin-top: 2px;
	color: var(--tb-primary);
}

@media (max-width: 767.98px) {
	.tb-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Lokalita */
.tb-location__address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 16px;
	color: var(--tb-text);
	font-size: 16px;
	line-height: 24px;
}

.tb-location__address .tb-icon {
	margin-top: 2px;
	color: var(--tb-primary);
}

.tb-map {
	overflow: hidden;
	isolation: isolate; /* vrstvy Leafletu nepřekryjí hlavičku webu */
	aspect-ratio: 16 / 9;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius-img);
	background: #e9ecef;
}

.tb-map .tb-map__pin {
	border: 0;
	background: none;
	filter: drop-shadow(0 2px 3px rgba(16, 24, 40, .35));
}

.tb-map__pin svg {
	display: block;
}

.tb-map__note {
	margin: 12px 0 0;
	color: var(--tb-muted);
	font-size: 14px;
	line-height: 20px;
}

.tb-seller__link,
.tb-form__note a,
.tb-check a {
	color: var(--tb-primary);
	text-decoration: none;
}

.tb-seller__link:hover,
.tb-form__note a:hover,
.tb-check a:hover {
	color: var(--tb-primary-hover);
	text-decoration: underline;
}

/* Reklama mezi Vybavením a Lokalitou – desktop 728×90, mobil automaticky */
.tb-ad-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 0;
	border-bottom: 1px solid var(--tb-line);
}

.tb-ad-slot > .widget {
	width: 100%;
	max-width: 728px;
}

@media (min-width: 768px) {
	/* rezervované místo, aby stránka po načtení reklamy neposkočila (CLS) */
	.tb-ad-slot {
		box-sizing: border-box;
		min-height: calc(90px + 64px); /* reklama 90 px + odsazení 2 × 32 px */
	}
}

.tb-disclaimer {
	margin-top: 24px;
	color: var(--tb-muted);
	font-size: 13px;
	line-height: 20px;
}

/* --------------------------------------------------------------------------
   Prodejce, karta, tlačítka
   -------------------------------------------------------------------------- */
.tb-seller {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tb-seller__photo {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e9ecef;
	object-fit: cover;
}

.tb-seller__name {
	margin: 0;
	color: var(--tb-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 24px;
}

.tb-seller__company {
	margin: 0;
	color: var(--tb-muted);
	font-size: 14px;
	line-height: 20px;
}

.tb-seller__link {
	display: inline-block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.tb-section .tb-seller {
	margin-bottom: 24px;
}

/* Telefon a e-mail prodejce u formuláře */
.tb-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: -8px 0 24px;
}

.tb-contacts .tb-btn {
	flex: 0 1 auto;
	min-width: 200px;
}

@media (max-width: 767.98px) {
	.tb-contacts .tb-btn {
		flex: 1 1 100%;
	}
}

.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--tb-radius-btn);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tb-btn:focus-visible {
	outline: 3px solid var(--tb-primary);
	outline-offset: 2px;
}

.tb-btn--primary,
.tb-btn--primary:visited {
	background: var(--tb-primary);
	color: #fff;
}

.tb-btn--primary:hover,
.tb-btn--primary:focus {
	background: var(--tb-primary-hover);
	color: #fff;
	text-decoration: none;
}

.tb-btn--outline,
.tb-btn--outline:visited {
	border-color: var(--tb-input);
	background: #fff;
	color: var(--tb-heading);
}

.tb-btn--outline:hover,
.tb-btn--outline:focus {
	border-color: var(--tb-heading);
	color: var(--tb-heading);
	text-decoration: none;
}

.tb-btn[disabled] {
	opacity: .7;
	cursor: wait;
}

/* --------------------------------------------------------------------------
   Formulář „Napsat prodejci“
   -------------------------------------------------------------------------- */
.tb-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.tb-field--full {
	grid-column: 1 / -1;
}

.tb-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--tb-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.tb-field input,
.tb-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--tb-input);
	border-radius: var(--tb-radius-btn);
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	color: var(--tb-heading);
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tb-field textarea {
	min-height: 140px;
	resize: vertical;
}

.tb-field input:focus,
.tb-field textarea:focus {
	border-color: var(--tb-primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(221, 7, 112, .15);
}

.tb-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 20px;
}

.tb-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--tb-primary);
}

.tb-form__status {
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: var(--tb-radius-btn);
	font-size: 15px;
	line-height: 22px;
}

.tb-form__status:empty {
	display: none;
}

.tb-form__status.is-success {
	border-color: #abefc6;
	background: #ecfdf3;
	color: #05603a;
}

.tb-form__status.is-error {
	border-color: #fecdca;
	background: #fef3f2;
	color: #b42318;
}

.tb-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 20px;
}

.tb-form__note {
	flex: 1 1 240px;
	margin: 0;
	color: var(--tb-muted);
	font-size: 13px;
	line-height: 20px;
}

/* Každá věta na vlastním řádku */
.tb-form__note span {
	display: block;
}

.tb-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tb-spin .8s linear infinite;
}

.is-loading .tb-spinner {
	display: inline-block;
}

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

@media (max-width: 767.98px) {
	.tb-form__grid {
		grid-template-columns: 1fr;
	}

	.tb-form__submit {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   Spodní lišta na mobilu
   -------------------------------------------------------------------------- */
.tb-mobilebar {
	display: none;
}

@media (max-width: 991.98px) {
	.tb-mobilebar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		display: flex;
		gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--tb-line);
		background: #fff;
		box-shadow: 0 -4px 12px rgba(16, 24, 40, .06);
	}

	.tb-mobilebar .tb-btn {
		flex: 1 1 0;
		padding-right: 12px;
		padding-left: 12px;
	}

	/* Obsah (patička) nesmí zůstat schovaný pod lištou */
	body.single-property {
		padding-bottom: 72px;
	}
}

/* --------------------------------------------------------------------------
   Přístupnost
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.tb-gallery__img,
	.tb-gallery__more,
	.tb-gallery__more-btn {
		transition: none;
	}

	.tb-gallery__item:hover .tb-gallery__img {
		transform: none;
	}

	.tb-gallery__track {
		scroll-behavior: auto;
	}
}
