/* ============================================
   RUMAHPOP.COM — Property Listing Style
   Inspired by Harcourts Indonesia
   Primary: #001f49 (dark navy)
   Accent:  #00aeef (bright blue)
============================================ */

:root {
  --primary: #001f49;
  --primary-light: #002d6d;
  --accent: #00aeef;
  --accent-light: #e6f7fe;
  --text-dark: #1a1a1a;
  --text-secondary: #6b7280;
  --surface: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-light: #f0f9ff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 30px rgba(0, 31, 73, 0.08);
}

body {
  color: var(--text-dark);
  background: #fff;
}

/* ========== HERO / BANNER ========== */
.page-banner {
  background: linear-gradient(rgba(0, 31, 73, 0.85), rgba(0, 31, 73, 0.75)), url('../img/slides/slide2.jpg') center/cover;
  color: #fff;
  padding: 70px 0;
}

.page-banner h1,
.hero-home h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-banner p,
.hero-home p {
  font-size: 18px;
  opacity: 0.92;
}

.hero-home {
  display: none;
}

/* ========== SEARCH BOX ========== */
.hero-search-box,
.filter-box,
.section-card,
.property-card,
.detail-card,
.cta-card,
.testimonial-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-search-box {
  padding: 24px;
  margin-top: 30px;
}

.hero-search-box .form-control,
.filter-box .form-control,
.filter-box select,
.filter-box input,
.sort-bar .form-control {
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-search-box .form-control:focus,
.filter-box .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.hero-search-box label,
.filter-box label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: #009ad4;
  border-color: #009ad4;
  color: #fff;
}

.btn-outline-custom {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ========== LAYOUT ========== */
.section-padding {
  padding: 70px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-heading p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 36px;
  margin: 0 0 8px;
  color: var(--accent);
}

.stat-item p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========== PROPERTY GRID ========== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.property-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.property-badge.sold {
  background: var(--primary);
}

.property-card-body {
  padding: 20px;
}

.property-card-body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.property-card-body h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.property-card-body h3 a:hover {
  color: var(--accent);
}

.property-price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.property-location {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 14px;
}

.property-location i {
  margin-right: 5px;
  color: var(--accent);
}

.property-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-meta i {
  color: var(--accent);
  font-size: 14px;
}

/* ========== FILTER LAYOUT ========== */
.filter-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.filter-box {
  padding: 24px;
  position: sticky;
  top: 20px;
  border: 1px solid var(--border);
}

.filter-box h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--primary);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.filter-box .btn {
  width: 100%;
}

.btn-filter-reset {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
  margin-top: 10px;
}

.btn-filter-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== SORT BAR ========== */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-count {
  color: var(--text-secondary);
  font-size: 15px;
}

.results-count strong {
  color: var(--text-dark);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  padding: 60px 40px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 12px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 20px;
}

/* ========== DETAIL PAGE ========== */
.detail-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-card {
  padding: 28px;
  border: 1px solid var(--border);
}

.detail-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 32px;
  color: var(--primary);
}

.detail-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

.detail-subtitle i {
  color: var(--accent);
  margin-right: 6px;
}

.detail-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.spec-item {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 16px;
  border-left: 3px solid var(--accent);
}

.spec-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.spec-item strong {
  font-size: 18px;
  color: var(--primary);
}

.detail-description {
  color: #475660;
  line-height: 1.8;
  font-size: 15px;
}

/* ========== CTA ========== */
.cta-card {
  padding: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
}

.cta-card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
}

.cta-card p {
  opacity: 0.92;
}

.cta-card .btn-primary-custom {
  background: var(--accent);
  border-color: var(--accent);
}

/* ========== TESTIMONIAL ========== */
.testimonial-card {
  padding: 26px;
  height: 100%;
  border: 1px solid var(--border);
}

.testimonial-card p {
  color: #475660;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  color: var(--primary);
}

/* ========== FOOTER ========== */
.site-footer-custom {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 30px;
}

.site-footer-custom a {
  color: rgba(255,255,255,0.82);
}

.site-footer-custom a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-footer-custom ul {
  list-style: none;
  padding-left: 0;
}

.site-footer-custom li {
  margin-bottom: 8px;
}

.site-footer-custom h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
}

.footer-note {
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-size: 13px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-inline {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.breadcrumb-inline li {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.breadcrumb-inline li + li:before {
  content: '/';
  padding: 0 8px;
  color: rgba(255,255,255,0.5);
}

.breadcrumb-inline li a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-inline li a:hover {
  color: #fff;
}

/* ========== NAVBAR OVERRIDE ========== */
.navbar-default {
  background-color: var(--primary) !important;
  border-color: transparent !important;
}

.navbar-default .navbar-nav > li > a {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: var(--accent) !important;
  background: transparent !important;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}

.navbar-default .navbar-brand img {
  height: 36px;
  width: auto;
  margin-top: 8px;
}

/* ========== LISTING HEADER (like Harcourts) ========== */
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.listing-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
}

.listing-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.listing-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--primary);
  border-radius: 8px;
  min-width: 100px;
}

.count-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.count-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ========== DETAIL SIDEBAR AGENT ========== */
.agent-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.agent-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.agent-card h4 {
  color: var(--primary);
  margin-bottom: 4px;
}

.agent-card p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .filter-layout {
    grid-template-columns: 1fr;
  }
  .filter-box {
    position: static;
  }
  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .listing-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-home,
  .page-banner {
    padding: 60px 0;
  }
  .page-banner h1,
  .hero-home h1,
  .detail-card h1 {
    font-size: 28px;
  }
  .property-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .detail-specs {
    grid-template-columns: 1fr;
  }
  .sort-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-search-box {
    margin-top: 20px;
  }
}

/* Navbar above slider */
header .navbar.navbar-default {
  position: relative;
  z-index: 20;
}
