/* ======================================================================
   THEPROPERTY – main.css (desktop + mobile refinado)
   ====================================================================== */

:root{
  --brand-1:#0e8a77;
  --brand-2:#12b09a;
  --brand-3:#0a6154;

  --ink-100:#0f172a;
  --ink-80:#1f2a37;
  --ink-60:#475569;
  --ink-40:#94a3b8;

  --paper:#ffffff;

  --shadow-lg:0 20px 45px rgba(2, 12, 27, .18);
  --shadow-md:0 10px 25px rgba(2, 12, 27, .14);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:12px;
}

html{ scroll-behavior:smooth; }
*{ box-sizing:border-box; }
body{
  font-family:"Inter","Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--ink-80);
  background:#f6f8fb;
  line-height:1.6;
}
a{ color:var(--brand-1); text-decoration:none; }
a:hover{ color:var(--brand-2); }

/* ================= Header ================= */
.header{
  position:sticky; top:0; z-index:1030;
  backdrop-filter:saturate(1.05) blur(8px);
}
.header .header-container{
  width:min(1180px, 96%);
  margin:10px auto;
  background:#fff;
  border:1px solid #e7eef5;
  border-radius:16px;
  padding:10px 16px;
  box-shadow:0 10px 24px rgba(2,12,27,.06);
}
.header.scrolled .header-container{
  padding:8px 14px;
  box-shadow:0 8px 18px rgba(2,12,27,.08);
}
.logo img{ max-height:34px; }
.sitename{ font-family:"Montserrat",system-ui; font-weight:800; margin:0; color:var(--ink-100); }

/* menu desktop */
.navmenu > ul{
  display:flex; align-items:center; gap:18px;
  margin:0; padding:0; list-style:none;
}
.navmenu li{ position:relative; }
.navmenu a{
  color:var(--ink-60); font-weight:600;
  padding:10px 12px; border-radius:12px;
}
.navmenu a:hover,.navmenu a.active{
  color:#fff; background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
}
.btn-getstarted{
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
  color:#fff !important; padding:10px 16px; border-radius:999px; font-weight:700;
  box-shadow:0 10px 22px rgba(18,176,154,.28);
}

/* dropdown (desktop hover) */
.navmenu .dropdown > ul{
  position:absolute; right:0; top:calc(100% + 12px);
  background:#fff; border:1px solid #e7eef5; border-radius:14px;
  min-width:230px; padding:10px 12px; list-style:none;
  box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:.2s ease;
}
.navmenu .dropdown:hover > ul{ opacity:1; visibility:visible; transform:translateY(0); }
.navmenu .dropdown > ul li a{ display:flex; gap:8px; padding:8px 10px; border-radius:10px; }
.navmenu .dropdown > ul li a:hover{ background:#f4f7fb; color:var(--ink-80); }

/* ================= HERO ================= */
.hero{
  position:relative; min-height:72vh;
  display:grid; align-items:center;
  padding-top:96px; overflow:visible;
}
.hero .container{ position:relative; z-index:2; }
.hero .headline{ color:#fff; text-shadow:0 8px 30px rgba(0,0,0,.35); }
.hero .lead{ color:rgba(255,255,255,.92); max-width:700px; }

.hero-swiper,.hero-swiper .swiper-wrapper,.hero-swiper .swiper-slide{ height:100%; }
.hero .slide-bg{ position:absolute; inset:0; background-size:cover; background-position:center; transform:scale(1.06); transition:transform 6s ease; }
.hero .swiper-slide-active .slide-bg{ transform:scale(1); }
.hero .overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.55) 100%),
             radial-gradient(1200px 500px at 80% 10%, rgba(18,176,154,.25), transparent 70%);
}

/* hero controls */
.hero .hero-pagination .swiper-pagination-bullet{ width:10px; height:10px; opacity:.6; background:#fff; }
.hero .hero-pagination .swiper-pagination-bullet-active{ width:24px; border-radius:999px; background:linear-gradient(90deg,var(--brand-1),var(--brand-2)); }
.hero .hero-nav{ position:absolute; inset-inline:0; top:50%; z-index:3; display:flex; justify-content:space-between; padding:0 18px; }
.hero .hero-prev,.hero .hero-next{
  width:46px; height:46px; display:grid; place-items:center; border-radius:50%;
  color:#fff; border:1px solid rgba(255,255,255,.45); background:rgba(0,0,0,.28);
  transition:transform .2s ease, background .2s ease;
}
.hero .hero-prev:hover,.hero .hero-next:hover{ transform:translateY(-1px); background:rgba(0,0,0,.45); }

/* ================= BUSCADOR (colado ao fim do banner) ================= */
.search-wrap{
  position:absolute; left:50%; bottom:-56px; transform:translateX(-50%);
  width:min(1180px, 94%); z-index:5;
}
.search-panel{
  background:rgba(255,255,255,.9); backdrop-filter:blur(10px) saturate(1.2);
  border:1px solid rgba(15,23,42,.08); border-radius:24px;
  box-shadow:0 18px 38px rgba(2,12,27,.14);
  padding:16px;
}
.search-row{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr .7fr .6fr .6fr auto;
  gap:12px;
}
.search-panel .form-control,
.search-panel .form-select{
  border-radius:14px; border:1px solid #e5e7eb; padding:12px 14px; color:var(--ink-80);
  box-shadow:inset 0 1px 0 rgba(2,12,27,.02);
}
.search-panel .btn-search{
  border:0; border-radius:14px; padding:12px 18px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
  box-shadow:0 14px 28px rgba(18,176,154,.32);
}
.search-panel .btn-search i{ margin-right:6px; }
.hero-spacer{ height:108px; }

/* ================= Cards & Sections ================= */
.section{ padding:90px 0; }
.section .section-title{ font-weight:800; color:var(--ink-100); margin-bottom:8px; }
.section .section-lead{ color:var(--ink-60); }

.property-card{
  background:#fff; border:1px solid #eef2f6; border-radius:18px; overflow:hidden;
  box-shadow:0 10px 26px rgba(2,12,27,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.property-card:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(2,12,27,.10); }
.property-card .thumb{ position:relative; aspect-ratio:16/10; overflow:hidden; }
.property-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.property-card:hover .thumb img{ transform:scale(1.06); }
.property-card .badge-price{
  position:absolute; left:12px; bottom:12px; z-index:2; background:#111827; color:#fff;
  padding:6px 10px; border-radius:12px; font-weight:700; font-size:14px;
}
.property-card .body{ padding:16px; }
.property-meta{ display:flex; gap:14px; color:var(--ink-60); font-weight:600; }

/* ================= Footer premium ================= */
.footer{
  color:#e8f1ef; padding-top:72px;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(18,176,154,.20), transparent 60%),
    radial-gradient(700px 300px at 95% 10%, rgba(14,138,119,.18), transparent 55%),
    linear-gradient(180deg,#0f172a 0%, #0b1220 100%);
  position:relative;
}
.footer .container{ width:min(1180px,96%); }
.footer .sitename{ font-family:"Montserrat",system-ui; font-weight:800; color:#f8fafc; }
.footer p{ color:#cfe1dd; margin-bottom:0; }
.footer-content p{ line-height:1.7; }
.footer h4,.footer h5{ color:#f8fafc; font-weight:700; margin-bottom:16px; }
.footer-links ul{ margin:0; padding:0; list-style:none; }
.footer-links li{ margin:8px 0; }
.footer-links a{ display:inline-flex; align-items:center; gap:8px; color:#e8f1ef; transition:all .25s ease; }
.footer-links a i{ font-size:14px; opacity:.8; }
.footer-links a:hover{ color:#fff; transform:translateX(4px); }
.footer-contact .contact-item{
  display:flex; gap:12px; align-items:flex-start;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06);
  padding:14px 16px; border-radius:16px; box-shadow:0 6px 18px rgba(0,0,0,.20); margin-bottom:12px;
}
.footer-contact .contact-icon{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:12px; background:linear-gradient(135deg,#0e8a77,#12b09a); color:#fff;
}
.footer .social-links{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.footer .social-links a{
  width:40px; height:40px; display:grid; place-items:center; border-radius:12px;
  color:#fff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.footer .social-links a:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,#0e8a77,#12b09a);
  box-shadow:0 10px 24px rgba(18,176,154,.35);
}
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); margin-top:36px; padding:18px 0; background:rgba(0,0,0,.12); backdrop-filter:blur(6px); }
.footer-bottom .copyright p{ color:#cfe1dd; margin:0; }
.footer-bottom .sitename{ color:#fff; }
.footer-bottom-links{ display:flex; gap:16px; justify-content:flex-end; flex-wrap:wrap; }
.footer-bottom-links a{ color:#e8f1ef; font-size:14px; position:relative; padding-bottom:2px; }
.footer-bottom-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg,#0e8a77,#12b09a); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.footer-bottom-links a:hover{ color:#fff; }
.footer-bottom-links a:hover::after{ transform:scaleX(1); }

/* Scroll top */
#scroll-top{
  width:44px; height:44px; border-radius:12px;
  background:linear-gradient(135deg,#0e8a77,#12b09a);
  box-shadow:0 14px 28px rgba(18,176,154,.35);
  color:#fff; border:0;
}

/* ================= Overlay nav (mobile) ================= */
.mobile-nav-toggle{ display:none; cursor:pointer; }
.nav-backdrop{
  position:fixed; inset:0; background:rgba(15,23,42,.48); backdrop-filter:saturate(1.1) blur(2px);
  opacity:0; visibility:hidden; transition:.2s ease; z-index:1020;
}
.nav-backdrop.show{ opacity:1; visibility:visible; }

/* ================= Responsivo ================= */
@media (max-width:1199.98px){
  .search-row{ grid-template-columns: 1.2fr .9fr .9fr .8fr 1fr auto; }
}

@media (max-width:991.98px){
  /* header compacto */
  .header .header-container{ border-radius:14px; width:calc(100% - 20px); margin:10px; }
  .sitename{ font-size:1.15rem; }
  .logo img{ max-height:28px; }

  /* botão hamburguer visível */
  .mobile-nav-toggle{ display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; border:1px solid #e7eef5; }
  /* empurra menu para offcanvas */
  .navmenu{
    position:fixed; top:0; right:0; height:100vh; width:86%; max-width:360px;
    background:#fff; border-left:1px solid #e7eef5; box-shadow:var(--shadow-lg);
    transform:translateX(100%); transition:transform .28s ease; padding:18px; z-index:1035; overflow-y:auto;
  }
  .navmenu.open{ transform:translateX(0); }
  .navmenu > ul{ flex-direction:column; gap:6px; }
  .navmenu a{ display:block; width:100%; padding:12px 14px; border-radius:12px; }
  .btn-getstarted{ display:none; } /* botão vai para o offcanvas se quiser */

  /* dropdown vira acordeão */
  .navmenu .dropdown > ul{
    position:static; opacity:1; visibility:visible; transform:none; border:0; box-shadow:none;
    padding:6px 0 6px 8px; background:transparent; min-width:unset;
  }
  .navmenu .dropdown:not(.open) > ul{ display:none; }
  .navmenu .dropdown.open > a{ background:#f4f7fb; color:var(--ink-100); }

  /* hero & buscador */
  .hero{ min-height:64vh; padding-top:92px; }
  .search-row{ grid-template-columns: 1fr 1fr; }
  .hero-spacer{ height:132px; }
}

@media (max-width:575.98px){
  .navmenu{ width:92%; max-width:none; }
  .search-row{ grid-template-columns: 1fr; }
  .search-wrap{ bottom:-64px; }
  .hero-spacer{ height:168px; }
  .footer{ padding-top:56px; }
}

/* Footer empilhado no mobile e tablets */
@media (max-width:991.98px){
  .footer .row > div{ flex:0 0 100%; max-width:100%; }
  .footer .row.gy-5{ row-gap:26px; }
  .newsletter-form .input-group{ display:flex; gap:8px; width:100%; }
  .newsletter-form input{ flex:1; min-width:0; }
  .newsletter-form .btn-subscribe{
    width:48px; height:48px; border-radius:12px; border:0;
    background:linear-gradient(135deg,var(--brand-1),var(--brand-2)); color:#fff;
  }
  .footer-bottom{ text-align:center; }
  .footer-bottom .row{ row-gap:10px; }
  .footer-bottom-links{ justify-content:center; }
}
