/* real-estate-detail.css */

.real-estate-detail {
  font-family: 'Inter', sans-serif;
  color: #1E293B;
  line-height: 1.6;
}

.re-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
  color: white;
  text-align: center;
}

.re-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.re-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding-left: 2rem;
}

.re-location {
  font-size: 16px;
  margin-top: 8px;
}

.re-badges {
  margin-top: 12px;
}

.re-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
}

.re-badge.orange {
  background: #F97316;
  color: white;
}

.re-badge.green {
  background: #16A34A;
  color: white;
}
.re-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.re-section {
  padding: 60px 20px;
  background: none;
}

.re-overview-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.re-overview-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.re-overview, .re-gallery {
  flex: 1 1 48%;
  min-width: 300px;
  box-sizing: border-box;
}

.re-gallery h2 {
  margin-top: 0;
}

.re-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.re-gallery-item {
  position: relative;
  width: 100%;
  height: 192px; /* hoặc bất kỳ chiều cao cố định nào bạn muốn */
  overflow: hidden;
  border-radius: 8px;
}

.re-gallery-item img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  top: 0;
  left: 0;
}

.re-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.re-meta-box {
  font-size: 15px;
}

.re-meta-box strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.re-buttons {
  margin-top: 20px;
}

.re-buttons .btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 10px;
  transition: all 0.3s ease;
}

/* Nút nền xanh */
.btn.blue {
  background: #1E3A8A;
  color: white;
}

/* Hover: nền trắng, chữ xanh, viền xanh */
.btn.blue:hover {
  background: white;
  color: #1E3A8A;
  border: 1px solid #1E3A8A;
}

/* Nút viền xanh */
.btn.outline {
  border: 1px solid #1E3A8A;
  color: #1E3A8A;
  background: transparent;
}

/* Hover: nền xanh, chữ trắng */
.btn.outline:hover {
  background: #1E3A8A;
  color: white;
}


.re-units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.re-unit-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.re-unit-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.re-unit-card .re-price {
  color: #1E40AF;
  font-weight: 600;
  margin-bottom: 6px;
}

.re-unit-card .re-meta {
  font-size: 14px;
  color: #6B7280;
}

.re-av {
  font-size: 14px;
  color: #6B7280;
}

.re-investment {
  margin-top: 20px;
  border: 1px solid #E5E7EB;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.re-section--features-wrapper {
  margin-top: 40px;
}


.re-section--features-wrapper .re-features-box {
  flex: 1 1 50%;
  border: 1px solid #E5E5E5;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  min-width: 280px;
}

.re-section--features-wrapper-inner {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.re-section--features-wrapper-inner .re-features-box {
  flex: 1 1 48%;
  box-sizing: border-box;
}


.re-features-box h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.re-features-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.re-features-box li {
  margin-bottom: 10px;
  color: #1E293B;
  font-size: 15px;
}

.re-features-box i {
  margin-right: 8px;
  font-size: 12px;
}
.re-section--unit-types {
  background-color: #FAFAFA;
}

.re-section--investment-info {
  background-color: #FAFAFA;
}

/* Màu icon riêng cho từng box */
.re-section--features-wrapper .re-features-box:first-child i {
  color: #D97706; /* Key Features */
}

.re-section--features-wrapper .re-features-box:last-child i {
  color: #1E3A8A; /* Premium Amenities */
}

.text-center {
  text-align: center;
}

.re-section--features-wrapper .re-features-box {
    flex: 1 1 48%;
    border: 1px solid #E5E5E5;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    min-width: 300px;
}
.re-gallery-item img {
  transition: transform 0.3s ease;
}

.re-gallery-item:hover img {
  transform: scale(1.05);
}
.re-gallery-swiper-wrapper {
  margin-top: 40px;
  position: relative;
}
/* Đưa nút close lên góc trên phải */
#lightbox .lb-close {
  top: 10px !important;
  bottom: auto !important;
  right: 10px !important;
  position: absolute !important;
}
.re-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.re-investment-col {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}
.re-gallery h2{
  display: none;
}

.re-extra-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.re-extra-gallery-item {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.re-extra-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.re-extra-gallery-item img {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.re-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.re-extra-gallery-item:hover img {
  transform: scale(1.05);
}

.re-extra-gallery-item:hover .re-hover-overlay {
  opacity: 1;
}

.re-gallery-load-wrapper {
  display: flex;
  justify-content: center; /* Căn giữa theo chiều ngang */
  margin-top: 20px;
}

#load-more-gallery{
  padding: 12px 24px;
  background-color: #1E3A8A;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#load-more-gallery:hover {
  background-color: #163172;
}
#collapse-gallery{
  padding: 12px 24px;
  background-color: #1E3A8A;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#collapse-gallery:hover {
  background-color: #163172;
}


@media (max-width: 768px) {
  .re-overview-gallery,
  .re-section--features-wrapper {
    flex-direction: column;
  }

  .re-units {
    grid-template-columns: 1fr;
  }

  .re-meta-grid {
    grid-template-columns: 1fr;
  }
  .re-section--features-wrapper-inner {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .re-extra-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .re-extra-gallery-grid {
    grid-template-columns: 1fr;
  }
}
