/* ============================================================
   Property — Real Estate Template
   Shared styles for all Liquid layouts
   ============================================================ */
:root {
  --primary: #1f5f8b;
  --primary-dark: #16435f;
  --secondary: #e0a458;
  --dark: #10212e;
  --light: #f5f8fa;
  --muted: #6b7c8a;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(16, 33, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(16, 33, 46, 0.16);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #2c3a45;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); line-height: 1.2; }
a { text-decoration: none; }

/* ---------- Top bar ---------- */
#topbar {
  background: var(--dark);
  color: #cdd8e0;
  font-size: 0.82rem;
  padding: 8px 0;
}
#topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#topbar .top-contact span { margin-right: 18px; }
#topbar .top-contact i { color: var(--secondary); margin-right: 6px; }
#topbar .tsoc a { color: #cdd8e0; margin-left: 12px; font-size: 0.9rem; transition: color .2s; }
#topbar .tsoc a:hover { color: var(--secondary); }
.ttag {
  background: rgba(224,164,88,.15); color: var(--secondary);
  padding: 3px 10px; border-radius: 30px; font-size: 0.78rem; font-weight: 600;
}

/* ---------- Navbar ---------- */
#nav {
  background: #fff;
  box-shadow: 0 2px 20px rgba(16,33,46,.06);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 1030;
}
#nav .blogo { display: flex; align-items: center; gap: 12px; }
#nav .bico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
#nav .bname { font-weight: 800; font-size: 1.25rem; color: var(--dark); line-height: 1; }
#nav .bsub { font-size: .72rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
#nav .navbar-nav .nav-link {
  font-weight: 600; color: #3a4a57; padding: 8px 14px; border-radius: 8px; transition: .2s;
}
#nav .navbar-nav .nav-link:hover,
#nav .navbar-nav .nav-link.active { color: var(--primary); background: var(--light); }
#nav .nav-cta {
  background: var(--primary); color: #fff !important; padding: 9px 18px !important;
  border-radius: 30px; font-weight: 600;
}
#nav .nav-cta:hover { background: var(--primary-dark); }
#nav .nav-search { background: none; border: 0; color: var(--primary); font-size: 1.1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn-red, .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-weight: 600;
  padding: 13px 26px; border-radius: 30px; border: 0; transition: .25s;
}
.btn-red:hover, .btn-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-c {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary); font-weight: 600;
  padding: 12px 24px; border-radius: 30px; border: 2px solid var(--primary); transition: .25s;
}
.btn-outline-c:hover { background: var(--primary); color: #fff; }

/* ---------- Section helpers ---------- */
section { padding: 80px 0; }
.slbl {
  display: inline-block; color: var(--secondary); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 10px;
}
.stitle { font-size: 2.4rem; margin-bottom: 14px; }
.stitle span { color: var(--primary); }
.sline { width: 70px; height: 4px; background: var(--secondary); border-radius: 4px; margin: 0 auto 18px; }
.sdesc { color: var(--muted); font-size: 1.02rem; }

/* ---------- Hero ---------- */
#hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(16,33,46,.92), rgba(31,95,139,.85)),
              url("/_template_assets/property/images/hero.jpg") center/cover no-repeat;
  color: #fff; padding: 90px 0;
}
#hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(224,164,88,.25), transparent 45%);
}
#hero .container { position: relative; z-index: 2; }
.hbadge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 30px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hbadge .hbi { color: var(--secondary); }
.htitle { font-size: 3.2rem; line-height: 1.1; margin-bottom: 18px; }
.htitle .hl { color: var(--secondary); }
.hdesc { color: #dbe6ee; font-size: 1.1rem; max-width: 520px; margin-bottom: 26px; }
.hstats { display: flex; gap: 26px; flex-wrap: wrap; }
.hstat .snum { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hstat .snum em { color: var(--secondary); font-style: normal; }
.hstat small { display: block; color: #cdd8e0; font-size: .82rem; }
.sdiv { width: 1px; background: rgba(255,255,255,.2); }

/* search bar */
.searchbar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 36px;
}
.searchbar input, .searchbar select {
  border: 1px solid #e2e8ee; border-radius: 10px; padding: 12px 14px; flex: 1; min-width: 150px;
  font-size: .95rem; color: var(--dark);
}
.searchbar input:focus, .searchbar select:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* ---------- Property cards ---------- */
.pcard {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .28s; border: 1px solid #eef2f5; height: 100%;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pimg { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.pcard:hover .pimg img { transform: scale(1.07); }
.ptag {
  position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 30px; letter-spacing: .5px;
}
.ptag.sale { background: var(--secondary); }
.ptag.rent { background: #2f9e6e; }
.pfav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #e25555; display: grid; place-items: center; border: 0; cursor: pointer;
}
.pbody { padding: 18px 18px 22px; }
.pprice { color: var(--primary); font-weight: 800; font-size: 1.4rem; }
.pprice small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.ptitle { font-size: 1.1rem; margin: 6px 0 4px; }
.ploc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.ploc i { color: var(--secondary); margin-right: 5px; }
.pfeatures { display: flex; gap: 16px; border-top: 1px solid #eef2f5; padding-top: 14px; color: #51606b; font-size: .9rem; }
.pfeatures span i { color: var(--primary); margin-right: 5px; }

/* filter buttons */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filterbtn {
  border: 2px solid #e2e8ee; background: #fff; color: #51606b; font-weight: 600;
  padding: 9px 20px; border-radius: 30px; cursor: pointer; transition: .2s;
}
.filterbtn.active, .filterbtn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Features ---------- */
.fcard2 {
  text-align: center; padding: 34px 22px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); border: 1px solid #eef2f5; transition: .25s; height: 100%;
}
.fcard2:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fico {
  width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.6rem;
}
.fcard2 h4 { font-size: 1.15rem; margin-bottom: 10px; }
.fcard2 p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats band ---------- */
#statsband { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; }
#statsband .sbitem { text-align: center; padding: 14px; }
#statsband .sbnum { font-size: 2.6rem; font-weight: 800; }
#statsband .sblbl { letter-spacing: 1px; text-transform: uppercase; font-size: .82rem; opacity: .85; }

/* ---------- Testimonials ---------- */
#testimonials { background: var(--light); }
.tescard {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  border: 1px solid #eef2f5; height: 100%;
}
.tesq { font-size: 3rem; color: var(--secondary); line-height: .6; font-family: Georgia, serif; }
.tess { color: var(--secondary); margin: 8px 0; }
.testxt { color: #51606b; font-style: italic; margin-bottom: 18px; }
.tesauth { display: flex; align-items: center; gap: 12px; }
.tesauth img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.tesnm { font-weight: 700; color: var(--dark); }
.tesrl { font-size: .82rem; color: var(--muted); }

/* ---------- CTA ---------- */
#cta {
  background: linear-gradient(120deg, rgba(16,33,46,.94), rgba(31,95,139,.9)),
              url("/_template_assets/property/images/prop-7.jpg") center/cover fixed;
  color: #fff; text-align: center;
}
#cta h2 { color: #fff; font-size: 2.4rem; }

/* ---------- About / Team ---------- */
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; display: block; }
.teamcard { text-align: center; }
.teamcard .timg { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid #fff; box-shadow: var(--shadow); }
.teamcard h5 { margin-bottom: 2px; }
.teamcard .trole { color: var(--secondary); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.teamcard .tsoc a { color: var(--primary); margin: 0 6px; }

/* ---------- Property detail ---------- */
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.thumbs img:hover { border-color: var(--primary); }
.featlist { list-style: none; padding: 0; }
.featlist li { padding: 10px 0; border-bottom: 1px dashed #e2e8ee; display: flex; align-items: center; gap: 10px; }
.featlist li i { color: var(--secondary); }
.agentcard {
  background: var(--light); border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid #eef2f5;
}
.agentcard img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: var(--shadow); }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.meta-pills span { background: var(--light); border-radius: 30px; padding: 6px 14px; font-size: .85rem; margin-right: 8px; display: inline-block; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-info .ci { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .ciico { width: 46px; height: 46px; border-radius: 12px; background: var(--light); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info .citt { font-weight: 700; color: var(--dark); }
.contact-info .cids { color: var(--muted); font-size: .92rem; }
.mapph { height: 320px; border-radius: var(--radius); background: linear-gradient(135deg,#cdd8e0,#aebcc7) url("/_template_assets/property/images/prop-3.jpg") center/cover; position: relative; overflow: hidden; }
.mapph::after { content: "Map placeholder"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16,33,46,.45); color: #fff; font-weight: 700; letter-spacing: 2px; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #cdd8e0; padding: 60px 0 0; }
footer .fnm { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
footer .fnm span { color: var(--secondary); }
footer .fdesc { color: #9fb0bd; font-size: .92rem; margin-bottom: 18px; }
footer .ftit { color: #fff; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; }
footer .flinks { list-style: none; }
footer .flinks li { margin-bottom: 10px; }
footer .flinks a { color: #cdd8e0; font-size: .9rem; transition: .2s; }
footer .flinks a:hover { color: var(--secondary); padding-left: 4px; }
footer .fci { display: flex; gap: 12px; margin-bottom: 16px; }
footer .fciico { color: var(--secondary); font-size: 1.1rem; margin-top: 3px; }
footer .fciinfo { font-size: .9rem; }
footer .fciinfo strong { display: block; color: #fff; }
footer .fsoc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-grid; place-items: center; margin-right: 8px; transition: .2s; }
footer .fsoc a:hover { background: var(--secondary); }
.fbot { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; font-size: .85rem; color: #9fb0bd; }
.fbot a { color: var(--secondary); }

/* back to top */
#btt {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; box-shadow: var(--shadow); cursor: pointer; z-index: 1040;
  opacity: 0; visibility: hidden; transition: .25s;
}
#btt.show { opacity: 1; visibility: visible; }
#btt:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
  .htitle { font-size: 2.3rem; }
  .stitle { font-size: 1.9rem; }
  #topbar { display: none; }
}
