
/* ========== BUILDER HERO ========== */
.builder-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0;
}
.builder-hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.builder-logo {
  flex: 0 0 150px;
  text-align: center;
}
.logo-circle {
  background: white;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}
.logo-circle img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}
.builder-info {
  flex: 1;
}
.builder-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
}
.builder-desc {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.builder-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.stat {
  font-size: 1rem;
}
.stat strong {
  font-size: 1.25rem;
  color: #f64d0d;
}
@media (max-width: 768px) {
  .builder-hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .builder-stats {
    justify-content: center;
  }
}

/* ========== MAIN CONTENT ========== */
.main-content {
  background: #f8fafc;
  padding: 2rem 0;
}
.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.projects-column {
  flex: 2;
  min-width: 0;
}
.projects-column h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #f64d0d;
  padding-left: 0.75rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e2e8f0;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-badges {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
}
.badge-type, .badge-status {
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-type {
  background: #f64d0d;
  color: white;
}
.badge-status {
  background: rgba(0,0,0,0.7);
  color: white;
  backdrop-filter: blur(4px);
}
.card-info {
  padding: 1rem;
}
.card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1e293b;
}
.location {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: #475569;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f64d0d;
  margin: 0.5rem 0;
}
.builder {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.5rem;
}
.rera {
  background: #e2e8f0;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  margin-left: 0.5rem;
}
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}
.stars {
  letter-spacing: 2px;
}
.card-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-detail, .btn-wa {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-detail {
  background: #f64d0d;
  color: white;
}
.btn-wa {
  background: #25D366;
  color: white;
}
.scroll-trigger {
  height: 50px;
  margin-top: 1rem;
}
.loading-spinner {
  text-align: center;
  padding: 1rem;
}
.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #e2e8f0;
  border-top-color: #f64d0d;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SIDEBAR ========== */
.sidebar-column {
  flex: 1;
  min-width: 260px;
}
.sidebar-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.sidebar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid #f64d0d;
  padding-left: 0.75rem;
}
.sidebar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.sidebar-logo {
  max-width: 100px;
  margin-bottom: 0.75rem;
}
.locality-list, .builder-list {
  list-style: none;
  padding-left: 0;
}
.locality-list li, .builder-list li {
  margin-bottom: 0.5rem;
}
.locality-list li a, .builder-list li a {
  color: #f64d0d;
  text-decoration: none;
}
.locality-list li a:hover, .builder-list li a:hover {
  text-decoration: underline;
}
.contact-widget {
  background: linear-gradient(135deg, #f64d0d10, #ff6b3510);
  border-left: 4px solid #f64d0d;
}
.w-100 {
  width: 100%;
  display: block;
  text-align: center;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.btn-primary {
  background: #f64d0d;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #d43c0b;
}
.btn-outline {
  background: transparent;
  border: 1px solid #f64d0d;
  color: #f64d0d;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  display: inline-block;
}
.btn-success {
  background: #25D366;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.text-center {
  text-align: center;
}
.no-results {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.no-results-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
