/**
 * Interactive Floor Plan Widget Styles
 *
 * @package AlberCAS
 * @since   1.0.0
 */

/* ==========================================
   CONTAINER
========================================== */
.albercas-floor-plan {
	background-color: transparent !important;
	color: #ffffff;
	position: relative;
	width: 100%;
}

/* ==========================================
   TITLE - Typography Controls Working
========================================== */
.albercas-floor-plan-title {
	color: #ffffff;
	margin: 0 0 30px 0;
	text-align: left;
}

/* Remove default styles to allow Elementor controls */
.elementor-widget-albercas-floor-plan .albercas-floor-plan-title {
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	font-style: inherit;
	text-decoration: inherit;
}

/* ==========================================
   CONTENT LAYOUT
========================================== */
.albercas-floor-plan-content {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* ==========================================
   AREA LIST - Typography Controls Working
========================================== */
.albercas-area-list {
	flex: 0 0 250px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.albercas-area-list-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 15px;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #ffffff;
}

/* Remove default styles to allow Elementor controls */
.elementor-widget-albercas-floor-plan .albercas-area-list-item {
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	font-style: inherit;
	text-decoration: inherit;
}

.albercas-area-list-item:hover,
.albercas-area-list-item.active {
	background-color: #47BAB2;
	transform: translateX(5px);
}

.albercas-area-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}

.albercas-area-name {
	flex: 1;
}

/* ==========================================
   FLOOR PLAN MAP
========================================== */
.albercas-floor-plan-map {
	flex: 1;
	position: relative;
	min-height: 400px;
}

.albercas-floor-plan-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

/* ==========================================
   MARKERS - Typography Controls Working
========================================== */
.albercas-marker {
	position: absolute;
	width: 40px;
	height: 40px;
	background-color: #00bfa5;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	transform: translate(-50%, -50%);
	border: 3px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Remove default styles to allow Elementor controls */
.elementor-widget-albercas-floor-plan .albercas-marker {
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit ;
	text-transform: inherit;
	font-style: inherit;
	text-decoration: inherit;
}

.albercas-marker:hover,
.albercas-marker.active {
	transform: translate(-50%, -50%) scale(1.2);
	background-color: #ff5722;
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
	z-index: 20;
}

.albercas-marker-number {
	position: relative;
	z-index: 2;
}

/* ==========================================
   TOOLTIP - ALWAYS VISIBLE + Typography Working
========================================== */
.albercas-tooltip {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
	background-color: #2c3e50;
	color: #ffffff;
	padding: 15px 20px;
	border-radius: 8px;
	min-width: 200px;
	max-width: 300px;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	z-index: 100;
	margin-bottom: 15px;
	transition: all 0.3s ease;
}

.albercas-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #47BAB2;
}

.albercas-tooltip h4 {
	margin: 0 0 8px 0;
	color: #fff;
}

/* Remove default styles to allow Elementor controls */
.elementor-widget-albercas-floor-plan .albercas-tooltip h4 {
	
}

.albercas-tooltip p {
	margin: 0;
	line-height: 1.5;
}

/* Remove default styles to allow Elementor controls */
.elementor-widget-albercas-floor-plan .albercas-tooltip p {
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	font-style: inherit;
	text-decoration: inherit;
}

/* ==========================================
   RESPONSIVE DESIGN - 100% Responsive
========================================== */

/* Tablet - Large (1024px and below) */
@media (max-width: 1024px) {
	.albercas-floor-plan-content {
		gap: 30px;
	}

	.albercas-area-list {
		flex: 0 0 200px;
	}

	.albercas-marker {
		width: 35px;
		height: 35px;
	}

	.albercas-tooltip {
		min-width: 180px;
		max-width: 280px;
		padding: 14px 18px;
	}
}

/* Tablet - Medium (768px and below) */
@media (max-width: 768px) {
	.albercas-floor-plan {
		padding: 30px 20px;
	}

	.albercas-floor-plan-content {
		flex-direction: column;
		gap: 25px;
	}

	.albercas-area-list {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
	}

	.albercas-floor-plan-map {
		width: 100%;
	}

	.albercas-marker {
		width: 32px;
		height: 32px;
	}

	.albercas-tooltip {
		min-width: 170px;
		max-width: 250px;
		padding: 12px 16px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}

	.albercas-tooltip::after {
		left: 50%;
		transform: translateX(-50%);
	}
}

/* Mobile - Large (640px and below) */
@media (max-width: 640px) {
	.albercas-floor-plan {
		padding: 25px 15px;
	}

	.albercas-floor-plan-content {
		gap: 20px;
	}

	.albercas-area-list-item {
		padding: 9px 13px;
		gap: 12px;
	}

	.albercas-area-number {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.albercas-marker {
		width: 30px;
		height: 30px;
		border-width: 2px;
	}

	.albercas-tooltip {
		min-width: 160px;
		max-width: 220px;
		padding: 11px 14px;
	}
}

/* Mobile - Medium (480px and below) */
@media (max-width: 480px) {
	.albercas-floor-plan {
		padding: 20px 12px;
	}

	.albercas-floor-plan-title {
		margin-bottom: 20px;
	}

	.albercas-floor-plan-content {
		gap: 18px;
	}

	.albercas-area-list {
		gap: 10px;
	}

	.albercas-area-list-item {
		padding: 8px 12px;
		gap: 10px;
	}

	.albercas-area-number {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.albercas-marker {
		width: 28px;
		height: 28px;
		border-width: 2px;
	}

	.albercas-tooltip {
		min-width: 150px;
		max-width: 200px;
		padding: 10px 12px;
		margin-bottom: 12px;
	}

	.albercas-tooltip::after {
		border-width: 7px;
	}
}

/* Mobile - Small (360px and below) */
@media (max-width: 360px) {
	.albercas-floor-plan {
		padding: 15px 10px;
	}

	.albercas-floor-plan-content {
		gap: 15px;
	}

	.albercas-area-list {
		gap: 8px;
	}

	.albercas-area-list-item {
		padding: 7px 10px;
		gap: 8px;
	}

	.albercas-area-number {
		width: 26px;
		height: 26px;
		font-size: 11px;
	}

	.albercas-marker {
		width: 26px;
		height: 26px;
		border-width: 2px;
	}

	.albercas-tooltip {
		min-width: 140px;
		max-width: 180px;
		padding: 9px 11px;
		margin-bottom: 10px;
	}

	.albercas-tooltip::after {
		border-width: 6px;
	}
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes pulse {
	0%, 100% {
		box-shadow: 0 4px 12px rgba(0, 191, 165, 0.4);
	}
	50% {
		box-shadow: 0 4px 20px rgba(0, 191, 165, 0.8);
	}
}

/* Optional: Add subtle animation to always-visible tooltips */
.albercas-tooltip {
	animation: tooltipFloat 3s ease-in-out infinite;
}

@keyframes tooltipFloat {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-3px);
	}
}

/* Hover state enhancement */
.albercas-marker:hover .albercas-tooltip,
.albercas-marker.active .albercas-tooltip {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	animation: none;
	transform: translateX(-50%) translateY(-5px);
}
