/* ==========================================================================
   Best Sale Property — Main Stylesheet
   Design: Minimal white + blue, matching the reference mockup
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
	--bsp-primary: #1a73e8;
	--bsp-primary-dark: #1557b0;
	--bsp-primary-light: #e8f0fe;
	--bsp-accent: #0ea5e9;
	--bsp-dark: #0f172a;
	--bsp-text: #1e293b;
	--bsp-text-muted: #64748b;
	--bsp-border: #e2e8f0;
	--bsp-bg: #ffffff;
	--bsp-bg-soft: #f8fafc;
	--bsp-bg-gray: #f1f5f9;
	--bsp-radius: 16px;
	--bsp-radius-sm: 10px;
	--bsp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--bsp-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
	--bsp-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
	--bsp-font: 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bsp-container: 1240px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--bsp-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--bsp-text);
	background: var(--bsp-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bsp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bsp-primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--bsp-dark); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.container { max-width: var(--bsp-container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -100%; left: 8px; background: var(--bsp-primary); color: #fff; padding: 8px 16px; border-radius: 4px; z-index: 9999; }
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
	cursor: pointer; border: 2px solid transparent; transition: all .25s;
	font-family: var(--bsp-font);
}
.btn-primary { background: var(--bsp-primary); color: #fff; }
.btn-primary:hover { background: var(--bsp-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--bsp-shadow); }
.btn-outline { background: transparent; color: var(--bsp-primary); border-color: var(--bsp-primary); }
.btn-outline:hover { background: var(--bsp-primary); color: #fff; }
.btn-light { background: #fff; color: var(--bsp-primary); }
.btn-light:hover { background: var(--bsp-primary-light); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--bsp-primary); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 100;
	padding: 18px 0;
	transition: all .3s;
}
.site-header.header-solid {
	position: relative;
	background: #fff;
	box-shadow: var(--bsp-shadow-sm);
	padding: 14px 0;
}
.site-header.scrolled {
	position: fixed;
	background: rgba(255,255,255,.97);
	backdrop-filter: blur(10px);
	box-shadow: var(--bsp-shadow-sm);
	padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Branding */
.site-branding .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--bsp-primary); letter-spacing: -.02em; }
.brand-domain { font-size: 13px; color: var(--bsp-text-muted); font-weight: 500; }
.custom-logo-link img { max-height: 48px; width: auto; }

/* Nav */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-menu li { position: relative; }
.primary-menu a {
	display: block; padding: 8px 16px; color: var(--bsp-text); font-weight: 500; font-size: 15px;
	border-radius: 8px;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--bsp-primary); background: var(--bsp-primary-light); }
.primary-menu ul { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--bsp-shadow); border-radius: 10px; padding: 8px; min-width: 200px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 50; }
.primary-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu ul a { padding: 8px 12px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--bsp-dark); border-radius: 2px; transition: all .3s; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-icon { position: relative; color: var(--bsp-text); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: all .2s; }
.header-icon:hover { background: var(--bsp-primary-light); color: var(--bsp-primary); }
.header-icon .compare-count, .header-icon .favorite-count {
	position: absolute; top: -2px; right: -2px; background: var(--bsp-primary); color: #fff;
	font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--bsp-text); font-weight: 600; font-size: 14px; }
.header-phone:hover { color: var(--bsp-primary); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
	position: relative;
	min-height: 640px;
	display: flex; align-items: center;
	padding: 140px 0 120px;
	background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 40%, #f8fafc 100%);
	background-size: cover; background-position: center;
	overflow: hidden;
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(248,250,252,.6) 60%, rgba(248,250,252,1) 100%);
	pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-title {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	color: var(--bsp-dark);
	margin-bottom: 12px;
	letter-spacing: -.02em;
	line-height: 1.2;
}
.hero-subtitle { font-size: 18px; color: var(--bsp-text-muted); margin-bottom: 36px; }

/* Search bar — matches mockup: white rounded card, 3 fields + blue button */
.bsp-search-bar {
	display: flex; align-items: stretch;
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--bsp-shadow-lg);
	padding: 8px;
	gap: 4px;
	max-width: 900px;
	margin: 0 auto;
}
.search-field {
	flex: 1; display: flex; align-items: center; gap: 10px;
	padding: 0 18px; position: relative;
	border-right: 1px solid var(--bsp-border);
}
.search-field:last-of-type { border-right: 0; }
.search-field .field-icon { color: var(--bsp-text-muted); flex-shrink: 0; }
.search-field select, .search-field input {
	flex: 1; border: 0; outline: none; background: transparent;
	font-family: var(--bsp-font); font-size: 15px; color: var(--bsp-text);
	padding: 14px 0; appearance: none; -webkit-appearance: none;
}
.search-field select { cursor: pointer; }
.search-field::after {
	content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	border: 5px solid transparent; border-top-color: var(--bsp-text-muted); pointer-events: none;
}
.search-field.search-keyword::after { display: none; }
.search-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--bsp-primary); color: #fff; border: 0; cursor: pointer;
	padding: 0 32px; border-radius: 999px; font-weight: 700; font-size: 15px;
	font-family: var(--bsp-font); transition: all .25s; white-space: nowrap;
}
.search-btn:hover { background: var(--bsp-primary-dark); transform: scale(1.02); }

/* Hero stats */
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--bsp-primary); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--bsp-text-muted); }

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.section-desc { color: var(--bsp-text-muted); margin: 8px 0 0; font-size: 16px; }
.section-more { font-weight: 600; color: var(--bsp-primary); font-size: 15px; white-space: nowrap; }
.section-more:hover { color: var(--bsp-primary-dark); }

/* Types grid */
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.type-card {
	background: #fff; border: 1px solid var(--bsp-border); border-radius: var(--bsp-radius-sm);
	padding: 24px 16px; text-align: center; transition: all .25s; display: block;
}
.type-card:hover { border-color: var(--bsp-primary); box-shadow: var(--bsp-shadow); transform: translateY(-4px); }
.type-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 16px; background: var(--bsp-primary-light);
	color: var(--bsp-primary); margin-bottom: 12px;
}
.type-name { display: block; font-weight: 700; color: var(--bsp-dark); font-size: 16px; }
.type-count { display: block; font-size: 13px; color: var(--bsp-text-muted); margin-top: 4px; }

/* ==========================================================================
   PROPERTY CARD — matches mockup
   ========================================================================== */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.property-card {
	background: #fff; border-radius: var(--bsp-radius); overflow: hidden;
	box-shadow: var(--bsp-shadow-sm); border: 1px solid transparent;
	transition: all .3s; display: flex; flex-direction: column;
}
.property-card:hover { box-shadow: var(--bsp-shadow-lg); transform: translateY(-6px); border-color: var(--bsp-primary-light); }

.property-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bsp-bg-gray); }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.property-card:hover .property-thumb img { transform: scale(1.06); }
.thumb-link { display: block; width: 100%; height: 100%; }
.no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.no-thumb.large { min-height: 400px; }

/* Badges */
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; z-index: 2; }
.badge-sale { background: var(--bsp-primary); }
.badge-rent { background: #10b981; }

/* Favorite button on card */
.fav-btn {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.95); color: var(--bsp-text-muted);
	display: flex; align-items: center; justify-content: center;
	transition: all .2s; box-shadow: var(--bsp-shadow-sm);
}
.fav-btn:hover { color: #ef4444; transform: scale(1.1); }
.fav-btn.active { color: #ef4444; background: #fee2e2; }
.fav-btn.active svg { fill: #ef4444; }

.property-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.property-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.property-title a { color: var(--bsp-dark); }
.property-title a:hover { color: var(--bsp-primary); }
.property-location {
	display: flex; align-items: center; gap: 6px;
	font-size: 13px; color: var(--bsp-text-muted); margin: 0 0 14px;
}
.property-specs { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--bsp-border); border-bottom: 1px dashed var(--bsp-border); margin-bottom: 14px; }
.spec { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--bsp-text-muted); }
.spec svg { color: var(--bsp-primary); }

.property-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.property-price .price-label { display: block; font-size: 12px; color: var(--bsp-text-muted); }
.property-price .price-value { font-size: 19px; font-weight: 800; color: var(--bsp-primary); line-height: 1.2; }
.property-views { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--bsp-text-muted); }
.property-views svg { color: var(--bsp-primary); }

.property-detail-btn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding: 11px 18px; border-radius: 10px;
	background: var(--bsp-primary-light); color: var(--bsp-primary);
	font-weight: 600; font-size: 14px; transition: all .25s;
}
.property-detail-btn:hover { background: var(--bsp-primary); color: #fff; }
.property-detail-btn svg { transition: transform .25s; }
.property-detail-btn:hover svg { transform: translateX(4px); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; background: var(--bsp-bg-soft); border-radius: var(--bsp-radius); }
.empty-state svg { color: var(--bsp-primary); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--bsp-text-muted); margin-bottom: 20px; }

/* Locations grid */
.section-locations { background: var(--bsp-bg-soft); }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.location-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 28px 16px; background: #fff; border-radius: var(--bsp-radius-sm);
	border: 1px solid var(--bsp-border); transition: all .25s; text-align: center;
}
.location-card:hover { border-color: var(--bsp-primary); box-shadow: var(--bsp-shadow); transform: translateY(-4px); }
.location-name { font-weight: 700; color: var(--bsp-dark); font-size: 16px; }
.location-count { font-size: 13px; color: var(--bsp-text-muted); margin-top: 4px; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card { text-align: center; padding: 32px 24px; background: #fff; border-radius: var(--bsp-radius); border: 1px solid var(--bsp-border); transition: all .25s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--bsp-shadow); border-color: var(--bsp-primary-light); }
.why-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 20px; background: var(--bsp-primary-light);
	color: var(--bsp-primary); margin-bottom: 16px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--bsp-text-muted); font-size: 14px; margin: 0; }

/* Blog */
.section-blog { background: var(--bsp-bg-soft); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: #fff; border-radius: var(--bsp-radius); overflow: hidden; box-shadow: var(--bsp-shadow-sm); transition: all .3s; }
.blog-card:hover { box-shadow: var(--bsp-shadow-lg); transform: translateY(-4px); }
.blog-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bsp-bg-gray); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 20px; }
.blog-meta { display: flex; gap: 12px; font-size: 12px; color: var(--bsp-text-muted); margin-bottom: 10px; }
.blog-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.blog-title a { color: var(--bsp-dark); }
.blog-title a:hover { color: var(--bsp-primary); }
.blog-excerpt { font-size: 14px; color: var(--bsp-text-muted); margin-bottom: 14px; }
.blog-more { font-weight: 600; font-size: 14px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--bsp-primary) 0%, var(--bsp-accent) 100%); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.cta-text p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   PAGE HEADER BAR (inner pages)
   ========================================================================== */
.page-header-bar { background: var(--bsp-bg-soft); padding: 28px 0; border-bottom: 1px solid var(--bsp-border); margin-top: 0; }
.breadcrumb { font-size: 13px; color: var(--bsp-text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--bsp-text-muted); }
.breadcrumb a:hover { color: var(--bsp-primary); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--bsp-dark); font-weight: 600; }
.archive-title { font-size: 26px; margin: 0; }
.archive-count { font-size: 16px; color: var(--bsp-text-muted); font-weight: 500; }

/* Archive / property listing */
.archive-wrap { padding: 48px 0 72px; }
.archive-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.archive-sidebar { position: sticky; top: 90px; }
.filter-widget { background: #fff; border: 1px solid var(--bsp-border); border-radius: var(--bsp-radius-sm); padding: 20px; margin-bottom: 20px; }
.filter-title { font-size: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bsp-border); }
.filter-widget .bsp-search-bar { flex-direction: column; border-radius: 12px; padding: 12px; box-shadow: none; border: 1px solid var(--bsp-border); gap: 8px; }
.filter-widget .search-field { border-right: 0; border-bottom: 1px solid var(--bsp-border); padding: 4px 8px; }
.filter-widget .search-field:last-of-type { border-bottom: 0; }
.filter-widget .search-btn { width: 100%; padding: 12px; justify-content: center; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--bsp-text); font-size: 14px; }
.filter-list a:hover, .filter-list a.active { background: var(--bsp-primary-light); color: var(--bsp-primary); }
.filter-list .count { color: var(--bsp-text-muted); font-size: 12px; }

/* ==========================================================================
   SINGLE PROPERTY
   ========================================================================== */
.single-property-wrap { padding: 40px 0 72px; }
.single-property-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sp-title-wrap { flex: 1; min-width: 280px; }
.sp-type { display: inline-block; background: var(--bsp-bg-gray); color: var(--bsp-text-muted); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-left: 8px; vertical-align: middle; }
.sp-title { font-size: clamp(24px, 3.5vw, 34px); margin: 10px 0 8px; }
.sp-location { display: flex; align-items: center; gap: 8px; color: var(--bsp-text-muted); margin: 0; font-size: 15px; }
.sp-location svg { color: var(--bsp-primary); flex-shrink: 0; }
.sp-price-wrap { text-align: right; }
.sp-price-label { display: block; font-size: 13px; color: var(--bsp-text-muted); }
.sp-price { display: block; font-size: 30px; font-weight: 800; color: var(--bsp-primary); line-height: 1.2; margin-bottom: 10px; }
.fav-btn-lg { position: static; width: auto; height: auto; padding: 10px 20px; border-radius: 999px; gap: 8px; font-size: 14px; font-weight: 600; font-family: var(--bsp-font); }

.single-property-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.sp-gallery { border-radius: var(--bsp-radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--bsp-shadow-sm); }
.sp-main-image { width: 100%; max-height: 500px; object-fit: cover; }
.sp-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.sp-spec { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; background: var(--bsp-bg-soft); border-radius: var(--bsp-radius-sm); }
.sp-spec svg { color: var(--bsp-primary); margin-bottom: 8px; }
.sp-spec-val { font-weight: 800; font-size: 18px; color: var(--bsp-dark); }
.sp-spec-label { font-size: 13px; color: var(--bsp-text-muted); }
.sp-content { background: #fff; border: 1px solid var(--bsp-border); border-radius: var(--bsp-radius); padding: 28px; }
.sp-content-title { font-size: 22px; margin-top: 0; }
.sp-content img { border-radius: 10px; margin: 16px 0; }

.sp-sidebar { position: sticky; top: 90px; }
.contact-card { background: #fff; border: 1px solid var(--bsp-border); border-radius: var(--bsp-radius); padding: 24px; box-shadow: var(--bsp-shadow-sm); margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; margin: 0 0 4px; }
.contact-card p { color: var(--bsp-text-muted); font-size: 14px; margin-bottom: 16px; }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 10px; font-weight: 600; font-size: 15px; margin-bottom: 10px; transition: all .2s; }
.contact-call { background: var(--bsp-primary); color: #fff; }
.contact-call:hover { background: var(--bsp-primary-dark); color: #fff; transform: translateY(-2px); }
.contact-email { background: var(--bsp-primary-light); color: var(--bsp-primary); }
.contact-email:hover { background: var(--bsp-primary); color: #fff; }
.contact-line { text-align: center; font-size: 14px; color: var(--bsp-text-muted); padding-top: 10px; border-top: 1px dashed var(--bsp-border); }
.contact-line strong { color: #06b6d4; }
.agent-note { display: flex; gap: 10px; padding: 16px; background: #fef3c7; border-radius: 12px; font-size: 13px; color: #92400e; align-items: flex-start; }
.agent-note svg { flex-shrink: 0; margin-top: 2px; }
.agent-note p { margin: 0; }

.related-properties { margin-top: 56px; }
.related-properties .section-title { margin-bottom: 24px; font-size: 24px; }

/* ==========================================================================
   BLOG / SINGLE POST / SIDEBAR
   ========================================================================== */
.blog-wrap, .single-post-wrap { padding: 48px 0 72px; }
.blog-layout, .single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.blog-card-list { display: grid; grid-template-columns: 280px 1fr; margin-bottom: 24px; }
.blog-card-list .blog-thumb { aspect-ratio: auto; min-height: 180px; }
.sidebar .widget { background: #fff; border: 1px solid var(--bsp-border); border-radius: var(--bsp-radius-sm); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--bsp-primary-light); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--bsp-border); }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var(--bsp-text); font-size: 14px; }
.widget a:hover { color: var(--bsp-primary); }

.entry-title { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 16px; }
.entry-thumb { border-radius: var(--bsp-radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--bsp-shadow-sm); }
.entry-content { font-size: 16.5px; line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 10px; margin: 16px 0; }
.entry-content blockquote { border-left: 4px solid var(--bsp-primary); padding: 8px 20px; background: var(--bsp-bg-soft); border-radius: 0 10px 10px 0; margin: 20px 0; color: var(--bsp-text-muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--bsp-border); text-align: left; }
.entry-content th { background: var(--bsp-bg-soft); }
.entry-tags { margin-top: 24px; font-size: 14px; color: var(--bsp-text-muted); }
.static-page {
    max-width: 1600px;
    width: 80%;
    margin: 48px auto;
}

@media (max-width: 768px) {
    .static-page {
        width: calc(100% - 32px);
    }
}
.page-wrap { padding: 48px 0 72px; }

/* Comments */
.comments-area { margin-top: 40px; background: var(--bsp-bg-soft); padding: 28px; border-radius: var(--bsp-radius); }
.comments-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--bsp-border); }
.comment-author { font-weight: 700; }
.comment-meta { font-size: 12px; color: var(--bsp-text-muted); }
.comment-form p { margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--bsp-border); border-radius: 8px; font-family: var(--bsp-font); }
.comment-form .submit { background: var(--bsp-primary); color: #fff; border: 0; padding: 12px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--bsp-border); color: var(--bsp-text); font-weight: 600; font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--bsp-primary); color: #fff; border-color: var(--bsp-primary); }

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--bsp-primary-light); line-height: 1; margin-bottom: 8px; }
.error-title { font-size: 28px; }
.error-desc { color: var(--bsp-text-muted); max-width: 500px; margin: 0 auto 32px; }
.error-search { max-width: 700px; margin: 0 auto 32px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 48px; }
.footer-widget-title { color: #fff; font-size: 16px; margin: 0 0 18px; }
.footer-about { font-size: 14px; line-height: 1.7; }
.footer-contact { list-style: none; padding: 0; margin: 16px 0 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.footer-contact svg { color: var(--bsp-accent); flex-shrink: 0; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul a { color: #cbd5e1; font-size: 14px; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; transition: all .2s; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.copyright { margin: 0; font-size: 13px; color: #94a3b8; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.footer-menu a { color: #94a3b8; font-size: 13px; }
.footer-menu a:hover { color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.archive-grid, .single-property-grid, .blog-layout, .single-layout { grid-template-columns: 1fr; }
	.archive-sidebar, .sp-sidebar { position: static; order: 2; }
	.header-phone span { display: none; }
}

@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.main-navigation { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: #fff; z-index: 200; padding: 80px 20px 20px; transition: right .3s; box-shadow: -4px 0 20px rgba(0,0,0,.1); display: block; }
	.main-navigation.open { right: 0; }
	.primary-menu { flex-direction: column; gap: 0; }
	.primary-menu a { padding: 12px 14px; border-bottom: 1px solid var(--bsp-border); border-radius: 0; }
	.primary-menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; min-width: 0; }
	.header-phone { display: none; }
	.hero-section { padding: 120px 0 80px; min-height: auto; }
	.bsp-search-bar { flex-direction: column; border-radius: 20px; padding: 16px; gap: 10px; }
	.search-field { border-right: 0; border-bottom: 1px solid var(--bsp-border); padding: 6px 4px; }
	.search-field:last-of-type { border-bottom: 0; }
	.search-btn { width: 100%; padding: 14px; justify-content: center; }
	.hero-stats { gap: 24px; }
	.stat-num { font-size: 24px; }
	.section { padding: 48px 0; }
	.properties-grid { grid-template-columns: 1fr; }
	.blog-card-list { grid-template-columns: 1fr; }
	.single-property-header { flex-direction: column; }
	.sp-price-wrap { text-align: left; }
	.cta-inner { flex-direction: column; text-align: center; }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
	.container { padding: 0 16px; }
	.brand-name { font-size: 18px; }
	.brand-domain { font-size: 11px; }
	.header-actions { gap: 8px; }
}

/* ==========================================================================
   SOCIAL ICONS (WhatsApp, Messenger, TikTok, Facebook, Instagram, YouTube)
   ========================================================================== */
.social-icons { display: inline-flex; align-items: center; gap: 8px; }
.social-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.15); color: #fff;
	transition: all .25s;
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon.whatsapp:hover  { background: #25D366; }
.social-icon.messenger:hover { background: #0084FF; }
.social-icon.tiktok:hover    { background: #000; }
.social-icon.facebook:hover  { background: #1877F2; }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.youtube:hover   { background: #FF0000; }

/* Header social (dark icons on light header) */
.header-social .social-icon {
	width: 32px; height: 32px;
	background: transparent; color: var(--bsp-text);
}
.header-social .social-icon:hover { color: #fff; }
.site-header.scrolled .header-social .social-icon,
.header-solid .header-social .social-icon { color: var(--bsp-text); }

/* Footer social already white on dark — override default bg */
.footer-social .social-icon { background: rgba(255,255,255,.12); color: #cbd5e1; }
.footer-social .social-icon:hover { color: #fff; }

/* Contact buttons on single property page */
.contact-btn.contact-whatsapp { background: #25D366; color: #fff; }
.contact-btn.contact-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.contact-btn.contact-messenger { background: #0084FF; color: #fff; }
.contact-btn.contact-messenger:hover { background: #0068cc; color: #fff; transform: translateY(-2px); }

@media (max-width: 768px) {
	.header-social { display: none; }
	.footer-bottom-inner { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   FLOATING CONTACT BAR (แถบปุ่มติดต่อลอย ขอบซ้ายจอ)
   ========================================================================== */
.floating-contact {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-radius: 0 12px 12px 0;
	overflow: hidden;
	box-shadow: 2px 4px 16px rgba(15,23,42,.18);
}
.float-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #fff;
	transition: all .25s;
	overflow: hidden;
}
.float-btn:hover {
	width: 130px;
	color: #fff;
	justify-content: flex-start;
	padding-left: 14px;
	gap: 10px;
}
.float-btn .float-label {
	position: absolute;
	left: 48px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
}
.float-btn:hover .float-label {
	opacity: 1;
	position: static;
}
.float-phone     { background: #1a73e8; }
.float-phone:hover     { background: #1557b0; }
.float-line      { background: #06C755; }
.float-line:hover      { background: #05a346; }
.float-whatsapp  { background: #25D366; }
.float-whatsapp:hover  { background: #1da851; }
.float-messenger { background: #0084FF; }
.float-messenger:hover { background: #0068cc; }
.float-facebook  { background: #1877F2; }
.float-facebook:hover  { background: #145dbf; }

@media (max-width: 768px) {
	.floating-contact {
		top: auto;
		bottom: 16px;
		left: 16px;
		transform: none;
		flex-direction: row;
		border-radius: 999px;
		gap: 0;
	}
	.float-btn { width: 42px; height: 42px; border-radius: 50%; margin: 0 1px; }
	.float-btn:hover { width: 42px; padding-left: 0; justify-content: center; }
	.float-btn .float-label { display: none; }
}

/* ==========================================================================
   BSP 2026-10-16 — Property detail page layout refinement
   Scoped to single property pages; preserves homepage and archive layouts.
   ========================================================================== */
@media (min-width: 1025px) {
  body.single-property main.single-property-wrap,
  body.single-property #primary.single-property-wrap {
    width: calc(100% - 64px) !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: 24px !important;
  }
  body.single-property main.single-property-wrap > article.single-property,
  body.single-property #primary.single-property-wrap > article.single-property {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
  body.single-property .single-property-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 310px) !important;
    align-items: start !important;
    gap: 32px !important;
  }
  body.single-property .single-property-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
    gap: 32px !important;
    align-items: start !important;
  }
}
body.single-property .single-property-wrap,
body.single-property .single-property-wrap > article,
body.single-property .sp-main,
body.single-property .sp-sidebar,
body.single-property .sp-title-wrap,
body.single-property .sp-price-wrap { min-width: 0; }
body.single-property .sp-title {
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.38;
  overflow-wrap: break-word;
}
body.single-property .sp-price { overflow-wrap: anywhere; }
body.single-property .sp-gallery { width: 100%; }
body.single-property .bsp-gallery-grid { width: 100%; }
body.single-property .bsp-gallery-photo {
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 769px) and (max-width: 1024px) {
  body.single-property main.single-property-wrap { width: 100%; max-width: none; padding-inline: 24px; }
  body.single-property .single-property-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.single-property .sp-sidebar { position: static; }
}
@media (max-width: 768px) {
  body.single-property main.single-property-wrap { width: 100%; max-width: none; padding-inline: 16px; }
  body.single-property .single-property-header { display: flex; flex-direction: column; gap: 16px; }
  body.single-property .single-property-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px; }
  body.single-property .sp-price-wrap { text-align: left; }
  body.single-property .sp-content { padding: 20px; }
  body.single-property .sp-sidebar { position: static; }
}

/* BSP contact bar: visible email button and three-column mobile layout */
.floating-contact .float-email,
.floating-contact .float-email:visited { background: #ea580c; color: #fff; }
.floating-contact .float-email:hover,
.floating-contact .float-email:focus-visible { background: #c2410c; color: #fff; }
@media (max-width: 768px) {
  .floating-contact {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    overflow: visible;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(15,23,42,.12);
  }
  .floating-contact .float-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 48px;
    margin: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 6px;
    color: #fff;
  }
  .floating-contact .float-btn:hover { width: auto; padding: 0 6px; justify-content: center; }
  .floating-contact .float-btn .float-label,
  .floating-contact .float-btn:hover .float-label {
    display: inline;
    position: static;
    opacity: 1;
    font-size: 14px;
    line-height: 1.2;
  }
  .floating-contact .float-btn svg { flex-shrink: 0; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   BSP mobile contact bar — final override (2026-10-17)
   Applies only to mobile. Desktop floating controls remain unchanged.
   ========================================================================== */
@media screen and (max-width: 768px) {
  html body .floating-contact {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: 0 -3px 16px rgba(15,23,42,.16) !important;
    overflow: visible !important;
    z-index: 9999 !important;
  }
  html body .floating-contact .float-btn {
    position: relative !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  html body .floating-contact .float-btn:hover,
  html body .floating-contact .float-btn:focus-visible {
    width: auto !important;
    padding: 0 4px !important;
    justify-content: center !important;
  }
  html body .floating-contact .float-btn .float-label,
  html body .floating-contact .float-btn:hover .float-label {
    display: inline !important;
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  html body .floating-contact .float-btn svg {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
  }
  html body .floating-contact .float-phone { background: #1a73e8 !important; }
  html body .floating-contact .float-line { background: #06a948 !important; }
  html body .floating-contact .float-email { background: #ea580c !important; }
  html body .floating-contact .float-whatsapp { background: #168a42 !important; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media screen and (max-width: 380px) {
  html body .floating-contact .float-btn .float-label { font-size: 10px !important; }
  html body .floating-contact .float-btn svg { width: 16px !important; height: 16px !important; }
}

/* ==========================================================================
   BSP — Responsive premium logo and non-overlapping header (2026-10-17)
   ========================================================================= */
.site-header:not(.scrolled) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.site-header .header-inner {
    min-height: 54px;
    gap: 16px;
}
.site-header .site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}
.site-header .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 15px;
    padding: 3px;
    background: #12213b;
    border: 1.5px solid #d8b76c;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .17), 0 0 0 1px rgba(216, 183, 108, .15);
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.site-header .custom-logo-link:hover {
    box-shadow: 0 5px 15px rgba(15, 23, 42, .22), 0 0 0 1px rgba(216, 183, 108, .3);
}
.site-header .custom-logo-link img,
.site-header .custom-logo {
    display: block;
    width: auto !important;
    height: 50px !important;
    max-height: 50px !important;
    max-width: 150px !important;
    object-fit: contain;
    border-radius: 11px;
}
@media (max-width: 768px) {
    .site-header:not(.scrolled) { padding: 8px 0; }
    .site-header .header-inner { min-height: 44px; gap: 10px; }
    .site-header .custom-logo-link { border-radius: 12px; padding: 2px; }
    .site-header .custom-logo-link img,
    .site-header .custom-logo {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 112px !important;
        border-radius: 9px;
    }
    .site-header .main-navigation { min-width: 0; }
    .page-header-bar { margin-top: 0 !important; }
}
@media (max-width: 380px) {
    .site-header .custom-logo-link img,
    .site-header .custom-logo {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 100px !important;
    }
}


/* BSP — mobile logo and accessible dropdown navigation (2026-10-17) */
.bsp-mobile-menu-toggle { display: none; }
@media (max-width: 768px) {
  #masthead.site-header { z-index: 1000; }
  #masthead .header-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  #masthead .site-branding { flex: 0 1 auto; min-width: 0; }
  #masthead .header-actions { display: none; }
  #masthead .bsp-mobile-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid #d8b76c;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.09);
    cursor: pointer;
    margin-left: auto;
  }
  #masthead .bsp-mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #14243f;
  }
  #masthead .bsp-mobile-menu-toggle:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
  #masthead .main-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15,23,42,.16);
    z-index: 1100;
    flex: none;
    transition: none;
  }
  #masthead .main-navigation.bsp-menu-open { display: block; }
  #masthead .main-navigation .nav-menu,
  #masthead .main-navigation .primary-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #masthead .main-navigation li { position: relative; list-style: none; }
  #masthead .main-navigation a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #14243f;
    font-size: 15px;
    font-weight: 600;
  }
  #masthead .main-navigation a:hover,
  #masthead .main-navigation a:focus-visible { background: #e8f0fe; color: #1557b0; }
  #masthead .main-navigation .sub-menu,
  #masthead .main-navigation .children {
    display: block;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    margin: 0;
    min-width: 0;
  }
}

/* BSP — Search form responsive refinement (2026-10-17)
   Scoped to hero search only; archive/sidebar search remains unchanged. */
.hero-section .bsp-search-bar > .search-field {
  min-width: 0;
}
.hero-section .bsp-search-bar > .search-field select,
.hero-section .bsp-search-bar > .search-field input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
/* The PHP form currently renders a plain button, without .search-btn. */
.hero-section .bsp-search-bar > button[type="submit"] {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  background: var(--bsp-primary);
  color: #fff;
  font: 700 15px var(--bsp-font);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hero-section .bsp-search-bar > button[type="submit"]:hover {
  background: var(--bsp-primary-dark);
}
.hero-section .bsp-search-bar > .search-field:focus-within {
  border-radius: 10px;
  outline: 2px solid var(--bsp-primary);
  outline-offset: -2px;
}
.hero-section .bsp-search-bar > button[type="submit"]:focus-visible {
  outline: 3px solid var(--bsp-primary-dark);
  outline-offset: 3px;
}
/* Keyword input has no dropdown; remove the dropdown arrow on field three. */
.hero-section .bsp-search-bar > .search-field:nth-of-type(3)::after {
  display: none;
}
@media (max-width: 768px) {
  .hero-section .bsp-search-bar {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    padding: 14px;
    gap: 8px;
  }
  .hero-section .bsp-search-bar > .search-field {
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
    padding: 3px 12px;
    border: 1px solid var(--bsp-border);
    border-radius: 10px;
  }
  .hero-section .bsp-search-bar > .search-field select,
  .hero-section .bsp-search-bar > .search-field input {
    font-size: 16px; /* Prevent mobile Safari input auto-zoom. */
    padding: 10px 18px 10px 0;
  }
  .hero-section .bsp-search-bar > .search-field:nth-of-type(3) input {
    padding-right: 0;
  }
  .hero-section .bsp-search-bar > button[type="submit"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
  }
}
/* ขยายพื้นที่หน้าทรัพย์สินเป็น 80% ของหน้าจอ PC */
@media (min-width: 1025px) {
    body.page:has(.bsp-public-cards) .container {
        max-width: none;
        width: 80%;
    }

    body.page:has(.bsp-public-cards) .static-page {
        max-width: none;
        width: 100%;
    }
}
/* ความกว้างหน้าเกี่ยวกับเราและติดต่อเรา บน PC */
@media (min-width: 901px) {
    body.page .entry-content,
    body.page .wp-block-post-content {
        width: 100%;
    }

    body.page .site-main {
        width: 80%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* BSP: homepage fact icon colors only — verified .bsp-card-facts markup.
   Three facts: bedroom / bathroom / parking.
   Two facts: land ngan / square wah. No layout rules changed. */
body .property-card .bsp-card-facts:has(> .bsp-card-fact:nth-child(3)) > .bsp-card-fact:nth-child(1) svg { color: #2563eb !important; stroke: currentColor !important; }
body .property-card .bsp-card-facts:has(> .bsp-card-fact:nth-child(3)) > .bsp-card-fact:nth-child(2) svg { color: #0891b2 !important; stroke: currentColor !important; }
body .property-card .bsp-card-facts:has(> .bsp-card-fact:nth-child(3)) > .bsp-card-fact:nth-child(3) svg { color: #15803d !important; stroke: currentColor !important; }
body .property-card .bsp-card-facts:has(> .bsp-card-fact:nth-child(2)):not(:has(> .bsp-card-fact:nth-child(3))) > .bsp-card-fact svg { color: #d97706 !important; stroke: currentColor !important; }

/* BSP premium gold filter controls */
.bsp-card-filters{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 24px}.bsp-filter{border:1px solid #c8ad74;border-radius:24px;background:#fff;color:#80602b;padding:9px 16px;cursor:pointer;transition:background .2s,color .2s,transform .2s}.bsp-filter:hover,.bsp-filter.active{background:#a7813d;color:#fff;transform:translateY(-1px)}.bsp-filter:focus-visible{outline:3px solid #b89143;outline-offset:3px}.bsp-filter-item[hidden]{display:none!important}.bsp-filter-item{min-width:0}.bsp-filter-item>.property-card{height:100%}.type-card .type-icon{color:#b08b47}.type-card .type-icon svg{stroke-width:1.6}.type-card:hover .type-icon{color:#88621d}@media(prefers-reduced-motion:reduce){.bsp-filter{transition:none}}

.section-types .type-icon{background:linear-gradient(145deg,#fff7e7,#f0dfb8);color:#9b762e}.section-types .type-card:hover .type-icon,.section-types .type-card:focus-visible .type-icon{background:linear-gradient(145deg,#aa843f,#74531c);color:#fff7e5}

/* BSP audited: keep the language control accessible on narrow screens. */
@media(max-width:1024px){#masthead .header-actions:has(.bsp-lang-switch){display:flex!important;align-items:center!important}}

/* BSP V2 professional form polish — isolated to the submission page. */
#bsp-property-submission-preview{--bsp-form-ink:#17324d;--bsp-form-line:#d7e2ec;color:var(--bsp-form-ink);line-height:1.65}
#bsp-property-submission-preview label[for]{display:inline-block;font-weight:700;letter-spacing:.005em;margin-bottom:5px}
#bsp-property-submission-preview input:not([type=checkbox]):not([type=file]),
#bsp-property-submission-preview select,#bsp-property-submission-preview textarea{border:1px solid var(--bsp-form-line);border-radius:10px;min-height:46px;background:#fff;color:#17324d;font:inherit;transition:border-color .15s,box-shadow .15s}
#bsp-property-submission-preview textarea{min-height:130px;resize:vertical}
#bsp-property-submission-preview :is(input,select,textarea):focus-visible{outline:2px solid #1769c2;outline-offset:2px;box-shadow:0 0 0 4px #dceeff}
#bsp-property-submission-preview .bsp-field-help{display:block;font-size:.9rem;color:#52657b;line-height:1.6;margin-top:6px}
#bsp-property-submission-preview :is(input,textarea)::placeholder{color:#71849a;opacity:1}
@media(max-width:600px){#bsp-property-submission-preview{font-size:16px}#bsp-property-submission-preview :is(input,select,textarea){max-width:100%}}

/* BSP V2 language selector: always visible, including mobile. */
#masthead .header-actions { display:flex !important; align-items:center; flex:0 0 auto; }
#masthead .bsp-v2-language-switch { display:flex !important; gap:7px; align-items:center; white-space:nowrap; font-size:13px; font-weight:700; color:#183354; }
#masthead .bsp-v2-language-switch a { color:#183354; text-decoration:none; padding:5px 3px; }
#masthead .bsp-v2-language-switch a[aria-current=true] { color:#1465c8; text-decoration:underline; text-underline-offset:4px; }
@media(max-width:768px) { #masthead .header-actions { margin-left:auto; margin-right:8px; } }
