/**
 * LỚP 2: GLOBAL CSS (SEO Center Standard)
 * Tải ASYNC trên mọi trang (Footer, Button, Form, Card BĐS, Breadcrumbs, Mobile Bar).
 * Dung lượng tối đa: 50 KB.
 */

/* GRADIENT TEXT UTILITY */
/* GRADIENT TEXT UTILITY (Khớp chính xác Inspector: 22px "STIX Two Text", serif, padding: 2.2px 0 2.2px 10px) */
.gradient-text {
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.4;
  padding: 2.2px 0 2.2px 10px;
}

/* SECTION HEADER UTILITIES */
.section-header-wrap {
  margin-bottom: 2rem;
}
.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #212529;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-family: var(--font-family);
  font-size: 16px;
  color: #6c757d;
  max-width: 750px;
  line-height: 1.6;
}
.section-header-center .section-subtitle {
  margin: 0 auto;
}

/* BREADCRUMB */
.bds-breadcrumb-wrap {
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-border);
}
.breadcrumb-list li[aria-current="page"] {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* RANK MATH BREADCRUMB [rank_math_breadcrumb] */
.rank-math-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.rank-math-breadcrumb p {
  margin: 0;
  padding: 0;
  display: block;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
  word-break: break-word;
}
.rank-math-breadcrumb a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rank-math-breadcrumb a:hover {
  color: var(--color-primary);
}
.rank-math-breadcrumb .separator {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0 0.35rem;
  user-select: none;
  display: inline-block;
}
.rank-math-breadcrumb .last {
  color: var(--color-text-muted);
  font-weight: 500;
  word-break: break-word;
}

/* BLOCKQUOTE / GUTENBERG QUOTE COMPONENT (KHÔNG DÙNG LINE BÊN TRÁI, HIỆU ỨNG DẤU NHÁY) */
blockquote,
.wp-block-quote {
  position: relative;
  background: linear-gradient(135deg, #fffcf9 0%, #fff7f0 100%);
  border: 1px solid #fed7aa !important;
  border-left: 1px solid #fed7aa !important;
  border-radius: 14px;
  padding: 1.75rem 2rem 1.5rem 3.5rem;
  margin: 2.25rem 0;
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.04);
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
blockquote::before,
.wp-block-quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-heading, "STIX Two Text", serif);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--color-primary, #d35400);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              color 0.3s ease;
}
blockquote:hover,
.wp-block-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 84, 0, 0.09);
  border-color: #f97316 !important;
}
blockquote:hover::before,
.wp-block-quote:hover::before {
  transform: scale(1.15) rotate(-6deg);
  opacity: 0.85;
  color: #ea580c;
}
blockquote p,
.wp-block-quote p {
  font-family: var(--font-heading, "STIX Two Text", serif);
  font-size: 1.125rem;
  line-height: 1.75;
  font-style: italic;
  color: #334155;
  margin: 0 0 0.5rem 0;
  position: relative;
  z-index: 1;
}
blockquote p:last-child,
.wp-block-quote p:last-child {
  margin-bottom: 0;
}
blockquote cite,
.wp-block-quote cite {
  display: block;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary, #d35400);
  text-align: right;
  margin-top: 0.75rem;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  blockquote,
  .wp-block-quote {
    padding: 1.5rem 1.25rem 1.25rem 2.85rem;
    margin: 1.75rem 0;
  }
  blockquote::before,
  .wp-block-quote::before {
    font-size: 3rem;
    top: 8px;
    left: 12px;
  }
  blockquote p,
  .wp-block-quote p {
    font-size: 1.05rem;
  }
}

/* BẤT ĐỘNG SẢN CARD COMPONENT */
.bds-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bds-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(211, 84, 0, 0.12);
  border-color: #d35400;
}
.bds-card:hover .bds-card-title a {
  color: #d35400;
}

.bds-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f1f5f9;
}
.bds-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.bds-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bds-card:hover .bds-card-thumb img {
  transform: scale(1.05);
}

.bds-badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto !important;
  width: auto !important;
  max-width: fit-content !important;
  background: linear-gradient(90deg, #ff6026 0%, #fe3e33 55%, #ff204e 100%);
  color: #ffffff;
  font-family: var(--font-family, 'Cabin', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 11px;
  border-radius: 6px;
  z-index: 3;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
  box-sizing: border-box;
  -webkit-mask:
    radial-gradient(circle 4px at 0 50%, transparent 99%, #000 100%) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle 4px at 100% 50%, transparent 99%, #000 100%) 100% 0 / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 4px at 0 50%, transparent 99%, #000 100%) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle 4px at 100% 50%, transparent 99%, #000 100%) 100% 0 / 51% 100% no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.bds-badge-project {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  z-index: 2;
}

.bds-card-content {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bds-card-price-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
}
.bds-price-current {
  color: var(--color-primary);
  font-family: var(--font-heading, "STIX Two Text", serif) !important;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  display: block;
}
.bds-price-old {
  color: var(--color-text-muted);
  font-family: var(--font-family, "Cabin", sans-serif) !important;
  font-size: 0.82rem;
  text-decoration: line-through;
  line-height: 1.2;
  margin-top: 3px;
  white-space: nowrap;
  display: block;
}

.bds-card-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}
.bds-card-title a {
  color: var(--color-text-dark);
}
.bds-card-title a:hover {
  color: var(--color-primary);
}

.bds-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.bds-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.bds-meta-item svg {
  color: var(--color-primary);
}

.bds-card-footer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.4rem;
  margin-top: auto;
  align-items: stretch;
}
.btn-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: var(--color-primary-pastel);
  color: var(--color-primary);
  border: 1px solid rgba(211, 84, 0, 0.2);
  padding: 0.5rem 0.35rem;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-card-view svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-card-view:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-card-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0068ff;
  color: #ffffff;
  padding: 0.5rem 0.35rem;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-card-zalo:hover {
  background: #0052cc;
  color: #ffffff;
}

button.footer-contact-val {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* EMPTY ALERT */
.bds-empty-alert {
  padding: 2.5rem;
  background: var(--color-primary-pastel);
  border: 1px dashed var(--color-primary);
  border-radius: var(--border-radius-md);
  text-align: center;
  color: var(--color-primary-hover);
  grid-column: 1 / -1;
}
.bds-empty-alert svg {
  margin: 0 auto 0.75rem auto;
  stroke: var(--color-primary);
}

/* ==========================================================================
   5. LUXURY REAL ESTATE FOOTER STYLES (CHÂU REALTOR)
   ========================================================================== */
.site-footer {
  background: #090e17; /* Deep Luxury Midnight Navy */
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

/* Ambient Radial Glow on Top */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 320px;
  background: radial-gradient(ellipse at top center, rgba(234, 88, 12, 0.12) 0%, rgba(9, 14, 23, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Top Luminous Curve Divider */
.footer-divider-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.footer-divider-svg {
  width: 100%;
  height: 48px;
  display: block;
}
.footer-base-path {
  fill: #090e17;
}

/* Main Content Area */
.footer-main {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.15fr 1fr 1.35fr;
    gap: 3.5rem;
  }
}

/* Column Titles */
.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  transition: width 0.3s ease, background 0.3s ease;
}
.footer-col:hover .footer-title::after {
  width: 54px;
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
}

/* Links List (Column 1 & 2) */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links li {
  margin: 0;
}
.footer-links a,
.footer-links .footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.5;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-links .link-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.footer-links a:hover,
.footer-links .footer-link-btn:hover {
  color: #ffffff;
  transform: translateX(6px);
}
.footer-links a:hover .link-bullet,
.footer-links .footer-link-btn:hover .link-bullet {
  background: #ea580c;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.8);
  transform: scale(1.3);
}

/* Column 3: Contact Items */
.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.2);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.footer-contact-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  flex-shrink: 0;
}
.footer-contact-item:hover .footer-contact-icon {
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  border-color: #d35400;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(211, 84, 0, 0.4);
  transform: translateY(-2px);
}
.footer-contact-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
}
.footer-contact-val {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-val.highlight {
  color: #fb923c;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.footer-contact-val:hover {
  color: #ffffff;
}

/* Social Media Badges */
.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-social-title {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.social-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.social-btn:hover svg,
.social-btn:hover img.social-icon-img {
  transform: scale(1.1);
}
.social-btn img.social-icon-img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Specific Social Brand Colors on Hover */
.social-btn.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}
.social-btn.social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}
.social-btn.social-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}
.social-btn.social-zalo:hover {
  background: #0068ff;
  border-color: #0068ff;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
}
.social-btn.social-tiktok:hover {
  background: #010101;
  border-color: #25f4ee;
  box-shadow: 0 4px 15px rgba(37, 244, 238, 0.35);
}
.social-btn.social-twitter:hover,
.social-btn.social-x:hover,
.social-btn.social-twitter-x:hover {
  background: #000000;
  border-color: #555555;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Footer Bottom: Copyright & Disclaimer */
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 992px) {
  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.copyright-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
}
.copyright-text .brand-name {
  color: #fb923c;
  font-weight: 700;
}
.disclaimer-text {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 800px;
}
.disclaimer-icon {
  color: #f97316;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom-trust {
  flex-shrink: 0;
}
.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
}
.trust-shield-icon {
  color: #22c55e;
}

/* BACK TO TOP BUTTON (PREMIUM FLOATING) */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top svg {
  fill: #ffffff;
  transition: transform 0.2s ease;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.6);
}
.back-to-top:hover svg {
  transform: translateY(-2px);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* MOBILE ACTION BAR (CỐ ĐỊNH CHÂN TRANG - 50/50 ZALO & HOTLINE DẠNG BUTTON) */
.action-bar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  gap: 0.65rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .action-bar-mobile {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

/* ACTION BAR MOBILE BĐS: HIỂN THỊ GIÁ BÁN & 2 NÚT THAO TÁC (CHUẨN Ý TƯỞNG CELLPHONES) */
.action-bar-mobile-bds {
  padding: 0.45rem 0.85rem;
  gap: 0.75rem;
  height: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.mobile-bar-price-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  flex: 0 0 auto;
}
.mobile-bar-price-label {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mobile-bar-price-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ea580c;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.mobile-bar-price-old {
  font-size: 0.68rem;
  color: #94a3b8;
  text-decoration: line-through;
  white-space: nowrap;
}
.mobile-bar-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.action-bar-mobile-bds .mobile-bar-btn {
  flex: 0 1 auto;
  height: 38px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 0.85rem;
  gap: 0.35rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-bar-mobile-bds .mobile-bar-btn svg {
  width: 15px;
  height: 15px;
}
.action-bar-mobile-bds .mobile-bar-icon-wrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-bar-mobile-bds .mobile-bar-btn-zalo {
  background: #0068ff;
  color: #ffffff;
  border: 1px solid #0056d6;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}
.action-bar-mobile-bds .mobile-bar-btn-hotline {
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  color: #ffffff;
  border: 1px solid #b84500;
  box-shadow: 0 2px 6px rgba(211, 84, 0, 0.25);
}

.mobile-bar-btn {
  flex: 1 1 50%;
  width: 50%;
  height: 44px;
  border: none;
  border-radius: var(--border-radius-pill, 999px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  outline: none;
  box-sizing: border-box;
  padding: 0 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bar-btn:active {
  transform: scale(0.97);
}

/* Nút Zalo (50%) */
.mobile-bar-btn-zalo {
  background: #0068ff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.28);
}
.mobile-bar-btn-zalo:hover {
  background: #0056d6;
}
.mobile-bar-btn-zalo .zalo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.mobile-bar-btn-zalo .zalo-badge svg {
  display: block;
}

/* Nút Hotline (50%) */
.mobile-bar-btn-hotline {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
}
.mobile-bar-btn-hotline:hover {
  background: linear-gradient(135deg, #c0392b 0%, #d35400 100%);
}
.mobile-bar-btn-hotline .mobile-bar-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* MOBILE DRAWER NAVIGATION */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: 2px 0 15px rgba(0,0,0,0.15);
  z-index: 100000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.is-open {
  transform: translateX(300px);
}
.mobile-drawer-header {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-brand);
  color: #ffffff;
}
.mobile-drawer-title {
  font-weight: var(--font-weight-bold);
  color: #ffffff !important;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
}
.mobile-drawer-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}
.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  border-bottom: 1px solid var(--color-border-light);
}
.mobile-menu li a {
  display: block;
  padding: 0.85rem 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  text-decoration: none;
}
.mobile-has-sub > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.mobile-has-sub.is-open > a {
  color: var(--color-primary);
  background-color: #fffaf5;
}
.mobile-sub-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease,
              background-color 0.2s ease;
}
.mobile-has-sub.is-open > a .mobile-sub-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.mobile-sub {
  list-style: none;
  padding: 0.35rem 0;
  margin: 0.35rem 0 0.5rem 0;
  background: #f8fafc;
  display: none;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
}
.mobile-has-sub.is-open > .mobile-sub {
  display: block;
}
.mobile-menu .mobile-sub li,
.mobile-sub li {
  border-bottom: 1px solid #edf2f7;
}
.mobile-menu .mobile-sub li:last-child,
.mobile-sub li:last-child {
  border-bottom: none;
}
.mobile-menu .mobile-sub li a,
.mobile-sub li a {
  display: block !important;
  padding: 0.75rem 1rem 0.75rem 1.35rem !important; /* Khoảng cách rộng rãi 1.35rem (~22px) giữa gạch cam và text */
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
  border-bottom: none !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.mobile-menu .mobile-sub li a:hover,
.mobile-sub li a:hover {
  color: var(--color-primary) !important;
  background: #fff3ea !important;
  padding-left: 1.6rem !important;
}
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ENTRY CONTENT IMAGES (BỎ VIỀN TRẮNG, CHỈ BO GÓC ẢNH) */
.entry-content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

/* BĐS FILTER SIDEBAR STICKY COMPONENT */
@media (min-width: 1024px) {
  .bds-layout-grid {
    align-items: start;
  }
  .bds-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 135px;
    align-self: start;
    z-index: 20;
  }
}

/* ==========================================================================
   KHỐI BẤT ĐỘNG SẢN NHÚNG & CAROUSEL (BDS EMBED BLOCK)
   Khung tách biệt trang nhã, Card BĐS trắng sang trọng đồng bộ chuẩn web mẫu
   ========================================================================== */
.bds-embed-block {
  margin: 2rem 0;
  padding: 1.25rem 1rem 1rem 1rem;
  background: #fffcf8;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.06);
  position: relative;
  overflow: hidden;
  clear: both;
  font-family: var(--font-family, 'Cabin', sans-serif);
}

.bds-embed-header {
  margin-bottom: 1rem;
  text-align: center;
}

.bds-embed-badge-wrap {
  margin-bottom: 0.35rem;
}

.bds-embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-family, 'Cabin', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fdba74;
  padding: 3px 12px;
  border-radius: 999px;
}

.bds-embed-title {
  font-family: var(--font-heading, "STIX Two Text", serif) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.2rem 0 0.25rem 0;
  line-height: 1.3;
}

.bds-embed-subtitle {
  font-family: var(--font-family, 'Cabin', sans-serif) !important;
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.45;
}

/* CAROUSEL WRAPPER */
.bds-embed-carousel-wrap {
  position: relative;
  width: 100%;
}

.bds-embed-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 10px 4px;
}
.bds-embed-track::-webkit-scrollbar {
  display: none;
}
.bds-embed-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

/* SLIDE ITEM */
.bds-embed-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  box-sizing: border-box;
}

/* THẺ BĐS TRONG KHỐI NHÚNG (ĐỒNG BỘ 100% VỚI CARD NGOÀI TRANG CHỦ & ARCHIVE) */
.bds-embed-slide .bds-card {
  height: 100%;
  background: #ffffff !important;
  border: 1px solid var(--color-border-light, #edf2f7) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bds-embed-slide .bds-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 84, 0, 0.35) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09) !important;
}

.bds-embed-slide .bds-card-content {
  padding: 0.85rem 0.85rem 0.95rem !important;
}

.bds-embed-slide .bds-price-current {
  font-family: var(--font-heading, "STIX Two Text", serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ea580c !important;
}
.bds-embed-slide .bds-price-old {
  font-family: var(--font-family, "Cabin", sans-serif) !important;
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  margin-top: 3px !important;
}

.bds-embed-slide .bds-card-title {
  font-family: var(--font-heading, "STIX Two Text", serif) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.8em !important;
}
.bds-embed-slide .bds-card-title a {
  font-family: var(--font-heading, "STIX Two Text", serif) !important;
  font-weight: 700 !important;
  color: #111827 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.bds-embed-slide .bds-card-title a:hover {
  color: var(--color-primary, #d35400) !important;
}

.bds-embed-slide .bds-card-meta {
  font-family: var(--font-family, "Cabin", sans-serif) !important;
  color: #64748b !important;
  font-size: 0.88rem !important;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-bottom: 12px;
}
.bds-embed-slide .bds-meta-item svg {
  color: #ea580c !important;
}

.bds-embed-slide .btn-card-view {
  font-family: var(--font-family, "Cabin", sans-serif) !important;
  background: #fff8f3 !important;
  color: #d35400 !important;
  border: 1px solid #ffd8be !important;
  font-weight: 600 !important;
}
.bds-embed-slide .btn-card-view:hover {
  background: #d35400 !important;
  color: #ffffff !important;
  border-color: #d35400 !important;
}

.bds-embed-slide .btn-card-zalo {
  font-family: var(--font-family, "Cabin", sans-serif) !important;
  background: #0068ff !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}
.bds-embed-slide .btn-card-zalo:hover {
  background: #0054cc !important;
}

/* DESKTOP RULES (>= 768px):
   1. If <= 3 BĐS (is-grid-desk): Static CSS Grid, no carousel needed.
   2. If >= 4 BĐS (is-carousel-desk): Carousel 3 items visible, smooth sliding.
*/
@media (min-width: 768px) {
  /* Khi <= 3 BĐS: Lưới tĩnh */
  .bds-embed-carousel-wrap.is-grid-desk .bds-embed-track {
    display: grid;
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .bds-embed-carousel-wrap.is-grid-desk.bds-cols-1 .bds-embed-track {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
  .bds-embed-carousel-wrap.is-grid-desk.bds-cols-2 .bds-embed-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bds-embed-carousel-wrap.is-grid-desk.bds-cols-3 .bds-embed-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bds-embed-carousel-wrap.is-grid-desk .bds-embed-slide {
    flex: auto;
    min-width: 0;
  }
  .bds-embed-carousel-wrap.is-grid-desk .bds-embed-arrow,
  .bds-embed-carousel-wrap.is-grid-desk .bds-embed-dots {
    display: none !important;
  }

  /* Khi >= 4 BĐS: Kích hoạt Carousel 3 card / view */
  .bds-embed-carousel-wrap.is-carousel-desk .bds-embed-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    scroll-snap-align: start;
  }
}

/* MOBILE RULES (< 768px):
   Luôn hiển thị 1 BĐS và chạy Carousel
*/
@media (max-width: 767px) {
  .bds-embed-block {
    padding: 1rem 0.75rem 0.85rem 0.75rem;
    margin: 1.5rem 0;
    border-radius: 14px;
  }
  .bds-embed-title {
    font-size: 1.2rem;
  }
  .bds-embed-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
  }
}

/* NÚT MŨI TÊN CAROUSEL */
.bds-embed-arrow {
  position: absolute;
  top: calc(50% + 4px);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.bds-embed-arrow:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}
.bds-embed-arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.bds-embed-prev {
  left: -8px;
}
.bds-embed-next {
  right: -8px;
}
@media (max-width: 767px) {
  .bds-embed-prev {
    left: 4px;
  }
  .bds-embed-next {
    right: 4px;
  }
}

/* PHÂN TRANG CHẤM TRÒN (DOTS) */
.bds-embed-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 0.85rem;
}
.bds-embed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fed7aa;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.bds-embed-dot.active {
  width: 20px;
  border-radius: 4px;
  background: #ea580c;
}

/* H1 CHO SINGLE POST & SINGLE PAGE (ORANGE BRAND GRADIENT) */
.single-post-title,
.single-page-article h1,
.single-post-article h1 {
  font-family: var(--font-heading);
  color: var(--color-primary, #d35400);
  background: var(--gradient-brand, linear-gradient(to right, var(--mainColor, #d35400) 0%, #e67e22 50%, #a04000 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

