/* Public Layout, Header, Mobile Drawer, Cards, Gallery (Aspect Ratio) & Pages */

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 900;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-creci {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-accent-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-alt);
}

.nav-link.is-active {
  color: var(--brand-accent-text);
  background-color: var(--brand-tint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--brand-accent-text);
  border-color: var(--brand-border-soft);
  background-color: var(--brand-tint);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 1180px) {
  .nav-link {
    padding: 8px 8px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* ---------- Mobile Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 980;
  background-color: rgba(7, 13, 24, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  width: min(86vw, 340px);
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: normal;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.drawer-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.drawer-link:hover,
.drawer-link.is-active {
  background-color: var(--brand-tint);
  color: var(--brand-accent-text);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero Section & Search Bar ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 7vw, 88px);
  color: #FFFFFF;
  background-color: #0B192E;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0B192E;
  transform: scale(1.02);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(9, 20, 38, 0.52) 0%,
    rgba(19, 66, 112, 0.30) 52%,
    rgba(11, 19, 32, 0.22) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-copy {
  max-width: 740px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: rgba(9, 20, 38, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #EBF3FB;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-title {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(6, 14, 28, 0.72);
}

.hero-title-highlight {
  color: #FFFFFF;
  background: linear-gradient(180deg, transparent 74%, rgba(43, 146, 240, 0.72) 74%);
  padding-inline: 4px;
  border-radius: 3px;
}

.hero-subtitle {
  color: #F4F8FD;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 60ch;
  text-shadow: 0 1px 12px rgba(6, 14, 28, 0.75);
}

.hero-search-card {
  background-color: var(--bg-hero-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-search-card .select {
  height: 44px;
}

.hero-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 960px) {
  .hero-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search-submit {
    grid-column: 1 / -1;
  }
}

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

/* ---------- Property Grid & Cards ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border-soft);
}

.property-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-surface-alt);
  overflow: hidden;
  display: block;
}

.property-card-media img,
.property-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 350ms ease;
}

.property-card:hover .property-card-media img,
.property-card:hover .property-card-media video {
  transform: scale(1.03);
}

.property-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.property-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.property-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.property-card-code {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.property-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.property-card-location svg {
  width: 15px;
  height: 15px;
  color: var(--brand-accent-text);
  flex-shrink: 0;
}

.property-card-price {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-prefix {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-accent-text);
  font-variant-numeric: tabular-nums;
}

.price-suffix {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.property-card-specs {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.spec-pill svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

/* ---------- Pillars / Categories ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 820px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-border-soft);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--brand-tint);
  color: var(--brand-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card h3 {
  font-size: 1.15rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pillar-cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-accent-text);
}

.pillar-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Institutional Showcase ---------- */
.institutional-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .institutional-grid {
    grid-template-columns: 1fr;
  }
}

.institutional-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background-color: var(--bg-surface-alt);
}

.institutional-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.institutional-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 22px;
}

@media (max-width: 520px) {
  .institutional-stats {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-accent-text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---------- Listing Page Toolbar ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-primary) 100%);
  color: #FFFFFF;
  padding-block: clamp(32px, 5vw, 52px);
}

.page-banner h1 {
  color: #FFFFFF;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 8px;
}

.page-banner p {
  color: rgba(235, 243, 251, 0.90);
  max-width: 65ch;
}

.filter-bar {
  margin-top: -22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Property Detail & Aspect-Ratio Gallery ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--brand-accent-text);
  text-decoration: underline;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  background-color: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-surface-alt);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame.ratio-auto {
  width: fit-content;
  max-width: 100%;
  max-height: 74vh;
}

.media-frame.ratio-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 74vh;
}

.media-frame.ratio-4-3 {
  aspect-ratio: 4 / 3;
  width: min(100%, 820px);
  max-height: 74vh;
}

.media-frame.ratio-3-4 {
  aspect-ratio: 3 / 4;
  height: min(72vh, 620px);
  width: auto;
  max-width: min(100%, 480px);
}

.media-frame.ratio-1-1 {
  aspect-ratio: 1 / 1;
  width: min(100%, 600px);
  max-height: 74vh;
}

.media-frame.ratio-9-16 {
  aspect-ratio: 9 / 16;
  height: min(72vh, 640px);
  width: auto;
  max-width: min(100%, 380px);
}

.media-frame img,
.media-frame video,
.media-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.media-frame.ratio-auto img,
.media-frame.ratio-auto video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: cover;
}

.media-frame.ratio-auto:has(iframe) {
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
  .gallery-stage {
    padding: 0;
    min-height: 220px;
  }

  .media-frame.ratio-3-4,
  .media-frame.ratio-9-16 {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
  }
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(11, 19, 32, 0.72);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color var(--transition-fast);
}

.gallery-nav-btn:hover {
  background-color: var(--brand-primary);
}

.gallery-nav-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.gallery-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  height: 70px;
  width: 94px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background-color: var(--bg-surface-alt);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--brand-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--bg-surface-alt);
}

.gallery-thumb-video svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.thumb-ratio-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  background-color: rgba(11, 19, 32, 0.82);
  color: #FFFFFF;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background-color: rgba(5, 9, 17, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 14px;
}

.lightbox-backdrop .media-frame.ratio-auto {
  max-width: 92vw;
  max-height: 84vh;
}

.lightbox-backdrop .media-frame.ratio-auto img,
.lightbox-backdrop .media-frame.ratio-auto video {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(17, 28, 46, 0.85);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.lightbox-caption {
  color: #E2E8F0;
  font-size: 0.92rem;
  text-align: center;
}

/* Detail Sidebar & Specs */
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 980px) {
  .detail-sidebar {
    position: static;
  }
}

.detail-price-block {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-border-soft);
}

.detail-price-main {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brand-accent-text);
  font-variant-numeric: tabular-nums;
}

.fee-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--brand-border-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-box {
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-box-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-box-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.detail-description-card {
  padding: 22px;
  margin-top: 22px;
}

.detail-description-card h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.detail-description-text {
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.65;
}

.features-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand-accent-text);
}

/* ---------- Online Status Indicator & Contact Page ---------- */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-alt);
}

.status-indicator.is-online {
  background-color: var(--badge-active-bg);
  color: var(--badge-active-fg);
  border-color: var(--badge-active-border);
}

.status-indicator.is-offline {
  background-color: var(--badge-rented-bg);
  color: var(--badge-rented-fg);
  border-color: var(--badge-rented-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--brand-tint);
  color: var(--brand-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-hours-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand-accent-text);
}

.detail-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-accent-text);
}

.channel-icon.is-whatsapp {
  background-color: var(--whatsapp-tint);
  color: var(--whatsapp-fg);
}

/* ---------- Timeline (Quem Somos) ---------- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-year {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-accent-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--whatsapp-bg);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(21, 128, 61, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21, 128, 61, 0.45);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #86EFAC;
}

.whatsapp-float-dot.is-offline {
  background-color: #FDE047;
}

@media (max-width: 640px) {
  .whatsapp-float {
    padding: 14px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float-label {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 44px;
  padding-bottom: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-accent-text);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ---------- Cadastre seu Imóvel (Owner Form & Purpose Selector) ---------- */
.purpose-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .purpose-toggle-grid {
    grid-template-columns: 1fr;
  }
}

.purpose-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface-alt);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.purpose-option:hover {
  border-color: var(--brand-border-soft);
}

.purpose-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.purpose-option-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.purpose-option-icon svg {
  width: 18px;
  height: 18px;
}

.purpose-option strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.purpose-option small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.purpose-option.is-selected,
.purpose-option:has(input:checked) {
  border-color: var(--brand-primary);
  background-color: var(--brand-tint);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.purpose-option.is-selected .purpose-option-icon,
.purpose-option:has(input:checked) .purpose-option-icon {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.submission-success-card {
  flex-direction: column;
  gap: 16px;
}

.submission-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--success-bg);
  color: var(--success-fg);
  border: 1px solid var(--success-border);
  font-size: 0.84rem;
  font-weight: 700;
}

.submission-success-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Chatbot IA Widget (stacked above WhatsApp CTA) ---------- */
.chatbot-fab {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 845;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-border-soft);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chatbot-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chatbot-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 138px;
  z-index: 860;
  width: min(370px, calc(100vw - 32px));
  max-height: min(500px, calc(100vh - 170px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chatbot-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: var(--bg-surface-alt);
}

.chatbot-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-title strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.chatbot-header-title small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.chatbot-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22C55E;
  flex-shrink: 0;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}

.chatbot-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
}

.chatbot-msg.is-assistant {
  align-self: flex-start;
  background-color: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.chatbot-msg.is-user {
  align-self: flex-end;
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

.chatbot-msg.is-typing {
  color: var(--text-muted);
  font-style: italic;
}

.chatbot-form {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-form .input {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.chatbot-panel-wa-bar {
  padding: 0 12px 10px;
  text-align: center;
}

.chatbot-panel-wa-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--whatsapp-bg);
}

.chatbot-panel-wa-bar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.chatbot-limit-banner {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-alt);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 640px) {
  .chatbot-fab {
    right: 16px;
    bottom: 78px;
    padding: 12px;
  }

  .chatbot-fab-label {
    display: none;
  }

  .chatbot-panel {
    right: 16px;
    bottom: 132px;
    width: calc(100vw - 32px);
  }
}
