/* TLH ฟิล์มอาคาร — ตัวจำลองฟิล์มอาคาร [tlh_bf_models] · ประมาณพื้นที่ [tlh_bf_area]
   ข้อมูลจาก ACF PRO "ฟิล์มอาคาร · รุ่นฟิล์ม" (building-film-studio) · shortcode ใน Code Snippets
   ทุกกฎอยู่ใต้ .tlh-bf เพราะต้องทับสไตล์ button/input ของธีม Hello (reset.css) */

.tlh-bf {
	font-family: "IBM Plex Sans Thai", "Archivo", system-ui, sans-serif;
	color: #0E0F12;
	line-height: normal;
}
.tlh-bf *,
.tlh-bf *::before,
.tlh-bf *::after {
	box-sizing: border-box;
}

/* ---------- เลือกรุ่น + เทียบก่อน–หลัง ---------- */

.tlh-bf-models,
.tlh-bf-sim {
	display: grid;
	grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
	gap: 22px;
	align-items: start;
}
.tlh-bf-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tlh-bf .tlh-bf-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #E7E5E1;
	border-radius: 18px;
	color: #0E0F12;
	font: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	user-select: text;
	transition: border-color .2s ease, background-color .2s ease;
}
.tlh-bf .tlh-bf-card:hover,
.tlh-bf .tlh-bf-card:focus {
	background: #fff;
	border-color: #CC2229;
	color: #0E0F12;
	outline: none;
}
.tlh-bf .tlh-bf-card.is-active,
.tlh-bf .tlh-bf-card.is-active:hover,
.tlh-bf .tlh-bf-card.is-active:focus {
	background: #FFF7F7;
	border-color: #CC2229;
}
.tlh-bf .tlh-bf-card:focus-visible {
	outline: 2px solid #CC2229;
	outline-offset: 3px;
}

.tlh-bf-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.tlh-bf-name {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.015em;
}
.tlh-bf-tag {
	flex: none;
	padding: 6px 13px;
	border-radius: 999px;
	background: #F3F2F0;
	color: #6B6B66;
	font-size: 12.5px;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease;
}
.tlh-bf-card.is-active .tlh-bf-tag {
	background: #CC2229;
	color: #fff;
}
.tlh-bf-desc {
	font-size: 14px;
	line-height: 1.8;
	color: #6B6B66;
}
.tlh-bf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2px;
}
.tlh-bf-chip {
	padding: 7px 11px;
	border: 1px solid #E7E5E1;
	border-radius: 9px;
	background: #fff;
	color: #5B6068;
	font-size: 12.5px;
}
.tlh-bf-chip b {
	color: #CC2229;
	font-weight: 600;
}

.tlh-bf-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	border-radius: 22px;
	background: #0E0F12;
}
.tlh-bf-view {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10; /* ตัวจำลองตั้งตามภาพก่อนติดของมุมมอง (inline) */
	border-radius: 16px;
	background: #16181C;
}
.tlh-bf .tlh-bf-before,
.tlh-bf-after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.tlh-bf .tlh-bf-before {
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.tlh-bf-after {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	pointer-events: none;
}
.tlh-bf-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #fff;
	pointer-events: none;
}
.tlh-bf-label {
	position: absolute;
	top: 14px;
	padding: 6px 11px;
	border-radius: 8px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	pointer-events: none;
}
.tlh-bf-label-before {
	left: 14px;
	background: rgba(14, 15, 18, .72);
}
.tlh-bf-badge {
	right: 14px;
	background: #CC2229;
}

.tlh-bf .tlh-bf-range {
	display: block;
	width: 100%;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #CC2229;
	cursor: pointer;
}
.tlh-bf .tlh-bf-range:focus-visible {
	outline: 2px solid #CC2229;
	outline-offset: 4px;
}
.tlh-bf .tlh-bf-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: rgba(255, 255, 255, .6);
}

@media (max-width: 720px) {
	.tlh-bf-models,
	.tlh-bf-sim {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- ตัวจำลอง (3 ต.ค. 2569): มุมมองภายใน/ภายนอก + สี/ความเข้ม + สเปก ---------- */

.tlh-bf-code {
	color: #6B6B66;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
}
.tlh-bf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.tlh-bf-dot {
	display: inline-block;
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

.tlh-bf-views {
	display: flex;
	gap: 8px;
}
.tlh-bf .tlh-bf-viewbtn,
.tlh-bf .tlh-bf-swatch {
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}
.tlh-bf .tlh-bf-viewbtn {
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}
.tlh-bf .tlh-bf-viewbtn:hover,
.tlh-bf .tlh-bf-viewbtn:focus,
.tlh-bf .tlh-bf-swatch:hover,
.tlh-bf .tlh-bf-swatch:focus {
	border-color: rgba(255, 255, 255, .4);
	background: rgba(255, 255, 255, .1);
	color: #fff;
	outline: none;
}
.tlh-bf .tlh-bf-viewbtn[aria-pressed="true"],
.tlh-bf .tlh-bf-viewbtn[aria-pressed="true"]:hover,
.tlh-bf .tlh-bf-viewbtn[aria-pressed="true"]:focus {
	border-color: #CC2229;
	background: #CC2229;
}
.tlh-bf .tlh-bf-viewbtn:focus-visible,
.tlh-bf .tlh-bf-swatch:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.tlh-bf .tlh-bf-after-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.tlh-bf-tint {
	position: absolute;
	inset: 0;
	transition: background-color .3s ease;
}

.tlh-bf-pick {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tlh-bf-pick-label {
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
}
.tlh-bf-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
	gap: 8px;
}
.tlh-bf .tlh-bf-swatch {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 13px;
	border-radius: 12px;
	text-align: left;
}
.tlh-bf .tlh-bf-swatch .tlh-bf-dot {
	width: 18px;
	height: 18px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.tlh-bf-sw-label {
	font-size: 15px;
	font-weight: 600;
}
.tlh-bf-sw-code {
	margin-left: auto;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
}
.tlh-bf .tlh-bf-swatch[aria-pressed="true"],
.tlh-bf .tlh-bf-swatch[aria-pressed="true"]:hover,
.tlh-bf .tlh-bf-swatch[aria-pressed="true"]:focus {
	border-color: #CC2229;
	background: rgba(204, 34, 41, .2);
}

.tlh-bf .tlh-bf-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
}
.tlh-bf-spec {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 11px 13px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
}
.tlh-bf .tlh-bf-spec dt {
	margin: 0;
	color: rgba(255, 255, 255, .6);
	font-size: 12.5px;
	font-weight: 400;
}
.tlh-bf .tlh-bf-spec dt small {
	font-size: 11px;
	opacity: .75;
}
.tlh-bf .tlh-bf-spec dd {
	margin: 4px 0 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
}
.tlh-bf .tlh-bf-spec-empty dd {
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 720px) {
	.tlh-bf .tlh-bf-viewbtn {
		flex: 1;
		padding: 10px 12px;
	}
	.tlh-bf-swatches {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 88px), 1fr));
	}
	.tlh-bf-sw-code {
		display: none; /* รหัสยังอยู่บนป้ายมุมขวาของภาพ */
	}
	.tlh-bf-panel {
		padding: 14px;
	}
}

/* ---------- ประมาณพื้นที่ ---------- */

.tlh-bf-area {
	padding: clamp(22px, 3vw, 34px);
	border-radius: 22px;
	background: #F7F5F2;
}
.tlh-bf-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
	gap: 12px;
}
.tlh-bf .tlh-bf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	line-height: normal; /* Hello ตั้ง label{line-height:1} */
}
.tlh-bf-field-label {
	font-size: 13px;
	color: #6B6B66;
}
.tlh-bf .tlh-bf-input {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #E7E5E1;
	border-radius: 12px;
	background: #fff;
	color: #0E0F12;
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}
.tlh-bf .tlh-bf-input:focus {
	border-color: #CC2229;
	outline: none;
	box-shadow: 0 0 0 3px rgba(204, 34, 41, .12);
}
.tlh-bf-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #E7E5E1;
}
.tlh-bf-result-label {
	font-size: 13px;
	color: #6B6B66;
}
.tlh-bf-area-value {
	margin-top: 4px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.03em;
}
.tlh-bf .tlh-bf-btn,
.tlh-bf .tlh-bf-btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 26px;
	border-radius: 999px;
	background: #CC2229;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}
.tlh-bf .tlh-bf-btn:hover,
.tlh-bf .tlh-bf-btn:focus {
	background: #AD1B21;
	color: #fff;
}
.tlh-bf .tlh-bf-btn:focus-visible {
	outline: 2px solid #CC2229;
	outline-offset: 3px;
}
