/* THEME + GLOBAL RESET*/

:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --shadow-soft: 0 10px 24px rgba(15,23,42,.06);
  --blue:#0b63f6;
  --blue-2:#1f7aff;
  --radius:16px;
  --radius-sm:12px;
  --container: 1140px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.35;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }


/* UTILITIES + LAYOUT */

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 18px 28px;
}

.muted{ color:var(--muted); }
.tiny{ font-size:.82rem; }

.full{ width:100%; }


/* GENERIC CARDS */

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-title{
  font-weight: 900;
  letter-spacing:-.01em;
}


/* BUTTONS */

.btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 850;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.btn-sm{ padding: 7px 12px; font-size:.92rem; }
.btn:hover{ filter:brightness(.98); transform: translateY(-1px); }

.btn-primary{
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  border-color: rgba(11,99,246,.35);
  color:#fff;
  box-shadow: 0 12px 24px rgba(11,99,246,.18);
}

.btn-primary:hover{
  box-shadow: 0 18px 34px rgba(11,99,246,.24);
}

.btn-ghost{
  background:#fff;
}


/* TOP NAV */

.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,247,251,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.85);
}

.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.nav-links{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 850;
  color: #111827;
  opacity:.8;
  border:1px solid transparent;
}

.nav-links a:hover{
  opacity:1;
  border-color: rgba(229,231,235,.9);
  background:#fff;
}

.nav-links a.active{
  opacity:1;
  border-color: rgba(11,99,246,.25);
  background: rgba(11,99,246,.08);
}

.nav-actions{ display:flex; gap:10px; align-items:center; }

.nav-pill{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  font-weight: 900;
}

/* Navbar logo container (image + text) */
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img{
  height: 36px;
  width: auto;
  display: block;
}

.logo-text{
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

@media (min-width: 768px) {
  .logo-img { height: 40px; }
  .logo-text { font-size: 1.15rem; }
}


/* SEARCHBAR */

.searchbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px;
  border-radius: 999px;
}

.searchbar-compact{ padding: 12px; }
.search-icon{ opacity:.55; font-weight: 900; }

.searchbar input{
  flex:1;
  border:0;
  outline:none;
  font-size: 1rem;
  background: transparent;
}


/* LANDING PAGE */

.landing-hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  align-items:start;
  margin-top: 8px;
}

.hero-content{
  padding: 26px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(11,99,246,.18), transparent 55%),
    radial-gradient(700px 380px at 90% 10%, rgba(11,99,246,.10), transparent 50%),
    linear-gradient(180deg, #ffffff, rgba(255,255,255,.7));
  border: 1px solid rgba(229,231,235,.9);
  box-shadow: var(--shadow);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  font-size:.92rem;
  color: rgba(15,23,42,.72);
  border:1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.75);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge-dot{
  width:10px;
  height:10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 18px rgba(11,99,246,.25);
}

.hero-title{
  margin: 0 0 10px;
  font-size: 2.85rem;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 950;
}

.hero-accent{
  display:inline-block;
  color: var(--blue);
  background: rgba(11,99,246,.08);
  border: 1px solid rgba(11,99,246,.14);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}

.hero-lede{
  margin: 0 0 16px;
  font-size: 1.05rem;
  max-width: 64ch;
}

.hero-search{
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 34px rgba(15,23,42,.10);
}

.hero-search input{ font-size: 1.05rem; }

.hero-chips{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 14px;
}

.chip{
  border: 1px solid rgba(229,231,235,.95);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.chip:hover{
  border-color: rgba(11,99,246,.22);
  background: rgba(11,99,246,.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}

.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 12px;
}

.stat{
  border:1px solid rgba(229,231,235,.92);
  background: rgba(255,255,255,.76);
  border-radius: 14px;
  padding: 12px;
}

.stat-num{
  font-weight: 950;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.stat-label{
  margin-top: 2px;
  font-weight: 750;
  font-size: .92rem;
}

.hero-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mini-card{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,.92);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
}

.mini-title{
  font-weight: 950;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.mini-sub{
  color: var(--muted);
  font-weight: 650;
}

/* Right panel */
.hero-panel .panel-card{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(229,231,235,.9);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(11,99,246,.10), transparent 50%),
    #fff;
}

.panel-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.panel-title{
  font-weight: 950;
  letter-spacing:-.02em;
  font-size: 1.05rem;
}

.panel-sub{
  margin-top: 4px;
  font-weight: 650;
}

.picks{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.pick{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,.95);
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.pick:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.pick-img{
  width: 84px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #eef2f7;
}

.img-fallback{
  background: linear-gradient(180deg, #f1f5f9, #e5e7eb);
}

.pick-price{
  font-weight: 950;
  font-size: 1.05rem;
}

.pick-sub{ font-weight: 750; }

.pick-addr{
  margin-top: 4px;
  font-weight: 900;
  line-height: 1.15;
}

.panel-cta{ margin-top: 8px; }
.panel-foot{ margin-top: 10px; }

/* Sections */
.section{
  margin-top: 18px;
  padding: 18px 0;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title{
  margin:0;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}

/* How it works */
.how-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-card{ padding: 14px; }

.how-step{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(11,99,246,.10);
  border: 1px solid rgba(11,99,246,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  color: var(--blue);
}

.how-title{
  margin-top: 10px;
  font-weight: 950;
  font-size: 1.05rem;
}

.how-sub{
  margin: 6px 0 0;
  font-weight: 650;
}

/* Trust card */
.trust{
  padding: 16px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(11,99,246,.10), transparent 55%),
    #fff;
}

.trust-title{
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  font-weight: 950;
}

.trust-sub{
  margin: 0 0 12px;
  font-weight: 650;
  max-width: 70ch;
}

.trust-pills{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.92);
  background: rgba(245,247,251,.8);
  font-weight: 850;
  font-size: .92rem;
}

.trust-right{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.trust-box{
  border: 1px solid rgba(229,231,235,.92);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.86);
}

.trust-box-title{
  font-weight: 950;
  letter-spacing: -.01em;
}

/* CTA */
.cta{
  margin-top: 18px;
  padding: 18px 0 6px;
}

.cta-inner{
  border: 1px solid rgba(229,231,235,.92);
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(11,99,246,.16), transparent 55%),
    linear-gradient(180deg, #ffffff, rgba(255,255,255,.76));
  border-radius: var(--radius);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.cta-title{
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  font-weight: 950;
}

.cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  margin-top: 18px;
  border-top: 1px solid rgba(229,231,235,.85);
  background: rgba(245,247,251,.7);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-top: 14px;
}


/* RESULTS PAGE */

.results-shell{
  display:grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  align-items:start;
}

.results-sidebar{
  position: sticky;
  top: 76px;
  align-self:start;
}

.sidebar-stack{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.filters-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
}

.filters-grid label{
  display:block;
  font-size:.9rem;
  font-weight: 850;
  margin-bottom: 6px;
  color:#111827;
}

.filters-grid input,
.filters-grid select{
  width:100%;
  padding: 10px 10px;
  border-radius: 12px;
  border:1px solid rgba(229,231,235,.95);
  outline:none;
  background:#fff;
  font-size: 1rem;
}

.filters-actions{
  display:flex;
  gap:10px;
  padding: 0 12px 12px;
}

.mode-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top: 12px;
}

.mode-tile{
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow:none;
  background:#fff;
}

.results-content .results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin: 6px 0 12px;
}

.results-content h2{
  margin:0;
  font-size: 1.55rem;
  letter-spacing:-.02em;
}

.results-hint{
  max-width: 320px;
  text-align:right;
}

.results-layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items:start;
}

.results-layout.map-open{
  grid-template-columns: 1fr 380px;
}

.results-map{
  position: sticky;
  top: 92px;
  align-self:start;
}

.results-map.is-hidden{ display:none; }

.map{
  overflow:hidden;
}

.map-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(229,231,235,.9);
}

.map-body{ padding: 12px; }

.leaflet-shell{
  width: 100%;
  height: 360px;
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,.92);
  overflow:hidden;
}

.map-foot{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(229,231,235,.9);
}

/* Card grid (results/favorites) */
.card-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-card{
  border: 1px solid rgba(229,231,235,.92);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease;
}

.home-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15,23,42,.12);
}

.home-img{
  display:block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:#eef2f7;
  position: relative;
}

.home-img-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.home-body{ padding: 12px; }

.home-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.home-price{
  font-weight: 950;
  font-size: 1.2rem;
  letter-spacing:-.02em;
}

.icon-btn{
  border: 1px solid rgba(229,231,235,.92);
  background:#fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.home-facts{
  margin-top: 6px;
  font-weight: 800;
}

.home-addr{
  display:block;
  margin-top: 6px;
  font-weight: 950;
  line-height: 1.15;
}

.home-sub{
  margin-top: 6px;
  font-weight: 700;
}

.home-tags{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,99,246,.20);
  background: rgba(11,99,246,.08);
  font-weight: 900;
}

.tag-soft{
  border-color: rgba(229,231,235,.92);
  background: #f8fafc;
}

.tag-btn:hover{
  transform: translateY(-1px);
}


/* LISTING PAGE */

.back-link{
  display:inline-block;
  margin: 10px 0 10px;
  font-weight: 900;
  opacity:.85;
}
.back-link:hover{ opacity:1; }

.listing-title{
  margin:0;
  font-size: 2rem;
  letter-spacing:-.02em;
  font-weight: 950;
}

.listing-subtitle{
  margin-top: 6px;
  font-weight: 700;
}

.listing-actions{
  display:flex;
  gap:10px;
  margin-top: 10px;
  flex-wrap:wrap;
}

.listing-layout{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items:start;
}

.listing-gallery{ overflow:hidden; }

.gallery-hero{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  background:#eef2f7;
  border-radius: var(--radius);
  overflow:hidden;
}

.gallery-hero-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.gallery-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.86);
  font-size: 28px;
  font-weight: 900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-prev{ left: 12px; }
.gallery-next{ right: 12px; }

.gallery-thumbs{
  display:flex;
  gap:10px;
  padding: 12px;
  overflow:auto;
}

.thumb{
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  width: 92px;
  height: 62px;
  flex: 0 0 auto;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.thumb-active{
  border-color: rgba(11,99,246,.55);
  box-shadow: 0 10px 22px rgba(11,99,246,.12);
}

.listing-facts-bar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin: 12px 0;
}

.listing-price{
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing:-.02em;
}

.listing-facts{ font-weight: 800; }

.section-card{
  padding: 12px;
  margin-top: 12px;
}

.section-text{
  margin:0;
  font-weight: 650;
}

.info-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-tile{
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 14px;
  padding: 10px;
  background:#fff;
}

.info-label{
  font-size: .85rem;
  font-weight: 850;
  color: rgba(15,23,42,.65);
}

.info-value{
  margin-top: 2px;
  font-weight: 950;
}

.sticky-card{
  position: sticky;
  top: 92px;
  padding: 12px;
}

.form-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}


/* SELL PAGE */

.sell-wrap{
  max-width: 980px;
  margin: 18px auto 26px;
}

.sell-card{
  padding: 18px;
  background:
    radial-gradient(900px 260px at 85% 0%, rgba(11,99,246,.10), transparent 55%),
    #fff;
}

.sell-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sell-head h1{
  margin:0;
  font-size: 1.8rem;
  letter-spacing:-.02em;
  font-weight: 950;
}

.sell-sub{
  margin: 6px 0 0;
  font-weight: 700;
}

.sell-form{
  display:grid;
  gap: 12px;
  margin-top: 12px;
}

.sell-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px){
  .sell-grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size:.9rem;
  font-weight: 900;
  margin-bottom: 6px;
  color:#111827;
}

.field input,
.field select,
.field textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(229,231,235,.95);
  outline:none;
  background:#fff;
  font-size: 1rem;
}

.field textarea{
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(11,99,246,.55);
  box-shadow: 0 0 0 4px rgba(11,99,246,.14);
}

.sell-tip{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,99,246,.18);
  background: rgba(11,99,246,.06);
  font-weight: 750;
}

.sell-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 6px;
}


/* REQUEST CARD (inside listing page) */

.request-card .request-form{ margin-top: 12px; }
.request-card .request-field{ margin-bottom: 12px; }

.request-card .request-field label{
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}

.request-card .request-field input,
.request-card .request-field textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 0.95rem;
}

.request-card .request-field textarea{
  min-height: 110px;
  resize: vertical;
  line-height: 1.35;
}

.request-card .request-field input:focus,
.request-card .request-field textarea:focus{
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.request-card .btn.full{ width: 100%; }

.request-card .request-foot{
  margin-top: 10px;
  line-height: 1.35;
}


/* VIDEO TOUR with custom confirm */

.vb-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.vb-modal-overlay.is-open{ display: flex; }

.vb-modal{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  overflow: hidden;
}

.vb-modal-head{ padding: 16px 16px 10px; }

.vb-modal-title{
  font-weight: 900;
  font-size: 18px;
  margin: 0;
}

.vb-modal-sub{
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.35;
}

.vb-modal-body{ padding: 0 16px 14px; }

.vb-modal-note{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 106, 255, 0.08);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.vb-modal-note .vb-icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 106, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.vb-modal-actions{
  display: flex;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.vb-modal-actions .full{ flex: 1; }


/* LOGIN PAGE (only on <body class="login-page">) */

body.login-page{
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(255, 203, 95, 0.35), rgba(255, 203, 95, 0) 60%),
    radial-gradient(900px 650px at 80% 20%, rgba(64, 148, 255, 0.28), rgba(64, 148, 255, 0) 60%),
    radial-gradient(900px 650px at 60% 90%, rgba(170, 110, 255, 0.22), rgba(170, 110, 255, 0) 60%),
    #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-shell{
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px){
  .login-shell{ grid-template-columns: 1fr; }
}

/* LEFT PANEL (hero) */
.login-hero{
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.login-hero::after{
  content:"";
  position:absolute;
  right:-160px;
  top:-160px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(11, 99, 246, 0.22), transparent 60%);
  opacity: .9;
}

.login-hero h1{
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.03em;
  color: var(--text);
}

.login-hero p{
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 650;
  line-height: 1.5;
}

.login-badges{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 14px;
}

.login-badge{
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(15, 23, 42, 0.82);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.login-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.login-links a{
  font-weight: 900;
  color: rgba(15, 23, 42, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-links a:hover{ opacity: .92; }

/* RIGHT PANEL (form card) */
.login-card{
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

.login-card h2{
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -.02em;
  color: var(--text);
}

#formSubtitle{
  color: rgba(15, 23, 42, 0.70);
  font-weight: 650;
}

.login-form{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form label{
  display: block;
  font-size: .92rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.86);
}

.login-form input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 23, 42, 0.92);
  outline: none;
  font-size: 1rem;
}

.login-form input:focus{
  border-color: rgba(11, 99, 246, 0.40);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.14);
}

.login-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.login-primary,
.login-secondary{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.70);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.login-primary{
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  border-color: rgba(11,99,246,.35);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11,99,246,.18);
}

.login-primary:hover,
.login-secondary:hover{
  filter: brightness(.98);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.login-message{
  min-height: 20px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.70);
}

.login-message.show.error{ color: #b91c1c; }
.login-message.show.success{ color: #166534; }


/* RESPONSIVE */

@media (max-width: 1100px){
  .card-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px){
  .landing-hero{ grid-template-columns: 1fr; }
  .hero-cards{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; }
  .cta-inner{ flex-direction: column; align-items:flex-start; }
}

@media (max-width: 820px){
  .results-shell{ grid-template-columns: 1fr; }
  .results-sidebar{ position: static; top:auto; }
  .results-layout.map-open{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-layout{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .card-grid{ grid-template-columns: 1fr; }
  .hero-title{ font-size: 2.15rem; }
}

/* MAIL */

.vb-mail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.vb-mail-overlay.is-open {
  display: flex;
}

.vb-mail-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  padding: 18px;
}

.vb-mail-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.vb-mail-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-weight: 600;
}

.vb-mail-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(11, 99, 246, 0.08);
  font-size: 0.95rem;
  line-height: 1.35;
}

.vb-mail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.vb-mail-actions .btn {
  flex: 1;
}




/* My Listings page: make cards wider so action buttons fit nicely */
body.my-listings-page .card-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Optional: on smaller desktops, drop to 2 earlier */
@media (max-width: 980px){
  body.my-listings-page .card-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.home-actions {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 8px;
}

.home-actions .btn {
  width: auto;
  min-width: 140px;
  text-align: center;
}




.searchbar {
  flex-wrap: wrap;              
}

.searchbar input {
  min-width: 0;                 
  flex: 1 1 180px;             
}

.searchbar .btn {
  flex: 0 0 auto;              
  white-space: nowrap;         
}

@media (max-width: 520px) {
  .searchbar .btn {
    width: 100%;
    justify-content: center;
  }
}



