/**
 * Interactive Community Explorer — scoped to avoid sidebar/tool conflicts.
 */

#fpp-search-page .fpp-cmap-scope {
	position: relative;
	font-family: 'IBM Plex Sans', sans-serif;
	--fpp-cmap-gold: #B87F0D;
	--fpp-cmap-navy: #0C0C30;
	--fpp-cmap-border: #E6E6E3;
	--fpp-cmap-safe: #B87F0D;
}

/* Member gate */
#fpp-search-page .fpp-cmap-locked {
	filter: blur(5px);
	opacity: 0.4;
	pointer-events: none;
	transition: 0.3s;
	user-select: none;
}

#fpp-search-page .fpp-cmap-locked.is-unlocked {
	filter: none;
	opacity: 1;
	pointer-events: auto;
}

#fpp-search-page .fpp-cmap-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(12, 12, 48, 0.85);
	padding: 20px;
	box-sizing: border-box;
	text-align: center;
	border-radius: 4px;
}

#fpp-search-page .fpp-cmap-overlay[hidden] {
	display: none;
}

#fpp-search-page .fpp-cmap-overlay h2 {
	color: #fff;
	font-size: 1.4rem;
	margin: 0 0 15px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-weight: 700;
}

#fpp-search-page .fpp-cmap-overlay .fpp-value-bombs {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	text-align: center;
	margin: 0 auto 20px;
	font-size: 13px;
	line-height: 1.6;
	color: #E8E6E6;
	padding: 0 !important;
	list-style: none !important;
	max-width: 360px;
	width: 100%;
}

#fpp-search-page .fpp-cmap-overlay .fpp-value-bombs li {
	display: block !important;
	width: 100%;
	margin: 0 0 8px !important;
	text-align: center;
	white-space: normal !important;
}

#fpp-search-page .fpp-cmap-overlay .fpp-value-bombs li::before {
	content: none !important;
	display: none !important;
}

#fpp-search-page .fpp-cmap-overlay__actions {
	width: 100%;
	max-width: 320px;
	margin: 10px auto 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#fpp-search-page .fpp-cmap-overlay .fpp-btn--overlay {
	display: inline-block;
	width: auto;
	min-width: 220px;
	max-width: 100%;
	margin: 0 auto;
	padding: 12px 28px;
}

#fpp-search-page .fpp-cmap-scope .fpp-section-wrapper {
	width: 100%;
	padding: 0;
	box-sizing: border-box;
	margin: 0 auto;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: 'IBM Plex Sans', sans-serif;
	background: #fff;
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 4px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-wrapper * {
	box-sizing: border-box;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-header {
	background-color: var(--fpp-cmap-navy);
	border-bottom: 3px solid var(--fpp-cmap-gold);
	padding: 30px 40px;
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-header h2 {
	font-family: 'Vollkorn', serif;
	font-size: 2.2rem;
	color: #fff;
	margin: 0 0 5px !important;
	text-transform: none !important;
	line-height: 1.2;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-header p {
	font-size: 0.95rem;
	color: var(--fpp-cmap-gold);
	margin: 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-grid {
	display: grid;
	grid-template-columns: 4fr 6fr;
	align-items: stretch;
}

#fpp-search-page .fpp-cmap-scope .fpp-calc-inputs {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-field {
	display: flex;
	flex-direction: column;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-field__label,
#fpp-search-page .fpp-cmap-scope .fpp-cmap-field label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--fpp-cmap-navy);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	white-space: nowrap;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-address-display {
	margin: 0;
	padding: 12px 15px;
	background: #f8f8f8;
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--fpp-cmap-navy);
	line-height: 1.4;
	min-height: 46px;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-input-row {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 4px;
	overflow: hidden;
	transition: 0.3s border;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-input-row:focus-within {
	border-color: var(--fpp-cmap-gold);
	box-shadow: 0 0 0 3px rgba(184, 127, 13, 0.1);
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-input-row input,
#fpp-search-page .fpp-cmap-scope .fpp-cmap-input-row select {
	flex: 1;
	border: none;
	padding: 12px 15px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1rem;
	color: var(--fpp-cmap-navy);
	font-weight: 600;
	width: 100%;
	outline: none;
	background: transparent;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-input-row select {
	cursor: pointer;
}

#fpp-search-page .fpp-cmap-scope .fpp-selection-status-bar {
	background: #f8f8f8;
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 5px;
	color: var(--fpp-cmap-navy);
}

#fpp-search-page .fpp-cmap-scope .fpp-counter-badge {
	background: var(--fpp-cmap-navy);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.75rem;
	border: 1px solid var(--fpp-cmap-gold);
}

#fpp-search-page .fpp-cmap-scope .fpp-counter-badge.active-selections {
	background: var(--fpp-cmap-safe);
	border-color: var(--fpp-cmap-safe);
}

#fpp-search-page .fpp-cmap-scope .fpp-service-fluid-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#fpp-search-page .fpp-cmap-scope .fpp-service-card {
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 4px;
	padding: 15px 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	background: #fcfcfc;
	transition: all 0.2s ease;
	user-select: none;
}

#fpp-search-page .fpp-cmap-scope .fpp-card-main-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

#fpp-search-page .fpp-cmap-scope .fpp-service-card:hover {
	border-color: var(--fpp-cmap-gold);
	background: #fff;
}

#fpp-search-page .fpp-cmap-scope .fpp-service-card.expanded {
	border-color: var(--fpp-cmap-gold);
	background: rgba(184, 127, 13, 0.02);
}

#fpp-search-page .fpp-cmap-scope .fpp-card-details {
	display: flex;
	flex-direction: column;
	width: 100%;
}

#fpp-search-page .fpp-cmap-scope .fpp-card-title {
	font-family: 'Vollkorn', serif;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--fpp-cmap-navy);
}

#fpp-search-page .fpp-cmap-scope .fpp-expand-icon {
	font-size: 1.2rem;
	color: var(--fpp-cmap-gold);
	transition: transform 0.3s ease;
}

#fpp-search-page .fpp-cmap-scope .fpp-service-card.expanded .fpp-expand-icon {
	transform: rotate(180deg);
}

#fpp-search-page .fpp-cmap-scope .fpp-sub-specialist-wrapper {
	width: 100%;
	margin-top: 12px;
	padding: 12px 0 5px;
	border-top: 1px dashed var(--fpp-cmap-border);
	display: none;
}

#fpp-search-page .fpp-cmap-scope .fpp-service-card.expanded .fpp-sub-specialist-wrapper {
	display: block;
}

#fpp-search-page .fpp-cmap-scope .fpp-specialist-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

#fpp-search-page .fpp-cmap-scope .fpp-specialist-tag {
	background: #fff;
	border: 1px solid var(--fpp-cmap-border);
	border-radius: 3px;
	padding: 8px 10px;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	transition: 0.15s ease;
	color: var(--fpp-cmap-navy);
	cursor: pointer;
}

#fpp-search-page .fpp-cmap-scope .fpp-specialist-tag:hover {
	border-color: var(--fpp-cmap-gold);
	color: var(--fpp-cmap-gold);
}

#fpp-search-page .fpp-cmap-scope .fpp-specialist-tag.active {
	background: var(--fpp-cmap-navy);
	border-color: var(--fpp-cmap-navy);
	color: #fff;
}

#fpp-search-page .fpp-cmap-scope .fpp-cmap-field--keyword {
	margin-top: 10px;
}

#fpp-search-page .fpp-cmap-scope .fpp-footer-utilities {
	display: flex;
	width: 100%;
	margin-top: 5px;
	justify-content: center;
}

#fpp-search-page .fpp-cmap-scope .fpp-btn-core {
	font-family: 'IBM Plex Sans', sans-serif;
	padding: 14px 24px;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: all 0.2s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-width: 220px;
	max-width: 100%;
}

#fpp-search-page .fpp-cmap-scope .fpp-btn-primary {
	background-color: #0C0C30 !important;
	color: #fff !important;
	border: 1px solid #0C0C30 !important;
}

#fpp-search-page .fpp-cmap-scope .fpp-btn-primary:hover:not(:disabled) {
	background-color: #B87F0D !important;
	border-color: #B87F0D !important;
	color: #0C0C30 !important;
}

#fpp-search-page .fpp-cmap-scope .fpp-btn-primary:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

#fpp-search-page .fpp-cmap-scope .fpp-results-column {
	position: relative;
	min-height: 700px;
	width: 100%;
	background: #080828;
	border-left: 1px solid var(--fpp-cmap-border);
}

#fpp-search-page .fpp-cmap-scope .fpp-interactive-map-canvas {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

#fpp-search-page .fpp-cmap-scope .fpp-map-overlay-banner {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--fpp-cmap-navy);
	color: #fff;
	padding: 12px 25px;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	z-index: 5;
	border: 2px solid var(--fpp-cmap-gold);
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	max-width: calc(100% - 40px);
}

#fpp-search-page .fpp-cmap-scope .fpp-map-overlay-banner span {
	overflow: hidden;
	text-overflow: ellipsis;
}

#fpp-search-page .fpp-cmap-scope .fpp-info-window-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--fpp-cmap-gold);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: 0.2s;
}

#fpp-search-page .fpp-cmap-scope .fpp-info-window-link:hover {
	color: var(--fpp-cmap-navy);
	text-decoration: underline;
}

@media (max-width: 850px) {
	#fpp-search-page .fpp-cmap-scope .fpp-calc-grid {
		grid-template-columns: 1fr;
	}

	#fpp-search-page .fpp-cmap-scope .fpp-calc-inputs {
		padding: 30px 20px;
	}

	#fpp-search-page .fpp-cmap-scope .fpp-results-column {
		min-height: 500px;
		border-left: none;
		border-top: 3px solid var(--fpp-cmap-gold);
	}

	#fpp-search-page .fpp-cmap-scope .fpp-map-overlay-banner {
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 850px) {
	#fpp-search-page .fpp-cmap-scope .fpp-specialist-grid {
		grid-template-columns: 1fr;
	}
}
