:root {
  --brand-primary: #0f4c3a;
  --brand-accent: #d4a537;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; color: #222; }

.navbar-brand { color: var(--brand-primary) !important; font-size: 1.4rem; }
.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover { background-color: #0b3a2c; border-color: #0b3a2c; }
.btn-outline-primary { color: var(--brand-primary); border-color: var(--brand-primary); }

.hero-slide {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content { position: relative; z-index: 2; color: #fff; }

.category-card, .property-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.category-card:hover, .property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.property-card img, .category-card img { height: 200px; object-fit: cover; width: 100%; }
.badge-status { position: absolute; top: 10px; left: 10px; }
.badge-type { position: absolute; top: 10px; right: 10px; background-color: #001f3f !important; color: #fff !important; }
.property-card .card-body { padding: 1rem; }
.price-tag { color: var(--brand-primary); font-weight: 700; font-size: 1.1rem; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999;
}

.owner-locked {
  background: #f8f5ea;
  border: 1px dashed var(--brand-accent);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 576px) {
  .hero-slide { height: 340px; }
}

/* Builder Logos Slider */
.builder-logos-wrap {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.builder-logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: builderLogosScroll 28s linear infinite;
}
.builder-logos-wrap:hover .builder-logos-track { animation-play-state: paused; }
.builder-logo-item {
  flex: 0 0 auto;
  width: var(--logo-w, 160px);
  height: var(--logo-h, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.builder-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: 0.2s;
}
.builder-logo-item img:hover { filter: none; opacity: 1; }

@keyframes builderLogosScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .builder-logos-track { gap: 28px; animation-duration: 18s; }
  .builder-logo-item { width: calc(var(--logo-w, 160px) * 0.65); height: calc(var(--logo-h, 80px) * 0.65); }
}
@media (max-width: 480px) {
  .builder-logo-item { width: calc(var(--logo-w, 160px) * 0.5); height: calc(var(--logo-h, 80px) * 0.5); }
}

/* Rich text page content (About Us, Services, etc.) */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.page-content p { margin-bottom: 1rem; line-height: 1.7; }
.page-content h1, .page-content h2, .page-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.page-content ul, .page-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content blockquote {
  border-left: 4px solid var(--brand-accent, #d4a537);
  padding-left: 1rem;
  color: #555;
  font-style: italic;
  margin: 1rem 0;
}
.page-content a { color: var(--brand-primary, #000f4d); }
.page-content .ql-align-center { text-align: center; }
.page-content .ql-align-right { text-align: right; }
.page-content .ql-align-justify { text-align: justify; }
.page-content .ql-size-small { font-size: 0.75em; }
.page-content .ql-size-large { font-size: 1.5em; }
.page-content .ql-size-huge { font-size: 2.5em; }
.page-content .ql-indent-1 { padding-left: 2em; }
.page-content .ql-indent-2 { padding-left: 4em; }
.page-content .ql-indent-3 { padding-left: 6em; }

@media (max-width: 576px) {
  .page-content .ql-size-huge { font-size: 1.8em; }
  .page-content .ql-size-large { font-size: 1.25em; }
}
