/* ==========================================================================
   HUNISCOPE AI — ISOLATED MARKETPLACE CATALOG STYLES (ALA TOKOPEDIA)
   Theme: Hijau Emerald & Navy Dongker (Gradasi Cerah - Gelap)
   ========================================================================== */

[hidden] {
  display: none !important;
}

.hs-properti-main {
  padding-bottom: 48px;
}

.hs-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. HEADER RINGKAS KATALOG
   ========================================================================== */
.hs-catalog-topbar {
  background: linear-gradient(125deg, #051021 0%, #0b264b 56%, #065f46 100%);
  color: #ffffff;
  padding: 26px 0 30px;
  border-bottom: 2px solid rgba(52, 211, 153, 0.35);
}

.hs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #a7f3d0;
  margin-bottom: 8px;
}

.hs-breadcrumb a {
  color: #6ee7b7;
  text-decoration: none;
  font-weight: 600;
}

.hs-breadcrumb a:hover {
  text-decoration: underline;
}

.hs-catalog-topbar h1 {
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 5px;
}

.hs-catalog-topbar p {
  font-size: 0.88rem;
  color: #d1fae5;
}

.hs-topbar-badge-box {
  background: rgba(5, 16, 33, 0.48);
  border: 1px solid rgba(110, 231, 183, 0.38);
  border-radius: 12px;
  padding: 11px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(6px);
}

.hs-topbar-badge-box span {
  font-size: 0.8rem;
  font-weight: 800;
  color: #6ee7b7;
}

.hs-topbar-badge-box small {
  font-size: 0.74rem;
  color: #cbd5e1;
}

/* ==========================================================================
   2. LAYOUT UTAMA 2 KOLOM (FILTER KIRI + KATALOG KANAN)
   ========================================================================== */
.hs-marketplace-layout {
  padding-top: 24px;
}

.hs-mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.hs-btn-mobile-filter {
  background: var(--hs-navy-dark);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
}

.hs-mobile-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-emerald-dark);
}

.hs-marketplace-grid {
  display: grid;
  grid-template-columns: 295px 1fr;
  gap: 24px;
  align-items: start;
}

/* ==========================================================================
   3. PANEL KIRI: STICKY FILTER SIDEBAR
   ========================================================================== */
.hs-filter-sidebar {
  position: sticky;
  top: 82px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-top: 4px solid var(--hs-emerald);
  border-radius: 16px;
  box-shadow: var(--hs-shadow-sm);
  overflow: hidden;
}

.hs-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hs-border);
}

.hs-sidebar-header h2 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--hs-navy-dark);
}

.hs-btn-reset {
  background: transparent;
  border: none;
  color: var(--hs-emerald-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
}

.hs-btn-reset:hover {
  background: #ecfdf5;
  text-decoration: underline;
}

.hs-sidebar-body {
  padding: 16px 18px 20px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.hs-filter-block {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eef2f6;
}

.hs-filter-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hs-filter-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hs-navy-dark);
  margin-bottom: 7px;
}

.hs-filter-input,
.hs-filter-select {
  width: 100%;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hs-text);
  background: #f8fafc;
  border: 1.5px solid var(--hs-border);
  border-radius: 9px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hs-filter-input:focus,
.hs-filter-select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--hs-emerald);
}

/* Pill Radio Group (Semua / Dijual / Disewa) */
.hs-pill-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hs-chip-btn {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1.5px solid var(--hs-border);
  background: #f8fafc;
  color: var(--hs-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hs-chip-btn:hover {
  border-color: var(--hs-emerald);
}

.hs-chip-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #0a1f3d 100%);
  color: #ffffff;
  border-color: #059669;
}

/* Price Inputs & Quick Chips */
.hs-price-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 9px;
}

.hs-quick-price-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hs-mini-chip {
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid var(--hs-border);
  background: #ffffff;
  color: var(--hs-muted);
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hs-mini-chip:hover,
.hs-mini-chip.active {
  background: #ecfdf5;
  border-color: var(--hs-emerald);
  color: var(--hs-emerald-dark);
}

.hs-btn-apply-mobile {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  background: linear-gradient(135deg, #10b981 0%, #0a1f3d 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   4. PANEL KANAN: TOOLBAR, ACTIVE TAGS & GRID KARTU MARKETPLACE
   ========================================================================== */
.hs-catalog-content {
  min-width: 0;
}

.hs-results-toolbar {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  box-shadow: var(--hs-shadow-sm);
}

.hs-result-summary {
  font-size: 0.88rem;
  color: var(--hs-text);
}

.hs-result-summary strong {
  color: var(--hs-emerald-dark);
  font-weight: 800;
}

.hs-sort-box {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hs-sort-box label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-muted);
  white-space: nowrap;
}

.hs-sort-select {
  width: auto;
  min-width: 225px;
}

/* Active Filter Tags Bar */
.hs-active-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hs-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
}

.hs-tag-remove {
  background: rgba(6, 95, 70, 0.14);
  border: none;
  color: #065f46;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hs-tag-remove:hover {
  background: #065f46;
  color: #ffffff;
}

/* Property Grid (3 Kolom pada Desktop) */
.hs-properti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hs-empty-state {
  grid-column: 1 / -1;
  background: var(--hs-surface);
  border: 1.5px dashed var(--hs-border);
  border-radius: 16px;
  padding: 46px 24px;
  text-align: center;
  color: var(--hs-muted);
}

.hs-empty-state h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--hs-navy-dark);
  margin-bottom: 6px;
}

.hs-empty-state p {
  font-size: 0.86rem;
  margin-bottom: 16px;
}

/* Kartu Properti Marketplace */
.hs-market-card {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hs-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hs-market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-md);
  border-color: var(--hs-emerald);
}

.hs-market-card.is-closed {
  opacity: 0.82;
}

.hs-card-media {
  position: relative;
  height: 188px;
  background: #0f172a;
  overflow: hidden;
}

.hs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hs-market-card:hover .hs-card-media img {
  transform: scale(1.04);
}

.hs-card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hs-badge-status {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: 0.2px;
}

.hs-badge-status.tersedia {
  background: linear-gradient(135deg, #10b981 0%, #046c4e 100%);
  color: #ffffff;
}

.hs-badge-status.closed {
  background: #334155;
  color: #f8fafc;
}

.hs-badge-fp-score {
  background: rgba(5, 16, 33, 0.86);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 7px;
  backdrop-filter: blur(4px);
}

.hs-card-cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hs-navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.hs-card-content {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hs-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hs-emerald-dark);
  margin-bottom: 4px;
}

.hs-card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--hs-navy-dark);
  line-height: 1.38;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hs-card-title a {
  color: inherit;
  text-decoration: none;
}

.hs-card-title a:hover {
  color: var(--hs-emerald-dark);
}

.hs-card-location {
  font-size: 0.78rem;
  color: var(--hs-muted);
  margin-bottom: 10px;
}

.hs-card-ai-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.hs-card-ai-pill.under {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.hs-card-ai-pill.fair {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.hs-card-ai-pill.over {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.hs-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--hs-text);
  background: #f8fafc;
  padding: 7px 9px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.hs-card-footer {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--hs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hs-card-developer {
  font-size: 0.72rem;
  color: var(--hs-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.hs-btn-view-detail {
  background: linear-gradient(135deg, #0a1f3d 0%, #065f46 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.hs-btn-view-detail:hover {
  opacity: 0.9;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1160px) {
  .hs-properti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hs-mobile-filter-bar {
    display: flex;
  }

  .hs-marketplace-grid {
    grid-template-columns: 1fr;
  }

  .hs-filter-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1400;
    border-radius: 0;
    border-top: none;
  }

  .hs-filter-sidebar.mobile-open {
    display: flex;
    flex-direction: column;
  }

  .hs-sidebar-body {
    flex: 1;
    max-height: none;
  }

  .hs-btn-apply-mobile {
    display: block;
  }
}

@media (max-width: 560px) {
  .hs-properti-grid {
    grid-template-columns: 1fr;
  }

  .hs-sort-select {
    min-width: 170px;
  }
}
