@charset "UTF-8";
.bds-gallery img {
  width: 100%;
  object-fit: contain;
}

.bds-gallery .single-bds-img-thumb img {
  border-radius: 10px;
}

.bds-gallery .single-bds-img-thumb img {
  object-fit: cover;
}

.bds-table {
  width: 100%;
  border-collapse: collapse;
}

.bds-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
}

.bds-table td:first-child {
  font-weight: 600;
  color: #555;
}

.bds-content .content p {
  margin-bottom: 1em;
}

.box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px !important;
}

.text-danger {
  color: #d00;
}

.bds-gallery {
  border-radius: 12px;
  overflow: hidden;
  /* margin-bottom: 30px; */
  position: relative;
}

.bds-slide-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .bds-slide-img {
    height: 260px;
  }
}
/* BDS Swiper styles */
.bds-swiper-container {
  margin-bottom: 30px;
}

.bds-swiper-main .swiper {
  position: relative;
  width: 100%;
}

.bds-swiper-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bds-swiper-main .swiper-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Thumbnail strip */
.bds-swiper-thumbs {
  margin-top: 12px;
}

.bds-swiper-thumbs .swiper-slide {
  width: auto;
  opacity: 0.6;
  cursor: pointer;
  padding: 2px;
  transition: opacity 0.2s ease;
}

.bds-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.bds-swiper-thumbs .swiper-slide img {
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* Navigation buttons (simple) */
.bds-swiper-button-prev, .bds-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.bds-swiper-button-prev {
  left: 12px;
}

.bds-swiper-button-next {
  right: 12px;
}

/* Pagination position */
.bds-swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bds-swiper-main .swiper-slide img {
    height: 260px;
  }
  .bds-swiper-thumbs .swiper-slide img {
    height: 56px;
  }
}
.single-bds-img-active {
  height: 60vh !important;
}

.single-bds-img-thumb {
  height: 12vh !important;
}

.bds-gallery-wrapper {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 700px;
}

.bds-main-img img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.bds-main-img:hover img {
  transform: scale(1.02);
}

.section-gallery {
  padding: 0 !important;
}

/* STYLE MOI CUA TRANG CHI TIET */
/* ======= BẤT ĐỘNG SẢN - STYLE CHUYÊN NGHIỆP ======= */
.bds-info.box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  margin-bottom: 30px;
}

.bds-info h1 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
}

.bds-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 10px;
  /* color: #b20000;
  border-left: 4px solid #b20000; */
  padding-left: 10px;
}

.bds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.bds-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.bds-table td:first-child {
  width: 35%;
  color: #555;
  font-weight: 600;
  padding: 10px 10px 10px 0;
}

.bds-table td:last-child {
  color: #111;
  padding: 10px;
}

.bds-table td i {
  margin-right: 6px;
  color: #ff9c00; /* icon vàng Flatsome */
}

/* ======= NỔI BẬT GIÁ ======= */
.bds-table .text-danger {
  color: #e63946;
  font-weight: 700;
  font-size: 18px;
}

/* === BDS GRID STYLE (giữ Flatsome gốc, chỉ thêm hiệu ứng và màu nhận diện) === */
.bds-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.bds-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === IMAGE === */
.bds-item .box-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.bds-item .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bds-item:hover .box-image {
  border-bottom: 3px solid #b20000;
}

.bds-item:hover .box-image img {
  transform: scale(1.06);
}

/* === PRICE TAG (Góc ảnh) === */
.bds-item .price-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #b20000;
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* === TEXT CONTENT === */
.bds-item .box-text {
  position: relative;
  padding: 16px 18px 20px;
  color: #111;
  min-height: 160px;
  /* nền bán trong suốt để backdrop-filter có cái để làm mờ */
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari */
  border: 1px solid rgba(178, 0, 0, 0.08); /* nhẹ theo tone #b20000 */
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, transform 0.25s ease;
}

.bds-item:hover .box-text {
  background: #fff5f5;
}

/* === TITLE === */
.bds-item .post-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.bds-item ul,
.bds-item li {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.bds-item li {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 👈 Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bds-item:hover .post-title {
  /* color: #b20000; */
}

/* ===== Tiêu đề bài bất động sản ===== */
.box .post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 👈 Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em; /* đảm bảo cân khung khi 1 dòng */
  transition: color 0.3s ease, transform 0.25s ease;
}

/* Hover hiệu ứng nổi bật màu chủ đạo */
.box:hover .post-title {
  /* color: #b20000; */
  transform: translateY(-2px);
}

/* Thêm hiệu ứng mềm mại cho UX */
.box {
  padding: 12px !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Ảnh hiển thị đẹp hơn */
.box-image img {
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.box:hover .box-image img {
  transform: scale(1.05);
}

/* === DETAIL INFO === */
.bds-item .box-text {
  padding: 12px !important;
}

.bds-item .box-text p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

.bds-item .box-text p strong {
  color: #b20000;
  font-weight: 600;
}

/* === ICONS (tùy chọn, nếu có Font Awesome) === */
.bds-item .box-text p i {
  margin-right: 5px;
  color: #b20000;
}

/* === HOVER BORDER GLOW === */
.bds-item:hover {
  border: 1px solid #b20000;
  box-shadow: 0 0 10px rgba(178, 0, 0, 0.25);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .bds-item .box-text {
    padding: 12px 14px;
  }
  .bds-item .post-title {
    font-size: 1rem;
  }
}
/* ======= MAP ======= */
/* #bds-map {
  border-radius: 10px;
  overflow: hidden;
  margin: 25px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
} */
#bds-map {
  width: 100%;
  /* height: 600px; */
  height: 100vh;
  /* border-radius: 8px; */
  margin-bottom: 25px;
}

.single-bds-map #bds-map {
  height: 400px;
}

.polygon-label {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property {
  display: flex;
  gap: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.property.active {
  border-color: #007aff;
  background: #f0f8ff;
}

.property img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.popup-card .price {
  color: #d32f2f;
  font-weight: bold;
  margin: 4px 0;
}

.more-info.hidden {
  display: none;
}

.blinking {
  animation: blink 0.4s linear infinite alternate;
}

@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.4;
  }
}
/* ======= FORM LIÊN HỆ ======= */
.bds-contact.box {
  position: sticky;
  top: 100px;
}

.bds-contact h3 {
  color: #b20000;
  font-weight: 600;
  margin-bottom: 15px;
}

/* ======= GALLERY ======= */
.section-gallery img {
  border-radius: 10px;
}

.mySwiper2 img {
  border-radius: 8px;
  opacity: 0.85;
  transition: all 0.3s;
}

.mySwiper2 img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ==== VIDEO RESPONSIVE TỰ NHẬN TỶ LỆ ==== */
.video-bds-wrapper.vertical {
  position: relative;
  width: 100%;
  max-width: 400px; /* Giới hạn chiều rộng tối đa, tùy chọn */
  margin: 0 auto;
}

.video-bds-wrapper.vertical .video-bds-container {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 tỷ lệ dọc */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.video-bds-wrapper.vertical iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Giới hạn tiêu đề 1 dòng */
.bds-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical; /* Bắt buộc để clamp hoạt động */
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.4;
  min-height: 2.8em; /* giữ chiều cao ổn định cho layout */
  margin-top: 16px;
}

.bds-location {
  display: -webkit-box !important;
  -webkit-line-clamp: 1; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical; /* Bắt buộc để clamp hoạt động */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.bds-title a:hover {
  color: var(--primary-color, #0073aa);
}

/* Style cho thông tin bất động sản */
.bds-meta {
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

.bds-meta > div {
  margin-top: 3px;
}

.bds-price {
  color: #e63946;
  font-weight: bold;
}

/* Video Shorts (9:16) */
.video-bds-wrapper.vertical {
  position: relative;
  width: 100%;
  /* padding-top: 177.78%; */
  overflow: hidden;
  border-radius: 10px;
}

.video-bds-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Responsive cho màn nhỏ */
@media (max-width: 768px) {
  .video-bds-wrapper.vertical {
    max-width: 100%;
    padding: 0 10px;
  }
}
/* Responsive cho màn rất nhỏ (mobile hẹp) */
@media (max-width: 480px) {
  .video-bds-wrapper.vertical .video-bds-container {
    border-radius: 8px;
    box-shadow: none;
  }
}
/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .bds-info h1 {
    font-size: 22px;
  }
  .bds-table td:first-child {
    width: 40%;
  }
}
.bds-meta-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #444;
}

.bds-meta-highlight i {
  color: #fcb900;
  margin-right: 6px;
}

button.faq-question {
  margin: 0 !important;
}

.bds-video-list .swiper-slide {
  width: auto;
}

/* Desktop grid */
@media (min-width: 768px) {
  .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
  }
  .swiper-slide {
    width: initial !important;
    flex: 0 0 50%;
  } /* chia 2 cột */
}
/* Nếu cols thay đổi linh hoạt -> dùng class đã render PHP */
@media (min-width: 768px) {
  .desktop-col-6 {
    flex: 0 0 50%;
  }
  .desktop-col-4 {
    flex: 0 0 33.333%;
  }
  .desktop-col-3 {
    flex: 0 0 25%;
  }
}
/* ===== Lead Form – Professional & Senior Friendly ===== */
.sc-popup {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
}

.sc-popup.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.sc-popup.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sc-interest-form {
  max-width: 420px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sc-interest-form > div {
  margin-bottom: 16px;
}

.sc-interest-form input,
.sc-interest-form select,
.sc-interest-form textarea {
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
}

.sc-interest-form textarea {
  min-height: 90px;
  resize: vertical;
}

/* Focus – nhẹ, dễ chịu */
.sc-interest-form input:focus,
.sc-interest-form select:focus,
.sc-interest-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Placeholder rõ ràng */
.sc-interest-form input::placeholder,
.sc-interest-form textarea::placeholder {
  color: #9ca3af;
}

/* Button */
.sc-interest-form button {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.sc-interest-form button:hover {
  background: #1e40af;
}

/* Mobile friendly */
@media (max-width: 480px) {
  .sc-interest-form {
    padding: 20px;
  }
  .sc-interest-form input,
  .sc-interest-form select,
  .sc-interest-form textarea {
    font-size: 16px;
  }
}
