#geofotos-3d-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1500;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	background: #030712;
}

#geofotos-3d-container.visible {
	opacity: 1;
	visibility: visible;
}

#geofotos-3d-container #cesiumContainer {
	width: 100%;
	height: 100%;
	position: relative;
}

/* Cesium overrides */
#geofotos-3d-container .cesium-viewer-bottom,
#geofotos-3d-container .cesium-viewer-toolbar,
#geofotos-3d-container .cesium-viewer-animationContainer,
#geofotos-3d-container .cesium-viewer-timelineContainer,
#geofotos-3d-container .cesium-viewer-fullscreenContainer,
#geofotos-3d-container .cesium-widget-credits {
	display: none !important;
}

/* Popup de navegación 3D */
.geofotos-3d-popup {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(17, 24, 39, 0.3);
	backdrop-filter: blur(20px);
	border: 1px solid #1f2937;
	border-radius: 16px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 200;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.geofotos-3d-popup.visible {
	opacity: 1;
	visibility: visible;
}

.geofotos-3d-popup-nav {
	color: #f3f4f6;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	transition: all 0.2s ease;
}

.geofotos-3d-popup-nav:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: scale(1.1);
}

.geofotos-3d-popup-close {
	color: #9ca3af;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 20px;
	padding: 4px;
	transition: color 0.15s;
}

.geofotos-3d-popup-close:hover {
	color: #f3f4f6;
}

/* Panel de territorios 3D */
.geofotos-3d-territories-panel {
	position: absolute;
	top: 20px;
	right: 70px;
	width: 260px;
	background: rgba(17, 24, 39, 0.3);
	backdrop-filter: blur(16px);
	border-radius: 12px;
	padding: 8px 14px;
	z-index: 300;
	border: 1px solid rgba(50, 87, 165, 0.25);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.geofotos-3d-territories-panel .panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 0;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.geofotos-3d-territories-panel.expanded .panel-header {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom-color: #0d7ff2;
}

.geofotos-3d-territories-panel .panel-global-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #f3f4f6;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 6px;
	border-radius: 6px;
	flex: 1;
	transition: background 0.15s;
}

.geofotos-3d-territories-panel .panel-global-btn:hover {
	background: rgba(255, 255, 255, 0.06);
}

.geofotos-3d-territories-panel .panel-toggle-btn {
	cursor: pointer;
	color: #9ca3af;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	background: transparent;
}

.geofotos-3d-territories-panel .panel-toggle-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #f3f4f6;
}

#geofotos-3d-territories-list {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.geofotos-3d-territories-panel.expanded #geofotos-3d-territories-list {
	max-height: 300px;
	overflow-y: auto;
	transition: max-height 0.3s ease-in-out;
}

#geofotos-3d-territories-list::-webkit-scrollbar {
	width: 6px;
}

#geofotos-3d-territories-list::-webkit-scrollbar-track {
	background: transparent;
}

#geofotos-3d-territories-list::-webkit-scrollbar-thumb {
	background: #374151;
	border-radius: 3px;
}

.geofotos-3d-territory-item {
	display: flex;
	align-items: center;
	padding: 9px 10px;
	margin-bottom: 6px;
	margin-left: 12px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.geofotos-3d-territory-item:first-child {
	margin-left: 0;
}

.geofotos-3d-territory-item:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateX(-3px);
}

.geofotos-3d-territory-item .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 12px;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.4);
}

.geofotos-3d-territory-item .info {
	flex: 1;
}

.geofotos-3d-territory-item .name {
	color: #f3f4f6;
	font-size: 13px;
	font-weight: 500;
}

.geofotos-3d-territory-item .desc {
	color: #9ca3af;
	font-size: 11px;
}

/* Controles de rotación 3D */
.geofotos-3d-controls {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.geofotos-3d-control-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.9);
	backdrop-filter: blur(8px);
	color: #f3f4f6;
	border: 1px solid #1f2937;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all 0.2s ease;
}

.geofotos-3d-control-btn:hover {
	background: rgba(13, 127, 242, 0.2);
	border-color: #0d7ff2;
	color: #0d7ff2;
}

/* Responsive */
@media (max-width: 600px) {
	.geofotos-3d-territories-panel {
		width: calc(100% - 80px);
		max-width: 320px;
		right: 60px;
	}
	
	.geofotos-3d-controls {
		gap: 6px;
	}
	
	.geofotos-3d-popup {
		padding: 10px 12px;
		gap: 8px;
	}
	
	.geofotos-3d-popup-nav {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
}