/*
Theme Name:  Mua Bán Doanh Nghiệp
Theme URI:   https://chomaymac.com
Description: Kadence child theme for the business-for-sale marketplace (needs the BFS Marketplace plugin).
Author:      Hung
Template:    kadence
Version:     1.0.1
Text Domain: mbdn
*/

:root {
	--mb-green-900: #0B3B2C;
	--mb-green-950: #072A1F;
	--mb-green-700: #14573F;
	--mb-green-500: #2E6B55;
	--mb-green-50:  #EEF5F1;
	--mb-gold:      #D4A72C;
	--mb-gold-text: #8A6A12;
	--mb-gold-50:   #FBF5E3;
	--mb-ink:       #1C2321;
	--mb-muted:     #5B6661;
	--mb-soft:      #CFE0D8;
	--mb-line:      #DDE3DF;
	--mb-bg:        #F6F8F7;
	--mb-radius:    12px;
}

body { background: var(--mb-bg); color: var(--mb-ink); font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
body a { color: var(--mb-green-900); text-decoration: none; }
body a:hover { color: var(--mb-green-700); text-decoration: underline; }
.mb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mb-muted { color: var(--mb-muted); }
.screen-reader-text:focus { position: static !important; clip: auto !important; width: auto; height: auto; background: #fff; padding: 8px; }

/* Buttons */
.mb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer; text-decoration: none !important; font-family: inherit; font-size: 15px; }
.mb-btn--gold { background: var(--mb-gold); color: var(--mb-green-900) !important; }
.mb-btn--gold:hover { background: #E0B53A; }
.mb-btn--green { background: var(--mb-green-900); color: #fff !important; }
.mb-btn--outline { border: 1px solid var(--mb-green-900); color: var(--mb-green-900) !important; background: #fff; font-weight: 600; }
.mb-btn--block { width: 100%; }
.mb-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.mb-header { background: var(--mb-green-900); color: #fff; }
.mb-header__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; flex-wrap: wrap; }
.mb-logo { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; }
.mb-logo__mark { width: 36px; height: 36px; border-radius: 8px; background: var(--mb-gold); color: var(--mb-green-900); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.mb-logo__text { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.mb-nav { display: flex; gap: 24px; flex: 1; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.mb-nav a { color: #fff !important; }
.mb-nav .current-menu-item > a, .mb-nav .current-menu-ancestor > a { color: var(--mb-gold) !important; }
.mb-header__login { color: #fff !important; font-weight: 500; }
.mb-menu-toggle { display: none; background: transparent; border: 1px solid var(--mb-green-500); color: #fff; border-radius: 8px; min-height: 44px; min-width: 44px; cursor: pointer; }
@media (max-width: 900px) {
	.mb-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
	.mb-header__inner { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.mb-nav, .mb-header__login, .mb-header__cta { display: none; }
	.mb-header.is-open .mb-nav { display: flex; flex-direction: column; flex-basis: 100%; gap: 0; }
	.mb-header.is-open .mb-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--mb-green-700); }
	.mb-header.is-open .mb-header__login, .mb-header.is-open .mb-header__cta { display: inline-flex; }
}

/* Hero + search */
.mb-hero { background: var(--mb-green-900); color: #fff; padding: 56px 0 72px; border-top: 1px solid var(--mb-green-700); }
.mb-hero h1 { margin: 0; color: #fff; font-size: 44px; line-height: 1.15; font-weight: 800; max-width: 760px; }
.mb-hero p { margin: 16px 0 32px; font-size: 18px; color: var(--mb-soft); max-width: 640px; }
.mb-search { background: #fff; border-radius: var(--mb-radius); padding: 12px; display: flex; gap: 12px; flex-wrap: wrap; max-width: 1000px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.mb-search label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; padding: 4px 8px; color: var(--mb-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 0; }
.mb-search label + label { border-left: 1px solid var(--mb-line); }
.mb-search select, .mb-search input { border: 0 !important; box-shadow: none !important; font-size: 16px; color: var(--mb-ink); padding: 4px 0 !important; background: transparent; text-transform: none; font-weight: 400; min-height: 32px; }
.mb-search .mb-btn { font-size: 16px; padding: 0 28px; min-height: 56px; }
@media (max-width: 700px) { .mb-search label + label { border-left: 0; border-top: 1px solid var(--mb-line); } .mb-hero h1 { font-size: 32px; } .mb-search .mb-btn { flex-basis: 100%; } }
.mb-chips { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.mb-chips span { color: var(--mb-soft); }
.mb-chips a { color: #fff !important; border: 1px solid var(--mb-green-500); border-radius: 999px; padding: 6px 14px; }

/* Trust strip */
.mb-trust { background: #fff; border-bottom: 1px solid var(--mb-line); }
.mb-trust .mb-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.mb-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.mb-trust__icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--mb-green-50); color: var(--mb-green-700); display: flex; align-items: center; justify-content: center; }
.mb-trust strong { display: block; }
.mb-trust small { color: var(--mb-muted); font-size: 14px; }

/* Sections */
.mb-section { padding: 56px 0; }
.mb-section--tight { padding: 0 0 56px; }
.mb-h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--mb-ink); }
.mb-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.mb-section__head p { margin: 4px 0 0; color: var(--mb-muted); }
.mb-more { font-weight: 600; }

/* Cards */
.mb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mb-card { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); overflow: hidden; display: flex; flex-direction: column; color: var(--mb-ink) !important; text-decoration: none !important; transition: box-shadow .15s; }
.mb-card:hover { box-shadow: 0 6px 18px rgba(11,59,44,.12); }
.mb-card__img { height: 150px; background: var(--mb-green-50); position: relative; display: flex; align-items: center; justify-content: center; color: #7FA796; }
.mb-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mb-badge { position: absolute; top: 12px; left: 12px; background: var(--mb-gold); color: var(--mb-green-900); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mb-badge--sold { background: var(--mb-ink); color: #fff; left: auto; right: 12px; }
.mb-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mb-kicker { font-size: 12px; font-weight: 600; color: var(--mb-green-700); text-transform: uppercase; letter-spacing: .4px; }
.mb-card__title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.mb-card__place { color: var(--mb-muted); font-size: 14px; }
.mb-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #EEF1EF; }
.mb-money small, .mb-row__nums small { display: block; font-size: 12px; color: var(--mb-muted); }
.mb-money strong { font-weight: 700; }
.mb-price { font-weight: 800 !important; color: var(--mb-green-900); }

/* Browse lists */
.mb-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.mb-browse h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.mb-links2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.mb-links2 a { display: block; padding: 8px 0; border-bottom: 1px solid var(--mb-line); }
.mb-links2 .count { color: var(--mb-muted); font-size: 13px; }

/* Sell band */
.mb-sell { background: var(--mb-green-900); color: #fff; padding: 56px 0; }
.mb-sell .mb-wrap { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.mb-sell__intro { flex: 1 1 360px; }
.mb-sell__eyebrow { color: var(--mb-gold); font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.mb-sell h2 { margin: 8px 0 12px; color: #fff; font-size: 32px; font-weight: 800; line-height: 1.2; }
.mb-sell p { margin: 0 0 24px; color: var(--mb-soft); }
.mb-steps { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mb-steps li { display: flex; gap: 16px; background: var(--mb-green-700); border-radius: var(--mb-radius); padding: 18px; }
.mb-steps__n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--mb-gold); color: var(--mb-green-900); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mb-steps strong { display: block; }
.mb-steps small { color: var(--mb-soft); font-size: 14px; }

/* Guides */
.mb-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mb-guide { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); padding: 24px; color: var(--mb-ink) !important; text-decoration: none !important; }
.mb-guide__cat { font-size: 12px; font-weight: 700; color: var(--mb-gold-text); text-transform: uppercase; }
.mb-guide__title { font-weight: 700; font-size: 18px; margin: 8px 0; }
.mb-guide__text { color: var(--mb-muted); font-size: 14px; }

/* Footer */
.mb-footer { background: var(--mb-green-950); color: var(--mb-soft); padding: 48px 0 24px; font-size: 14px; }
.mb-footer a { color: var(--mb-soft) !important; }
.mb-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.mb-footer__col { display: flex; flex-direction: column; gap: 8px; }
.mb-footer__title { color: #fff; font-weight: 700; }
.mb-footer__brand { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.mb-footer__bottom { border-top: 1px solid var(--mb-green-700); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.mb-footer__bottom img { height: 48px; width: auto; }

/* Archive */
.mb-pagehead { background: #fff; border-bottom: 1px solid var(--mb-line); padding: 20px 0; }
.mb-crumbs { font-size: 13px; color: var(--mb-muted); }
.mb-pagehead h1 { margin: 6px 0 0; font-size: 30px; font-weight: 800; color: var(--mb-ink); }
.mb-layout { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 56px; align-items: flex-start; }
.mb-filters { flex: 1 1 260px; max-width: 300px; background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); padding: 20px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
@media (max-width: 760px) { .mb-filters { max-width: none; } }
.mb-filters__head { display: flex; justify-content: space-between; align-items: center; }
.mb-filters label, .mb-filters legend { font-weight: 600; font-size: 14px; }
.mb-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mb-filters select, .mb-filters input[type=number], .mb-filters input[type=text] { width: 100%; border: 1px solid #C9D3CE; border-radius: 8px; padding: 10px; font-weight: 400; box-sizing: border-box; }
.mb-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 400 !important; }
.mb-range { display: flex; gap: 8px; align-items: center; }
.mb-range input { min-width: 0; }
.mb-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mb-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mb-active { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-active a { background: var(--mb-green-50); color: var(--mb-green-700) !important; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.mb-sort { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--mb-muted); }
.mb-sort select { border: 1px solid #C9D3CE; border-radius: 8px; padding: 8px; }
.mb-row { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); display: flex; flex-wrap: wrap; overflow: hidden; }
.mb-row__img { flex: 0 0 220px; min-height: 180px; background: var(--mb-green-50); color: #7FA796; display: flex; align-items: center; justify-content: center; position: relative; }
.mb-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .mb-row__img { flex-basis: 100%; } }
.mb-row__body { flex: 1 1 320px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mb-row__title { font-weight: 700; font-size: 18px; color: var(--mb-ink) !important; line-height: 1.35; }
.mb-row__teaser { margin: 0; color: var(--mb-muted); font-size: 14px; }
.mb-row__nums { display: flex; gap: 28px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; align-items: flex-end; }
.mb-row__nums strong { font-weight: 700; }
.mb-row__nums .mb-btn { margin-left: auto; }
.mb-empty { background: #fff; border: 1px dashed var(--mb-line); border-radius: var(--mb-radius); padding: 40px; text-align: center; }
.mb-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 8px; }
.mb-pagination .page-numbers { min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--mb-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; box-sizing: border-box; }
.mb-pagination .page-numbers.current { background: var(--mb-green-900); color: #fff; border-color: var(--mb-green-900); font-weight: 700; }

/* Single listing */
.mb-single { padding-top: 20px; padding-bottom: 56px; }
.mb-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mb-tag { border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--mb-line); color: var(--mb-muted); }
.mb-tag--green { background: var(--mb-green-50); border-color: var(--mb-green-50); color: var(--mb-green-700); }
.mb-tag--gold { background: var(--mb-gold-50); border-color: var(--mb-gold-50); color: var(--mb-gold-text); }
.mb-tag--dark { background: var(--mb-ink); border-color: var(--mb-ink); color: #fff; }
.mb-single h1 { margin: 10px 0 4px; font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--mb-ink); }
.mb-single__cols { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; align-items: flex-start; }
.mb-single__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mb-single__side { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .mb-single__side { max-width: none; } }
.mb-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mb-gallery__main { grid-column: span 3; height: 340px; background: var(--mb-green-50); border-radius: var(--mb-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #7FA796; }
.mb-gallery__side { display: grid; gap: 8px; }
.mb-gallery__side > * { background: var(--mb-green-50); border-radius: var(--mb-radius); overflow: hidden; min-height: 60px; }
.mb-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-gallery--one .mb-gallery__main { grid-column: span 4; }
@media (max-width: 600px) { .mb-gallery__main { grid-column: span 4; height: 220px; } .mb-gallery__side { display: none; } }
.mb-panel { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); padding: 24px; }
.mb-panel h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--mb-ink); display: flex; gap: 8px; align-items: center; }
.mb-panel h3 { margin: 16px 0 6px; font-size: 16px; }
.mb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--mb-line); border: 1px solid var(--mb-line); border-radius: 10px; overflow: hidden; }
.mb-facts > div { background: #fff; padding: 14px 16px; }
.mb-facts small { display: block; font-size: 13px; color: var(--mb-muted); }
.mb-facts strong { font-weight: 700; font-size: 17px; }
.mb-note { margin: 12px 0 0; font-size: 13px; color: var(--mb-muted); }
.mb-locked__row { display: flex; gap: 16px; padding: 5px 0; }
.mb-locked__row > span:first-child { flex: 0 0 160px; color: var(--mb-muted); }
.mb-skel { flex: 1; height: 14px; margin-top: 6px; background: #E3E8E5; border-radius: 4px; }
.mb-callout { margin-top: 16px; background: var(--mb-gold-50); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #5E4A0D; }
.mb-callout--ok { background: var(--mb-green-50); color: var(--mb-green-700); }
.mb-pricebox { background: #fff; border: 2px solid var(--mb-green-900); border-radius: var(--mb-radius); padding: 22px; }
.mb-pricebox__price { font-size: 30px; font-weight: 800; color: var(--mb-green-900); line-height: 1.2; }
.mb-pricebox h2 { margin: 16px 0 8px; font-size: 17px; font-weight: 700; }
.mb-nda-text { background: var(--mb-bg); border: 1px solid var(--mb-line); border-radius: 8px; padding: 12px; font-size: 13px; color: #3D4744; max-height: 140px; overflow: auto; }
.mb-nda-text p { margin: 0; }
.mb-status { border-radius: 10px; padding: 16px; display: flex; gap: 12px; margin-top: 12px; background: var(--mb-green-50); }
.mb-status strong { display: block; color: var(--mb-green-700); }
.mb-status--warn { background: var(--mb-gold-50); }
.mb-status--warn strong { color: var(--mb-gold-text); }
.mb-error { color: #A12A1E; font-size: 14px; font-weight: 600; }
.mb-seller { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); padding: 20px; display: flex; gap: 14px; align-items: center; }
.mb-avatar { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--mb-green-50); color: var(--mb-green-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* Plugin output (data room, dashboards) */
.bfs-dataroom ul { margin: 0 0 12px; padding-left: 18px; }
.bfs-nda-list, .bfs-my-listings { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); overflow: hidden; font-size: 14px; }
.bfs-nda-list th, .bfs-nda-list td, .bfs-my-listings th, .bfs-my-listings td { padding: 10px 12px; border-bottom: 1px solid var(--mb-line); text-align: left; vertical-align: top; }
.bfs-nda-list th, .bfs-my-listings th { background: var(--mb-green-50); color: var(--mb-green-900); }
.bfs-my-listings .button, .bfs-nda-list .button, .bfs-dataroom .button { background: var(--mb-green-900); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; margin: 2px 0; display: inline-block; font-size: 13px; }

/* Video (1.0.1) */
.mb-badge--video { top: auto; bottom: 12px; left: 12px; background: rgba(7,42,31,.85); color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.mb-videos { display: flex; flex-direction: column; gap: 16px; }
.mb-video video { width: 100%; border-radius: 10px; background: #000; display: block; }
.mb-video--embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.mb-video--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
