/* Mega Menu Pro — base styles. Colors come from CSS vars set in PHP (Settings page). */
.mmp-nav, .mmp-nav * { box-sizing: border-box; }
.mmp-nav { font-family: var(--mmp-font, inherit); }

.mmp-top-list {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mmp-top-item { position: relative; }

.mmp-top-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 15px;
	color: #1a1a1a;
	text-decoration: none;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}

.mmp-top-item.has-mega:hover > .mmp-top-link,
.mmp-top-item.has-mega.mmp-open > .mmp-top-link {
	background: #fdf1dc;
	color: var(--mmp-accent, #eaa53a);
}

.mmp-caret { font-size: 11px; transition: transform .15s ease; }
.mmp-top-item.mmp-open .mmp-caret { transform: rotate(180deg); }

/* --- Panel --- */
.mmp-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: min(1100px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	min-width: 0;
	background: #fff;
	border-radius: var(--mmp-radius, 10px);
	box-shadow: 0 20px 50px rgba(20,20,40,.18), 0 2px 8px rgba(20,20,40,.08);
	overflow: hidden;
	z-index: 999;
}
.mmp-top-item.has-mega.mmp-open > .mmp-panel { display: block; }

.mmp-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	background: linear-gradient(120deg, var(--mmp-primary, #1c2b4a), var(--mmp-primary-dark, #13203a));
	border-bottom: 3px solid var(--mmp-accent, #eaa53a);
}
.mmp-panel-header-text { min-width: 0; }
.mmp-panel-title { margin: 0 0 6px; color: #fff; font-size: 22px; font-weight: 700; overflow-wrap: break-word; }
.mmp-panel-desc { margin: 0; max-width: 560px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.5; overflow-wrap: break-word; }
.mmp-panel-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	background: var(--mmp-accent, #eaa53a);
	color: #1a1a1a;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .03em;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
}
.mmp-panel-btn:hover { filter: brightness(1.05); }

.mmp-panel-body { display: flex; max-height: 70vh; min-width: 0; }

.mmp-sidebar {
	flex: 0 0 260px;
	max-width: 260px;
	margin: 0;
	padding: 12px;
	list-style: none;
	border-right: 1px solid #eee;
	overflow-y: auto;
}
.mmp-sidebar-item { margin: 2px 0; }
.mmp-sidebar-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	color: #333;
	cursor: pointer;
}
.mmp-sidebar-item:hover .mmp-sidebar-btn { background: #f7f7f7; }
.mmp-sidebar-item.is-active .mmp-sidebar-btn {
	background: #fff;
	border-color: var(--mmp-accent, #eaa53a);
	color: var(--mmp-accent, #eaa53a);
}
.mmp-chevron { opacity: .5; }

.mmp-content { flex: 1; min-width: 0; padding: 24px 28px; overflow-y: auto; }
.mmp-content-pane { display: none; }
.mmp-content-pane.is-active { display: block; }

.mmp-content-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.mmp-content-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #8a8a8a; }
.mmp-view-state { font-size: 13px; font-weight: 700; color: var(--mmp-accent, #eaa53a); text-decoration: none; }

.mmp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 32px;
	min-width: 0;
}
.mmp-card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	padding-bottom: 2px;
	min-width: 0;
}
.mmp-card-name {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	overflow-wrap: break-word;
	word-break: break-word;
}
.mmp-card-icon { font-size: 12px; color: #b8b8b8; }
.mmp-card-city { font-size: 13px; color: #9a9a9a; }
.mmp-card:hover .mmp-card-name { color: var(--mmp-accent, #eaa53a); }

.mmp-empty { color: #999; font-size: 14px; }

/* --- Simple 2-level dropdown (no grid/sidebar needed) --- */
.mmp-panel-simple {
	width: max-content;
	min-width: 240px;
	max-width: min(640px, calc(100vw - 24px));
	padding: 10px;
}
.mmp-simple-list { list-style: none; margin: 0; padding: 0; }
.mmp-simple-list-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(200px, 1fr));
	gap: 2px 12px;
}
.mmp-simple-link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 11px 16px 11px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: #1a1a1a;
	border-left: 3px solid transparent;
	transition: background .12s ease, border-color .12s ease, padding-left .12s ease;
}
.mmp-simple-link:hover {
	background: #fdf6ea;
	border-left-color: var(--mmp-accent, #eaa53a);
	color: var(--mmp-accent, #eaa53a);
	padding-left: 18px;
}
.mmp-simple-link-title { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.mmp-simple-link-sub { font-size: 12px; color: #9a9a9a; }

/* --- Mobile --- */
@media (max-width: 782px) {
	.mmp-panel { position: static; width: 100%; max-width: none; box-shadow: none; border-radius: 0; margin-top: 8px; right: auto; left: auto; }
	.mmp-panel-body { flex-direction: column; max-height: none; }
	.mmp-sidebar { max-width: none; flex: none; border-right: 0; border-bottom: 1px solid #eee; }
	.mmp-grid { grid-template-columns: 1fr; }
	.mmp-panel-header { flex-direction: column; }
	.mmp-simple-list-cols { grid-template-columns: 1fr; }
}
