/* ==========================================================================
   ESTONE GLOBAL PRESENCE MAP SECTION STYLESHEET
   ========================================================================== */

.estone-global-presence-wrapper {
	position: relative;
	width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	background: linear-gradient(180deg, #eef7fc 0%, #e2eef9 100%);
	padding: 5rem 3rem;
	overflow: hidden;
	box-sizing: border-box;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-global-presence-wrapper,
.block-editor-block-list__layout .estone-global-presence-wrapper,
.block-editor-block-list__block .estone-global-presence-wrapper,
.block-editor-iframe__html .estone-global-presence-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-global-presence-wrapper * {
	box-sizing: border-box;
}

.estone-presence-inner-container {
	margin: 0 auto;
	width: 100%;
}

.estone-presence-title {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-size: 2.25rem;
	font-weight: 700;
	color: #000000;
	margin: 0 0 6px 0;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.estone-presence-subtitle {
	font-size: 1rem;
	color: #475569;
	margin: 0;
	line-height: 1.5;
}

/* Map Container Box */
.estone-presence-map-box {
	position: relative;
	width: 100%;
	min-height: 480px;
	margin-top: 1.5rem;
}

.estone-presence-map-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.estone-presence-svg-map-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.estone-presence-vector-map {
	width: 100%;
	height: auto;
	max-height: 520px;
	filter: drop-shadow(0 10px 20px rgba(0,0,0,0.03));
}

/* Pins Layer */
.estone-presence-pins-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.estone-presence-pin-item {
	position: absolute;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.3s ease;
}

.estone-presence-pin-item:hover {
	z-index: 30;
	transform: translate(-50%, -54%) scale(1.05);
}

.estone-presence-pin-item.is-dragging,
.estone-presence-pin-item.is-dragging:hover {
	z-index: 999 !important;
	transform: translate(-50%, -50%) !important;
	transition: none !important;
}

/* Pulsating Beacon Dot */
.estone-presence-beacon-dot {
	position: relative;
	width: 10px;
	height: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
}

.estone-beacon-core {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: var(--beacon-color, #c8102e);
	box-shadow: 0 0 8px var(--beacon-color, #c8102e);
	z-index: 2;
}

.estone-beacon-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid var(--beacon-color, #c8102e);
	opacity: 0.8;
	z-index: 1;
}

.estone-presence-beacon-dot.pulse .estone-beacon-ring {
	animation: estonePulseRipple 2s infinite ease-out;
}

@keyframes estonePulseRipple {
	0% {
		width: 100%;
		height: 100%;
		opacity: 0.8;
	}
	100% {
		width: 320%;
		height: 320%;
		opacity: 0;
	}
}

/* Tooltip Location Card Pill */
.estone-presence-card-pill {
	background-color: #ffffff;
	border-radius: 20px;
	box-shadow: 0 12px 35px rgba(0,0,0,0.12);
	padding: 8px 18px;
	text-align: center;
	white-space: nowrap;
	margin-bottom: 6px;
	border: 1px solid rgba(0,0,0,0.04);
	transition: all 0.25s ease;
}

.estone-card-title-text {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-weight: 700;
	color: #c8102e;
	line-height: 1.2;
}

.estone-card-sub-text {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
	margin-top: 2px;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
	.estone-presence-title {
		font-size: 1.95rem;
	}
}

@media (max-width: 768px) {
	.estone-global-presence-wrapper {
		padding: 3.5rem 1.5rem;
	}

	.estone-presence-title {
		font-size: 1.65rem;
	}

	.estone-presence-subtitle {
		font-size: 0.95rem;
	}

	.estone-presence-map-box {
		min-height: 320px;
	}

	.estone-presence-card-pill {
		padding: 6px 12px;
	}

	.estone-card-title-text {
		font-size: 12px !important;
	}

	.estone-card-sub-text {
		font-size: 10px !important;
	}
}

@media (max-width: 480px) {
	.estone-global-presence-wrapper {
		padding: 2.5rem 1rem;
	}
	.estone-presence-title {
		font-size: 1.4rem;
	}
	.estone-presence-subtitle {
		font-size: 0.9rem;
	}
	.estone-presence-map-box {
		min-height: 220px;
	}
	.estone-presence-card-pill {
		padding: 4px 8px;
	}
	.estone-card-title-text {
		font-size: 10.5px !important;
	}
	.estone-card-sub-text {
		font-size: 9px !important;
	}
}


