/* Trang chủ (bố cục theo mẫu datbiendanang.com) — chỉ nạp trên trang chủ */

:root {
  --home-accent: #2f5e99;
  --home-link: #1e73be;
  --home-ink: #1d2327;
  --home-line: #dde1e6;
}

/* Tiêu đề + đoạn mở đầu mỗi khối */
.home-heading h1,
.home-heading h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--home-ink);
  text-transform: none;
  margin-bottom: 8px;
}
.home-heading p {
  max-width: 1040px;
  margin: 0 auto 0;
  font-size: 16px;
  line-height: 26px;
  color: #444;
}

/* Hero */
.home-hero h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.home-hero p {
  font-size: 18px;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-hero .button {
  margin: 22px 5px 0;
  min-height: 48px;
  line-height: 46px;
  padding: 0 24px;
  letter-spacing: 0;
  text-transform: none;
}
.home-hero .button:focus-visible,
.bds-area-card:focus-visible {
  outline: 3px solid #f5c760;
  outline-offset: 3px;
}

/* Thẻ khu vực */
.bds-area-cards {
  display: grid;
  grid-template-columns: repeat(var(--bds-area-cards-cols, 3), minmax(0, 1fr));
  gap: 20px;
}
.bds-area-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(26, 48, 74, 0.09);
  color: var(--home-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bds-area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 48, 74, 0.16);
}
.bds-area-card-image {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border-radius: 21px;
  overflow: hidden;
}
.bds-area-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bds-area-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bds-area-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-link);
}
.bds-area-card-count {
  font-size: 16px;
  color: var(--home-ink);
}

/* Tab bất động sản nổi bật */
.home-listing .tabbed-content .nav {
  border-bottom: 1px solid var(--home-line);
  margin-bottom: 30px;
}
.home-listing .tabbed-content .nav > li > a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  padding: 10px 30px;
}
.home-listing .tabbed-content .nav > li.active > a {
  color: var(--home-ink);
}
.home-listing .tabbed-content .nav-line-bottom > li > a::before {
  background-color: var(--home-accent);
  height: 3px;
}

/* Thẻ bất động sản */
.bds-cards {
  display: grid;
  grid-template-columns: repeat(var(--bds-cards-cols, 4), minmax(0, 1fr));
  gap: 30px;
}
.bds-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.bds-card-image {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
}
.bds-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bds-card:hover .bds-card-image img {
  transform: scale(1.05);
}
.bds-card-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.bds-card-badge {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 2px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.bds-card-price {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.bds-card-body {
  padding: 18px 20px 20px;
}
.bds-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}
.bds-card-title a {
  color: var(--home-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bds-card-title a:hover {
  color: var(--home-link);
}
.bds-card-address {
  font-size: 13px;
  color: var(--home-link);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bds-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.bds-card-meta li {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-ink);
}
.bds-card-meta i {
  margin-right: 8px;
  color: #555;
}

/* Khối ký gửi & định giá */
.home-valuation > .col-inner {
  border: 1px solid #e3e7ec;
  border-radius: 6px;
}
.home-valuation .img-inner {
  border-radius: 4px;
}
.home-valuation h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--home-ink);
  text-transform: none;
}
.home-valuation .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.home-valuation .wpcf7-form > p,
.home-valuation .wpcf7-form > .wpcf7-response-output {
  margin: 0 0 12px;
}
.home-valuation .wpcf7-form > p:has(textarea),
.home-valuation .wpcf7-form > p:has(.wpcf7-submit),
.home-valuation .wpcf7-form > .wpcf7-response-output {
  grid-column: 1 / -1;
}
.home-valuation .wpcf7-form > p:not(:has(label)):not(:has(.wpcf7-submit)) {
  display: none;
}
.home-valuation .wpcf7-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-ink);
}
.home-valuation .wpcf7-form input:not([type="submit"]):not([type="checkbox"]),
.home-valuation .wpcf7-form select {
  height: 46px;
  margin: 6px 0 0;
  padding: 0 18px;
  border: 1px solid var(--home-line);
  border-radius: 35px;
  box-shadow: none;
  font-size: 14px;
}
.home-valuation .wpcf7-form textarea {
  min-height: 90px;
  height: 90px;
  margin: 6px 0 0;
  padding: 12px 18px;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  box-shadow: none;
  font-size: 14px;
}
.home-valuation .wpcf7-submit {
  margin: 4px 0 0;
  padding: 0 30px;
  border-radius: 35px;
  background-color: var(--home-accent);
  letter-spacing: 1.9px;
  font-size: 13px;
}
.home-valuation .wpcf7-submit:hover {
  background-color: #4379bd;
}

/* Dịch vụ: ảnh nền 300px, tiêu đề giữa */
.home-services .box {
  padding: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 8px;
}
.home-services .box-image,
.home-services .box-image img {
  border-radius: 8px;
}
.home-services .box-text .post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: #fff;
  min-height: 0;
}
.home-services .is-divider {
  display: none;
}

/* Giới thiệu Đại Nam + giao dịch thực tế */
.home-about > .col-inner {
  border: 1px solid #d7e8ff;
  border-radius: 6px;
}
.home-about h2 {
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
}
.home-about .img-inner {
  border-radius: 6px;
}
.home-deals .slider .img-inner {
  border-radius: 6px;
}

/* Tin tức */
.home-news .box {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
}
.home-news .box-normal .box-text {
  padding: 16px 20px 20px;
}
.home-news .box-text .post-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-link);
}
.home-news .post-item {
  padding-bottom: 12px;
}
.home-news .box {
  margin-bottom: 0 !important;
}
.home-news-list .box-vertical {
  display: flex;
  align-items: center;
  min-height: 90px;
}
.home-news-list .box-vertical .box-image {
  flex: 0 0 150px;
  width: 150px !important;
}
.home-news-list .box-vertical .box-text {
  display: block;
  padding: 10px 20px;
}
.home-news-list .box-vertical .post-title {
  font-size: 15px;
  margin: 0 0 4px;
}
.home-news .is-divider {
  display: none;
}

/* Câu hỏi thường gặp (accordion của Flatsome) */
.home-faq-list .accordion-item {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-faq-list .accordion-item:hover {
  border-color: #b9cde6;
}
.home-faq-list .accordion-item:has(.accordion-title.active) {
  border-color: var(--home-accent);
  box-shadow: 0 8px 24px rgba(47, 94, 153, 0.1);
}
.home-faq-list .accordion-title {
  position: relative;
  display: block;
  padding: 18px 64px 18px 22px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--home-ink);
  text-transform: none;
}
.home-faq-list .accordion-title:hover,
.home-faq-list .accordion-title.active {
  color: var(--home-accent);
  background: none;
}
.home-faq-list .accordion-title .toggle {
  position: absolute;
  top: 50%;
  left: auto;
  right: 18px;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: -16px 0 0;
  padding: 0;
  border-radius: 50%;
  background: #eef3f9;
  color: var(--home-accent);
  line-height: 32px;
  opacity: 1;
}
.home-faq-list .accordion-title.active .toggle {
  background: var(--home-accent);
  color: #fff;
}
.home-faq-list .accordion-title .toggle i {
  font-size: 16px;
  transition: transform 0.25s ease;
}
.home-faq-list .accordion-title.active .toggle i {
  transform: rotate(180deg);
}
.home-faq-list .accordion-inner {
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}
.home-faq-list .accordion-inner p,
.home-faq-list .accordion-inner ul {
  margin-bottom: 8px;
}
.home-faq-list .accordion-inner a {
  color: var(--home-link);
  font-weight: 600;
}
.home-faq-list .accordion-inner a:hover {
  text-decoration: underline;
}
.home-faq-more {
  margin-top: 10px;
  font-size: 15px;
  color: #444;
}
.home-faq-more p {
  margin-bottom: 12px;
}

@media (max-width: 820px) {
  .bds-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .bds-area-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 512px) {
  .home-hero h1 {
    font-size: 24px;
  }
  .home-hero p {
    font-size: 15px;
  }
  .home-hero .button {
    margin: 16px 3px 0;
    padding: 0 15px;
    font-size: 13px;
  }
  .home-heading h1,
  .home-heading h2 {
    font-size: 22px;
  }
  .bds-cards,
  .bds-area-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .bds-card-image {
    height: 240px;
  }
  .home-listing .tabbed-content .nav > li > a {
    padding: 10px 12px;
  }
  .home-valuation .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-news-list .box-vertical .box-image {
    flex: 0 0 120px;
    width: 120px !important;
  }
  .home-news-list .box-vertical .box-text {
    padding: 8px 12px;
  }
  .home-faq-list .accordion-title {
    padding: 15px 56px 15px 16px;
    font-size: 15px;
  }
  .home-faq-list .accordion-title .toggle {
    right: 14px;
  }
  .home-faq-list .accordion-inner {
    padding: 0 16px 16px;
  }
}
