/* ==========================================================================
   NIVARA — Mumbai's Curated New-Launch Portal
   Design tokens: Navy / Gold / Cream, Fraunces + Inter
   ========================================================================== */

:root{
  --navy-950:#081127;
  --navy-900:#0B1B3F;
  --navy-800:#142654;
  --navy-700:#1D3268;
  --navy-100:#E7EAF3;
  --gold-600:#B78A2E;
  --gold-500:#C9A24B;
  --gold-300:#E4C878;
  --gold-100:#F5EACD;
  --cream-100:#FAF8F3;
  --cream-200:#F3EFE4;
  --ink-900:#1B1E27;
  --ink-600:#4A4F5C;
  --ink-400:#7A7F8C;
  --line-200:#E6E1D3;
  --status-ready:#2F6B4F;
  --status-ready-bg:#E7F1EC;
  --status-construction:#B8792F;
  --status-construction-bg:#FBEEDD;
  --status-launch:#1D3268;
  --status-launch-bg:#E7EAF3;
  --danger:#B23A48;
  --danger-bg:#F8E7E9;
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-card:0 2px 4px rgba(11,27,63,0.06), 0 12px 28px -12px rgba(11,27,63,0.18);
  --shadow-pop:0 20px 60px -20px rgba(11,27,63,0.35);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--cream-100);
  font-size:16px;
  line-height:1.6;
}

h1,h2,h3,h4,.font-display{
  font-family:var(--font-display);
  font-weight:600;
  color:var(--navy-900);
  letter-spacing:-0.01em;
}

a{color:var(--navy-800); text-decoration:none;}
a:hover{color:var(--gold-600);}

.text-gold{color:var(--gold-600) !important;}
.bg-navy{background:var(--navy-900) !important;}
.bg-cream{background:var(--cream-100) !important;}
.bg-cream-200{background:var(--cream-200) !important;}

/* ---------- Buttons ---------- */
.btn{
  font-weight:600;
  border-radius:var(--radius-sm);
  padding:0.6rem 1.35rem;
  font-size:0.92rem;
  letter-spacing:0.01em;
  transition:all .18s ease;
}
.btn-gold{
  background:var(--gold-500);
  border:1px solid var(--gold-500);
  color:var(--navy-950);
}
.btn-gold:hover{ background:var(--gold-600); border-color:var(--gold-600); color:#fff;}
.btn-navy{
  background:var(--navy-900);
  border:1px solid var(--navy-900);
  color:#fff;
}
.btn-navy:hover{background:var(--navy-700); border-color:var(--navy-700); color:#fff;}
.btn-outline-navy{
  border:1px solid var(--navy-900);
  color:var(--navy-900);
  background:transparent;
}
.btn-outline-navy:hover{background:var(--navy-900); color:#fff;}
.btn-whatsapp{
  background:#25D366; border-color:#25D366; color:#fff;
}
.btn-whatsapp:hover{background:#1DA851; border-color:#1DA851; color:#fff;}
.btn-call{
  background:var(--navy-800); border-color:var(--navy-800); color:#fff;
}
.btn-call:hover{background:var(--navy-900); color:#fff;}
.btn-sm-pill{
  border-radius:30px; padding:0.4rem 1rem; font-size:0.82rem;
}

/* ---------- Rail motif divider (signature element) ---------- */
.rail-divider{
  display:flex; align-items:center; gap:10px; margin:0.4rem 0 1.6rem;
}
.rail-divider .rail-line{
  flex:0 0 64px; height:2px; background:linear-gradient(90deg, var(--gold-500), transparent);
  position:relative;
}
.rail-divider .rail-dot{
  width:7px; height:7px; border-radius:50%; background:var(--gold-500); flex:none;
}
.rail-divider .rail-label{
  font-family:var(--font-body); text-transform:uppercase; font-size:0.74rem;
  letter-spacing:0.14em; color:var(--gold-600); font-weight:700; white-space:nowrap;
}
.rail-divider.center{justify-content:center;}
.rail-divider.center .rail-line{background:linear-gradient(90deg, transparent, var(--gold-500), transparent); flex:0 0 40px;}

/* ---------- Navbar ---------- */
.navbar-nivara{
  background:var(--navy-900);
  padding:0.7rem 0;
  border-bottom:1px solid rgba(201,162,75,0.25);
}
.navbar-nivara .navbar-brand{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.55rem;
  color:#fff;
  display:flex; align-items:center; gap:8px;
}
.navbar-nivara .navbar-brand .brand-dot{color:var(--gold-500);}
.navbar-nivara .nav-link{
  color:rgba(255,255,255,0.82) !important;
  font-weight:500;
  font-size:0.93rem;
  padding:0.5rem 0.9rem !important;
}
.navbar-nivara .nav-link:hover, .navbar-nivara .nav-link.active{color:var(--gold-300) !important;}
.navbar-nivara .navbar-toggler{border-color:rgba(255,255,255,0.3);}
.navbar-nivara .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero{
  background:radial-gradient(1200px 600px at 85% -10%, rgba(201,162,75,0.18), transparent 60%), var(--navy-900);
  color:#fff;
  padding:5.2rem 0 4rem;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:auto -10% -40% auto;
  width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(201,162,75,0.14), transparent 70%);
}
.hero h1{
  color:#fff; font-size:clamp(2.1rem, 4vw, 3.1rem); line-height:1.12; margin-bottom:1.1rem;
}
.hero .lead-sub{
  color:rgba(255,255,255,0.78); font-size:1.08rem; max-width:560px; margin-bottom:2rem;
}
.hero-cta-card{
  background:#fff; border-radius:var(--radius-lg); padding:1.6rem;
  box-shadow:var(--shadow-pop);
}
.entry-cta{
  display:flex; align-items:center; gap:14px;
  border:1px solid var(--line-200); border-radius:var(--radius-md);
  padding:1rem 1.1rem; margin-bottom:0.75rem; background:#fff;
  transition:all .15s ease;
}
.entry-cta:last-child{margin-bottom:0;}
.entry-cta:hover{border-color:var(--gold-500); box-shadow:0 8px 20px -10px rgba(201,162,75,0.5); transform:translateY(-1px);}
.entry-cta .icon-badge{
  width:44px; height:44px; border-radius:10px; background:var(--navy-900);
  color:var(--gold-400); display:flex; align-items:center; justify-content:center; flex:none;
  font-size:1.2rem; color:var(--gold-300);
}
.entry-cta h3{font-size:1rem; margin:0; color:var(--navy-900); font-family:var(--font-body); font-weight:700;}
.entry-cta p{font-size:0.82rem; color:var(--ink-400); margin:0;}

/* search bar on hero */
.hero-search{
  background:#fff; border-radius:var(--radius-md); padding:0.4rem;
  display:flex; gap:0.4rem; box-shadow:var(--shadow-card); position:relative;
}
.hero-search input{
  border:none; outline:none; padding:0.7rem 1rem; flex:1; font-size:0.95rem; border-radius:8px;
}
.hero-search .autocomplete-list{
  position:absolute; top:calc(100% + 6px); left:0; right:0; background:#fff;
  border-radius:var(--radius-sm); box-shadow:var(--shadow-pop); z-index:50; overflow:hidden; display:none;
}
.hero-search .autocomplete-list.show{display:block;}
.hero-search .autocomplete-list button{
  display:block; width:100%; text-align:left; border:none; background:none;
  padding:0.6rem 1rem; font-size:0.9rem;
}
.hero-search .autocomplete-list button:hover{background:var(--cream-200);}

/* locality tiles */
.locality-tile{
  border-radius:var(--radius-md); overflow:hidden; position:relative; height:140px;
  display:flex; align-items:flex-end; color:#fff; background:var(--navy-800);
  box-shadow:var(--shadow-card);
}
.locality-tile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.55;}
.locality-tile .tile-label{position:relative; padding:0.85rem; font-weight:700; font-size:0.98rem;}
.locality-tile:hover img{opacity:0.7;}

/* section headers */
.section-eyebrow{
  text-transform:uppercase; letter-spacing:0.14em; font-size:0.76rem; color:var(--gold-600);
  font-weight:700;
}
.section-pad{padding:4rem 0;}

/* ---------- Project cards ---------- */
.project-card{
  background:#fff; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--line-200);
  box-shadow:var(--shadow-card); height:100%; transition:transform .15s ease, box-shadow .15s ease;
}
.project-card:hover{transform:translateY(-3px); box-shadow:0 20px 40px -16px rgba(11,27,63,0.25);}
.project-card .thumb-wrap{position:relative; height:190px; overflow:hidden;}
.project-card .thumb-wrap img{width:100%; height:100%; object-fit:cover;}
.badge-featured{
  position:absolute; top:10px; left:10px; background:var(--gold-500); color:var(--navy-950);
  font-size:0.72rem; font-weight:800; padding:0.3rem 0.6rem; border-radius:4px; letter-spacing:0.03em;
}
.badge-status{
  position:absolute; top:10px; right:10px; font-size:0.7rem; font-weight:700; padding:0.3rem 0.6rem;
  border-radius:4px;
}
.badge-status.ready{background:var(--status-ready-bg); color:var(--status-ready);}
.badge-status.construction{background:var(--status-construction-bg); color:var(--status-construction);}
.badge-status.launch{background:var(--status-launch-bg); color:var(--status-launch);}
.project-card .body{padding:1.1rem 1.2rem 1.3rem;}
.project-card .developer{font-size:0.78rem; color:var(--ink-400); text-transform:uppercase; letter-spacing:0.04em;}
.project-card h5{font-size:1.08rem; margin:0.2rem 0 0.4rem; font-family:var(--font-display);}
.project-card .locality-line{font-size:0.85rem; color:var(--ink-600); display:flex; align-items:center; gap:5px; margin-bottom:0.6rem;}
.project-card .config-line{font-size:0.83rem; color:var(--ink-600); margin-bottom:0.5rem;}
.project-card .price-line{font-weight:700; color:var(--navy-900); font-size:1.02rem;}
.project-card .card-footer-row{display:flex; justify-content:space-between; align-items:center; margin-top:0.7rem; padding-top:0.7rem; border-top:1px dashed var(--line-200);}
.compare-check{font-size:0.8rem; color:var(--ink-400); display:flex; align-items:center; gap:6px;}

.locality-group-header{
  display:flex; align-items:baseline; gap:10px; margin:2.4rem 0 1.2rem;
}
.locality-group-header h4{margin:0; font-size:1.3rem;}
.locality-group-header .count-pill{
  background:var(--cream-200); color:var(--navy-800); font-size:0.78rem; font-weight:700;
  padding:0.25rem 0.65rem; border-radius:20px;
}

/* ---------- Filter panel ---------- */
.filter-panel{
  background:#fff; border-radius:var(--radius-md); border:1px solid var(--line-200);
  padding:1.3rem; box-shadow:var(--shadow-card); position:sticky; top:88px;
}
.filter-panel h6{font-family:var(--font-body); font-weight:800; font-size:0.82rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--navy-900); margin-bottom:0.7rem;}
.filter-panel .form-check{margin-bottom:0.35rem;}
.filter-panel .form-check-label{font-size:0.88rem; color:var(--ink-600);}
.filter-panel hr{border-color:var(--line-200); margin:1.1rem 0;}

/* ---------- Detail page ---------- */
.gallery-main{border-radius:var(--radius-md); overflow:hidden; height:420px;}
.gallery-main img{width:100%; height:100%; object-fit:cover; cursor:zoom-in;}
.gallery-thumbs{display:flex; gap:0.6rem; margin-top:0.6rem;}
.gallery-thumbs img{width:82px; height:64px; object-fit:cover; border-radius:6px; cursor:pointer; border:2px solid transparent; opacity:0.75;}
.gallery-thumbs img.active{border-color:var(--gold-500); opacity:1;}

.detail-sticky-card{
  background:#fff; border-radius:var(--radius-md); border:1px solid var(--line-200); padding:1.4rem;
  box-shadow:var(--shadow-card); position:sticky; top:88px;
}
.rera-chip{
  display:inline-flex; align-items:center; gap:6px; background:var(--cream-200); padding:0.4rem 0.75rem;
  border-radius:20px; font-size:0.8rem; color:var(--navy-800); font-weight:600;
}

.config-table th{background:var(--navy-900); color:#fff; font-weight:600; font-size:0.85rem; border:none;}
.config-table td{font-size:0.9rem; vertical-align:middle;}
.config-table{border-radius:10px; overflow:hidden; box-shadow:var(--shadow-card);}

.amenity-chip{
  display:flex; align-items:center; gap:8px; background:var(--cream-200); border-radius:10px;
  padding:0.7rem 0.9rem; font-size:0.87rem; color:var(--navy-800); font-weight:500;
}

.floorplan-tile{
  position:relative; border-radius:10px; overflow:hidden; height:220px; cursor:pointer;
  border:1px solid var(--line-200);
}
.floorplan-tile img{width:100%; height:100%; object-fit:cover; filter:blur(8px) brightness(0.7); transform:scale(1.05);}
.floorplan-tile .lock-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; gap:6px; text-align:center; padding:0.5rem;
}
.floorplan-tile .lock-overlay i{font-size:1.6rem;}
.floorplan-tile.unlocked img{filter:none; transform:none;}
.floorplan-tile.unlocked .lock-overlay{display:none;}

.map-embed{border-radius:var(--radius-md); overflow:hidden; height:280px; border:1px solid var(--line-200);}

/* EMI calculator */
.emi-result{
  background:var(--navy-900); color:#fff; border-radius:var(--radius-md); padding:1.2rem 1.4rem;
}
.emi-result .amount{font-family:var(--font-display); font-size:2rem; color:var(--gold-300);}

/* ---------- Compare bar ---------- */
.compare-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:1040; background:var(--navy-900); color:#fff;
  padding:0.85rem 0; box-shadow:0 -8px 24px rgba(0,0,0,0.2); transform:translateY(110%); transition:transform .25s ease;
}
.compare-bar.show{transform:translateY(0);}
.compare-bar .compare-chip{background:rgba(255,255,255,0.1); border-radius:20px; padding:0.35rem 0.8rem; font-size:0.85rem; display:inline-flex; align-items:center; gap:6px;}

/* ---------- Cards general (resale, broker) ---------- */
.info-card{background:#fff; border-radius:var(--radius-md); border:1px solid var(--line-200); box-shadow:var(--shadow-card); padding:1.2rem;}
.resale-card{background:#fff; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--line-200); box-shadow:var(--shadow-card); height:100%;}
.resale-card .thumb-wrap{height:170px; overflow:hidden;}
.resale-card .thumb-wrap img{width:100%; height:100%; object-fit:cover;}
.resale-card .body{padding:1rem 1.1rem;}

.status-pill{font-size:0.72rem; font-weight:700; padding:0.25rem 0.6rem; border-radius:12px; text-transform:capitalize;}
.status-pill.approved{background:var(--status-ready-bg); color:var(--status-ready);}
.status-pill.pending{background:var(--status-construction-bg); color:var(--status-construction);}
.status-pill.rejected{background:var(--danger-bg); color:var(--danger);}

/* ---------- Forms ---------- */
.form-label{font-weight:600; font-size:0.87rem; color:var(--navy-900);}
.form-control, .form-select{
  border-radius:8px; border:1px solid var(--line-200); padding:0.6rem 0.85rem; font-size:0.92rem;
}
.form-control:focus, .form-select:focus{border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(201,162,75,0.18);}
.otp-boxes{display:flex; gap:0.5rem;}
.otp-boxes input{width:46px; height:52px; text-align:center; font-size:1.3rem; font-weight:700;}

/* ---------- Broker directory ---------- */
.broker-card{background:#fff; border:1px solid var(--line-200); border-radius:var(--radius-md); padding:1.1rem; box-shadow:var(--shadow-card);}
.broker-avatar{
  width:48px; height:48px; border-radius:50%; background:var(--navy-900); color:var(--gold-300);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display); font-size:1.1rem;
}

/* ---------- Admin / Ops layout ---------- */
.admin-shell{display:flex; min-height:100vh;}
.admin-sidebar{
  width:250px; background:var(--navy-900); color:#fff; flex:none; padding:1.4rem 1.1rem; position:sticky; top:0; height:100vh; overflow-y:auto;
}
.admin-sidebar .brand{font-family:var(--font-display); font-size:1.3rem; font-weight:700; margin-bottom:1.8rem; display:flex; align-items:center; gap:8px;}
.admin-sidebar .side-link{
  display:flex; align-items:center; gap:10px; color:rgba(255,255,255,0.75); padding:0.65rem 0.8rem;
  border-radius:8px; font-size:0.9rem; font-weight:500; margin-bottom:0.25rem; cursor:pointer;
}
.admin-sidebar .side-link:hover{background:rgba(255,255,255,0.06); color:#fff;}
.admin-sidebar .side-link.active{background:var(--gold-500); color:var(--navy-950); font-weight:700;}
.admin-main{flex:1; padding:2rem 2.2rem; background:var(--cream-100); min-width:0;}
.stat-card{background:#fff; border-radius:var(--radius-md); border:1px solid var(--line-200); padding:1.2rem 1.3rem; box-shadow:var(--shadow-card);}
.stat-card .stat-value{font-family:var(--font-display); font-size:1.9rem; color:var(--navy-900);}
.stat-card .stat-label{font-size:0.8rem; color:var(--ink-400); text-transform:uppercase; letter-spacing:0.04em; font-weight:700;}
.admin-panel-section{display:none;}
.admin-panel-section.active{display:block;}
.table-nivara thead th{background:var(--navy-900); color:#fff; font-size:0.8rem; font-weight:600; border:none; padding:0.75rem;}
.table-nivara td{font-size:0.87rem; vertical-align:middle; padding:0.7rem 0.75rem;}
.table-nivara{background:#fff; border-radius:10px; overflow:hidden; box-shadow:var(--shadow-card);}

.login-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--navy-950), var(--navy-800));
  padding:2rem 1rem;
}
.login-card{background:#fff; border-radius:var(--radius-lg); padding:2.4rem; width:100%; max-width:420px; box-shadow:var(--shadow-pop);}

/* ---------- Footer ---------- */
.footer-nivara{background:var(--navy-950); color:rgba(255,255,255,0.7); padding:3.4rem 0 1.6rem; margin-top:4rem;}
.footer-nivara h6{color:#fff; font-weight:700; font-size:0.9rem; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:1rem;}
.footer-nivara a{color:rgba(255,255,255,0.65); font-size:0.9rem;}
.footer-nivara a:hover{color:var(--gold-300);}
.footer-nivara .brand{font-family:var(--font-display); color:#fff; font-size:1.4rem; font-weight:700;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1); margin-top:2.2rem; padding-top:1.4rem; font-size:0.8rem;}
.social-dot{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08); display:inline-flex;
  align-items:center; justify-content:center; margin-right:8px; color:#fff;
}
.social-dot:hover{background:var(--gold-500); color:var(--navy-950);}

/* ---------- Misc ---------- */
.page-header{background:var(--navy-900); color:#fff; padding:2.6rem 0 3.4rem;}
.page-header h1{color:#fff; font-size:2rem; margin-bottom:0.3rem;}
.breadcrumb-nivara{font-size:0.85rem; color:rgba(255,255,255,0.6);}
.breadcrumb-nivara a{color:rgba(255,255,255,0.75);}

.testimonial-card{background:#fff; border-radius:var(--radius-md); border:1px solid var(--line-200); padding:1.5rem; box-shadow:var(--shadow-card); height:100%;}
.testimonial-card .stars{color:var(--gold-500); font-size:0.9rem; margin-bottom:0.6rem;}

.toast-nivara{
  position:fixed; top:90px; right:20px; z-index:1090; background:var(--navy-900); color:#fff;
  padding:0.9rem 1.2rem; border-radius:10px; box-shadow:var(--shadow-pop); display:flex; align-items:center; gap:10px;
  min-width:280px; transform:translateX(120%); transition:transform .3s ease;
}
.toast-nivara.show{transform:translateX(0);}
.toast-nivara.success{border-left:4px solid #3FAE73;}
.toast-nivara.info{border-left:4px solid var(--gold-500);}
.toast-nivara.danger{border-left:4px solid var(--danger);}

.empty-state{text-align:center; padding:3.5rem 1rem; color:var(--ink-400);}
.empty-state i{font-size:2.4rem; color:var(--line-200); margin-bottom:0.8rem; display:block;}

.skeleton{background:linear-gradient(90deg, var(--cream-200) 25%, #efe9d8 37%, var(--cream-200) 63%); background-size:400% 100%; animation:skeleton-loading 1.4s ease infinite; border-radius:8px;}
@keyframes skeleton-loading{0%{background-position:100% 50%;} 100%{background-position:0 50%;}}

@media (max-width: 991px){
  .admin-shell{flex-direction:column;}
  .admin-sidebar{width:100%; height:auto; position:relative; display:flex; flex-wrap:wrap; gap:0.4rem;}
  .filter-panel{position:relative; top:0; margin-bottom:1.5rem;}
  .detail-sticky-card{position:relative; top:0;}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}
