/* ===================================================================
   PORTA CERTA — Hero Section (v2, based on reference layout)
   Token system
   Color   — Navy #071A2E / Navy Deep #050f1c / Navy Soft #0f2942
             Gold #D4AF37 / Gold Light #E8C766 / Off-white #FAF8F3
   Type    — Display: 'Fraunces' (serif) · Body/UI: 'Manrope'
   Signature — door-opening reveal on load (Porta = Door)
=================================================================== */

:root {
  --navy: #071a2e;
  --navy-deep: #050f1c;
  --navy-soft: #0f2942;
  --gold: #d4af37;
  --gold-light: #e8c766;
  --off-white: #faf8f3;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 0.9, 0.32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--navy);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
[hidden] {
  display: none !important;
}
ul {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.4);
}
.btn--outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn--outline-navy {
  color: var(--navy);
  border: 1px solid rgba(7, 26, 46, 0.25);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}

/* ---------------------------------------------------------------
   Signature: door-opening reveal
--------------------------------------------------------------- */
.door-reveal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}
.door-panel {
  width: 50%;
  height: 100%;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
}
.door-panel--left {
  transform-origin: left center;
  animation: doorOpenLeft 1.15s 0.25s var(--ease) forwards;
}
.door-panel--right {
  transform-origin: right center;
  animation: doorOpenRight 1.15s 0.25s var(--ease) forwards;
}
.door-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--gold-light), var(--gold));
}
.door-panel--left .door-trim {
  right: 0;
}
.door-panel--right .door-trim {
  left: 0;
}
@keyframes doorOpenLeft {
  to {
    transform: translateX(-100%);
  }
}
@keyframes doorOpenRight {
  to {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .door-panel--left,
  .door-panel--right {
    animation: fadeOut 0.6s 0.1s ease forwards;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------------------------------------------------------------
   Navbar
--------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
  padding: 20px 0;
}
.navbar.is-scrolled {
  background: rgba(5, 15, 28, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(5, 15, 28, 0.35);
  padding: 12px 0;
}
.navbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.navbar__logo-icon {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  flex-shrink: 0;
}
.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
}
.navbar__logo-tag {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navbar__link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold-light);
  transition: width 0.3s var(--ease);
}
.navbar__link:hover {
  color: var(--white);
}
.navbar__link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.navbar__burger span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(5, 15, 28, 0.98);
  backdrop-filter: blur(10px);
  padding: 10px 24px 26px;
}
.navbar__mobile.is-open {
  display: flex;
}
.navbar__mobile .navbar__link {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar__mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.navbar__mobile-actions .btn {
  flex: 1;
  background: var(--white);
}
.navbar__mobile-actions .btn--navy {
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
}
.navbar__mobile-announce {
  margin-top: 10px;
  justify-content: center;
}

/* Floating "Anunciar imóvel" pill, overlapping the hero (as in the reference) */
.announce-pill {
  position: fixed;
  top: 96px;
  right: 32px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(5, 15, 28, 0.35);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.3s ease,
    transform 0.3s var(--ease),
    border-color 0.3s ease;
  opacity: 0;
  animation: riseIn 0.8s 0.35s var(--ease) forwards;
}
.announce-pill:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 180px;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
}

/* ============================================================
   SUA IMAGEM AQUI
   Troque a linha abaixo pelo caminho da sua foto, por exemplo:
   background-image: none;
   Dica: fotos ao entardecer/noite com luz quente combinam melhor
   com os overlays configurados logo abaixo.
============================================================ */
.hero__bg-image {
  position: absolute;
  inset: 0;
  background-image: none; /* <- configure sua imagem aqui */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 15, 28, 0.35) 0%,
    rgba(5, 15, 28, 0.15) 45%,
    rgba(5, 15, 28, 0.82) 100%
  );
}
.hero__overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 15, 28, 0.88) 0%,
    rgba(5, 15, 28, 0.55) 32%,
    rgba(5, 15, 28, 0) 62%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 150px 32px 0;
}

.hero-left,
.hero-promo {
  min-width: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 640px;
  margin-bottom: 20px;
  opacity: 0;
  animation: riseIn 0.9s 0.55s var(--ease) forwards;
}

.hero__accent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  opacity: 0;
  animation: riseIn 0.9s 0.7s var(--ease) forwards;
}

.hero__subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  margin-bottom: 34px;
  opacity: 0;
  animation: riseIn 0.9s 0.85s var(--ease) forwards;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 40px;
  opacity: 0;
  animation: riseIn 0.9s 1s var(--ease) forwards;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-list i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  color: var(--gold-light);
  font-size: 1.05rem;
}
.trust-list__badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.trust-list span {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}
.trust-list strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}
.trust-list em {
  font-size: 0.86rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

.hero-promo {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: clamp(130px, 25%, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  min-height: 340px;
  margin: 0;
  padding: 42px 48px;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 102, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(7, 26, 46, 0.96), rgba(5, 15, 28, 0.88)),
    radial-gradient(circle at 84% 72%, rgba(232, 199, 102, 0.09), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.26);
  opacity: 0;
  animation: promoFadeIn 0.9s 1.05s var(--ease) forwards;
}

.hero-promo::before,
.hero-promo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-promo::before {
  inset: 18px 18px auto auto;
  width: 112px;
  height: 112px;
  opacity: 0.24;
  background-image: radial-gradient(var(--gold-light) 1px, transparent 1px);
  background-size: 12px 12px;
}

.hero-promo::after {
  top: 52px;
  bottom: 52px;
  left: clamp(178px, 28%, 238px);
  width: 1px;
  background: linear-gradient(transparent, rgba(232, 199, 102, 0.4), transparent);
}

.hero-promo__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 126px;
  justify-self: center;
  color: var(--gold-light);
  filter: drop-shadow(0 10px 22px rgba(212, 175, 55, 0.18));
}

.hero-promo__icon::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 199, 102, 0.22), transparent 62%);
}

.hero-promo__icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(232, 199, 102, 0.2);
  border-radius: 50%;
}

.hero-promo__icon i {
  font-size: 5.8rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-promo__icon strong {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--navy-deep);
  font-size: 2.18rem;
  font-weight: 800;
  line-height: 1;
}

.hero-promo__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-promo__title {
  max-width: 510px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--white);
}

.hero-promo__text {
  max-width: 520px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-promo__button {
  padding-inline: 26px;
}

@keyframes promoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------
   Search: tabs + card (overlapping bottom of hero photo)
--------------------------------------------------------------- */
.search-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 5;
  padding: 0 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  opacity: 0;
  animation: riseIn 1s 1.1s var(--ease) forwards;
}
.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(5, 15, 28, 0.55);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.search-tab--active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  border-color: transparent;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  background: rgba(5, 15, 28, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: riseIn 1s 1.25s var(--ease) forwards;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
.search-field__control {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.search-field__control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.09);
}
.search-field__control i {
  color: var(--gold-light);
  font-size: 0.92rem;
  flex-shrink: 0;
}
.search-field__control input,
.search-field__control select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  background: transparent;
  border: none;
  width: 100%;
}
.search-field__control input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.search-field__control select {
  color: var(--white);
}
.search-field__control select option {
  color: var(--navy);
}
.search-bar__submit {
  height: 46px;
  padding: 0 24px;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__content {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
  }

  .search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-bar__submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .navbar__menu,
  .navbar__hide-mobile {
    display: none;
  }
  .navbar__burger {
    display: flex;
  }
  .announce-pill {
    display: none;
  }
  .hero {
    padding-bottom: 300px;
  }
  .hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 130px;
  }
  .hero-promo {
    min-height: auto;
  }
  .hero-promo::after {
    left: 178px;
  }
  .search-wrap {
    bottom: 42px;
  }
}

@media (max-width: 640px) {
  .navbar__inner {
    padding: 0 18px;
  }
  .navbar__logo-tag {
    display: none;
  }
  .hero__content {
    padding: 118px 20px 0;
  }
  .hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .hero-promo {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    padding: 22px;
    border-radius: 18px;
  }
  .hero-promo::before {
    width: 82px;
    height: 82px;
    background-size: 10px 10px;
  }
  .hero-promo::after {
    display: none;
  }
  .hero-promo__icon {
    width: 68px;
    height: 68px;
  }
  .hero-promo__icon::before {
    inset: -18px;
  }
  .hero-promo__icon i {
    font-size: 3.4rem;
  }
  .hero-promo__icon strong {
    top: 22px;
    font-size: 1.28rem;
  }
  .hero-promo__title {
    font-size: 1.5rem;
  }
  .hero-promo__text {
    margin-bottom: 18px;
    font-size: 0.9rem;
  }
  .hero-promo__button {
    width: 100%;
  }
  .search-wrap {
    padding: 0 16px;
    bottom: 32px;
  }
  .search-bar {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .search-bar__submit {
    grid-column: auto;
  }
}

/* ---------------------------------------------------------------
   Resultados da busca (populados via API)
--------------------------------------------------------------- */
.results {
  background: var(--off-white);
  padding: 60px 32px 90px;
}
.results__inner {
  max-width: 1440px;
  margin: 0 auto;
}
.results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.results__header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
}
.results__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 26, 46, 0.15);
  color: var(--navy);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}
.results__close:hover {
  background: rgba(7, 26, 46, 0.06);
  transform: rotate(90deg);
}

.results__loading,
.results__error,
.results__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 60px 20px;
  color: rgba(7, 26, 46, 0.6);
  font-size: 0.98rem;
}
.results__loading i,
.results__error i,
.results__empty i {
  font-size: 1.8rem;
  color: var(--gold);
}
.results__error {
  color: #7a2b2b;
}
.results__error i {
  color: #b34747;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.property-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 46, 0.08);
  box-shadow: 0 10px 30px rgba(7, 26, 46, 0.06);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 26, 46, 0.12);
}
.property-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.6rem;
}
.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-card__body {
  padding: 16px 18px 20px;
}
.property-card__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.property-card__title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.property-card__location {
  font-size: 0.84rem;
  color: rgba(7, 26, 46, 0.55);
  margin-bottom: 10px;
}
.property-card__meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(7, 26, 46, 0.65);
}
.property-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.property-card__meta i {
  color: var(--gold);
}
.property-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.property-card__action {
  width: 100%;
  min-height: 42px;
  padding-inline: 12px;
  font-size: 0.8rem;
}
.property-card__action:disabled,
.search-bar__submit:disabled {
  cursor: progress;
  opacity: 0.75;
}

.home-toast-stack {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 10000;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}
.home-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(7, 26, 46, 0.1);
  box-shadow: 0 18px 42px rgba(7, 26, 46, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.home-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.home-toast > i {
  margin-top: 2px;
  color: var(--gold);
}
.home-toast--success > i {
  color: #2d8f5f;
}
.home-toast--error > i {
  color: #b34747;
}
.home-toast strong,
.home-toast span {
  display: block;
}
.home-toast strong {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.home-toast span {
  color: rgba(7, 26, 46, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}
.home-toast button {
  color: rgba(7, 26, 46, 0.45);
}

.property-detail-page {
  min-height: 100vh;
  background: var(--off-white);
}
.detail-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: var(--navy);
  color: var(--white);
}
.detail-navbar__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.detail-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 80px;
}
.detail-loading,
.detail-error {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 80px 20px;
  text-align: center;
  color: rgba(7, 26, 46, 0.7);
}
.detail-loading i,
.detail-error i {
  color: var(--gold);
  font-size: 2rem;
}
.detail-error h1 {
  font-family: var(--font-display);
  color: var(--navy);
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: start;
}
.detail-gallery,
.detail-info {
  background: var(--white);
  border: 1px solid rgba(7, 26, 46, 0.08);
  box-shadow: 0 14px 38px rgba(7, 26, 46, 0.08);
}
.detail-gallery {
  border-radius: 18px;
  overflow: hidden;
}
.detail-main-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 2rem;
}
.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
  padding: 12px;
}
.detail-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
}
.detail-thumb:focus-visible {
  border-color: var(--gold);
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info {
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
}
.detail-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-info h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--navy);
}
.detail-price {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.detail-location {
  color: rgba(7, 26, 46, 0.62);
  line-height: 1.55;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.btn--rent-now {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  box-shadow: 0 14px 28px rgba(7, 26, 46, 0.16);
}
.btn--rent-now:hover {
  background: #0d2945;
  border-color: #0d2945;
  color: var(--gold-light);
  transform: translateY(-1px);
}
.btn--rent-now:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}
.detail-whatsapp {
  border-top: 1px solid rgba(7, 26, 46, 0.08);
  border-bottom: 1px solid rgba(7, 26, 46, 0.08);
  padding: 16px 0;
  margin-bottom: 22px;
}
.detail-whatsapp .btn {
  width: 100%;
  justify-content: center;
}
.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #062615;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.2);
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #062615;
  transform: translateY(-1px);
}
.btn--whatsapp-unavailable {
  background: rgba(7, 26, 46, 0.08);
  border-color: transparent;
  color: rgba(7, 26, 46, 0.55);
  cursor: not-allowed;
}
.owner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 16px;
  background: rgba(7, 26, 46, 0.025);
  padding: 16px;
  margin-bottom: 22px;
}
.owner-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.owner-card__body {
  min-width: 0;
}
.owner-card__eyebrow {
  display: block;
  color: rgba(7, 26, 46, 0.52);
  font-size: 0.76rem;
  font-weight: 700;
}
.owner-card__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 2px 0 6px;
}
.owner-card__title-row strong {
  color: var(--navy);
  font-size: 1rem;
}
.owner-card__title-row span {
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
}
.owner-card__rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}
.owner-stars {
  color: var(--gold);
  letter-spacing: 1px;
}
.owner-card p {
  color: rgba(7, 26, 46, 0.56);
  font-size: 0.82rem;
  margin-top: 3px;
}
.owner-card__button {
  grid-column: 1 / -1;
}
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 28, 0.62);
}
.review-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(5, 15, 28, 0.32);
  padding: 22px;
}
.rent-modal__dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.review-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.review-modal__header span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.review-modal__header h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.review-modal__header button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 26, 46, 0.06);
  color: var(--navy);
}
.review-modal__owner {
  color: rgba(7, 26, 46, 0.68);
  margin-bottom: 14px;
}
.rent-summary {
  display: grid;
  gap: 12px;
}
.rent-summary__property {
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(7, 26, 46, 0.025);
}
.rent-summary__property strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
}
.rent-summary__property span {
  display: block;
  color: rgba(7, 26, 46, 0.62);
  line-height: 1.55;
  margin-top: 4px;
}
.rent-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rent-summary__item {
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 12px;
  padding: 12px;
}
.rent-summary__item span {
  display: block;
  color: rgba(7, 26, 46, 0.56);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.rent-summary__item strong {
  color: var(--navy);
}
.rent-summary__notice {
  display: flex;
  gap: 10px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--navy);
  line-height: 1.55;
  padding: 12px;
}
.rent-summary__notice i {
  color: var(--gold);
  margin-top: 3px;
}
.rent-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(7, 26, 46, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 16px;
}
.rent-terms input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: 0 0 auto;
  margin-top: 2px;
}
.rent-terms a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}
#rentFeedback.is-error {
  color: #b42318;
}
.review-stars-field {
  border: 0;
  margin-bottom: 16px;
}
.review-stars-field legend,
.review-field span {
  display: block;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.review-stars-input {
  display: flex;
  gap: 8px;
}
.review-stars-input button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(7, 26, 46, 0.06);
  color: rgba(7, 26, 46, 0.26);
  font-size: 1.1rem;
}
.review-stars-input button.is-active {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold);
}
.review-field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(7, 26, 46, 0.14);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--navy);
}
.review-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(7, 26, 46, 0.14);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.visit-grid .review-field:last-child {
  grid-column: 1 / -1;
}
.visit-label {
  display: block;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.visit-hours-section {
  margin-bottom: 16px;
}
.visit-hours-state {
  min-height: 20px;
  color: rgba(7, 26, 46, 0.62);
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.visit-hours-state.is-error,
#visitFeedback.is-error {
  color: #b42318;
}
.visit-hours-state.is-success,
#visitFeedback.is-success {
  color: #087443;
}
.visit-hours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.visit-hour {
  min-height: 40px;
  border: 1px solid rgba(7, 26, 46, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}
.visit-hour.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
}
.visit-hour:disabled {
  cursor: not-allowed;
  color: rgba(7, 26, 46, 0.34);
  background: rgba(7, 26, 46, 0.05);
  text-decoration: line-through;
}
.review-modal__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  color: rgba(7, 26, 46, 0.58);
  font-size: 0.82rem;
  margin-top: 8px;
}
.review-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.detail-section {
  border-top: 1px solid rgba(7, 26, 46, 0.08);
  padding-top: 22px;
  margin-top: 22px;
}
.detail-section h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.detail-section p {
  color: rgba(7, 26, 46, 0.7);
  line-height: 1.7;
}
.detail-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-feature {
  min-height: 74px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(7, 26, 46, 0.04);
}
.detail-feature i {
  color: var(--gold);
  margin-bottom: 8px;
}
.detail-feature span,
.detail-feature strong {
  display: block;
}
.detail-feature span {
  font-size: 0.76rem;
  color: rgba(7, 26, 46, 0.55);
}
.detail-feature strong {
  color: var(--navy);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .results {
    padding: 48px 20px 70px;
  }
  .results__grid {
    grid-template-columns: 1fr;
  }
  .property-card__actions,
  .detail-features,
  .rent-summary__grid {
    grid-template-columns: 1fr;
  }
  .home-toast-stack {
    top: 76px;
    right: 16px;
  }
  .detail-navbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-navbar__actions,
  .detail-navbar__actions .navbar-auth,
  .detail-navbar__actions .navbar-auth__guest,
  .detail-navbar__actions .navbar-auth__user {
    width: 100%;
  }
  .detail-navbar__actions {
    display: grid;
    gap: 10px;
  }
  .detail-navbar__actions .navbar-auth__guest,
  .detail-navbar__actions .navbar-auth__user {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .detail-navbar__actions .btn {
    width: 100%;
  }
  .detail-navbar__actions .account-menu {
    right: auto;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  .owner-card {
    grid-template-columns: 1fr;
  }
  .visit-grid,
  .visit-hours {
    grid-template-columns: 1fr;
  }
  .review-modal__actions {
    flex-direction: column-reverse;
  }
  .review-modal__actions .btn {
    width: 100%;
  }
}
