/* ---------------------------------------------------
   Motion & Micro-interactions
   Adds scroll-reveal, hover feedback and small
   transitions on top of the base template without
   touching its layout rules.
--------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Preloader ---- */
#preloder {
  transition: opacity 0.4s ease;
}
.loader {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  margin-left: -23px;
  border-radius: 50%;
  border: 4px solid rgba(0, 200, 158, 0.15);
  border-top-color: var(--color-primary);
  animation: loader-spin 0.7s linear infinite;
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Hero slider text: smoother, staggered entrance ---- */
.hs-item .hc-inner-text {
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), top 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hs-item .hc-inner-text .hc-text h4,
.hs-item .hc-inner-text .hc-text p,
.hs-item .hc-inner-text .hc-text .label,
.hs-item .hc-inner-text .hc-text h5,
.hs-item .hc-inner-text .hc-widget {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text h4 {
  transition-delay: 0.15s;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text p {
  transition-delay: 0.28s;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text .label {
  transition-delay: 0.4s;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text h5 {
  transition-delay: 0.52s;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-widget {
  transition-delay: 0.64s;
}
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text h4,
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text p,
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text .label,
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-text h5,
.hs-slider.owl-carousel .owl-item.active .hs-item .hc-inner-text .hc-widget {
  opacity: 1;
  transform: translateY(0);
}
.hs-slider.owl-carousel .owl-nav button {
  transition: transform 0.25s ease, background 0.25s ease;
}
.hs-slider.owl-carousel .owl-nav button:hover {
  background: var(--color-primary);
  transform: translateY(-25px) scale(1.08);
}

/* ---- Stats section ---- */
.stats-section {
  background: #ffffff;
  padding: 60px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
}
.stat-item i {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: inline-block;
}
.stat-item h3 {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}
.stat-item p {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* ---- CTA section: inset floating card ---- */
.cta-section {
  padding: 40px 0;
}
.cta-section .container {
  background: var(--color-primary);
  border-radius: 16px;
  padding: 45px 40px;
  box-shadow: 0 20px 45px rgba(0, 200, 158, 0.25);
}
.cta-section h3 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
.cta-section .cta-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--color-ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 34px;
  margin-top: 15px;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-section .cta-btn i {
  margin-right: 8px;
  color: #25d366;
}
.cta-section .cta-btn:hover {
  color: var(--color-ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
@media (min-width: 992px) {
  .cta-section .cta-btn {
    margin-top: 0;
  }
}

/* ---- Chooseus icons: lift on hover ---- */
.cf-item .cf-pic img {
  transition: transform 0.35s ease;
}
.cf-item:hover .cf-pic img {
  transform: translateY(-6px) scale(1.08);
}

/* ---- Feature property slider (homepage only): rounded corners + gradient scrim ---- */
.feature-property-section .fp-slider .fp-item {
  border-radius: 14px;
  overflow: hidden;
}
.feature-property-section .fp-slider .fp-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.feature-property-section .fp-slider .fp-item .fp-text {
  z-index: 1;
}
.fp-slider.owl-carousel .owl-nav button {
  transition: transform 0.25s ease, background 0.25s ease;
}
.fp-slider.owl-carousel .owl-nav button:hover {
  background: var(--color-primary);
  transform: translateY(-20px) scale(1.08);
}

/* ---- Property cards: initial staggered entrance ---- */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.property-filter.row .mix {
  animation: cardFadeInUp 0.6s ease both;
}
.property-filter.row .mix:nth-child(1) {
  animation-delay: 0.05s;
}
.property-filter.row .mix:nth-child(2) {
  animation-delay: 0.12s;
}
.property-filter.row .mix:nth-child(3) {
  animation-delay: 0.19s;
}
.property-filter.row .mix:nth-child(4) {
  animation-delay: 0.26s;
}
.property-filter.row .mix:nth-child(5) {
  animation-delay: 0.33s;
}
.property-filter.row .mix:nth-child(6) {
  animation-delay: 0.4s;
}

/* ---- Property cards: modern rounded card + lift + image zoom ---- */
.property-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(11, 27, 32, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.property-item a {
  overflow: hidden;
  display: block;
  border-radius: 12px 12px 0 0;
}
.property-item .pi-pic {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.property-item .pi-pic .label {
  border-radius: 4px;
}
.property-item .pi-text {
  padding: 0 20px 20px;
}
.property-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 27, 32, 0.14);
}
.property-item:hover .pi-pic {
  transform: scale(1.08);
}
/* ---- Category tiles: rounded corners + darken overlay + label lift ---- */
.categories-section .cs-item {
  position: relative;
  border-radius: 10px;
}
.categories-section .cs-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}
.categories-section a.linkul:hover .cs-item::after {
  background: rgba(0, 0, 0, 0.15);
}
.categories-section .cs-item .cs-text {
  border-radius: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.categories-section a.linkul:hover .cs-text {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-item .pi-text .heart-icon {
  transition: transform 0.25s ease, color 0.25s ease;
}
.property-item .pi-text .heart-icon:hover {
  transform: scale(1.25);
  color: #00b38d;
}

/* ---- Team cards: rounded + shadow ---- */
.ts-item {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(11, 27, 32, 0.07);
}

/* ---- Testimonial cards: rounded corners ---- */
.testimonial-slider .testimonial-item .ti-text {
  border-radius: 10px;
}

/* ---- Property detail page: agent card + related tiles ---- */
.property-sidebar .single-sidebar .top-agent .ta-item {
  box-shadow: 0 10px 25px rgba(11, 27, 32, 0.07);
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.property-sidebar .single-sidebar .top-agent .ta-item:hover {
  box-shadow: 0 16px 32px rgba(11, 27, 32, 0.12);
  transform: translateY(-4px);
}
.property-sidebar .single-sidebar .top-agent .ta-item .ta-pic {
  border-radius: 12px 0 0 12px;
}
.property-sidebar .single-sidebar .top-agent .ta-item .ta-text {
  border-radius: 0 12px 12px 0;
}
.property-sidebar .single-sidebar .sf-slider .sf-item {
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Contact / visit forms: rounded inputs ---- */
.review-form .group-input input,
.leave-comment-form .group-input input,
.cc-form .group-input input,
.review-form textarea,
.leave-comment-form textarea,
.cc-form textarea {
  border-radius: 8px;
}

/* ---- Search filter: modern floating card ---- */
.search-form-content {
  background: #ffffff;
  border-radius: 14px;
  padding: 34px 40px 18px 30px;
  box-shadow: 0 16px 40px rgba(11, 27, 32, 0.08);
}

.search-form-content .filter-form .sm-width,
.search-form-content .filter-form .nice-select {
  border-radius: 8px;
  border-color: #e6e6e6;
  height: 50px;
  line-height: 47px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-form-content .filter-form .nice-select:hover,
.search-form-content .filter-form .nice-select.open {
  border-color: var(--color-primary);
}
.search-form-content .filter-form .nice-select .list {
  border-radius: 8px;
  overflow: hidden;
}

.search-form-content .filter-form .price-range-wrap,
.search-form-content .filter-form .room-size-range-wrap {
  background: #f8f9fa;
  border: 1px solid #eef0f1;
  border-radius: 8px;
  padding: 14px 18px 16px;
}

.search-form-content .filter-form .search-btn {
  border-radius: 8px;
}

/* Compra / Aluguel pill toggle */
.change-btn .cb-item:first-child label {
  border-radius: 30px 0 0 30px;
}
.change-btn .cb-item:last-child label {
  border-radius: 0 30px 30px 0;
}
.change-btn .cb-item label.active {
  box-shadow: 0 8px 18px rgba(0, 200, 158, 0.35);
}
.change-btn .cb-item label:hover {
  transform: translateY(-2px);
}

/* Range sliders */
.ui-widget.ui-widget-content {
  border-radius: 6px;
  height: 6px;
  transition: none;
}
.ui-slider-horizontal .ui-slider-handle {
  width: 18px;
  height: 18px;
  top: -6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 3px #ffffff;
  transition: transform 0.2s ease;
}
.ui-slider-horizontal .ui-slider-handle:hover,
.ui-slider-horizontal .ui-slider-handle.ui-state-active {
  transform: scale(1.15);
}

/* ---- Buttons ---- */
.site-btn,
.search-btn,
.primary-btn,
.linkcategorias {
  border-radius: 6px;
}
.site-btn,
.search-btn,
.primary-btn,
.linkcategorias,
.team-section .team-btn a,
.change-btn .cb-item label {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.site-btn:hover,
.search-btn:hover,
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 200, 158, 0.3);
}
.linkcategorias:hover,
.team-section .team-btn a:hover {
  transform: translateY(-3px);
}

/* ---- Pagination: rounded page buttons ---- */
.pagination .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border-color: #e6e6e6;
  color: #444444;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pagination .btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}
.pagination .btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 37px;
  bottom: 100px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.back-to-top:hover {
  background: #00b38d;
  color: #ffffff;
  transform: translateY(-4px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
