:root {
  /* Properties Times logo: orange + purple on white */
  --el-orange: #e85a0f;
  --el-orange-light: #f26522;
  --el-purple: #4a2f5c;
  --el-purple-deep: #2d1a38;
  --el-bg: #ffffff;
  --el-surface: #f7f4fa;
  --el-card: #ffffff;
  --el-border: rgba(74, 47, 92, 0.12);
  --el-muted: #6b5c78;
  --el-text: #1f1528;
  --el-accent: var(--el-orange);
  --el-accent-2: var(--el-orange-light);
  --el-accent-rgb: 232, 90, 15;
  --el-purple-rgb: 74, 47, 92;
  --el-shadow: 0 4px 20px rgba(74, 47, 92, 0.08);
  --el-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body.theme-estate {
  background: var(--el-bg);
  color: var(--el-text);
  font-family: "DM Sans", system-ui, sans-serif;
}

.theme-estate .site-top-bar {
  background: linear-gradient(90deg, var(--el-purple-deep) 0%, var(--el-purple) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-estate .site-top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 38px;
  padding: 0.35rem 0;
}

.theme-estate .site-top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
}

.theme-estate .site-top-bar-item:hover {
  color: #fff;
}

.theme-estate .site-top-bar-item i {
  color: var(--el-orange-light);
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .theme-estate .site-top-bar-inner {
    justify-content: center;
    font-size: 0.75rem;
  }

  .theme-estate .site-top-bar-item span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.theme-estate .navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--el-border);
  box-shadow: 0 2px 16px rgba(74, 47, 92, 0.06);
}

.theme-estate .navbar-brand {
  padding: 0;
  margin-right: 0.5rem;
}

.theme-estate .navbar-brand img {
  height: 46px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  display: block;
}

.theme-estate .nav-link {
  color: var(--el-muted) !important;
  font-weight: 500;
}

.theme-estate .nav-link:hover,
.theme-estate .nav-link.active {
  color: var(--el-orange) !important;
}

.theme-estate .navbar-toggler {
  border-color: var(--el-border);
}

.theme-estate .navbar-toggler-icon {
  filter: none;
}

.theme-estate .nav-mega-panel {
  min-width: min(94vw, 820px);
  background: #fff !important;
  border: 1px solid var(--el-border) !important;
}

.theme-estate .nav-mega-grid {
  max-height: 70vh;
  overflow-y: auto;
}

.theme-estate .nav-mega-item .small {
  color: var(--el-muted) !important;
}

.theme-estate .nav-mega-item:hover .ratio {
  box-shadow: 0 0 0 2px rgba(var(--el-accent-rgb), 0.45);
}

.theme-estate .btn-accent {
  background: linear-gradient(135deg, var(--el-orange-light) 0%, var(--el-orange) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(var(--el-accent-rgb), 0.25);
}

.theme-estate .btn-accent:hover {
  background: linear-gradient(135deg, #ff7a33 0%, var(--el-orange-light) 100%);
  color: #fff;
}

.theme-estate .btn-outline-light-subtle {
  border: 1px solid rgba(var(--el-purple-rgb), 0.25);
  color: var(--el-purple);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
}

.theme-estate .btn-outline-light-subtle:hover {
  background: var(--el-surface);
  color: var(--el-purple-deep);
  border-color: rgba(var(--el-purple-rgb), 0.35);
}

.theme-estate .hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(var(--el-accent-rgb), 0.08), transparent),
    radial-gradient(900px 500px at 85% 10%, rgba(var(--el-purple-rgb), 0.06), transparent),
    var(--el-bg);
}

.theme-estate .hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--el-purple-deep);
}

.theme-estate .hero .lead {
  color: var(--el-muted);
  max-width: 36rem;
}

.theme-estate .stat-card {
  background: var(--el-card);
  border: 1px solid var(--el-border);
  border-radius: var(--el-radius);
  padding: 1.25rem;
  box-shadow: var(--el-shadow);
}

.theme-estate .stat-card h3 {
  color: var(--el-orange);
  font-weight: 700;
}

.theme-estate .card-el {
  background: var(--el-card);
  border: 1px solid var(--el-border);
  border-radius: var(--el-radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--el-shadow);
}

.theme-estate .card-el:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--el-accent-rgb), 0.35);
  box-shadow: 0 8px 28px rgba(74, 47, 92, 0.12);
}

.theme-estate .badge-lease {
  background: rgba(var(--el-accent-rgb), 0.12);
  color: #c44a08;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.theme-estate .badge-rent {
  background: rgba(var(--el-purple-rgb), 0.1);
  color: var(--el-purple);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.theme-estate .section-muted {
  color: var(--el-muted);
}

.theme-estate .footer {
  background: var(--el-surface);
  border-top: 1px solid var(--el-border);
  color: var(--el-muted);
}

.theme-estate .footer .text-heading {
  color: var(--el-purple-deep);
  font-weight: 600;
}

.theme-estate .footer a {
  color: var(--el-muted);
  text-decoration: none;
}

.theme-estate .footer a:hover {
  color: var(--el-orange);
}

.theme-estate .footer-links-list li + li {
  margin-top: 0.35rem;
}

.theme-estate .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.theme-estate .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--el-border);
  color: var(--el-purple);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-estate .footer-social a:hover {
  background: var(--el-orange);
  border-color: var(--el-orange);
  color: #fff;
}

.theme-estate .footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--el-muted);
}

.theme-estate .footer-bottom-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-estate .footer-bottom-credit {
  flex: 0 1 auto;
  text-align: right;
  white-space: nowrap;
}

.theme-estate .footer-bottom-credit a {
  color: var(--el-orange);
  font-weight: 600;
  text-decoration: none;
}

.theme-estate .footer-bottom-credit a:hover {
  color: var(--el-purple);
}

@media (max-width: 767.98px) {
  .theme-estate .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .theme-estate .footer-bottom-credit {
    text-align: center;
    white-space: normal;
  }
}

.theme-estate .form-control,
.theme-estate .form-select {
  background: #fff;
  border-color: var(--el-border);
  color: var(--el-text);
}

.theme-estate .form-control:focus,
.theme-estate .form-select:focus {
  background: #fff;
  color: var(--el-text);
  border-color: rgba(var(--el-accent-rgb), 0.55);
  box-shadow: 0 0 0 0.2rem rgba(var(--el-accent-rgb), 0.12);
}

.theme-estate .breadcrumb-item,
.theme-estate .breadcrumb-item a {
  color: var(--el-muted);
}

.theme-estate .breadcrumb-item.active {
  color: var(--el-text);
}

.theme-estate .accordion-button {
  background: var(--el-surface);
  color: var(--el-text);
}

.theme-estate .accordion-button:not(.collapsed) {
  background: rgba(var(--el-purple-rgb), 0.06);
  color: var(--el-orange);
  box-shadow: none;
}

.theme-estate .accordion-item {
  background: var(--el-card);
  border-color: var(--el-border);
}

.theme-estate .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--el-text);
  --bs-table-border-color: var(--el-border);
}

.theme-estate .scroll-to-top,
.theme-estate .whatsapp-float {
  position: fixed;
  z-index: 1040;
  border: none;
  box-shadow: 0 4px 16px rgba(74, 47, 92, 0.2);
  transition: opacity 0.2s, transform 0.2s;
}

.theme-estate .scroll-to-top {
  right: 1.25rem;
  bottom: 5.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--el-purple-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.theme-estate .scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-estate .scroll-to-top:hover {
  background: var(--el-orange);
  color: #fff;
}

.theme-estate .whatsapp-float {
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.75rem;
  overflow: hidden;
}

.theme-estate .whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-estate .whatsapp-float:hover {
  color: #fff;
  transform: scale(1.05);
}

.theme-estate .contact-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.theme-estate .img-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .theme-estate .img-cover {
    height: 220px;
  }
}

.theme-estate .logo-marquee img {
  filter: grayscale(0.4) opacity(0.65);
  max-height: 28px;
}

.theme-estate .text-accent {
  color: var(--el-orange) !important;
}

.theme-estate .border-el {
  border-color: var(--el-border) !important;
}

.theme-estate .home-hero-slider {
  background: var(--el-bg);
  padding: 0;
  width: 100%;
}

.theme-estate .home-hero-slider .carousel,
.theme-estate .home-hero-slider .carousel-inner {
  width: 100%;
  max-width: 100%;
}

.theme-estate .home-hero-slider .carousel-inner {
  line-height: 0;
}

.theme-estate .home-hero-slide-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--el-surface);
}

.theme-estate .home-hero-slide-frame a {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.theme-estate .home-hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.theme-estate .about-cms-body h2,
.theme-estate .about-cms-body h3,
.theme-estate .cms-rich-content h2,
.theme-estate .cms-rich-content h3,
.theme-estate .blog-body h2,
.theme-estate .blog-body h3 {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--el-purple-deep);
  margin-top: 1.5rem;
}

.theme-estate .cms-rich-content,
.theme-estate .blog-body {
  line-height: 1.7;
}

.theme-estate .cms-rich-content p,
.theme-estate .blog-body p {
  margin-bottom: 1rem;
}

.theme-estate .cms-rich-content ul,
.theme-estate .cms-rich-content ol,
.theme-estate .blog-body ul,
.theme-estate .blog-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.theme-estate .cms-rich-content img,
.theme-estate .blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--el-radius);
  margin: 1rem 0;
}

.theme-estate .cms-rich-content a,
.theme-estate .blog-body a {
  color: var(--el-orange);
}

.theme-estate .cms-rich-content blockquote,
.theme-estate .blog-body blockquote {
  border-left: 3px solid var(--el-orange);
  padding-left: 1rem;
  color: var(--el-muted);
  font-style: italic;
}

.theme-estate .advisor-card {
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
}

.theme-estate .modal-content {
  background: var(--el-card);
  color: var(--el-text);
  border: 1px solid var(--el-border);
}

.theme-estate .modal-header {
  border-bottom-color: var(--el-border);
}

.theme-estate .pagination .page-link {
  background: #fff;
  border-color: var(--el-border);
  color: var(--el-text);
}

.theme-estate .pagination .page-link:hover,
.theme-estate .pagination .page-item.active .page-link {
  background: var(--el-orange);
  border-color: var(--el-orange);
  color: #fff;
}

.theme-estate a.text-reset {
  color: inherit;
}

.theme-estate a.text-reset:hover {
  color: var(--el-orange);
}

.theme-estate .badge.text-bg-secondary {
  background: rgba(var(--el-purple-rgb), 0.1) !important;
  color: var(--el-purple) !important;
}

.theme-estate .bg-secondary {
  background-color: var(--el-surface) !important;
  color: var(--el-muted) !important;
}

/* —— Animations (all public pages) —— */
@keyframes el-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes el-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes el-slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes el-page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html:not(.motion-reduce) .theme-estate.page-loaded .site-top-bar {
  animation: el-slide-down 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html:not(.motion-reduce) .theme-estate.page-loaded .navbar {
  animation: el-slide-down 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

html:not(.motion-reduce) .theme-estate .reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

html:not(.motion-reduce) .theme-estate .reveal-up {
  transform: translateY(32px);
}

html:not(.motion-reduce) .theme-estate .reveal-fade {
  transform: none;
}

html:not(.motion-reduce) .theme-estate .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

html:not(.motion-reduce) .theme-estate .navbar {
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

html:not(.motion-reduce) .theme-estate .navbar.navbar-scrolled {
  box-shadow: 0 6px 24px rgba(74, 47, 92, 0.1);
}

html:not(.motion-reduce) .theme-estate .card-el {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

html:not(.motion-reduce) .theme-estate .card-el .img-cover {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html:not(.motion-reduce) .theme-estate .card-el:hover .img-cover {
  transform: scale(1.06);
}

html:not(.motion-reduce) .theme-estate .btn-accent,
html:not(.motion-reduce) .theme-estate .btn-outline-light-subtle {
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

html:not(.motion-reduce) .theme-estate .btn-accent:hover,
html:not(.motion-reduce) .theme-estate .btn-outline-light-subtle:hover {
  transform: translateY(-2px);
}

html:not(.motion-reduce) .theme-estate .btn-accent:hover {
  box-shadow: 0 8px 22px rgba(var(--el-accent-rgb), 0.35);
}

html:not(.motion-reduce) .theme-estate .stat-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}

html:not(.motion-reduce) .theme-estate .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(74, 47, 92, 0.12);
}

html:not(.motion-reduce) .theme-estate .logo-marquee img {
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

html:not(.motion-reduce) .theme-estate .logo-marquee .col:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

html:not(.motion-reduce) .theme-estate .scroll-to-top,
html:not(.motion-reduce) .theme-estate .whatsapp-float {
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

html:not(.motion-reduce) .theme-estate .footer-social a {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html:not(.motion-reduce) .theme-estate .footer-social a:hover {
  transform: translateY(-3px) scale(1.05);
}

html:not(.motion-reduce) .theme-estate .home-hero-slider .carousel-item.active .home-hero-slide-img {
  animation: el-hero-zoom 8s ease-out forwards;
}

@keyframes el-hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

html.motion-reduce .theme-estate .reveal {
  opacity: 1 !important;
  transform: none !important;
}

