:root {
  --brand-bg: #e9e9e9;
  --brand-dark: #05080d;
  --brand-panel: #2a2f37;
  --brand-accent: #f58a17;
  --brand-accent-dark: #b6640f;
}

html,
body {
  margin: 0;
  padding: 0;
}

header,
section,
footer {
  margin: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--brand-bg);
  color: #1f2430;
}

.site-header-dark {
  display: block;
  width: 100%;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
  padding: 0;
  line-height: 1;
  overflow: hidden;
}

.site-header-dark + * {
  margin-top: 0 !important;
}

.site-header-inner {
  max-width: 1140px;
  min-height: 92px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

.nav-link-custom {
  color: #fff;
  text-decoration: none;
}

.nav-link-custom:hover { color: var(--brand-accent); }

.hero-main,
.inner-hero {
  background-size: cover;
  background-position: center;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  color: #8c95a3;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0;
}

.listing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.listing-card-link:hover .listing-card {
  transform: translateY(-2px);
}

.listing-card {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  transition: transform .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.listing-image-wrap { position: relative; }

.listing-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.listing-chip,
.listing-status {
  position: absolute;
  left: 12px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.listing-chip { top: 12px; }
.listing-status { bottom: 12px; background: rgba(181,111,22,.92); }

.listing-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.listing-body h2,
.listing-body h3 {
  min-height: 3.4rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.listing-body .small.text-muted {
  min-height: 2.8rem;
}

.listing-body .listing-price {
  margin-top: auto;
}
.listing-price { color: var(--brand-accent); }

.listing-arrow {
  color: #111;
  font-size: 1.8rem;
  line-height: 1;
}

.marquee-wrap {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.marquee-wrap:hover .marquee-track,
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 22s linear infinite;
}

.marquee-track.slow { animation-duration: 28s; }

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

.category-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.category-box-link:hover .category-box {
  border-color: var(--brand-accent);
}

.category-box {
  width: 180px;
  background: #fff;
  border: 1px solid #e1e4ea;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  text-align: center;
  padding: 26px 10px;
  flex: 0 0 auto;
}

.category-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--brand-accent);
}

.spam-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-box {
  width: 170px;
  height: 95px;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex: 0 0 auto;
}

.partner-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.main-photo img {
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}

.property-gallery {
  position: relative;
}

.gallery-stage-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.property-gallery .carousel-control-prev,
.property-gallery .carousel-control-next,
.property-gallery-modal .carousel-control-prev,
.property-gallery-modal .carousel-control-next {
  width: 56px;
}

.property-gallery .carousel-control-prev-icon,
.property-gallery .carousel-control-next-icon,
.property-gallery-modal .carousel-control-prev-icon,
.property-gallery-modal .carousel-control-next-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background-color: rgba(5, 8, 13, 0.72);
  background-size: 55%;
}

.thumb-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item-button {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.thumb-item-button.is-active .thumb-item {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 138, 23, 0.22);
}

.thumb-item {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 2px solid #ddd;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.similar-item {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ddd;
}

.similar-item img {
  width: 220px;
  height: 120px;
  object-fit: cover;
}

.site-footer-pattern {
  background-image: linear-gradient(rgba(7,7,8,.75), rgba(7,7,8,.75)), url('../assets/static/banner-pattern.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.footer-card {
  background: rgba(66, 74, 86, 0.72);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 14px;
  min-height: 160px;
}

.footer-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.footer-featured-link:hover {
  border-color: var(--brand-accent);
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover { color: var(--brand-accent); }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202630;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.site-footer-bottom { background: rgba(0,0,0,.75); }

.partner-spotlight-modal {
  background:
    linear-gradient(135deg, rgba(5, 8, 13, 0.98), rgba(34, 22, 8, 0.96)),
    radial-gradient(circle at top right, rgba(245, 138, 23, 0.32), transparent 38%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-spotlight-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.partner-spotlight-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.partner-spotlight-copy {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.partner-spotlight-btn {
  font-weight: 700;
}

.lgpd-toast {
  width: min(380px, calc(100vw - 24px));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.lgpd-toast .toast-header {
  background: #fff;
}

.property-gallery-modal {
  background: rgba(5, 8, 13, 0.96);
  color: #fff;
}

.gallery-modal-image-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

@media (max-width: 992px) {
  .site-header-inner {
    min-height: 82px;
    padding: 12px 16px;
  }
  .section-title { font-size: 1.8rem; }
  .listing-image { height: 220px; }
  .similar-item img { width: 130px; height: 100px; }
  .main-photo img { max-height: 360px; }
  .gallery-modal-image-wrap { min-height: 50vh; }
}

