/* header */
.fe-header .box-icon .icon {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05); 
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease; 
}

.fe-header .box-icon .icon:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}

.fe-header .box-icon .icon svg,
.fe-header .box-icon .icon img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.fe-header .box-icon .icon:hover svg,
.fe-header .box-icon .icon:hover img {
  transform: scale(1.15);
}

.fe-header .header-top {
    border-bottom: 1px solid red;
}

.navbar-nav .nav-link {
  white-space: nowrap;   
  display: inline-flex;  
  align-items: center;   
  justify-content: center;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;       
  justify-content: center;
  gap: 10px;             
}

.navbar-nav .nav-link {
  white-space: nowrap;   
  display: inline-flex;  
  align-items: center;   
  line-height: 1.2; 
  padding: 9px;
}

/* Cả menu căn giữa */
.navbar-nav {
  display: flex;
  flex-wrap: wrap;       
  justify-content: center;
  gap: 10px;             
  row-gap: 4px;
}

.marquee{
    max-width: 50%;
}

/*  */
.link-is-scroll{
  cursor: pointer;
}

.link_chat_social img {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 8px;
}

/* bộ lọc */
.filter-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  align-items: stretch;
}

/* Filter chính */
.filter-section {
  flex: 1;
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.filter-tabs {
  display: flex;
  margin-bottom: 20px;
}

.tab-button {
  background-color: #f7f7f7;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
  background-color: #0282a5;
  color: #fff;
}

.tab-button.active {
  background-color: #0282a5;
  color: #fff;
  font-weight: bold;
}

/* Thanh tìm kiếm */
.search-bar {
  display: flex;
  background-color: #4a4a4a;
  padding: 10px;
  border-radius: 8px;
  align-items: center;
  margin-bottom: 15px;
}

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
}

.search-input::placeholder {
  color: #aaa;
}

.search-button {
  background-color: #d9534f;
  color: #fff;
  border: none;
  padding: 10px 25px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #c9302c;
}

/* Bộ lọc tùy chọn */
.filter-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.filter-dropdown {
  flex: 1;
  position: relative;
}

.filter-dropdown.large-dropdown {
  flex: 1.5;
}

.dropdown-button {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #555;
  transition: border-color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-button:hover {
  border-color: #aaa;
}

.dropdown-button::after {
  content: "▼";
  font-size: 10px;
  margin-left: 8px;
  float: right;
  line-height: 1;
}

/* Menu xổ xuống */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  margin-top: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.filter-dropdown.show .dropdown-content {
  display: block;
}

/* Ảnh bên phải */
.filter-banner {
  flex: 0 0 350px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.filter-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==== Responsive ==== */

@media (max-width: 1200px) {
  .filter-banner {
    display: none;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .filter-wrapper {
    flex-direction: column;
  }

  .filter-banner {
    flex: unset;
    width: 100%;
    height: 250px;
  }
}

/* Mobile nhỏ */
@media (max-width: 768px) {
  .filter-options {
    flex-wrap: wrap;
  }

  .filter-dropdown {
    flex: 1 1 45%;
    margin-bottom: 10px;
  }
}

/* sổ đỏ */
.red-book-check-section {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 40px 20px;
  background-color: #f0f4ef;
}

.section-title {
  color: #3b7431;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.search-form-container {
  background-color: #3b7431;
  border-radius: 8px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-input,
.form-select {
  padding: 12px 15px;
  border: 1px solid #5a9e52;
  border-radius: 5px;
  background-color: #5a9e52;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
}

.form-input::placeholder {
  color: #c9e0c6;
}

.form-input:focus,
.form-select:focus {
  background-color: #69a762;
  border-color: #69a762;
}

.form-dropdown {
  position: relative;
  min-width: 150px;
}

.form-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-position: right 10px center;
  cursor: pointer;
}

.form-dropdown::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translateY(-50%);

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}

.radio-group {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 1em;
  gap: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.radio-group input[type="radio"] {
  accent-color: #c9e0c6;
}

.submit-button {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  background-color: #60a556;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.submit-button:hover {
  background-color: #62965c;
}

/* Responsive styles */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
  }

  .form-input,
  .form-select,
  .radio-group,
  .submit-button {
    width: 100%;
    margin: 5px 0;
  }

  .search-form-container {
    padding: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .search-form {
    justify-content: space-between;
  }

  .form-input,
  .form-select,
  .submit-button {
    flex-grow: 1;
    min-width: 120px;
  }

  .radio-group {
    flex-grow: 1;
    min-width: 150px;
  }
}

/* ký gửi */
.rs-main-section {
  padding: 40px 15px;
  display: flex;
  justify-content: center;
  background: #26694c;
}

.rs-main-container {
  max-width: 1200px;
  width: 95%;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  border-radius: 6px;
}

.rs-header {
  color: #fff;
  text-align: center;
  padding: 1.6rem 1rem 0.6rem;
}
.rs-header h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}
.rs-header p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.rs-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.rs-form-section,
.rs-video-section {
  flex: 1;
  padding: 1.5rem;
}
.rs-form-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.rs-form-group {
  margin-bottom: 1rem;
}
.rs-form-group input,
.rs-form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-size: 1rem;
  transition: box-shadow 0.3s;
  border: 1px solid #2e2e2e;
}
.rs-form-group input::placeholder {
  color: #666;
  opacity: 0.8;
}
.rs-form-group input:focus,
.rs-form-group select:focus {
  background-color: #dadada;
  outline: none;
  box-shadow: 0 0 0 3px #1a4f1a55;
}

.rs-form-row {
  display: flex;
  gap: 1rem;
}
.rs-form-row .rs-form-group {
  flex: 1;
}

.rs-submit-btn {
  width: 100%;
  padding: 1rem;
  background: #23ab75;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid #2e2e2e;
}
.rs-submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.rs-video-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
.rs-video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 12px solid #23ab75;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.3s;
}
.play-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Modal */
.rs-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}
.rs-modal-content {
  width: 90%;
  max-width: 800px;
  position: relative;
  border-radius: 12px;
}
.rs-modal-content video {
  width: 100%;
  border-radius: 10px;
}
.rs-close-btn {
  position: absolute;
  top: -18px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.rs-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (min-width: 768px) {
  .rs-main-section {
    padding: 20px;
  }
  .rs-content-wrapper {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .rs-main-section {
    padding: 28px 10px;
  }

  .rs-main-container {
    padding: 0;
  }

  .rs-form-section {
    padding: 0;
  }
  .rs-video-section {
    padding: 0;
  }

  .rs-header {
    padding: 0 1rem 0.6rem;
  }
}

/* bds - list */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #495057;
  transition: all 0.3s ease;
}

.link-hover:hover .icon-circle {
  background-color: #0282A5;
  color: #fff;
}

.link-hover:hover {
  color: #0282A5 !important;
}

.breadcrumb-container .breadcrumb {
  background: none;
  margin-bottom: 0;
}

.breadcrumb-separator {
  margin: 0 0.4rem;
  font-weight: 600;
}

.breadcrumb-item.active a {
  color: #6b7280 !important;
  font-weight: 600;
}

#totalResults{
  color: #0282A5;
}

/*  */
.re-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.re-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.re-img-wrap{
  padding-bottom: 0!important;
}

.re-main-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2%;
}

.re-thumb {
  width: 23%;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.re-thumb:hover {
  transform: scale(1.05);
  border: 2px solid #10B981;
}

.re-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.re-profile:hover {
  transform: scale(1.1);
}

.re-btn-gold {
  background-color: #DCA54A;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.re-btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 165, 74, 0.4);
  color: #fff;
}

.re-btn-green {
  background: linear-gradient(to right, #10B981, #059669);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.re-btn-green:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  color: #fff;
}

/* bđs item */

.bds-section {
  background-color: #f8f9fa;
  padding: 20px;
}

.bds-container {
  max-width: 1280px;
  margin: 0 auto;
}

.bds-header {
  text-align: center;
  margin-bottom: 15px;
}

.bds-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.bds-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0 10px;
}

.bds-divider span {
  background-color: #0282a5;
  width: 160px;
  height: 2px;
}

.intro-text p {
  color: #6b7280;
  font-style: italic;
}

.bds-filter {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
}

.bds-btn-wrap {
  text-align: center;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.bds-btn,
.btn-viewAll {
  display: inline-block;
  padding: 7px 20px;
  background-color: #059669;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bds-btn:hover,
.btn-viewAll:hover {
  opacity: 0.8;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-viewAll {
  width: 180px;
  padding: 12px 0;
}

/* item */
.bds-item {
  padding: 0 10px;
  cursor: pointer;
}

.bds-card {
  background-color: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.bds-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.bds-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 1rem 0;
}

.bds-thumbs img {
  cursor: pointer;
  flex-grow: 1;
  width: calc(25% - 0.375rem);
  height: 62px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.bds-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bds-title {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.bds-desc {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.bds-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  width: 100%;
}

.bds-price {
  background-color: #f8644d;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.bds-area,
.bds-type {
  font-size: 0.875rem;
  color: #4b5563;
}
.bds-area i {
  margin-right: 0.25rem;
  color: #3b82f6;
}
.bds-type i {
  margin-right: 0.25rem;
  color: #22c55e;
}

.bds-location {
  margin-top: 0.5rem;
}
.bds-old-location,
.bds-new-location {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}
.bds-old-location {
  color: #6b7280;
  text-decoration: line-through;
}
.bds-old-location i {
  color: #f8644d;
  margin-right: 0.25rem;
}
.bds-new-location {
  color: #22c55e;
  font-weight: 500;
}
.bds-new-location i {
  margin-right: 0.25rem;
}

.bds-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  gap: 0.75rem;
}

.bds-author {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.bds-author:hover {
  transform: scale(1.1);
}

.bds-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  flex-grow: 1;
  min-width: 100px;
}
.bds-btn i {
  margin-right: 0.5rem;
}
.bds-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.call-btn {
  background-color: #dca54a;
}

.consult-btn {
  background-image: linear-gradient(to right, #10b981, #059669);
}
.consult-btn i {
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .slick-dotted.slick-slider {
    margin-bottom: 0;
  }
}

/* bđs details */
.bg-light {
  background-color: #f3f4f6 !important;
}

.min-vh-100 {
  min-height: 100vh;
}

.gap-4 {
  gap: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 0;
  border-bottom: 0;
}

.breadcrumb-item a {
  color: #6b7280;
  transition: color 0.3s;
}

.breadcrumb-item a i{
  background-color: transparent;
}

.breadcrumb-item a:hover i {
  color: white;
}

.breadcrumb-item a:hover {
  color: #0282a5;
}

.breadcrumb-item a:hover span{
  background-color: #0282a5;
}

/* Nút icon trong breadcrumb */
.icon-hover {
  background-color: #e5e7eb;
  width: 26px;
  height: 26px;
  text-align: center;
  color: #374151;
  transition: all 0.3s ease;
}

.thumbnail-image {
  width: 100px;
  height: 75px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-post-image {
  height: 200px;
}

#mainContent {
  overflow-x: hidden;
}

.main-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Ảnh thumbnails */
.thumbnail-image {
  width: 100px;
  height: 75px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-image:hover {
  transform: scale(1.05);
  border: 2px solid #0282a5;
}

/* Thanh chia màu xanh */
.divider-bar {
  background-color: #0282a5;
  width: 430px;
  height: 4px;
  border-radius: 2px;
}

/* Responsive thumbnail scroll */
#detailThumbnails::-webkit-scrollbar {
  height: 6px;
}
#detailThumbnails::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
#detailThumbnails::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-item {
  flex: 1 1 23%;
  background-color: #16a34a;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease-in-out;
  min-width: 150px;
}

@media (max-width: 768px) {
  .card-item {
    flex: 1 1 45%;
  }
}

.card-item:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 36px;
}

.card-value {
  font-size: 20px;
  font-weight: bold;
  margin-top: 8px;
}

.card-label {
  font-size: 14px;
}

.section-title {
  font-size: 1.25rem; /* tương đương text-xl */
  font-weight: 600;
  color: #1f2937; /* text-gray-800 */
}

.tabs-wrapper {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

.tab-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  padding-bottom: 0.5rem;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 2px solid transparent;
}

.tab-link:hover {
  color: #2563eb;
}

.tab-link.active {
  color: #2563eb;
  font-weight: 600;
  border-color: #2563eb;
}

/* --- Tab nội dung --- */
.tab-content {
  margin-bottom: 1.5rem;
}

/* --- Form bình luận --- */
#commentSection{
  margin-bottom: 2rem;
}

.comment-form .form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: box-shadow 0.2s ease;
}

.comment-form .form-control:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
  border-color: #2563eb;
}

/* Nút gửi */
.btn-submit {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  width: fit-content;
}

.btn-submit:hover {
  background-color: #1d4ed8;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

/* Card bài viết liên quan */
.related-post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.post-content {
  padding: 16px;
  flex-grow: 1;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.post-description {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 10px;
}

.post-info i {
  margin-right: 4px;
  color: #0282a5;
}

.post-location {
  font-size: 0.9rem;
  color: #555;
}

.post-location i {
  color: #0282a5;
  margin-right: 5px;
}

.post-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.contact-btn {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.call-btn {
  background-color: #16a34a;
  color: #fff;
}

.call-btn:hover {
  background-color: #15803d;
}

.consult-btn {
  background-color: #0282a5;
  color: #fff;
}

.consult-btn:hover {
  background-color: #036280;
}


/* --- Sidebar  --- */
#sidebarToggle {
  display: none;
  position: fixed;
  top: 78px;
  right: 24px;
  left: auto;
  z-index: 1001;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  cursor: pointer;
}
#sidebarOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 80vw;
    max-width: 340px;
    background: #fff;
    z-index: 1002;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebarToggle {
    display: block;
  }
  #sidebarOverlay.active {
    display: block;
  }
}
/* ---  mobile/tablet --- */
@media (max-width: 1024px) {
  .card-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
  }
  .card-item {
    min-width: 220px;
    flex: 0 0 auto;
  }
}

@media (max-width: 1024px) {
  .card-container {
    padding: 12px;
  }
  .card-item {
    min-width: 180px;
    padding: 12px;
  }
  .card-icon {
    font-size: 28px;
  }
  .card-value {
    font-size: 16px;
  }
  .card-label {
    font-size: 12px;
  }

  /* Post cards smaller on tablet */
  #relatedPosts > .related-post-card,
  #latestPosts > .related-post-card {
    max-width: 320px;
    padding: 12px;
  }
  #relatedPosts .related-post-image,
  #latestPosts .related-post-image {
    height: 160px;
  }
  #relatedPosts .post-thumbs img,
  #latestPosts .post-thumbs img {
    height: 40px;
  }
  #relatedPosts h2,
  #latestPosts h2 {
    font-size: 1rem;
  }
  #relatedPosts .text-sm,
  #latestPosts .text-sm {
    font-size: 0.8rem;
  }
}
@media (max-width: 640px) {
  .card-item {
    min-width: 100px;
    padding: 10px;
  }
  .card-icon {
    font-size: 24px;
  }
  .card-value {
    font-size: 14px;
  }
  .card-label {
    font-size: 12px;
  }

  /* Post cards smaller on mobile */
  #relatedPosts > .related-post-card,
  #latestPosts > .related-post-card {
    max-width: 280px;
    padding: 10px;
  }
  #relatedPosts .related-post-image,
  #latestPosts .related-post-image {
    height: 140px;
  }
  #relatedPosts .post-thumbs img,
  #latestPosts .post-thumbs img {
    height: 36px;
  }
  #relatedPosts h2,
  #latestPosts h2 {
    font-size: 0.95rem;
  }
  #relatedPosts .text-sm,
  #latestPosts .text-sm {
    font-size: 0.75rem;
  }
}

/* post */
.related-post-card {
  background: #fff;
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  flex-grow: 1;
  transition: transform 0.3s ease;
}
.related-post-card:hover {
  transform: scale(1.05);
}

.related-post-image-wrap {
  margin-bottom: 16px;
}
.related-post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.post-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.post-thumbs img {
  width: 23%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}
@media (min-width: 1024px) {
  .post-thumbs img {
    width: 24%;
    height: 64px;
  }
}
.post-thumbs img.active {
  border-color: #10b981;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}
.post-description {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 12px;
}
.post-price {
  background: #f8644d;
  color: #fff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
}
.post-area {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}
.post-area i {
  margin-right: 4px;
  color: #3b82f6;
}
.post-type {
  font-size: 14px;
  color: #666;
}
.post-type i {
  margin-right: 4px;
  color: #10b981;
}

.post-location {
  margin-top: 8px;
}
.post-location .old-location {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  text-decoration: line-through;
}
.post-location .old-location i {
  margin-right: 4px;
  color: #f8644d;
}
.post-location .new-location {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #059669;
}
.post-location .new-location i {
  margin-right: 4px;
}

.post-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  flex-grow: 1;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border: none;
  min-width: 140px;
}
.contact-btn:hover {
  opacity: 0.8;
}
.call-btn {
  background: #dca54a;
}
.consult-btn {
  background: linear-gradient(to right, #10b981, #059669);
}
.contact-btn i {
  margin-right: 8px;
}


/* --- Toggle Button --- */
#sidebarToggle {
  display: none;
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 1001;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  cursor: pointer;
}

/* Overlay mờ */
#sidebarOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Sidebar chung */
#sidebar {
  background: transparent;
  max-width: 20rem;
  margin-left: 2%;
  padding: 0;
  display: flex;
  gap: 36px;
}

/* Hiệu ứng hover cho nút */
#sidebarPhoneLink:hover {
  background-color: #15803D !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

#sidebarZaloLink:hover {
  background-color: #1D4ED8 !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Responsive - sidebar dạng trượt */
@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 340px;
    background: #fff;
    z-index: 1002;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #sidebarToggle {
    display: block;
  }

  #sidebarOverlay.active {
    display: block;
  }
}

/* Giữ ảnh không méo */
.object-fit-cover {
  object-fit: cover;
}


/* --- Hộp bộ lọc --- */
.filter-box {
  border-radius: 0.75rem;
}

/* --- Select custom --- */
.filter-select {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
}

.filter-select:focus {
  box-shadow: 0 0 0 2px #0ea5e9;
  border-color: #0ea5e9;
  outline: none;
}

/* --- Nút tìm kiếm --- */
.btn-search {
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-search:hover {
  transform: scale(1.05);
  background-color: #16a34a;
  color: #fff;
}

.category-link {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.category-link:hover {
  color: #6b7280;
}

/* Menu hành chính */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.menu-header:hover {
  background-color: #f3f4f6;
}
.menu-header i {
  color: #9ca3af;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.submenu {
  display: none;
  margin-top: 0.25rem;
}

.submenu.open {
  display: block;
}

.submenu-link {
  display: block;
  color: #000;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  border-radius: 0.4rem;
  transition: background 0.3s ease;
}
.submenu-link:hover {
  background-color: #f3f4f6;
}

/* Icon xoay khi mở */
.menu-header.active i {
  transform: rotate(180deg);
}




/* footer4 */
.bg-primary-overlay {
  background-color: rgba(2, 130, 165, 0.5);
}

.footer-4 {
    position: relative;
    padding: 24px 0 0;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    border-top: 3px solid var(--primary);
}
@media (min-width: 992px) {
    .footer-4 {
        padding: 32px 0 0;
        border-top-width: 4px;
    }
}
.footer-4 a:hover {
    color: #fff;
}
.footer-4 .bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
}
.footer-4 .bg:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
}
.footer-4 .bg-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
}
.footer-4 .container {
    position: relative;
    z-index: 1;
}
.footer-4 .logo-f img {
    max-width: 100%;
}
.footer-4 .ttl-f {
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-4 .ttl-f::before {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: #fff;
    content: "";
    display: block;
    width: 50px;
}
.footer-4 .images-bct {
    padding-right: 20px;
    padding-left: 8px;
    max-width: 140px;
}
@media (min-width: 640px) {
    .footer-4 .images-bct {
        max-width: 190px;
    }
}
.footer-4 address {
    display: block;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 0;
    font-size: 12px;
    font-style: normal;
    padding: 12px 16px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 640px) {
    .footer-4 address br {
        display: none;
    }
}
@media (max-width: 640px) {
    .footer-4 .list-social {
        margin-right: -12px;
    }
}
.footer-4 .menu-f li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}
.footer-4 .ttl-sub {
    overflow: hidden;
    border-bottom: 1px solid var(--primary);
}
.footer-4 .ttl-sub span {
    display: inline-block;
    background-color: var(--primary);
    padding: 8px 12px;
    position: relative;
}
.footer-4 .ttl-sub span:before {
    position: absolute;
    top: -1px;
    bottom: -1px;
    right: -16px;
    width: 80px;
    z-index: -1;
    content: "";
    background-color: var(--primary);
    -webkit-transform: skew(24deg);
    transform: skew(24deg);
}

.footer-4 .icon-social{
    border-radius: 8px;
}

.footer-4 .icon-social:hover{
    opacity:0.8 ;
}


/* footer5 */
.bg-primary-overlay {
  background-color: rgba(2, 130, 165, 0.5);
}

.footer-5{
  position: relative;
  padding: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1;
  border-top: 3px solid var(--primary);
}
@media (min-width: 992px) {
  .footer-5{
    padding: 32px 0 0;
    border-top-width: 4px;
  }
}
.footer-5 a:hover {
  color: #fff;
}
.footer-5 .bg{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
}
.footer-5 .bg:before{
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.footer-5 .bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: -2;
}
.footer-5 .container{
  position: relative;
  z-index: 1;
}
.footer-5 .logo-f img {
  max-width: 100%;
}
.footer-5 .ttl-f {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-5 .ttl-f::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background-color: #fff;
  content: "";
  display: block;
  width: 50px;
}
.footer-5 .images-bct{
  padding-right: 20px;
  padding-left: 8px;
  max-width: 140px;
}
@media (min-width: 640px) {
  .footer-5 .images-bct {
    max-width: 190px;
  }
}
.footer-5 address {
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-bottom: 0;
  font-size: 12px;
  font-style: normal;
  padding: 12px 16px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 640px) {
  .footer-5 address br{
    display: none;
  }
}
@media (max-width: 640px) {
  .footer-5 .list-social{
    margin-right: -12px;
  }
}
.footer-5 .menu-f li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}
.footer-5 .ttl-sub{
  overflow: hidden;
  border-bottom: 1px solid var(--primary);
}
.footer-5 .ttl-sub span {
  display: inline-block;
  background-color: var(--primary);
  padding: 8px 12px;
  position: relative;
}
.footer-5 .ttl-sub span:before{
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: -16px;
  width: 80px;
  z-index: -1;
  content: "";
  background-color: var(--primary);
  -webkit-transform: skew(24deg);
          transform: skew(24deg);
}
.footer-5 .btn-submit-f{
  padding: 8px 20px;
  border-radius: 4px;
}

.footer-5 .map-container iframe {
  border-radius: 8px;
  width: 100%;
  height: 260px;
}

.footer-5 .icon-social{
    border-radius: 8px;
}

.footer-5 .icon-social:hover{
    opacity:0.8 ;
}

/* footer 6 */
.footer-6 {
  position: relative;
  padding: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1;
  border-top: 3px solid var(--primary);
}
@media (min-width: 992px) {
  .footer-6 {
    padding: 32px 0 0;
    border-top-width: 4px;
  }
}
.footer-6 a:hover {
  color: #fff;
}
.footer-6 .bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
}
.footer-6 .bg:before {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.footer-6 .bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: -2;
}
.footer-6 .container {
  position: relative;
  z-index: 1;
}
.footer-6 .logo-f img {
  max-width: 100%;
}
.footer-6 .ttl-f {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-6 .ttl-f::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background-color: #fff;
  content: "";
  display: block;
  width: 50px;
}
.footer-6 .images-bct {
  padding-right: 20px;
  padding-left: 8px;
  max-width: 140px;
}
@media (min-width: 640px) {
  .footer-6 .images-bct {
    max-width: 190px;
  }
}
.footer-6 address {
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-bottom: 0;
  font-size: 12px;
  font-style: normal;
  padding: 12px 16px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 640px) {
  .footer-6 address br {
    display: none;
  }
}
@media (max-width: 640px) {
  .footer-6 .list-social {
    margin-right: -12px;
  }
}
.footer-6 .menu-f li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}
.footer-6 .ttl-sub {
  overflow: hidden;
  border-bottom: 1px solid var(--primary);
}
.footer-6 .ttl-sub span {
  display: inline-block;
  background-color: var(--primary);
  padding: 8px 12px;
  position: relative;
}
.footer-6 .ttl-sub span:before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: -16px;
  width: 80px;
  z-index: -1;
  content: "";
  background-color: var(--primary);
  -webkit-transform: skew(24deg);
          transform: skew(24deg);
}
.footer-6 .btn-submit-f {
  padding: 8px 20px;
  border-radius: 4px;
}

.footer-6 .icon-social{
    border-radius: 8px;
}

.footer-6 .icon-social:hover{
    opacity:0.8 ;
}
