/* ==========================================================================
   VDA Floor Explorer — Pozicija v objektu
   ========================================================================== */

.vda-floor-explorer {
	display: flex;
	gap: 60px;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
}

/* -----------------------------------------------------------------------
   Floor Buttons (vertical column on left)
----------------------------------------------------------------------- */
.vda-floor-explorer__buttons {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.vda-floor-explorer__floor-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vda-floor-walkthrough-btn {
	margin-bottom: 36px;
}

.vda-floor-explorer__compass-icon {
	flex-shrink: 0;
}

.vda-floor-btn,
.vda-floor-walkthrough-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid #333;
	background: transparent;
	color: #333;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
}

.vda-floor-btn:hover,
.vda-floor-walkthrough-btn:hover {
	background: #a4b222;
	border-color: #a4b222;
	color: #fff;
}

.vda-floor-btn.is-active {
	background: #a4b222;
	border-color: #a4b222;
	color: #fff;
}

.vda-floor-btn.is-active:hover {
	background: #A4B222D9;
	border-color: #A4B222D9;
}

/* -----------------------------------------------------------------------
   Standalone variant (no buttons / compass)
----------------------------------------------------------------------- */
.vda-floor-explorer--standalone {
	display: block;
}

.vda-floor-explorer--standalone .vda-floor-explorer__map {
	width: 100%;
}

/* -----------------------------------------------------------------------
   Map Area
----------------------------------------------------------------------- */
.vda-floor-explorer__map {
	flex: 1;
	min-width: 0;
	position: relative;
	padding: 0 50px;
}

.vda-floor-panel {
	width: 100%;
}

.vda-floor-panel img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Maphilight canvas positioning */
.vda-floor-panel .map,
.vda-floor-panel canvas {
	max-width: 100%;
}

/* -----------------------------------------------------------------------
   Large screens — side columns 15% width each (map fills remainder)
----------------------------------------------------------------------- */
@media (min-width: 769px) {
	.vda-floor-explorer__buttons {
		flex: 0 0 15%;
		min-width: 0;
		align-items: flex-start;
	}

	.vda-floor-explorer__compass-icon {
		flex: 0 0 15%;
		display: flex;
		justify-content: center;
		align-items: flex-start;
	}

	.vda-floor-explorer__map {
		flex: 1 1 auto;
	}
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 768px) {
	.vda-floor-explorer {
		flex-direction: column;
		gap: 0;
	}

	.vda-floor-explorer__buttons {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		gap: 8px;
		order: -1;
	}

	.vda-floor-explorer__floor-stack {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 6px;
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.vda-floor-explorer__floor-stack::-webkit-scrollbar {
		display: none;
	}

	.vda-floor-walkthrough-btn {
		margin-bottom: 0;
		order: 2;
		flex-shrink: 0;
	}

	.vda-floor-explorer__map {
		margin-top: 24px;
		width: 100%;
		padding: 0;
	}

	.vda-floor-explorer__compass-icon {
		align-self: center;
		margin-top: 12px;
	}

	.vda-floor-explorer__compass-icon svg {
		width: 80px;
		height: auto;
		display: block;
	}

	.vda-floor-btn,
	.vda-floor-walkthrough-btn {
		width: 40px;
		height: 40px;
		font-size: 13px;
		flex-shrink: 0;
	}
}

@media (max-width: 480px) {
	.vda-floor-explorer__buttons {
		gap: 6px;
	}

	.vda-floor-explorer__floor-stack {
		gap: 4px;
	}

	.vda-floor-explorer__map {
		margin-top: 20px;
	}

	.vda-floor-btn,
	.vda-floor-walkthrough-btn {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	.vda-floor-explorer__compass-icon svg {
		width: 68px;
	}
}
