/* === Layout zakładek === */

.tooltip-name {
  font-size: 32px;
    font-weight: 700;
}

.makieta3d {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.makieta3d .tabs {
	margin-bottom: 10px;
	text-align: left;
}

.makieta3d .tab-nav {
	display: inline-flex;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.makieta3d .tab-nav li {
	padding: 8px 14px;
	background: #0073aa;
	color: white;
	text-transform: uppercase;
	font-weight: bold;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
	border: solid 1px #e0e0e0;
}

.makieta3d .tab-nav li:hover {
	background: #ff8800;
}

.makieta3d .tab-nav li.active {
	background: #ff8800;
	color: #fff;
}

.makieta3d .tab-content {
	position: relative;
	width: calc(100% - 360px);
	min-height: 400px;
}

.makieta3d .tab-pane {
	display: none;
	position: relative;
}

.makieta3d .tab-pane.active {
	display: block;
}

.makieta-floor {
	position: relative;
	display: block;
	width: 100%;
}

.makieta-floor img {
	width: 100%;
	display: block;
}

.floor-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: auto;
}

/* === Tooltip / Popup === */
#tooltip {
	position: absolute;
	top: 25%;
	right: 0;
	z-index: 100;
	background: #f2f2f2;
	color: black;
	padding: 16px 16px;
	border-radius: 6px;
	font-size: 17px;
	line-height: 1.5;
	max-width: 360px;
  	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
	border: solid 1px #e0e0e0;
}

#tooltip.visible {
	opacity: 1;
	visibility: visible;
}

.tooltip-logo {
	text-align: center;
	margin-bottom: 10px;
}

.tooltip-logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
	height: 150px !important;
	min-width: 325px;
}

.tooltip-info {
	text-align: left;
}

.tooltip-row {
	margin-bottom: 4px;
	display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
}

.tooltip-row strong {
	display: inline-block;
	width: 110px;
	font-weight: 600;
	color: black;
}

#tooltip svg {
	display: block;
	width: 15px;
	height: 15px;
	position: absolute;
	top: 2px;
	right: 2px;
	cursor: pointer;
	fill: #7a7a7a;
}

#tooltip svg:hover {
	fill: #ff8800;
}

@media only screen and (max-width: 1080px) {
	#tooltip {
		width: 100%;
		max-width: 100%;
		top: 54.88px;
	}

	#tooltip svg {
		display: block;
		width: 15px;
		height: 15px;
		position: absolute;
		top: 2px;
		right: 2px;
	}

	.makieta3d .tab-nav li {
		padding: 4px 8px;
		border-radius: 6px;
		cursor: pointer;
		transition: background 0.2s;
		font-size: 12px;
	}

	.makieta3d .tab-content {
		width: 100%;
	}
}