﻿/*
Theme Name: Flatsom Child
Theme URI: https://example.com/
Description: Minimal Flatsome child theme for a real estate site using UX Builder home layout and lightweight category/single overrides.
Author: Codex
Template: flatsome
Version: 1.0.4
Text Domain: flatsom-child
*/
:root {
	--bds-orange: #ff8a00;
	--bds-orange-dark: #e85f00;
	--bds-yellow: #ffd23f;
	--bds-red: #f01945;
	--bds-blue: #0877d8;
	--bds-cyan: #00a6d6;
	--bds-green: #10b981;
	--bds-ink: #203044;
	--bds-muted: #718096;
	--bds-line: #e7edf3;
	--bds-soft: #f2f7fb;
	--bds-paper: #ffffff;
	--bds-gradient: linear-gradient(135deg, #ffb000 0%, #ff8a00 45%, #ffd23f 100%);
	--bds-shadow: 0 10px 28px rgba(32, 48, 68, 0.08);
}

body {
	background: var(--bds-soft);
}

.bds-page,
.bds-home {
	color: var(--bds-ink);
	font-family: Arial, Helvetica, sans-serif;
}

.bds-soft-bg {
	padding: 34px 0 56px;
	background:
		radial-gradient(circle at top left, rgba(255, 210, 63, 0.2), transparent 28%),
		var(--bds-soft);
}

.bds-container {
	max-width: 1180px;
	margin-right: auto;
	margin-left: auto;
}

.bds-breadcrumb {
	margin-bottom: 10px;
	color: var(--bds-muted);
	font-size: 13px;
	line-height: 1.4;
}

.bds-breadcrumb a {
	color: var(--bds-blue);
}

.bds-breadcrumb span {
	display: inline-block;
	margin: 0 7px;
	color: #b5c0ca;
}

.bds-top-search {
	padding: 18px 0 !important;
	border-top: 1px solid rgba(231, 237, 243, 0.9);
	border-bottom: 1px solid rgba(231, 237, 243, 0.9);
	background:
		linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
	box-shadow: 0 6px 22px rgba(32, 48, 68, 0.05);
}

.bds-search-row .col-inner {
	display: grid;
	grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	max-width: 1040px;
	margin: 0 auto;
	padding: 14px;
	border: 1px solid rgba(231, 237, 243, 0.95);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 12px 30px rgba(32, 48, 68, 0.07);
}

.bds-search-row .searchform-wrapper {
	width: 100%;
}

.bds-search-row .searchform {
	width: 100%;
	margin-bottom: 0;
}

.bds-search-row .searchform .flex-row {
	overflow: hidden;
	border: 1px solid var(--bds-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bds-search-row .text {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	margin: 0;
}

.bds-search-row .text br {
	display: none;
}

.bds-search-row .search-field,
.bds-search-row input[type="search"] {
	height: 44px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--bds-ink);
	font-size: 14px;
	font-weight: 600;
}

.bds-search-row .ux-search-submit,
.bds-search-row .submit-button {
	width: 50px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--bds-gradient);
	color: #fff;
	box-shadow: none;
}

.bds-search-row .ux-search-submit:hover,
.bds-search-row .submit-button:hover {
	filter: brightness(0.96);
}

.bds-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid #f1d39a;
	border-radius: 999px;
	background:
		linear-gradient(180deg, #ffffff 0%, #fff7e6 100%);
	color: var(--bds-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(255, 138, 0, 0.08);
}

.bds-filter-chip strong {
	color: var(--bds-orange-dark);
}

.bds-home-hero {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 247, 251, 0.96)),
		radial-gradient(circle at 22% 0%, rgba(255, 210, 63, 0.38), transparent 34%),
		var(--bds-soft);
}

.bds-home-heading {
	max-width: 850px;
	margin: 0 auto 22px;
	text-align: center;
}

.bds-home-heading h1,
.bds-home-heading h2 {
	margin: 0 0 8px;
	color: var(--bds-ink);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
}

.bds-home-heading p {
	margin: 0;
	color: var(--bds-muted);
	font-size: 15px;
	line-height: 1.7;
}

.bds-category-card .col-inner,
.bds-info-panel .col-inner,
.bds-stat-card .col-inner,
.bds-help-panel .col-inner {
	height: 100%;
	border: 1px solid var(--bds-line);
	border-radius: 8px;
	background: var(--bds-paper);
	box-shadow: var(--bds-shadow);
}

.bds-category-card .col-inner {
	padding: 24px;
	position: relative;
	overflow: hidden;
}

.bds-category-card .col-inner::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	background: var(--bds-gradient);
}

.bds-category-card h3 {
	margin: 0 0 6px;
	color: var(--bds-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.bds-category-card p {
	margin: 0 0 16px;
	color: var(--bds-muted);
	font-size: 14px;
	line-height: 1.55;
}

.bds-link-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bds-link-columns li {
	margin: 0;
	color: var(--bds-muted);
	font-size: 14px;
	line-height: 1.35;
}

.bds-link-columns a {
	color: var(--bds-ink);
}

.bds-link-columns a::before,
.bds-side-box li a::before {
	content: "›";
	margin-right: 7px;
	color: var(--bds-red);
	font-weight: 800;
}

.bds-section-title {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.bds-section-title h2 {
	margin: 0;
	color: var(--bds-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
}

.bds-section-title a,
.bds-section-title span {
	color: var(--bds-blue);
	font-size: 13px;
	font-weight: 700;
}

.bds-area-card .col-inner {
	position: relative;
	min-height: 150px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--bds-gradient);
	box-shadow: var(--bds-shadow);
}

.bds-area-card .col-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 0%, rgba(12, 29, 45, 0.74) 100%),
		linear-gradient(135deg, rgba(8, 119, 216, 0.34), rgba(255, 138, 0, 0.38));
}

.bds-area-card .ux_text,
.bds-area-card .text {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 150px;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
}

.bds-area-card h3 {
	margin: 0 0 2px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.bds-area-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	font-weight: 700;
}

.bds-project-card .col-inner {
	min-height: 130px;
	padding: 18px;
	border-radius: 8px;
	background:
		linear-gradient(180deg, transparent 0%, rgba(32, 48, 68, 0.78) 100%),
		var(--bds-gradient);
	box-shadow: var(--bds-shadow);
}

.bds-project-card h3 {
	margin: 64px 0 2px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.bds-project-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 12px;
}

.bds-home-listings .post-item,
.bds-home-news .post-item {
	padding-bottom: 18px;
}

.bds-home-listings .box,
.bds-home-news .box {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--bds-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--bds-shadow);
}

.bds-home-listings .box-image {
	border-bottom: 4px solid var(--bds-yellow);
}

.bds-home-listings .box-text,
.bds-home-news .box-text {
	padding: 13px 14px 15px;
}

.bds-home-listings .post-title,
.bds-home-news .post-title {
	margin-bottom: 7px;
	color: var(--bds-blue);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
}

.bds-home-listings .from_the_blog_excerpt,
.bds-home-news .from_the_blog_excerpt {
	color: var(--bds-muted);
	font-size: 13px;
	line-height: 1.5;
}

.bds-cta-band {
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 210, 63, 0.34), transparent 28%),
		linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.bds-stat-card .col-inner {
	padding: 22px;
	text-align: center;
}

.bds-stat-card h3 {
	margin: 0 0 4px;
	color: var(--bds-orange-dark);
	font-size: 24px;
	font-weight: 800;
}

.bds-stat-card p {
	margin: 0;
	color: var(--bds-muted);
	font-size: 13px;
}

.bds-help-panel .col-inner {
	padding: 24px;
}

.bds-help-panel h3 {
	margin: 0 0 8px;
	color: var(--bds-ink);
	font-size: 22px;
	font-weight: 800;
}

.bds-help-panel p {
	margin: 0 0 12px;
	color: var(--bds-muted);
}

.bds-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.bds-sort-form {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--bds-ink);
	font-size: 13px;
	font-weight: 700;
}

.bds-sort-form select {
	min-width: 145px;
	height: 38px;
	margin: 0;
	border-color: var(--bds-line);
	border-radius: 7px;
	background-color: #fff;
	box-shadow: none;
	font-size: 13px;
}

.bds-category-heading {
	margin-bottom: 16px;
}

.bds-category-heading h1 {
	margin: 0 0 6px;
	color: var(--bds-ink);
	font-size: 25px;
	font-weight: 800;
	line-height: 1.25;
}

.bds-category-desc {
	color: var(--bds-muted);
	font-size: 14px;
	line-height: 1.6;
}

.bds-listing-stack {
	display: grid;
	gap: 14px;
}

.bds-listing-card {
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--bds-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(32, 48, 68, 0.05);
}

.bds-card-image {
	position: relative;
	display: block;
	min-height: 175px;
	background: #dfe8ef;
}

.bds-card-image img,
.bds-thumb-placeholder,
.bds-hero-main img,
.bds-hero-side img,
.bds-mini-post img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bds-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bds-gradient);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.bds-photo-count {
	position: absolute;
	bottom: 8px;
	left: 8px;
	min-width: 34px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(32, 48, 68, 0.75);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.bds-photo-count::before {
	content: "▣ ";
}

.bds-card-body {
	padding: 16px 18px;
}

.bds-card-title {
	margin: 0 0 7px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
}

.bds-card-title a {
	color: var(--bds-blue);
}

.category-nha-dat-can-ban .bds-card-title a,
.category-sang-nhuong .bds-card-title a {
	color: var(--bds-orange-dark);
}

.bds-card-price {
	margin-bottom: 7px;
	color: var(--bds-green);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.bds-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 8px;
	color: var(--bds-muted);
	font-size: 12px;
}

.bds-card-excerpt {
	margin: 0 0 10px;
	color: var(--bds-muted);
	font-size: 13px;
	line-height: 1.55;
}

.bds-card-agent {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--bds-muted);
	font-size: 12px;
	font-weight: 700;
}

.bds-agent-avatar,
.bds-agent-photo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bds-gradient);
	color: #fff;
	font-weight: 800;
}

.bds-agent-avatar {
	width: 24px;
	height: 24px;
	font-size: 12px;
}

.bds-sidebar-col {
	position: relative;
}

.bds-side-box,
.bds-widget-box,
.bds-agent-box,
.bds-single-card,
.bds-empty-state {
	margin-bottom: 18px;
	border: 1px solid var(--bds-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(32, 48, 68, 0.05);
}

.bds-side-box,
.bds-widget-box,
.bds-agent-box,
.bds-empty-state {
	padding: 18px;
}

.bds-side-box h3,
.bds-agent-box h3 {
	margin: 0 0 13px;
	color: var(--bds-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.bds-side-box ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bds-side-box li {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
}

.bds-side-box a {
	color: var(--bds-ink);
}

.bds-widget-box .widget {
	margin: 0 0 16px;
}

.bds-single-hero {
	background: #fff;
}

.bds-hero-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	height: 270px;
	overflow: hidden;
}

.bds-hero-main,
.bds-hero-side {
	border-right: 2px solid #fff;
	background: #dfe8ef;
}

.bds-image-tabs {
	display: flex;
	justify-content: center;
	gap: 28px;
	height: 42px;
	border-bottom: 1px solid var(--bds-line);
	background: #fff;
	color: var(--bds-ink);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.bds-image-tabs span {
	display: inline-flex;
	align-items: center;
	border-bottom: 3px solid transparent;
}

.bds-image-tabs span:first-child {
	border-color: var(--bds-orange);
}

.bds-single-card {
	padding: 22px;
}

.bds-back-link {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 6px 11px;
	border: 1px solid var(--bds-line);
	border-radius: 999px;
	color: var(--bds-muted);
	font-size: 12px;
	font-weight: 700;
}

.bds-single-header h1 {
	margin: 0 0 10px;
	color: var(--bds-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.32;
}

.bds-single-meta-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	color: var(--bds-muted);
	font-size: 13px;
}

.bds-single-meta-line strong {
	color: var(--bds-green);
	font-size: 19px;
}

.bds-content-block {
	margin-top: 28px;
}

.bds-content-block h2,
.bds-related-section h2 {
	margin: 0 0 13px;
	color: var(--bds-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.bds-content-block .entry-content {
	color: #4a5868;
	font-size: 14px;
	line-height: 1.72;
}

.bds-info-table {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--bds-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 7px;
	background: #fff;
	font-size: 13px;
}

.bds-info-table th,
.bds-info-table td {
	padding: 11px 13px;
	border-bottom: 1px solid var(--bds-line);
	text-align: left;
	vertical-align: top;
}

.bds-info-table th {
	width: 34%;
	background: #f9fbfd;
	color: var(--bds-muted);
	font-weight: 700;
}

.bds-info-table td {
	color: var(--bds-ink);
}

.bds-info-table tr:last-child th,
.bds-info-table tr:last-child td {
	border-bottom: 0;
}

.bds-loan-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.bds-loan-fields label,
.bds-contact-form label {
	display: block;
	margin-bottom: 10px;
	color: var(--bds-muted);
	font-size: 12px;
	font-weight: 700;
}

.bds-loan-fields input,
.bds-contact-form input,
.bds-contact-form textarea {
	width: 100%;
	margin-top: 5px;
	border-color: var(--bds-line);
	border-radius: 6px;
	box-shadow: none;
	color: var(--bds-ink);
}

.bds-loan-result {
	padding: 18px;
	border: 1px solid var(--bds-line);
	border-radius: 8px;
	background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.bds-loan-result span {
	display: block;
	margin-bottom: 3px;
	color: var(--bds-muted);
	font-size: 12px;
	font-weight: 700;
}

.bds-loan-result strong {
	display: block;
	margin-bottom: 11px;
	color: var(--bds-blue);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.2;
}

.bds-agent-box {
	position: sticky;
	top: 18px;
}

.bds-agent-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.bds-agent-photo {
	width: 54px;
	height: 54px;
	font-size: 21px;
}

.bds-agent-head h3 {
	margin: 0;
}

.bds-call-btn.button,
.bds-zalo-btn.button {
	width: calc(50% - 5px);
	margin: 0 6px 12px 0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
}

.bds-call-btn.button {
	background: var(--bds-green);
}

.bds-zalo-btn.button {
	margin-right: 0;
	background: var(--bds-blue);
}

.bds-contact-form .button {
	margin: 0;
	border-radius: 6px;
	background: linear-gradient(135deg, var(--bds-red), var(--bds-orange));
	font-weight: 800;
}

.bds-related-section {
	margin-top: 28px;
}

.bds-related-section .bds-listing-card {
	margin-bottom: 14px;
}

.bds-mini-post {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 12px;
	color: var(--bds-ink);
}

.bds-mini-post img,
.bds-mini-post .bds-thumb-placeholder {
	aspect-ratio: 1.18;
	border-radius: 6px;
}

.bds-mini-post strong {
	display: block;
	color: var(--bds-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.bds-mini-post em {
	display: block;
	margin-top: 4px;
	color: var(--bds-green);
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

.bds-empty-state h2 {
	margin: 0 0 6px;
	font-size: 20px;
}

.bds-empty-state p {
	margin: 0;
	color: var(--bds-muted);
}

@media (max-width: 849px) {
	.bds-soft-bg {
		padding: 24px 0 42px;
	}

	.bds-home-heading h1,
	.bds-home-heading h2 {
		font-size: 28px;
	}

	.bds-search-row .col-inner,
	.bds-archive-toolbar {
		align-items: stretch;
	}

	.bds-search-row .col-inner {
		grid-template-columns: 1fr;
	}

	.bds-search-row .searchform {
		max-width: none;
	}

	.bds-listing-card {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	.bds-hero-gallery {
		height: 230px;
		grid-template-columns: 1fr;
	}

	.bds-hero-side {
		display: none;
	}

	.bds-agent-box {
		position: static;
	}
}

@media (max-width: 549px) {
	.bds-link-columns,
	.bds-side-box ul,
	.bds-loan-grid {
		grid-template-columns: 1fr;
	}

	.bds-listing-card {
		grid-template-columns: 1fr;
	}

	.bds-card-image {
		min-height: 215px;
	}

	.bds-single-card {
		padding: 17px;
	}

	.bds-single-header h1 {
		font-size: 23px;
	}

	.bds-call-btn.button,
	.bds-zalo-btn.button {
		width: 100%;
		margin-right: 0;
	}
}
