/* =============================================================
   LawyerUp.network — Explore / Search page
   Custom rebuild: map + search, champion-card results.
   ============================================================= */


/* ========================================
   1. PAGE LAYOUT
   ======================================== */

.lawyerup-explore-page .site-content,
.lawyerup-explore-page .site-content > .container {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.lawyerup-search {
	position: relative;
	display: flex;
	/* Trimmed from full-viewport so the SEO hero above and the search both
	   sit near the fold; mobile re-sets full height in the 768px query. */
	min-height: clamp(560px, 72vh, 720px);
	background: var(--lh-dark, #0e0f1a);
}


/* ========================================
   2. BACKGROUND IMAGE + OVERLAY
   ======================================== */

.lawyerup-search__bg {
	position: absolute;
	inset: 0;
	background: url('/wp-content/uploads/2026/05/office-homepage.jpg') center/cover no-repeat fixed;
	z-index: 0;
	pointer-events: none;
}

.lawyerup-search__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(14,15,26,0.92) 0%,
		rgba(14,15,26,0.88) 50%,
		rgba(14,15,26,0.94) 100%
	);
	z-index: 0;
	pointer-events: none;
}


/* ========================================
   3. SIDEBAR — search form + results
   ======================================== */

.lawyerup-search__sidebar {
	position: relative;
	z-index: 1;
	width: 420px;
	min-width: 420px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	padding: 28px 24px;
}


/* ========================================
   4. SEARCH FORM
   ======================================== */

.lawyerup-search__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
}

.lawyerup-search__field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(245, 233, 208, 0.5);
	margin-bottom: 6px;
}

.lawyerup-search__field input,
.lawyerup-search__field select {
	width: 100%;
	background: rgba(14, 15, 26, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 12px 14px;
	color: var(--lh-cream, #f5e9d0);
	font-size: 14px;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.lawyerup-search__field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a85a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.lawyerup-search__field input::placeholder {
	color: rgba(245, 233, 208, 0.3);
}

.lawyerup-search__field input:focus,
.lawyerup-search__field select:focus {
	outline: none;
	border-color: var(--lh-gold, #d4a85a);
	box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.12);
}

.lawyerup-search__btn {
	background: linear-gradient(135deg, #e23636 0%, #c41f1f 100%);
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.03em;
	box-shadow: 0 6px 18px -4px rgba(226, 54, 54, 0.5);
	transition: all 0.25s ease;
}

.lawyerup-search__btn:hover {
	background: linear-gradient(135deg, #c41f1f 0%, #e23636 100%);
	box-shadow: 0 10px 24px -6px rgba(226, 54, 54, 0.7);
	transform: translateY(-1px);
}

.lawyerup-search__btn i {
	margin-right: 4px;
	vertical-align: middle;
}

.lawyerup-search__reset {
	background: transparent;
	color: var(--lh-gold, #d4a85a);
	border: 1.5px solid var(--lh-gold, #d4a85a);
	border-radius: 24px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lawyerup-search__reset:hover {
	background: var(--lh-gold, #d4a85a);
	color: var(--lh-dark, #0e0f1a);
}

.lawyerup-search__reset i {
	margin-right: 4px;
	vertical-align: middle;
	font-size: 15px;
}


/* ========================================
   5. RESULTS COUNT
   ======================================== */

.lawyerup-search__count {
	font-size: 13px;
	color: rgba(245, 233, 208, 0.55);
	margin-bottom: 16px;
}

.lawyerup-search__count strong {
	color: var(--lh-cream, #f5e9d0);
}


/* ========================================
   6. LISTING CARDS
   ======================================== */

.lawyerup-search__results {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.lawyerup-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgba(20, 21, 31, 0.7);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--lh-text-on-dark, #f5f5f7) !important;
	transition: all 0.3s ease;
	padding: 24px 22px 20px;
	gap: 12px;
}

.lawyerup-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #ffd54a) 100%);
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.lawyerup-card:hover {
	transform: translateY(-4px);
	border-color: rgba(212, 168, 90, 0.4);
	box-shadow: 0 18px 48px -12px rgba(0, 0, 0, 0.6);
	background: rgba(26, 27, 41, 0.85);
	color: var(--lh-text-on-dark, #f5f5f7) !important;
}

.lawyerup-card:hover::before {
	opacity: 1;
}

.lawyerup-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lawyerup-card__logo {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	padding: 6px;
}

.lawyerup-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.lawyerup-card__initial {
	font-size: 22px;
	font-weight: 800;
	color: var(--lh-gold, #d4a85a);
	font-family: 'Cardo', 'Roboto', serif;
}

.lawyerup-card__info {
	min-width: 0;
	flex: 1;
}

.lawyerup-card__name {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--lh-cream, #f5e9d0);
	line-height: 1.25;
	font-family: 'Cardo', 'Roboto', serif;
}

.lawyerup-card__cat {
	display: inline-block;
	font-size: 10.5px;
	color: var(--lh-gold, #d4a85a);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-top: 2px;
}

.lawyerup-card.is-featured {
	border-left: 3px solid var(--lh-gold, #d4a85a);
}

.lawyerup-card__featured-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: linear-gradient(135deg, #d4a85a, #c49645);
	color: #1a1a2e;
	font-family: 'Roboto', sans-serif;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
	white-space: nowrap;
}

.lawyerup-card__featured-badge svg {
	flex-shrink: 0;
}

.lawyerup-card__excerpt {
	margin: 0;
	font-size: 13.5px;
	color: var(--lh-text-on-dark-soft, rgba(245,245,247,0.78));
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lawyerup-card__address {
	margin: 0;
	font-size: 12.5px;
	color: rgba(245, 233, 208, 0.5);
	line-height: 1.4;
}

.lawyerup-card__address i {
	font-size: 14px;
	vertical-align: middle;
	margin-right: 2px;
	color: rgba(245, 233, 208, 0.35);
}

.lawyerup-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--lh-gold, #d4a85a);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: gap 0.2s ease;
}

.lawyerup-card:hover .lawyerup-card__cta {
	gap: 10px;
}


/* ========================================
   7. MAP
   ======================================== */

.lawyerup-search__map {
	z-index: 1;
	flex: 1;
	position: sticky;
	top: 70px;
	height: calc(100vh - 70px);
	align-self: flex-start;
}

.lawyerup-search__map .mapboxgl-canvas {
	outline: none;
}

.lawyerup-search__map .mapboxgl-ctrl-group {
	background: rgba(20, 21, 31, 0.85);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.lawyerup-search__map .mapboxgl-ctrl-group button {
	background-color: transparent;
	border-bottom-color: rgba(255,255,255,0.1);
}

.lawyerup-search__map .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
	filter: invert(1) brightness(0.85);
}


/* ========================================
   8. MAP MARKERS
   ======================================== */

.lawyerup-marker {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(20, 21, 31, 0.85);
	background-size: 65%;
	background-position: center;
	background-repeat: no-repeat;
	border: 2px solid var(--lh-gold, #d4a85a);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	color: var(--lh-gold, #d4a85a);
	font-family: 'Cardo', 'Roboto', serif;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	transition: transform 0.2s ease;
}

.lawyerup-marker:hover {
	transform: scale(1.2);
}

.lawyerup-cluster {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(20, 21, 31, 0.92);
	border: 2px solid var(--lh-gold, #d4a85a);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 800;
	color: var(--lh-gold, #d4a85a);
	font-family: 'Cardo', 'Roboto', serif;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	transition: transform 0.2s ease;
}

.lawyerup-cluster:hover {
	transform: scale(1.1);
}

.lawyerup-cluster--md {
	width: 52px;
	height: 52px;
	font-size: 16px;
}

.lawyerup-cluster--lg {
	width: 62px;
	height: 62px;
	font-size: 17px;
}

.lawyerup-popup {
	display: block;
	text-decoration: none !important;
	color: #1a1a2e !important;
	padding: 4px 0;
}

.lawyerup-popup strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.lawyerup-popup span {
	display: block;
	font-size: 11px;
	color: #666;
	margin-top: 2px;
}


/* ========================================
   9. PAGINATION
   ======================================== */

.lawyerup-search__pagination {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding-top: 20px;
	margin-top: auto;
}

.lawyerup-page {
	background: rgba(20, 21, 31, 0.5);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	border-radius: 6px;
	color: rgba(245, 233, 208, 0.7);
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lawyerup-page:hover {
	border-color: var(--lh-gold, #d4a85a);
	color: var(--lh-gold, #d4a85a);
}

.lawyerup-page.is-active {
	background: var(--lh-gold, #d4a85a);
	border-color: var(--lh-gold, #d4a85a);
	color: var(--lh-dark, #0e0f1a);
	font-weight: 700;
}

.lawyerup-page--dots {
	border: none;
	background: none;
	cursor: default;
	padding: 6px 4px;
	color: rgba(245, 233, 208, 0.35);
}

.lawyerup-page--dots:hover {
	border: none;
	color: rgba(245, 233, 208, 0.35);
}


/* ========================================
   10. EMPTY STATE + LOADING
   ======================================== */

.lawyerup-search__empty {
	text-align: center;
	padding: 48px 24px;
	color: rgba(245, 233, 208, 0.5);
}

.lawyerup-search__empty i {
	font-size: 48px;
	color: rgba(245, 233, 208, 0.15);
	display: block;
	margin-bottom: 16px;
}

.lawyerup-search__empty p {
	font-size: 15px;
}

.lawyerup-search__loading {
	display: flex;
	justify-content: center;
	padding: 48px 0;
}

.lawyerup-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(212, 168, 90, 0.2);
	border-top-color: var(--lh-gold, #d4a85a);
	border-radius: 50%;
	animation: lu-spin 0.7s linear infinite;
}

@keyframes lu-spin {
	to { transform: rotate(360deg); }
}


/* ========================================
   11. RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
	.lawyerup-search__sidebar {
		width: 360px;
		min-width: 360px;
		padding: 24px 20px;
	}
}

@media (max-width: 768px) {
	.lawyerup-search {
		flex-direction: column;
		height: auto;
		min-height: calc(100vh - 70px);
	}

	.lawyerup-search__sidebar {
		width: 100%;
		min-width: 100%;
		max-height: none;
		overflow: visible;
		border-right: none;
		border-bottom: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
		padding: 20px 16px;
	}

	.lawyerup-search__map {
		/* Column layout: reset the desktop sticky/flex-start, which otherwise
		   collapses the map's width on mobile and leaves a blank block. */
		position: relative;
		top: auto;
		align-self: stretch;
		width: 100%;
		flex: none;
		height: 50vh;
		min-height: 300px;
	}

	.lawyerup-card {
		padding: 20px 18px 18px;
	}

	.lawyerup-card__logo {
		width: 42px;
		height: 42px;
	}

	.lawyerup-card__name {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.lawyerup-search__sidebar {
		padding: 16px 14px;
	}

	.lawyerup-card {
		padding: 18px 16px 16px;
	}
}
