:root {
	--ldm-accent: #e63946;
	--ldm-bg: #101114;
	--ldm-bg-soft: #1a1c20;
	--ldm-text: #f2f2f2;
	--ldm-text-muted: #9a9a9a;
}

/* Botón hamburguesa flotante */
.ldm-toggle {
	position: fixed;
	top: 14px;
	z-index: 100000;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ldm-bg);
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.ldm-toggle.ldm-pos-left { left: 14px; }
.ldm-toggle.ldm-pos-right { right: 14px; }
.ldm-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.ldm-toggle.ldm-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ldm-toggle.ldm-open span:nth-child(2) { opacity: 0; }
.ldm-toggle.ldm-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro */
.ldm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
	z-index: 99997;
}
.ldm-overlay.ldm-visible { opacity: 1; visibility: visible; }

/* Panel off-canvas */
.ldm-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(340px, 85vw);
	background: linear-gradient(180deg, var(--ldm-bg) 0%, var(--ldm-bg-soft) 100%);
	color: var(--ldm-text);
	transform: translateX(-105%);
	transition: transform .32s cubic-bezier(.2,.8,.2,1);
	z-index: 99998;
	overflow-y: auto;
	padding: 70px 20px 30px;
	box-shadow: 8px 0 30px rgba(0,0,0,.3);
}
.ldm-panel.ldm-open { transform: translateX(0); }

.ldm-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Buscador */
.ldm-search {
	display: flex;
	align-items: center;
	background: rgba(255,255,255,.06);
	border-radius: 10px;
	margin-bottom: 20px;
	overflow: hidden;
}
.ldm-search input {
	flex: 1;
	background: transparent;
	border: none;
	color: #fff;
	padding: 12px 14px;
	outline: none;
	font-size: 14px;
}
.ldm-search input::placeholder { color: var(--ldm-text-muted); }
.ldm-search button {
	background: none;
	border: none;
	color: var(--ldm-accent);
	padding: 0 14px;
	cursor: pointer;
}

/* Listado de menú */
.ldm-menu, .ldm-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ldm-item > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 8px;
	color: var(--ldm-text);
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.08);
	font-size: 15px;
	font-weight: 500;
	transition: color .2s ease, padding-left .2s ease;
}
.ldm-item > a:hover,
.ldm-item > a:focus {
	color: var(--ldm-accent);
	padding-left: 14px;
}
.ldm-item .dashicons {
	font-size: 19px;
	width: 19px;
	height: 19px;
	color: var(--ldm-text-muted);
	flex-shrink: 0;
}
.ldm-item > a:hover .dashicons { color: var(--ldm-accent); }

.ldm-label { flex: 1; }

.ldm-caret {
	font-size: 15px !important;
	width: 15px !important;
	height: 15px !important;
	transition: transform .2s ease;
}
.ldm-has-children.ldm-open-sub > a .ldm-caret { transform: rotate(180deg); }

/* Ítems destacados */
.ldm-highlight > a {
	color: var(--ldm-accent);
	font-weight: 700;
}
.ldm-highlight .dashicons { color: var(--ldm-accent); }

/* Submenú (Empleos, Compraventa, etc.) */
.ldm-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	padding-left: 12px;
	border-left: 2px solid rgba(255,255,255,.08);
}
.ldm-has-children.ldm-open-sub > .ldm-submenu {
	max-height: 600px;
}
.ldm-submenu .ldm-item > a { font-size: 14px; padding: 11px 8px; }

body.ldm-noscroll { overflow: hidden; }

@media (min-width: 1024px) {
	.ldm-panel { width: 380px; }
}
