.ggg-hdb-market {
	margin: 18px 0 22px;
}

.ggg-hdb-market-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.ggg-hdb-market-head h2 {
	margin: 0;
	color: var(--ggg-ink);
	font-size: 24px;
	font-weight: 860;
	line-height: 1.14;
	letter-spacing: 0;
}

.ggg-hdb-market-save,
.ggg-hdb-market-action {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid rgba(15, 143, 106, .18);
	border-radius: 12px;
	background: var(--ggg-primary-soft);
	color: var(--ggg-primary-hover);
	font-weight: 820;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.ggg-hdb-market-save:hover,
.ggg-hdb-market-action:hover {
	border-color: rgba(15, 143, 106, .28);
	background: #d2ede3;
	color: var(--ggg-primary-hover);
	text-decoration: none;
}

.ggg-hdb-market-save:active,
.ggg-hdb-market-action:active {
	transform: translateY(1px);
}

.ggg-hdb-market-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.ggg-hdb-market-stat {
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--ggg-hairline);
	border-radius: 14px;
	background: rgba(255, 255, 255, .88);
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-market-stat:hover {
	border-color: rgba(15, 143, 106, .25);
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-market-stat.is-history {
	background: var(--ggg-ink);
	color: rgba(255, 255, 255, .78);
}

.ggg-hdb-market-stat span,
.ggg-hdb-market-stat em {
	display: block;
	color: var(--ggg-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: 760;
	line-height: 1.28;
}

.ggg-hdb-market-stat.is-history span,
.ggg-hdb-market-stat.is-history em {
	color: rgba(255, 255, 255, .72);
}

.ggg-hdb-market-stat strong {
	display: block;
	margin: 7px 0 5px;
	color: var(--ggg-ink);
	font-size: 26px;
	font-weight: 880;
	line-height: 1.02;
	overflow-wrap: anywhere;
}

.ggg-hdb-market-stat.is-history strong {
	color: #fff;
}

.ggg-hdb-market-split {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
	gap: 12px;
}

.ggg-hdb-market-panel {
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--ggg-hairline);
	border-radius: 16px;
	background: rgba(255, 255, 255, .88);
}

.ggg-hdb-market-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.ggg-hdb-market-panel-head h3 {
	margin: 0;
	color: var(--ggg-ink);
	font-size: 18px;
	font-weight: 850;
}

.ggg-hdb-market-panel-head span {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--ggg-soft);
	color: var(--ggg-muted);
	font-size: 12px;
	font-weight: 820;
	white-space: nowrap;
}

.ggg-hdb-listings {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ggg-hdb-listings .ggg-listing-card {
	grid-template-columns: 1fr;
	gap: 0;
	border-radius: 14px;
}

.ggg-hdb-listings .ggg-listing-media {
	min-height: 142px;
	aspect-ratio: 4 / 3;
}

.ggg-hdb-listings .ggg-listing-body {
	padding: 12px;
}

.ggg-hdb-listings .ggg-listing-title {
	font-size: 15px;
	line-height: 1.25;
}

.ggg-hdb-listings .ggg-listing-summary-text {
	display: none;
}

.ggg-hdb-listings .ggg-listing-actions {
	grid-template-columns: 1fr;
}

.ggg-hdb-deals {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.ggg-hdb-deal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px;
	border: 1px solid var(--ggg-hairline);
	border-radius: 12px;
	background: var(--ggg-soft);
}

.ggg-hdb-deal strong,
.ggg-hdb-deal span {
	display: block;
}

.ggg-hdb-deal strong {
	color: var(--ggg-ink);
	font-size: 17px;
	font-weight: 860;
	line-height: 1.15;
}

.ggg-hdb-deal span,
.ggg-hdb-deal em {
	color: var(--ggg-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: 720;
}

.ggg-hdb-deal em {
	white-space: nowrap;
}

.ggg-hdb-market-empty {
	padding: 18px;
	border: 1px dashed rgba(116, 125, 120, .35);
	border-radius: 14px;
	background: var(--ggg-soft);
}

.ggg-hdb-market-empty h4 {
	margin: 0 0 6px;
	color: var(--ggg-ink);
	font-size: 17px;
	font-weight: 840;
}

.ggg-hdb-market-empty p {
	margin: 0 0 13px;
	color: var(--ggg-muted);
	font-size: 14px;
	font-weight: 640;
	line-height: 1.6;
}

.ggg-hdb-town-next {
	margin: 14px 0;
}

.ggg-hdb-town-next-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.ggg-hdb-town-next-head h2 {
	margin: 3px 0 0;
	color: var(--ggg-ink);
	font-size: 22px;
	font-weight: 860;
	line-height: 1.16;
	letter-spacing: 0;
}

.ggg-hdb-town-track {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 13px;
	border: 1px solid rgba(15, 143, 106, .2);
	border-radius: 8px;
	background: var(--ggg-primary-soft);
	color: var(--ggg-primary-hover);
	font-weight: 820;
	text-decoration: none;
	white-space: nowrap;
}

.ggg-hdb-town-track:hover {
	border-color: rgba(15, 143, 106, .3);
	background: #d2ede3;
	color: var(--ggg-primary-hover);
	text-decoration: none;
}

.ggg-hdb-town-next-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ggg-hdb-town-next-card {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 3px;
	min-width: 0;
	min-height: 84px;
	align-items: center;
	padding: 13px;
	border: 1px solid var(--ggg-hairline);
	border-radius: 8px;
	background: var(--ggg-soft);
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-town-next-card:hover {
	border-color: rgba(15, 143, 106, .24);
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-town-next-card span {
	display: flex;
	grid-row: 1 / 3;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fff;
	color: var(--ggg-primary-hover);
	font-size: 16px;
}

.ggg-hdb-town-next-card strong,
.ggg-hdb-town-next-card em {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ggg-hdb-town-next-card strong {
	align-self: end;
	color: var(--ggg-ink);
	font-size: 16px;
	font-weight: 860;
	line-height: 1.18;
}

.ggg-hdb-town-next-card em {
	align-self: start;
	color: var(--ggg-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: 720;
	line-height: 1.3;
}

.ggg-hdb-town-next-card.is-soft {
	background: rgba(255, 255, 255, .92);
}

.ggg-hdb-town-next-card.is-tool {
	background: #f7fbf9;
}

.ggg-hdb-town-next-card.is-tool span {
	color: var(--ggg-primary-hover);
}

.ggg-hdb-town-agents {
	margin: 14px 0;
}

.ggg-hdb-town-agent-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.ggg-hdb-town-agent-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
	min-width: 0;
	min-height: 150px;
	padding: 13px;
	border: 1px solid var(--ggg-hairline);
	border-radius: 8px;
	background: rgba(255, 255, 255, .92);
	color: var(--ggg-body);
}

.ggg-hdb-town-agent-card:hover {
	border-color: rgba(15, 143, 106, .26);
}

.ggg-hdb-town-agent-profile {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	grid-template-rows: auto auto auto auto;
	column-gap: 11px;
	row-gap: 3px;
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-town-agent-profile:hover {
	color: var(--ggg-body);
	text-decoration: none;
}

.ggg-hdb-town-agent-avatar {
	display: flex;
	grid-row: 1 / 5;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--ggg-primary-soft);
	color: var(--ggg-primary-hover);
	font-size: 18px;
}

.ggg-hdb-town-agent-card strong,
.ggg-hdb-town-agent-card em,
.ggg-hdb-town-agent-card small,
.ggg-hdb-town-agent-card b,
.ggg-hdb-town-agent-card i {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.28;
}

.ggg-hdb-town-agent-card strong {
	color: var(--ggg-ink);
	font-size: 16px;
	font-weight: 860;
}

.ggg-hdb-town-agent-card em,
.ggg-hdb-town-agent-card small,
.ggg-hdb-town-agent-card i {
	color: var(--ggg-muted);
	font-size: 12px;
	font-style: normal;
	font-weight: 720;
}

.ggg-hdb-town-agent-card b {
	margin-top: 4px;
	color: var(--ggg-primary-hover);
	font-size: 13px;
	font-weight: 840;
}

.ggg-hdb-town-agent-contact {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 10px;
	border-radius: 8px;
	background: var(--ggg-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 820;
	text-decoration: none;
}

.ggg-hdb-town-agent-contact:hover {
	color: #fff;
	text-decoration: none;
}

.ggg-hdb-town-agent-empty {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	padding: 14px;
	border: 1px dashed rgba(116, 125, 120, .35);
	border-radius: 8px;
	background: var(--ggg-soft);
}

.ggg-hdb-town-agent-empty strong,
.ggg-hdb-town-agent-empty span {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ggg-hdb-town-agent-empty strong {
	color: var(--ggg-ink);
	font-size: 17px;
	font-weight: 850;
}

.ggg-hdb-town-agent-empty span {
	color: var(--ggg-muted);
	font-size: 13px;
	font-weight: 680;
	line-height: 1.45;
}

.ggg-hdb-town-agent-empty a {
	display: inline-flex;
	grid-row: 1 / 3;
	grid-column: 2;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--ggg-ink);
	color: #fff;
	font-weight: 820;
	text-decoration: none;
	white-space: nowrap;
}

.ggg-hdb-town-agent-empty a:hover {
	color: #fff;
	text-decoration: none;
}

@media ( max-width : 767px) {
	.ggg-hdb-market-head,
	.ggg-hdb-market-panel-head {
		align-items: flex-start;
	}
	.ggg-hdb-town-next {
		margin: 12px 0;
	}
	.ggg-hdb-town-next-head {
		display: grid;
		grid-template-columns: 1fr;
		align-items: flex-start;
	}
	.ggg-hdb-town-track {
		width: 100%;
		white-space: normal;
	}
	.ggg-hdb-town-next-grid {
		grid-template-columns: 1fr;
	}
	.ggg-hdb-town-next-card {
		min-height: 76px;
	}
	.ggg-hdb-town-agent-grid,
	.ggg-hdb-town-agent-empty {
		grid-template-columns: 1fr;
	}
	.ggg-hdb-town-agent-card {
		min-height: 124px;
	}
	.ggg-hdb-town-agent-empty a {
		grid-row: auto;
		grid-column: auto;
		width: 100%;
	}
	.ggg-hdb-market-head {
		display: grid;
		grid-template-columns: 1fr;
	}
	.ggg-hdb-market-save,
	.ggg-hdb-market-action {
		width: 100%;
		white-space: normal;
	}
	.ggg-hdb-market-grid,
	.ggg-hdb-market-split,
	.ggg-hdb-listings {
		grid-template-columns: 1fr;
	}
	.ggg-hdb-market-panel {
		padding: 12px;
		border-radius: 14px;
	}
	.ggg-hdb-market-stat {
		padding: 13px;
		border-radius: 13px;
	}
	.ggg-hdb-listings .ggg-listing-media {
		min-height: 180px;
	}
}
