/* ==========================================================================
   ADVANCED ARCHIVE: MAPS & 2-COLUMN LISTING
   ========================================================================== */

.archive-hero-split {
  background-color: #ffffff;
  padding: 40px 0 40px 0; /* Padding atas lebih besar untuk header solid */
  margin-top: 0;
  height: auto;
}

.hero-split-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Peta sedikit lebih dominan lebarnya */
  gap: 60px;
  align-items: center;
}

/* SISI KIRI: TYPOGRAPHY */
.hero-left-content .sub-title {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #bc9c22;
  font-weight: 800;
  margin-bottom: 20px;
  display: block;
}

.hero-left-content .main-title {
  font-size: 3.8rem;
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-left-content .main-title span {
  color: #bc9c22;
}

.hero-left-content .intro-description {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 480px;
}

/* SISI KANAN: COMPACT MAP */
.property-map-container-compact {
  height: 450px;
  width: 100%;
  position: relative;
  border: 1px solid #111111; /* Bingkai tipis hitam arang */
  background: #f9f9f9;
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.03); /* Dekorasi bayangan blok */
}

#property-main-map {
  height: 100%;
  width: 100%;
}

.map-label-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #111;
  color: #fff;
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1000;
}

/* Tambahan Stat Item untuk mengisi kekosongan */
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.stat-item span {
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.1em;
}

/* RESPONSIVE: Tumpuk secara vertikal di mobile */
@media (max-width: 992px) {
  .hero-split-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-left-content .main-title {
    font-size: 2.8rem;
  }
  .property-map-container-compact {
    height: 350px;
  }
}

/* Animasi Halus */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .archive-hero-intro {
    padding: 60px 20px 40px 20px;
  }
  .archive-hero-intro .main-title {
    font-size: 2.5rem;
  }
}

/* --- CUSTOM MARKER PRICE BADGE --- */
.fieldo-custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-price-badge {
  background-color: #111111; /* Hitam pekat solid */
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Efek Denyut Halus di belakang marker untuk menarik perhatian */
.marker-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  animation: markerPulseAnim 2s infinite ease-in-out;
  z-index: -1;
}

@keyframes markerPulseAnim {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Hover effect pada marker */
.fieldo-custom-marker:hover .marker-price-badge {
  background-color: #444; /* Berubah emas saat kursor mendekat */
  transform: scale(1.05) translateY(-2px);
}

/* --- DESIGN POPUP KARTU INTERIOR --- */
.fieldo-leaflet-popup .leaflet-popup-content-wrapper {
  background: #ffffff;
  border-radius: 0px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #111111;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.fieldo-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: 160px !important; /* Memaksa lebar konten agar tetap mini */
}

.map-popup-card a {
  text-decoration: none;
  color: #111111;
  display: block;
}

/* Tinggi foto diperkecil agar proporsional */
.popup-thumb {
  width: 100%;
  height: 90px;
  background-position: center;
  background-size: cover;
  background-color: #eee;
}

/* Area teks dibuat lebih rapat (tight padding) */
.popup-info {
  padding: 10px;
}

.popup-info h4 {
  margin: 0 0 3px 0;
  font-size: 11px; /* Ukuran font judul diperkecil */
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap; /* Mencegah judul merusak baris */
  overflow: hidden;
  text-overflow: ellipsis; /* Otomatis memotong teks panjang dengan (...) */
}

.popup-price {
  font-size: 10px; /* Ukuran font harga diperkecil */
  font-weight: 800;
  color: #bc9c22;
  display: block;
}

/* Tombol View Detail yang Lebih Tipis & Rapi */
.popup-view-btn {
  margin-top: 8px;
  padding: 5px 0;
  background: #111111;
  color: #ffffff;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.map-popup-card:hover .popup-view-btn {
  background: #bc9c22;
}

/* Hilangkan tombol "X" close bawaan Leaflet agar clean */
.fieldo-leaflet-popup .leaflet-popup-close-button {
  display: none;
}
/* ==========================================================================
   FIELD LUXURY ADVANCED FILTER (REF: CAPTURE SEARCH)
   ========================================================================== */

/* 1. Beri background seksi sedikit abu-abu agar kontainer form putih bisa mencuat keluar */
.advanced-filter-section {
  background-color: #f5f5f5; /* Abu-abu muda khas galeri seni */
  padding: 60px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 100;
}

/* 2. Jadikan form sebagai satu kesatuan "Kapsul Melayang" yang tebal */
.fieldo-interactive-filter {
  background: #ffffff; /* Putih bersih, kontras di atas bg #f5f5f5 */
  padding: 30px;
  border: 1px solid #111111; /* Garis hitam arang tegas */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Shadow dalam agar terlihat mengapung */
}

.filter-main-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto; /* Lebar keyword sedikit dominan */
  gap: 25px;
  align-items: center;
}

/* 3. Pertegas Gaya Item Filter (Monochrome Matte) */
.filter-item.has-icon {
  position: relative;
  border-bottom: 2px solid #111111; /* Garis bawah hitam pekat, bukan abu-abu lagi */
  transition: all 0.3s ease;
}

/* Ikon dirubah ke hitam arang agar masuk tema monochrome kit */
.filter-item.has-icon i {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #111111;
  font-size: 15px;
}

.filter-item.has-icon input,
.filter-item.has-icon select {
  width: 100%;
  border: none;
  padding: 15px 10px 15px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  outline: none;
  background: transparent;
  color: #111111;
  appearance: none;
  cursor: pointer;
}

/* Efek interaktif saat kolom diklik/diisi */
.filter-item.has-icon:focus-within {
  border-bottom-color: #888888; /* Berubah abu-abu saat aktif */
  transform: translateY(-1px);
}

/* 4. Tombol Aksi Kontras Tinggi */
.filter-actions {
  display: flex;
  gap: 12px;
}

/* Tombol Advanced (Gaya Outline Maskulin) */
.btn-outline {
  background: transparent;
  border: 2px solid #111111;
  color: #111111;
  padding: 0 25px;
  height: 52px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- EFEK HOVER NORMAL (Saat Belum Aktif / Setelah Di-close) --- */
.btn-outline:hover {
  background: #111111;
  color: #ffffff;
}

/* --- STATE SAAT ACTIVE / LACI TERBUKA --- */
/* Ketika laci terbuka, tombol akan otomatis berubah warna secara permanen */
.btn-outline.is-active {
  color: #444;
  border-color: #444;
  background: transparent; /* Tetap transparan agar elegan */
}

/* --- EFEK HOVER SAAT TOMBOL SEDANG AKTIF (CLOSE) --- */
/* Memberikan feedback visual ekstra jika user ingin menutup laci */
.btn-outline.is-active:hover {
  background: #444;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(188, 156, 34, 0.3);
}

/* Tombol Search Utama (Solid Black Block) */
.btn-primary-search {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 0 40px;
  height: 52px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-search:hover {
  background: #333333; /* Sedikit memudar ke abu-abu gelap saat hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* --- DRAWER LACI ADVANCED (MONOCHROME CLEAN) --- */
.filter-advanced-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-advanced-drawer.is-open {
  max-height: 500px;
  opacity: 1;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px dashed #111111; /* Garis putus-putus hitam arang */
}

.drawer-inner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.drawer-inner-grid label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111111; /* Label hitam tegas */
  letter-spacing: 0.05em;
}

/* Kotak Input di dalam laci */
.drawer-inner-grid input,
.drawer-inner-grid select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #111111;
  background-color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  outline: none;
}

.drawer-inner-grid input:focus,
.drawer-inner-grid select:focus {
  background-color: #f5f5f5; /* Berubah abu-abu tipis saat diketik */
}

/* --- RESPONSIVITAS --- */
@media (max-width: 1024px) {
  .filter-main-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .drawer-inner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .filter-main-wrapper {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    flex-direction: column;
  }
  .btn-outline,
  .btn-primary-search {
    width: 100%;
  }
  .drawer-inner-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 3. LISTING 2 COLUMNS --- */
/* ==========================================================================
   PROPERTY GRID & CARD DESIGN
   ========================================================================== */
.property-list-section {
  padding: 20px 0 40px;
  background: #ffffff;
}

.list-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.results-count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
}

.results-count span {
  color: #111;
  font-weight: 800;
}

/* ==========================================================================
   ELEVATED PROPERTY CARD DESIGN
   ========================================================================== */
.card-link,
.card-link:hover,
.card-link:focus {
  text-decoration: none !important; /* Menghapus garis bawah */
  outline: none;
}

/* Memastikan judul properti juga tidak memiliki garis bawah */
.property-title {
  text-decoration: none !important;
}
.property-list-section {
  background-color: #f8f8f8; /* Beri warna abu-abu sangat muda pada background section */
  padding: 40px 0;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; /* Jarak antar kartu lebih lega */
}

.property-card {
  background: #ffffff; /* Kartu tetap putih bersih agar kontras dengan background abu-abu */
  border-radius: 4px; /* Sedikit lengkungan agar tidak terlalu tajam */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;

  /* Bayangan halus agar kartu terlihat melayang */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03); /* Garis tepi yang sangat tipis */
}

/* Efek saat kartu diarahkan kursor (Hover) */
.property-card:hover {
  transform: translateY(-10px); /* Kartu naik sedikit */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); /* Bayangan menjadi lebih tegas */
  border-color: #bc9c22; /* Warna border berubah menjadi emas */
}

/* Foto Properti */
.property-thumbnail {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-gallery-btn {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  cursor: pointer;
  z-index: 20;

  transition: all 0.3s ease;
}

.card-gallery-btn:hover {
  transform: scale(1.05);
}

.card-gallery-btn i {
  font-size: 16px;
}

.property-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.property-card:hover .property-thumbnail img {
  transform: scale(1.1);
}

/* Bagian Detail di Dalam Kartu */
.property-details {
  padding: 30px; /* Padding lebih luas agar terlihat premium */
}

.property-location {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 700;
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  gap: 5px;

  overflow: hidden;
  white-space: nowrap;
}

.property-location i {
  flex-shrink: 0;
}

.property-location span,
.property-location .location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Spesifikasi (Kamar Tidur, dll) */
.property-specs {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  margin-bottom: 20px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.property-specs span {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-specs i {
  color: #111;
  font-size: 12px;
}

/* Harga */
.property-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-value {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.price-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
}

.no-results {
  text-align: center;
  padding: 100px 0;
  border: 1px dashed #ddd;
  margin-top: 40px;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 10px;
}

.btn-reset {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}
