/* ==========================================================================
   UPROPERTY. SINGLE PROPERTY PREMIUM DESIGN
   ========================================================================== */

/* Wrapper & Global Spacing di Halaman Detail */
.single-property-page {
  padding-top: 40px; /* Memberikan ruang napas agar tidak terpotong header solid */
  background-color: #ffffff;
  color: #111111;
}

/* --------------------------------------------------------------------------
   PROPERTY HEADER
-------------------------------------------------------------------------- */

.property-detail-header {
  margin-bottom: 50px;
}

.property-breadcrumb {
  margin-bottom: 28px;
  font-size: 14px;
  color: #777;
}

.property-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.property-breadcrumb span {
  margin: 0 8px;
}

.header-top {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 60px;
}

.header-left {
  flex: 1;

  min-width: 0;
}

.header-right {
  flex-shrink: 0;

  text-align: right;
}

.property-title {
  font-size: 52px;

  font-weight: 700;

  line-height: 1.08;

  letter-spacing: -1px;

  text-transform: uppercase;

  margin: 0 0 18px;
}

.property-detail-price {
  font-size: 52px;

  font-weight: 700;

  line-height: 1;

  margin-top: 8px;
}

.property-badges {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 16px;
}

.property-badge {
  padding: 8px 16px;

  border: 1px solid #ddd;

  border-radius: 999px;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 1px;

  text-transform: uppercase;

  background: #fff;
}

.property-location {
  font-size: 17px;

  color: #666;
}

@media (max-width: 991px) {
  .header-top {
    flex-direction: column;

    gap: 25px;
  }

  .header-right {
    text-align: left;
  }

  .property-title {
    font-size: 36px;
  }

  .property-detail-price {
    font-size: 38px;
  }
}
/* --------------------------------------------------------------------------
   2. HERO VISUAL GALERI
   -------------------------------------------------------------------------- */
.property-gallery-wrapper {
  position: relative;
  margin-bottom: 50px;
}

.property-gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 15px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: clamp(420px, 60vh, 650px);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-side {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  height: clamp(420px, 60vh, 650px);
}

.gallery-thumb {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-expand-btn {
  position: absolute;
  top: 15px;
  right: 15px;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  border: 0;
  border-radius: 10px;

  padding: 10px 16px;

  cursor: pointer;
  z-index: 20;
}

.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #111;
  color: #fff;

  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
}

.property-gallery-slider {
  display: none;
}

@media (max-width: 991px) {
  .property-gallery-hero {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: 450px;
  }

  .gallery-side {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .gallery-thumb {
    height: 90px;
  }
}

/* --------------------------------------------------------------------------
   3. MAIN SPLIT LAYOUT (70:30)
   -------------------------------------------------------------------------- */
.property-split-layout {
  display: grid;
  grid-template-columns: 1.9fr 1.1fr; /* Pembagian rasio layout */
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 80px;
}

/* --- KOLOM KIRI: CONTENT AREA --- */
.property-main-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Grid Spesifikasi Singkat */
.property-spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  background: #fcfcfc;
  padding: 25px;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
}

.property-spec-grid .spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #eeeeee;
}

.property-spec-grid .spec-item:last-child {
  border-right: none;
}

.property-spec-grid .spec-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #999999;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 600;
}

.property-spec-grid .spec-value {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}

/* Tipografi Konten (Deskripsi & Peta) */
.content-area-style h2,
.property-map-section h2,
.property-nearby h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111111;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 12px;
}

/* Garis bawah tipis aksen di setiap heading seksi */
.content-area-style h2::after,
.property-map-section h2::after,
.property-nearby h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #bc9c22;
}

.property-description-box {
  line-height: 1.8;
  color: #444444;
  font-size: 15px;
}

.property-description-box p {
  margin-bottom: 20px;
}

/* Placeholder Map Peta */
#re-single-property-map {
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. KOLOM KANAN: STICKY AGENT SIDEBAR
   -------------------------------------------------------------------------- */
.property-sidebar-content {
  position: relative;
}

.agent-sticky-contact-widget {
  position: sticky;
  top: 120px; /* Menempel aman di bawah header sticky Anda saat di-scroll */
  background: #ffffff;
  border: 1px solid #e8e8e8;
  padding: 35px;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.agent-sticky-contact-widget:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.agent-sticky-contact-widget h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: #111111;
  letter-spacing: -0.01em;
}

/* Widget Profil Agen */
.agent-widget-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.agent-widget-name {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 4px 0;
}

.agent-widget-title {
  font-size: 12px;
  color: #888888;
  margin: 0;
}

/* Tombol CTAs Tindakan Agen */
.agent-widget-actions .btn-primary,
.agent-widget-actions .btn-secondary-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* CTA WhatsApp (Warna Hijau Elegant / Hitam Murni) */
.agent-widget-actions .btn-primary {
  background-color: #111111; /* Tetap monochrome premium */
  color: #ffffff !important;
  border: 1px solid #111111;
}

.agent-widget-actions .btn-primary:hover {
  background-color: #bc9c22; /* Berubah emas saat diarahkan */
  border-color: #bc9c22;
  transform: translateY(-2px);
}

/* CTA Telepon Langsung */
.agent-widget-actions .btn-secondary-outline {
  background-color: transparent;
  color: #111111 !important;
  border: 1px solid #111111;
}

.agent-widget-actions .btn-secondary-outline:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

.agent-widget-actions .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE / MOBILE OPTIMIZATION
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .property-split-layout {
    grid-template-columns: 1fr; /* Menjadi satu kolom pada tablet/mobile */
    gap: 40px;
  }

  .agent-sticky-contact-widget {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .property-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .property-detail-header .property-title {
    font-size: 28px;
  }

  .property-detail-gallery {
    height: 350px;
  }

  .property-spec-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
  }

  .property-spec-grid .spec-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .property-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-spec-grid .spec-item {
    border-right: none !important;
  }
}

.property-facts-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 30px;
}

.fact-label {
  font-weight: 600;
}

.fact-value {
  color: #666;
}

.property-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.property-features-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.agent-widget-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-widget-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-widget-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.agent-widget-meta .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.property-nearby {
  margin-top: 0px;
}

.property-nearby-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 16px;
}

.nearby-item {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 20px;

  border: 1px solid #ececec;

  border-radius: 10px;

  background: #fff;
}

.nearby-name {
  font-weight: 600;
}

.nearby-distance {
  color: #666;

  font-size: 14px;
}
