/*
 * Výsledky – Filtr
 * Barvy a typografie čerpají z globálních Avada proměnných (Global Options
 * → Colors / Typography). Fallbacky odpovídají designu z Figmy (černá/bílá).
 *
 * Breakpointy: mobil < 750 px, tablet 750–1099 px, desktop ≥ 1100 px
 */

.vf-wrap {
	--vf-black: var(--awb-color8, #000);
	--vf-white: var(--awb-color1, #fff);
	--vf-text-faded: var(--awb-color5, #6b6b6b);
	--vf-border: var(--awb-color8, black);
	--vf-heading-font: var(--awb-typography1-font-family, inherit);
	--vf-subheading-font: var(--awb-typography2-font-family, inherit);
}

/* ---------- Filtr ---------- */

.vf-filter {
	background: var(--vf-white);
	padding: 32px 16px;
	margin: 0 0 80px;
	border: var(--awb-color8) 1px solid;
	box-shadow: rgba(0,0,0,0.15) 0px -16px 60px 30px;
}

.vf-filter__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 750px) {
	.vf-filter__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.vf-filter__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.vf-filter__group {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.vf-filter__label {
	display: block;
	font-size: 16px;
	margin: 0 0 8px;
	padding: 0;
	color: var(--vf-black);
}

/* Chipy (checkboxy / radia) */

.vf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vf-chip {
	position: relative;
	cursor: pointer;
	margin: 0;
}

.vf-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.vf-chip__text {
	display: inline-block;
	padding: 12px 16px;
	border: 1px solid var(--vf-black);
	background: var(--vf-white);
	color: var(--vf-black);
	font-size: 14px;
	line-height: 1.5;
	transition: background-color 0.15s ease, color 0.15s ease;
	user-select: none;
	font-weight: 700;
}

.vf-chip input:checked + .vf-chip__text {
	background: var(--vf-black);
	color: var(--vf-white);
}

.vf-chip input:focus-visible + .vf-chip__text {
	outline: 2px solid var(--vf-black);
	outline-offset: 2px;
}

@media (hover: hover) {
	.vf-chip:hover .vf-chip__text {
		background: var(--vf-black);
		color: var(--vf-white);
	}
}

/* Select kapacity */

.vf-select select {
	width: 100%;
	padding: 10px 40px 10px 14px;
	border: 1px solid var(--vf-black);
	border-radius: 0;
	background-color: var(--vf-white);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: var(--vf-black);
	font-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.vf-select select:focus-visible {
	outline: 2px solid var(--vf-black);
	outline-offset: 2px;
}

/* Tlačítko */

.vf-button {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid var(--vf-black);
	background: var(--vf-black);
	color: var(--vf-white);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	font-weight: 700;
	text-decoration: none !important;
}

.vf-button:hover,
.vf-button:focus-visible {
	background: var(--vf-white);
	color: var(--vf-black);
}

.vf-button:focus-visible {
	outline: 2px solid var(--vf-black);
	outline-offset: 2px;
}

.vf-filter__submit {
	margin-top: 32px;
	text-align: center;
}

.vf-filter__submit .vf-button {
	min-width: 420px;
	width: 100%;
}

/* ---------- Výsledky ---------- */

.vf-results {
	transition: opacity 0.2s ease;
}

.vf-results--loading {
	opacity: 0.45;
	pointer-events: none;
}

.post-content h2.vf-results__heading {
	font-family: var(--awb-typography2-font-family) !important;
    font-weight: var(--awb-typography2-font-weight);
    font-style: var(--awb-typography2-font-style);
    letter-spacing: var(--awb-typography2-letter-spacing);
    text-transform: var(--awb-typography2-text-transform);
    font-size: 24px;
    line-height: var(--awb-typography2-line-height);
	margin: 0px;
}

.vf-results__count {
	font-family: var(--vf-heading-font);
	font-weight: inherit;
}

.vf-results__empty,
.vf-results__error {
	color: var(--vf-text-faded);
	padding: 24px 0;
}

/* Karta */

.vf-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 40px 0px 48px 0px;
	border-bottom: 1px solid var(--vf-border);
}

/*.post-content .vf-card__capacity {margin-bottom: 16px;}*/

.post-content h3.vf-card__title {
	font-size: 22px;
}

@media (min-width: 1100px) {
	.vf-filter {
		padding: 40px;
	}
	.vf-card {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: center;
		padding: 80px 0;
	}
	.vf-filter__submit .vf-button {
		width: calc(33.3% - 48px);
	}
	.vf-card__title {
		font-family: var(--vf-subheading-font) !important;
		margin: 0 0 16px;
	}
	.post-content .vf-card__capacity {margin-bottom: 20px;}

	.post-content h2.vf-results__heading {
    	font-size: 48px;
	}
}

.vf-card__title {
	font-family: var(--vf-subheading-font) !important;
	margin: 0 0 8px;
}

.vf-card__capacity {
	font-family: var(--vf-subheading-font);
	font-size: 16px;
	margin: 0 0 16px;
	color: var(--vf-black);
}

.vf-card__desc {
	color: var(--vf-black);
	margin: 16px 0 24px;
}

.vf-card__cta {
	padding: 12px 28px;
}

/* Galerie */

.vf-card__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.vf-card__image {
	margin: 0;
	overflow: hidden;
}

.vf-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Mobil: první fotka přes celou šířku, zbytek ve dvou sloupcích */
@media (max-width: 749px) {
	.vf-card__gallery .vf-card__image:first-child {
		grid-column: 1 / -1;
	}

	.vf-card__gallery .vf-card__image {
		aspect-ratio: 1 / 1;
	}

	.vf-card__gallery .vf-card__image:first-child img {
		aspect-ratio: 16 / 10;
	}

	.vf-card__gallery {
		gap: 8px;
	}

	.vf-card__gallery  .vf-card__image:nth-of-type(4) {
		display: none;
	}
}

/* Galerie s jednou fotkou */
.vf-card__gallery--count-1 {
	grid-template-columns: 1fr;
}

/* ---------- Banner pod výsledky ---------- */

.vf-banner-wrap {
	margin-top: 48px;
}

.vf-banner {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--vf-black);
	color: var(--vf-white);
	overflow: hidden;
}

.fusion-body #wrapper .vf-banner__content .fusion-title h2 {
		font-size: 20px;
}

@media (min-width: 750px) {
	.vf-banner {
		grid-template-columns: 1fr 1fr;
	}
}

.vf-banner__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: 16px;
}

@media (min-width: 1100px) {
	.vf-banner__content {
		padding: 40px 48px;
	}

	.vf-filter__submit .vf-button {
	width: calc(33.3% - 48px);
	}

	.vf-banner-wrap {
		margin-top: 80px;
	}

	.fusion-body #wrapper .vf-banner__content .fusion-title h2 {
		font-size: 24px;
	}

	.vf-banner__content {
		padding: 32px;
	}
	body .vf-banner__media {
    	min-height: 320px;
	}
}

.vf-banner__title h2,
.vf-banner__title .fusion-title-heading {
	color: var(--vf-white);
}

.vf-banner__btn {
	display: inline-block;
	align-self: flex-start;
	padding: 13px 32px;
	background: var(--vf-white);
	color: var(--vf-black);
	border: 1px solid var(--vf-white);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none !important;
	text-decoration-line: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.vf-banner__btn:hover,
.vf-banner__btn:focus-visible {
	background: var(--vf-black);
	color: var(--vf-white);
}

.vf-banner__btn:focus-visible {
	outline: 2px solid var(--vf-white);
	outline-offset: 2px;
}

.vf-banner__media {
    min-height: 250px;
    position: relative;
}

.vf-banner__media img {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Mobil: obrázek nad obsahem */
@media (max-width: 749px) {
	.vf-banner__media {
		order: -1;
	}
	.vf-filter__submit .vf-button {
		min-width: unset;
	}

	.vf-card .vf-button {
		width: 100%;
	}
}

/* Respektování preference omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
	.vf-results,
	.vf-chip__text,
	.vf-button {
		transition: none;
	}
}
