/**
 * Eigirdas Vizualizatorius v2 — galerijos estetika.
 * Suderinta su eigirdas.com: Cormorant Garamond antraštei, Inter žymoms,
 * rašalo juoda #171714 ant šiltos šviesios, 1px linijos, jokio žalvario.
 */

/* ------------------------------- Mygtukas ------------------------------- */

/* !important — temos (Elementor kit) mygtukų stiliai neturi prasimušti. */
.evz-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 15px 24px !important;
	background: #fff !important;
	color: #171714 !important;
	border: 1px solid #171714 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: Inter, -apple-system, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	margin: 0 0 14px;
}
.evz-open:hover,
.evz-open:focus-visible {
	background: #eceae4 !important;
	color: #171714 !important;
	border-color: #171714 !important;
}
.evz-open svg { flex: none; }

/* -------------------------------- Modalas -------------------------------- */

#evz-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
}
#evz-modal[hidden] { display: none; }
#evz-modal *,
#evz-modal *::before,
#evz-modal *::after { box-sizing: border-box; }

/* Temos mygtukų stilių neutralizavimas modale: baltas fonas, juodas
   tekstas, jokių šešėlių — konkretūs stiliai žemiau tik patikslina. */
#evz-modal button {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none;
	margin: 0;
	background-color: #fff;
	color: #26231f;
	font-family: Inter, -apple-system, sans-serif;
	line-height: 1;
	outline-color: #26231f;
}

.evz-shell {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #f4f2ee;
	font-family: Inter, -apple-system, sans-serif;
	color: #26231f;
	animation: evz-fade 0.25s ease;
}
@keyframes evz-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.evz-shell { animation: none; }
}

/* Viršutinė juosta */
.evz-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px 12px;
	flex: none;
}
.evz-id {
	font-family: 'Cormorant Garamond', Cormorant, Georgia, serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #26231f;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.evz-id em {
	font-family: Inter, sans-serif;
	font-style: normal;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: #8b857b;
	margin-left: 10px;
}
.evz-x {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	background: transparent !important;
	color: #26231f !important;
	border: 0 !important;
	border-radius: 999px !important;
	cursor: pointer;
	transition: background 0.15s ease;
}
.evz-x:hover,
.evz-x:focus-visible {
	background: #e6e3dc !important;
	color: #171714 !important;
}

/* Scena */
.evz-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
}
.evz-wrap {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	line-height: 0;
}
.evz-wrap.evz-flat {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(180deg, #f3f1ec 0%, #e7e4dc 84.8%, #f7f5f1 85%, #f7f5f1 86%, #d9d4c9 86.2%, #cbc5b7 100%);
	border-radius: 6px;
	overflow: hidden;
}
.evz-bg {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 148px);
	width: auto;
	height: auto;
	border-radius: 6px;
	user-select: none;
	-webkit-user-select: none;
}
.evz-bg[hidden] { display: none; }

/* Paveikslas */
.evz-art {
	position: absolute;
	touch-action: none;
	cursor: grab;
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.4s ease, transform 0.4s ease;
	will-change: opacity, transform;
}
.evz-art.is-in { opacity: 1; transform: none; }
.evz-art.is-drag { cursor: grabbing; }
.evz-art > img {
	display: block;
	width: 100%;
	height: 100%;
	box-shadow:
		0 22px 40px -14px rgba(30, 27, 22, 0.45),
		0 4px 10px rgba(30, 27, 22, 0.16);
	user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
}
.evz-caption {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	margin-top: 10px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: rgba(38, 35, 31, 0.55);
	white-space: nowrap;
	line-height: 1;
	pointer-events: none;
}

/* Siluetas */
.evz-person {
	position: absolute;
	touch-action: none;
	cursor: grab;
	line-height: 0;
}
.evz-person.is-drag { cursor: grabbing; }
.evz-person svg { pointer-events: none; }

/* Apytikslio mastelio ženkliukas */
.evz-approx[hidden] { display: none; }
.evz-approx {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(252, 251, 249, 0.94);
	border: 1px solid rgba(23, 23, 20, 0.12);
	border-radius: 999px;
	padding: 7px 8px 7px 14px;
	font-size: 11.5px;
	color: #57534a;
	box-shadow: 0 8px 24px -10px rgba(35, 30, 22, 0.3);
	white-space: nowrap;
}
.evz-refine {
	background: #26231f !important;
	color: #faf9f7 !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 6px 13px !important;
	font-family: Inter, -apple-system, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	cursor: pointer;
}
.evz-refine:hover { background: #000 !important; }

/* ----------------------------- Kalibravimas ----------------------------- */

.evz-calib {
	position: absolute;
	inset: 0;
	touch-action: none;
}
.evz-calib[hidden] { display: none; }
.evz-calib-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.evz-lvis {
	stroke: #fff;
	stroke-width: 2.5;
	filter: drop-shadow(0 1px 3px rgba(23, 23, 20, 0.55));
	pointer-events: none;
}
.evz-lhit {
	stroke: rgba(255, 255, 255, 0.01);
	stroke-width: 26;
	cursor: move;
	pointer-events: stroke;
}
.evz-h {
	position: absolute;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid rgba(23, 23, 20, 0.55);
	box-shadow: 0 2px 10px rgba(23, 23, 20, 0.4);
	cursor: grab;
	touch-action: none;
}
.evz-h:active { cursor: grabbing; }
.evz-h:focus-visible { outline: 2px solid #26231f; outline-offset: 2px; }
.evz-linetag {
	position: absolute;
	transform: translate(14px, -50%);
	background: rgba(252, 251, 249, 0.95);
	border: 1px solid rgba(23, 23, 20, 0.12);
	border-radius: 6px;
	padding: 4px 9px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #26231f;
	white-space: nowrap;
	line-height: 1.2;
	pointer-events: none;
}
.evz-loupe {
	position: absolute;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 6px 24px rgba(23, 23, 20, 0.45);
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 5;
}
.evz-loupe::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	border: 1.5px solid rgba(23, 23, 20, 0.7);
}

/* Kalibravimo juosta */
.evz-calibbar {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 18px;
}
.evz-calibbar[hidden] { display: none; }
.evz-calibhint {
	font-size: 11.5px;
	color: #57534a;
	background: rgba(252, 251, 249, 0.9);
	border-radius: 999px;
	padding: 4px 14px;
}
.evz-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	max-width: 100%;
}
.evz-chip {
	font-family: Inter, -apple-system, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	color: #171714 !important;
	background: #fff !important;
	border: 1px solid rgba(23, 23, 20, 0.25) !important;
	border-radius: 999px !important;
	padding: 8px 14px !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.evz-chip:hover,
.evz-chip:focus-visible { background: #eceae4 !important; }
.evz-chip.is-active,
.evz-chip-apply {
	background: #26231f !important;
	color: #faf9f7 !important;
	border-color: #26231f !important;
}
.evz-chip-apply:hover { background: #000 !important; }
.evz-chip-cancel { border-style: dashed; }
.evz-custom { font-size: 11.5px; color: #57534a; }
.evz-custom-cm {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid rgba(23, 23, 20, 0.25);
	border-radius: 6px;
	font-family: inherit;
	font-size: 12px;
}

/* ------------------------------- Apatinis takelis ------------------------------- */

.evz-dock {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 auto;
	margin-bottom: 16px;
	max-width: calc(100% - 24px);
	background: rgba(252, 251, 249, 0.94);
	border: 1px solid rgba(23, 23, 20, 0.1);
	border-radius: 999px;
	padding: 8px 12px;
	box-shadow: 0 10px 30px -12px rgba(35, 30, 22, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.evz-dock[hidden] { display: none; }

.evz-thumbs {
	display: flex;
	align-items: center;
	gap: 7px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 46vw;
}
.evz-thumbs::-webkit-scrollbar { display: none; }
.evz-thumb {
	flex: none;
	width: 42px;
	height: 30px;
	padding: 0 !important;
	border-radius: 6px !important;
	border: 1px solid rgba(23, 23, 20, 0.14) !important;
	background-color: #e7e4dc !important;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: transform 0.15s ease;
}
.evz-thumb:hover { transform: translateY(-1px); }
.evz-thumb.is-active {
	outline: 2px solid #26231f;
	outline-offset: 1.5px;
}
.evz-thumb-flat {
	background-image: linear-gradient(180deg, #f3f1ec 62%, #cbc5b7 62%);
}
.evz-thumb-room { position: relative; flex: none; display: inline-flex; }
.evz-room-del {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid rgba(23, 23, 20, 0.25) !important;
	background: #fff !important;
	color: #26231f !important;
	cursor: pointer;
}
.evz-room-del:hover { color: #a02222; }

.evz-sep {
	flex: none;
	width: 1px;
	height: 24px;
	background: rgba(23, 23, 20, 0.12);
	margin: 0 2px;
}

.evz-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: Inter, -apple-system, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	color: #171714 !important;
	background: #fff !important;
	border: 1px solid rgba(23, 23, 20, 0.3) !important;
	border-radius: 999px !important;
	padding: 8px 13px !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.evz-btn:hover,
.evz-btn:focus-visible {
	background: #eceae4 !important;
	color: #171714 !important;
}

.evz-ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: #26231f !important;
	cursor: pointer;
	transition: background 0.15s ease;
}
.evz-ico:hover,
.evz-ico:focus-visible { background: #e6e3dc !important; }
.evz-ico.is-active {
	background: #26231f !important;
	color: #faf9f7 !important;
}

/* ------------------------------- Mobilus ------------------------------- */

@media (max-width: 640px) {
	.evz-top { padding: 12px 14px 8px; }
	.evz-id { font-size: 16px; }
	.evz-id em { display: block; margin: 3px 0 0; }
	.evz-stage { padding: 0 8px; }
	.evz-bg { max-height: calc(100dvh - 170px); }

	.evz-dock {
		flex-wrap: wrap;
		justify-content: center;
		border-radius: 18px;
		margin-bottom: 10px;
		padding: 9px 10px;
		row-gap: 8px;
	}
	.evz-thumbs { max-width: 100%; }
	.evz-thumb { width: 46px; height: 33px; }
	.evz-sep { display: none; }
	.evz-h { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
	.evz-approx { bottom: 10px; max-width: calc(100% - 20px); }
	.evz-approx span { overflow: hidden; text-overflow: ellipsis; }
}
