/**
 * Globex Horizon Buy Sell Business Portal — frontend styles.
 *
 * Visual layout follows a typical M&A / business-for-sale marketplace pattern
 * (filter sidebar + listing cards + key-facts detail panel with a sticky
 * contact box), themed in the Globex Horizon palette: navy #0b1929 / gold #c49a3c.
 */

.gxp-wrap {
	--gxp-navy: #0b1929;
	--gxp-navy-2: #12263f;
	--gxp-navy-3: #1c3a5e;
	--gxp-gold: #c49a3c;
	--gxp-gold-2: #d8b25a;
	--gxp-ink: #1f2a37;
	--gxp-muted: #64748b;
	--gxp-line: #e3e8ef;
	--gxp-bg: #f5f7fa;
	--gxp-card: #ffffff;
	--gxp-radius: 10px;
	--gxp-shadow: 0 1px 3px rgba(11, 25, 41, .08), 0 8px 24px rgba(11, 25, 41, .06);

	color: var(--gxp-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
	box-sizing: border-box;
}

.gxp-wrap *,
.gxp-wrap *::before,
.gxp-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.gxp-btn,
.gxp-btn-gold {
	display: inline-block;
	padding: 11px 20px;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}

.gxp-btn {
	background: var(--gxp-navy);
	color: #fff;
}

.gxp-btn:hover {
	background: var(--gxp-navy-3);
	color: #fff;
}

.gxp-btn-gold {
	background: var(--gxp-gold);
	color: var(--gxp-navy);
}

.gxp-btn-gold:hover {
	background: var(--gxp-gold-2);
	color: var(--gxp-navy);
}

.gxp-btn:active,
.gxp-btn-gold:active {
	transform: translateY(1px);
}

.gxp-btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

.gxp-btn-link {
	background: none;
	border: 0;
	color: var(--gxp-muted);
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	padding: 6px 2px;
}

.gxp-btn-link:hover {
	color: var(--gxp-navy);
}

/* ---------- Marketplace hero ---------- */
.gxp-mp-hero {
	background: linear-gradient(135deg, var(--gxp-navy) 0%, var(--gxp-navy-3) 100%);
	border-radius: var(--gxp-radius);
	padding: 40px 32px;
	margin-bottom: 22px;
	color: #fff;
	border-bottom: 3px solid var(--gxp-gold);
}

.gxp-mp-hero-title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.01em;
}

.gxp-mp-hero-sub {
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, .82);
	max-width: 640px;
}

/* ---------- Topbar (search + sort) ---------- */
.gxp-mp-topbar {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.gxp-search {
	display: flex;
	flex: 1 1 420px;
	gap: 8px;
}

.gxp-search input {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid var(--gxp-line);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.gxp-search input:focus {
	outline: 2px solid var(--gxp-gold);
	border-color: var(--gxp-gold);
}

.gxp-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--gxp-muted);
}

.gxp-sort select,
.gxp-select {
	padding: 10px 12px;
	border: 1px solid var(--gxp-line);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--gxp-ink);
	width: 100%;
}

.gxp-sort select {
	width: auto;
}

/* ---------- Marketplace layout ---------- */
.gxp-mp-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

/* ---------- Sidebar / facets ---------- */
.gxp-sidebar {
	background: var(--gxp-card);
	border: 1px solid var(--gxp-line);
	border-radius: var(--gxp-radius);
	box-shadow: var(--gxp-shadow);
	overflow: hidden;
	position: sticky;
	top: 20px;
}

.gxp-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--gxp-navy);
	color: #fff;
	padding: 14px 18px;
}

.gxp-sidebar-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.gxp-sidebar-toggle {
	display: none;
	background: var(--gxp-gold);
	color: var(--gxp-navy);
	border: 0;
	border-radius: 6px;
	padding: 6px 12px;
	font-weight: 600;
	cursor: pointer;
}

.gxp-sidebar-body {
	padding: 6px 18px 18px;
}

.gxp-facet {
	padding: 16px 0;
	border-bottom: 1px solid var(--gxp-line);
}

.gxp-facet:last-of-type {
	border-bottom: 0;
}

.gxp-facet-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--gxp-navy);
}

.gxp-type-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gxp-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border: 1px solid var(--gxp-line);
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
	transition: all .12s ease;
}

.gxp-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.gxp-pill.is-active,
.gxp-pill:hover {
	background: var(--gxp-navy);
	border-color: var(--gxp-navy);
	color: #fff;
}

.gxp-facet-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gxp-facet-range input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--gxp-line);
	border-radius: 8px;
	font-size: 14px;
}

.gxp-range-sep {
	color: var(--gxp-muted);
}

.gxp-facet-actions {
	padding-top: 16px;
	text-align: center;
}

.gxp-facet-actions .gxp-btn {
	margin-bottom: 6px;
}

/* ---------- Results column ---------- */
.gxp-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.gxp-results-count {
	font-size: 14px;
	color: var(--gxp-muted);
	font-weight: 600;
}

.gxp-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---------- Listing card (list row) ---------- */
.gxp-card {
	display: grid;
	grid-template-columns: 240px 1fr;
	background: var(--gxp-card);
	border: 1px solid var(--gxp-line);
	border-radius: var(--gxp-radius);
	box-shadow: var(--gxp-shadow);
	overflow: hidden;
	transition: box-shadow .15s ease, transform .1s ease;
}

.gxp-card:hover {
	box-shadow: 0 4px 10px rgba(11, 25, 41, .12), 0 18px 40px rgba(11, 25, 41, .1);
	transform: translateY(-2px);
}

.gxp-card-thumb {
	position: relative;
	display: block;
	background: var(--gxp-navy-2);
	min-height: 170px;
	overflow: hidden;
}

.gxp-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gxp-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .5);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	background: linear-gradient(135deg, var(--gxp-navy) 0%, var(--gxp-navy-3) 100%);
}

.gxp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--gxp-gold);
	color: var(--gxp-navy);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 5px 10px;
	border-radius: 6px;
}

.gxp-card-body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
}

.gxp-card-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.gxp-card-title a {
	color: var(--gxp-navy);
	text-decoration: none;
}

.gxp-card-title a:hover {
	color: var(--gxp-gold);
}

.gxp-card-sub {
	margin: 0 0 10px;
	font-size: 13.5px;
	color: var(--gxp-muted);
	font-weight: 600;
}

.gxp-card-excerpt {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: #475569;
}

.gxp-card-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid var(--gxp-line);
}

.gxp-keyfact {
	display: flex;
	flex-direction: column;
}

.gxp-keyfact-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--gxp-muted);
	font-weight: 600;
}

.gxp-keyfact-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--gxp-ink);
}

.gxp-price {
	color: var(--gxp-navy);
}

.gxp-card-foot .gxp-card-btn {
	margin-left: auto;
	padding: 9px 16px;
	font-size: 14px;
}

/* ---------- Pagination ---------- */
.gxp-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
	justify-content: center;
}

.gxp-pagination .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--gxp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--gxp-navy);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.gxp-pagination .page-numbers.current {
	background: var(--gxp-navy);
	color: #fff;
	border-color: var(--gxp-navy);
}

.gxp-pagination .page-numbers:hover:not(.current) {
	border-color: var(--gxp-gold);
	color: var(--gxp-gold);
}

.gxp-empty {
	background: var(--gxp-card);
	border: 1px dashed var(--gxp-line);
	border-radius: var(--gxp-radius);
	padding: 48px 24px;
	text-align: center;
	color: var(--gxp-muted);
}

/* ============ SINGLE LISTING ============ */
.gxp-single {
	max-width: 1100px;
}

.gxp-breadcrumb {
	font-size: 13px;
	color: var(--gxp-muted);
	margin-bottom: 14px;
}

.gxp-breadcrumb a {
	color: var(--gxp-navy);
	text-decoration: none;
}

.gxp-breadcrumb a:hover {
	color: var(--gxp-gold);
}

.gxp-bc-sep {
	margin: 0 8px;
	color: var(--gxp-line);
}

.gxp-single-head {
	margin-bottom: 18px;
}

.gxp-single-head .gxp-badge {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
}

.gxp-single-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--gxp-navy);
	letter-spacing: -.01em;
}

.gxp-single-sub {
	margin: 0;
	font-size: 15px;
	color: var(--gxp-muted);
	font-weight: 600;
}

/* Key-facts strip */
.gxp-keyfacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--gxp-line);
	border: 1px solid var(--gxp-line);
	border-radius: var(--gxp-radius);
	overflow: hidden;
	margin-bottom: 24px;
}

.gxp-keyfacts .gxp-keyfact {
	background: var(--gxp-card);
	padding: 16px 18px;
}

.gxp-keyfacts .gxp-keyfact.is-primary {
	background: var(--gxp-navy);
}

.gxp-keyfacts .gxp-keyfact.is-primary .gxp-keyfact-label {
	color: rgba(255, 255, 255, .7);
}

.gxp-keyfacts .gxp-keyfact.is-primary .gxp-keyfact-value {
	color: var(--gxp-gold-2);
}

.gxp-keyfacts .gxp-keyfact-value {
	font-size: 18px;
	margin-top: 4px;
}

/* Two-column body */
.gxp-single-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
}

.gxp-section {
	background: var(--gxp-card);
	border: 1px solid var(--gxp-line);
	border-radius: var(--gxp-radius);
	box-shadow: var(--gxp-shadow);
	padding: 24px 26px;
	margin-bottom: 20px;
}

.gxp-section-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: var(--gxp-navy);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gxp-gold);
	display: inline-block;
}

.gxp-single-media {
	margin: 0 0 20px;
	border-radius: var(--gxp-radius);
	overflow: hidden;
	box-shadow: var(--gxp-shadow);
}

.gxp-detail-img {
	width: 100%;
	height: auto;
	display: block;
}

.gxp-detail-description {
	font-size: 15.5px;
	color: #334155;
}

.gxp-detail-description p {
	margin: 0 0 1em;
}

/* Definition lists (financials / contact) */
.gxp-detail-list {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(140px, 40%) 1fr;
	gap: 0;
}

.gxp-detail-list dt {
	font-weight: 600;
	color: var(--gxp-muted);
	padding: 11px 0;
	border-bottom: 1px solid var(--gxp-line);
	font-size: 14px;
}

.gxp-detail-list dd {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--gxp-line);
	color: var(--gxp-ink);
	font-weight: 600;
	font-size: 14.5px;
}

.gxp-detail-list dt:last-of-type,
.gxp-detail-list dd:last-of-type {
	border-bottom: 0;
}

/* Sticky contact panel */
.gxp-single-aside {
	position: sticky;
	top: 20px;
}

.gxp-contact-panel {
	background: var(--gxp-card);
	border: 1px solid var(--gxp-line);
	border-top: 3px solid var(--gxp-gold);
	border-radius: var(--gxp-radius);
	box-shadow: var(--gxp-shadow);
	padding: 22px 22px 24px;
}

.gxp-panel-title {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--gxp-navy);
}

.gxp-contact-list {
	margin-bottom: 16px;
}

/* Lock states */
.gxp-lock {
	text-align: center;
}

.gxp-lock-icon {
	font-size: 30px;
	display: block;
	margin-bottom: 6px;
}

.gxp-lock-text {
	color: var(--gxp-muted);
	font-size: 14.5px;
	margin: 0 0 16px;
}

.gxp-lock-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.gxp-contact-panel .gxp-lock-actions {
	flex-direction: column;
}

/* ---------- Forms (register / submit / interest / account) ---------- */
.gxp-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gxp-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gxp-navy);
	margin-bottom: 4px;
}

.gxp-form input[type="text"],
.gxp-form input[type="email"],
.gxp-form input[type="tel"],
.gxp-form input[type="password"],
.gxp-form input[type="number"],
.gxp-form input[type="url"],
.gxp-form input[type="file"],
.gxp-form select,
.gxp-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--gxp-line);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	color: var(--gxp-ink);
}

.gxp-form input:focus,
.gxp-form select:focus,
.gxp-form textarea:focus {
	outline: 2px solid var(--gxp-gold);
	border-color: var(--gxp-gold);
}

.gxp-form textarea {
	min-height: 110px;
	resize: vertical;
}

.gxp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* Generic form/card containers used by shortcodes */
.gxp-panel,
.gxp-form-card {
	background: var(--gxp-card);
	border: 1px solid var(--gxp-line);
	border-radius: var(--gxp-radius);
	box-shadow: var(--gxp-shadow);
	padding: 24px 26px;
	margin-bottom: 20px;
}

/* Notices */
.gxp-notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14.5px;
	margin-bottom: 16px;
	border-left: 4px solid var(--gxp-navy);
	background: #eef2f7;
}

.gxp-notice--success {
	border-left-color: #1a7f4b;
	background: #e7f6ee;
}

.gxp-notice--error {
	border-left-color: #c0392b;
	background: #fdecea;
}

.gxp-notice-empty {
	text-align: center;
	color: var(--gxp-muted);
}

/* Account dashboard helpers */
.gxp-account-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.gxp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.gxp-table th,
.gxp-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--gxp-line);
}

.gxp-table th {
	color: var(--gxp-navy);
	font-weight: 700;
	background: #f1f5f9;
}

.gxp-status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.gxp-status-approved { background: #e7f6ee; color: #1a7f4b; }
.gxp-status-pending  { background: #fff3da; color: #9a6700; }
.gxp-status-rejected { background: #fdecea; color: #c0392b; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.gxp-mp-layout {
		grid-template-columns: 1fr;
	}

	.gxp-sidebar {
		position: static;
	}

	.gxp-sidebar-toggle {
		display: inline-block;
	}

	.gxp-sidebar-body {
		display: none;
	}

	.gxp-sidebar.is-open .gxp-sidebar-body {
		display: block;
	}

	.gxp-single-layout {
		grid-template-columns: 1fr;
	}

	.gxp-single-aside {
		position: static;
	}
}

@media (max-width: 620px) {
	.gxp-card {
		grid-template-columns: 1fr;
	}

	.gxp-card-thumb {
		min-height: 180px;
	}

	.gxp-mp-hero {
		padding: 28px 20px;
	}

	.gxp-mp-hero-title {
		font-size: 22px;
	}

	.gxp-form-row,
	.gxp-account-grid {
		grid-template-columns: 1fr;
	}

	.gxp-card-foot {
		gap: 14px;
	}

	.gxp-card-foot .gxp-card-btn {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

/* ==========================================================================
   WhatsApp CTA Buttons
   ========================================================================== */

.gxp-btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #25D366;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.gxp-btn-whatsapp:hover,
.gxp-btn-whatsapp:focus {
	background-color: #1ebe5d;
	color: #fff;
	box-shadow: 0 2px 8px rgba(37,211,102,0.4);
	text-decoration: none;
}

.gxp-wa-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Hero CTA wrapper */
.gxp-mp-hero-cta {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

/* Listing card WhatsApp button */
.gxp-card-wa-btn {
	font-size: 0.8rem;
	padding: 7px 12px;
	margin-top: 6px;
	width: 100%;
	justify-content: center;
}

/* Contact panel (single listing - logged in) */
.gxp-contact-wa-wrap {
	margin-top: 16px;
	text-align: center;
}

.gxp-contact-wa-wrap .gxp-btn-whatsapp {
	width: 100%;
	justify-content: center;
}

/* Lock panel (single listing - logged out) */
.gxp-lock-wa-wrap {
	margin-top: 12px;
	text-align: center;
}

.gxp-lock-wa-wrap .gxp-btn-whatsapp {
	width: 100%;
	justify-content: center;
}

/* Sell Your Business page WA wrap */
.gxp-sell-wa-wrap {
	margin-top: 24px;
	padding: 16px;
	background: rgba(37,211,102,0.06);
	border: 1px solid rgba(37,211,102,0.2);
	border-radius: 8px;
	text-align: center;
}

.gxp-sell-wa-text {
	margin: 0 0 10px;
	color: #555;
	font-size: 0.9rem;
}

/* Register / Login page WA wrap */
.gxp-auth-wa-wrap {
	margin-top: 20px;
	text-align: center;
	padding-bottom: 8px;
}

/* My Account page WA wrap */
.gxp-account-wa-wrap {
	margin-top: 24px;
	text-align: center;
}
