/* Uniforest katalog unutar Titan predloška. Header i footer ostaju netaknuti.
   Sadržaj su standardni WP blokovi; klase uf-* daju samo izgled. */
body.uf-page #content,
body.uf-page .site-content,
body.uf-page #main-content {
	background: #fff;
}

.uf-wrap {
	--uf-yellow: #ffe14a;
	--uf-ink: #1a1a1a;
	background: #fff;
	color: var(--uf-ink);
	padding: 28px 0 64px;
}

.uf-wrap__inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.uf-crumbs {
	margin-bottom: 18px;
	font-size: 0.86rem;
	line-height: 2;
	color: #555;
}

.uf-crumbs a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--uf-yellow, #ffe14a);
}

.uf-crumbs__sep {
	margin: 0 0.4em;
}

/* ---- tipografija sadržaja */
.uf-kicker {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1.uf-hero {
	margin: 0 0 8px;
	padding: 20px 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 600 !important;
}

.uf-lead,
.uf-copy {
	font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 300;
}

.uf-section-title {
	margin: 40px 0 14px;
	padding-top: 32px;
	font-size: 1.7rem;
	text-transform: uppercase;
}

.uf-group-title {
	margin: 50px 0 24px;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 600 !important;
}

.uf-group-title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 3px solid var(--uf-yellow, #ffe14a);
}

.uf-body p,
.uf-body li {
	font-size: 1.1rem;
	line-height: 1.6;
	font-weight: 300;
}


.uf-wrap__inner ul li{
	list-style: circle;
    margin-left: 15px;
    font-size: 1.2em;
    font-weight: 300;
}
.uf-equipment ul li{
	list-style: circle;
    margin-left: 45px;
    font-size: 1.2em;
    font-weight: 300;
}

/* ---- galerija i video */
.uf-gallery {
	margin: 24px 0 28px;
}

.uf-gallery img {
	border-radius: 12px;
	background: #f6f6f6;
	object-fit: contain;
}

.wp-block-embed.uf-video {
	margin: 24px 0;
}

.uf-body .wp-block-image img {
	border-radius: 10px;
	height: auto;
	max-width: 100%;
}

/* ---- tablice */
.wp-block-table.uf-specs {
	margin: 0 0 24px;
	overflow-x: auto;
}

.wp-block-table.uf-specs table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.wp-block-table.uf-specs th,
.wp-block-table.uf-specs td {
	padding: 10px 12px;
    border: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: middle;
    font-size: 1.2rem;
    font-weight: 300;
}

.wp-block-table.uf-specs thead th {
	background: var(--uf-yellow, #ffe14a);
	color: var(--uf-ink, #1a1a1a);
	font-weight: 700;
}

.wp-block-table.uf-specs tbody tr:nth-child(even) td {
	background: #fafafa;
}

.uf-note {
	margin: -12px 0 24px;
	font-size: 0.9rem;
	color: #555;
}

/* ---- kartice (stupci) */
.wp-block-columns.uf-cards,
.wp-block-columns.uf-variants,
.wp-block-columns.uf-equipment {
	display: flex;
	flex-wrap: wrap !important;
	gap: 22px;
	margin: 0 0 26px;
}

.wp-block-columns.uf-cards > .wp-block-column {
	flex: 0 0 calc(33% - 12px) !important;
	min-width: 200px;
}

.wp-block-columns.uf-variants > .wp-block-column,
.wp-block-columns.uf-equipment > .wp-block-column {
	flex: 0 0 calc(33.333% - 15px) !important;
	min-width: 240px;
}

.uf-cards > .wp-block-column,
.uf-variants > .wp-block-column,
.uf-equipment > .wp-block-column {
	background: #fff;
	border: 1px solid #e7e7e7;
	border-bottom: 4px solid var(--uf-yellow, #ffe14a);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.uf-cards > .wp-block-column[hidden],
.uf-cards[hidden],
.uf-group-title[hidden] {
	display: none !important;
}

.uf-cards .wp-block-image,
.uf-variants .wp-block-image,
.uf-equipment .wp-block-image {
	margin: 0 0 10px;
}
.uf-cards .wp-block-image a {
	display: block;
}

.uf-cards .wp-block-image img,
.uf-variants .wp-block-image img,
.uf-equipment .wp-block-image img {
	width: 100%;
	height: 250px;
	object-fit: contain;
	background: #f6f6f6;
	border-radius: 10px;
	padding: 10px;
}

.uf-cards h3,
.uf-variants h3,
.uf-equipment h4 {
	margin: 0 0 6px;
	font-size: 1.22rem;
	line-height: 2;
	font-weight: 400 !important;
	text-align: center;
}

.uf-cards h3 a {
	color: inherit;
	text-decoration: none;
}

.uf-variants p,
.uf-equipment p {
	font-size: 1.1rem;
    line-height: 1.4;
    padding: 10px;
}
.uf-variants p {
	text-align: center;
}

.uf-related {
	margin: 0 0 24px;
	padding-left: 1.1rem;
	line-height: 1.6;
}

/* ---- filter */
.uf-layout--filter {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.uf-filter {
	position: sticky;
	top: 90px;
	padding: 16px 16px 18px;
	background: #fafafa;
	border: 1px solid #e7e7e7;
	border-radius: 14px;
}

.uf-filter__title {
	margin: 0 0 12px;
	font-size: 1.5rem;
	text-transform: uppercase;
}

.uf-filter__field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.uf-filter__field legend {
	padding: 0;
    margin-bottom: 11px;
    font-size: 1rem;
}

.uf-filter__check {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0 0 4px;
	font-size: 1rem;	
	font-weight: 300;
}

.uf-filter__range label {
	display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #444;
    font-weight: 300;
}

.uf-filter__range input[type="range"] {
	width: 100%;
	margin: 0 0 8px;
	accent-color: #1a1a1a;
}

.uf-filter__reset {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.uf-filter__empty {
	margin: 12px 0 0;
	font-size: 0.9rem;
	color: #9b1c1c;
}

@media (max-width: 900px) {
	.uf-layout--filter {
		grid-template-columns: minmax(0, 1fr);
	}

	.uf-filter {
		position: static;
	}

	.wp-block-columns.uf-cards > .wp-block-column {
		flex: 0 0 calc(50% - 11px) !important;
	}

	.wp-block-columns.uf-variants > .wp-block-column,
	.wp-block-columns.uf-equipment > .wp-block-column {
		flex: 0 0 100% !important;
	}
}

/* Ispod 468 px svaka kartica ide preko cijele širine. */
@media (max-width: 468px) {
	.wp-block-columns.uf-cards > .wp-block-column,
	.wp-block-columns.uf-variants > .wp-block-column,
	.wp-block-columns.uf-equipment > .wp-block-column {
		flex: 1 1 100% !important;
		min-width: 0 !important;
		max-width: 100%;
	}
}

/* ---- upit */
.uf-inquiry{
	background-color: #f9f9f9;
    padding-left: 40px;
    padding-bottom: 20px;
    border-radius: 14px;
    padding-right: 40px;
    width: auto;
    margin: 100px auto 20px auto;
}

.uf-inquiry h2 {
	margin-bottom: 40px;
    padding-top: 32px;
    font-size: 2rem;
    /* text-transform: uppercase; */
    text-align: center;
}

.uf-inquiry form {
	display: grid;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.uf-inquiry label {
	display: grid;
	gap: 4px;
	font-size: 0.92rem;
}

body.uf-page .uf-inquiry input:not([type="hidden"]),
body.uf-page .uf-inquiry textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	color: var(--uf-ink, #1a1a1a);
	padding: 10px 12px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

body.uf-page .uf-inquiry button[type="submit"] {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	width: fit-content;
	background: #1a1a1a;
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.uf-hp {
	position: absolute;
	left: -9999px;
}

.uf-inquiry__ok {
	color: #0a6b0a;
}

.uf-inquiry__err {
	color: #9b1c1c;
}

/* ---- uređivanje u adminu: ista širina i sličan izgled kao na webu */
.editor-styles-wrapper:has(.uf-hero),
.editor-styles-wrapper:has(.uf-cards),
.editor-styles-wrapper:has(.uf-specs) {
	--uf-yellow: #ffe14a;
	--uf-ink: #1a1a1a;
	background: #fff;
	color: #1a1a1a;
}

.editor-styles-wrapper:has(.uf-hero) .wp-block,
.editor-styles-wrapper:has(.uf-cards) .wp-block {
	max-width: 1120px;
}

.editor-styles-wrapper .uf-cards > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .uf-variants > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .uf-equipment > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.editor-styles-wrapper .uf-cards > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-column {
	flex: 0 0 calc(25% - 12px);
	min-width: 180px;
}

.editor-styles-wrapper .uf-variants > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-column,
.editor-styles-wrapper .uf-equipment > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-column {
	flex: 0 0 calc(33.333% - 11px);
	min-width: 220px;
}

/* Značajka: slika uz tekst, bez okvira kartice. */
.wp-block-columns.uf-feature {
	align-items: center !important;
    margin: 8px 0 32px;
    gap: 250px;
    border-bottom: 1px dashed #ececec;
    padding-bottom: 40px;
    flex-flow: row-reverse;
    padding-top: 20px;
}

.wp-block-columns.uf-feature h3,
.wp-block-columns.uf-feature h4 {
	font-size: 2.3rem;
    letter-spacing: -1px;
    font-weight: 700 !important;
    line-height: 1.1;
    color: #333;
}

.uf-feature > .wp-block-column {
	flex: 1 1 50% !important;
	min-width: 240px;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	background: transparent;
}

.uf-feature .wp-block-image img {
	width: 100%;
	height: auto;
	max-height: 450px;
	max-width: 600px;
	object-fit: contain;
}

/* Upravljačka ploča: broj stoji na dijelu slike, prijelaz miša otvara tekst. */
.uf-hotspot {
	margin: 8px 0 32px;
}

.uf-hotspot__map {
	position: relative;
	background: #f6f6f6;
	border-radius: 12px;
	overflow: visible;
}

.uf-hotspot__map > img {
	display: block;
	width: 100%;
	height: auto;
}

body.uf-page .uf-hotspot__pin {
	all: unset;
	box-sizing: border-box;
	position: absolute !important;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	transform: translate(-50%, -50%);
	background: #ffffff !important;
	color: #1a1a1a !important;
	font-size: 0.95rem !important;
	font-weight: 700;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.uf-page .uf-hotspot__pin.is-active {
	background: #1a1a1a !important;
	color: #ffe14a !important;
	z-index: 4;
}

.uf-hotspot__list,
.uf-hotspot__caption {
	display: none !important;
}

.uf-hotspot__pop {
	position: absolute;
	z-index: 5;
	box-sizing: border-box;
	width: max-content;
	max-width: 260px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	transform: translate(-50%, calc(-100% - 22px));
	background: #fff;
	color: #1a1a1a;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.uf-hotspot__pop.is-below {
	transform: translate(-50%, 22px);
}

.uf-hotspot__pop p {
	margin: 0;
}

.uf-hotspot__pop::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 12px;
	height: 12px;
	transform: translateX(-50%) rotate(45deg);
	background: #fff;
	box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.06);
}

.uf-hotspot__pop.is-below::after {
	top: -6px;
	bottom: auto;
	box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) and (min-width: 701px) {
	.wp-block-columns.uf-feature {
		gap: 250px;
	}
}

@media (max-width: 700px) {
	.wp-block-columns.uf-feature {
		gap: 20px;
	}

	.uf-feature > .wp-block-column {
		flex: 1 1 100% !important;
	}

	.uf-hotspot__pop {
		max-width: 200px;
	}
}
