:root {
  --ink: #08223b;
  --muted: #617184;
  --brand: #0f4c75;
  --brand-2: #f2752b;
  --mint: #dcefe7;
  --paper: #f6fbff;
  --line: #dbe7ef;
  --shadow: 0 18px 38px rgba(30, 71, 98, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e6f1f8 0%, #f8fbfc 42%, #fff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; padding-bottom: 82px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 38px);
  background: rgba(246, 251, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 231, 239, .75);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #16827d);
  font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.install-btn, .menu-btn {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
}
.menu-btn { width: 42px; }
.drawer {
  display: none;
  position: fixed;
  right: 14px;
  top: 68px;
  z-index: 25;
  padding: 10px;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.drawer.open { display: grid; }
.drawer a { padding: 12px; border-radius: 6px; }
.drawer a:hover { background: #eef7fb; }
main { max-width: 1180px; margin: 0 auto; padding: 18px clamp(14px, 3vw, 28px) 34px; }
.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 5vw, 56px);
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(105deg, rgba(8,34,59,.86), rgba(15,76,117,.56)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-copy { animation: liftIn .7s ease both; }
.eyebrow { margin: 0 0 8px; color: var(--brand-2); font-weight: 800; letter-spacing: 0; }
.hero .eyebrow { color: #ffd2b8; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.02; margin: 0; max-width: 760px; }
h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.08; margin: 0; }
.lead { max-width: 620px; color: #edf7ff; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.primary, .secondary, form button, .property-body button {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
}
.primary, form button, .property-body button { color: #fff; background: var(--brand-2); }
.secondary { color: #fff; border: 1px solid rgba(255,255,255,.65); }
.hero-card {
  display: grid;
  gap: 12px;
  animation: floatCard 4s ease-in-out infinite;
}
.stat {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.stat strong { display: block; font-size: 34px; }
.stat span { color: #e8f5ff; }
.ticker {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 2px;
  scrollbar-width: none;
}
.ticker span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(30, 71, 98, .08);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 12px 0 28px;
}
.quick {
  min-height: 122px;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbfd;
  box-shadow: 0 13px 0 rgba(63, 115, 141, .2), 0 24px 38px rgba(38, 82, 108, .12);
}
.quick span { color: var(--brand); font-size: 36px; line-height: 1; font-weight: 900; }
.quick strong { font-size: 16px; }
.quick small { color: #001b32; font-weight: 700; }
.quick.active { background: #fff1e4; box-shadow: 0 13px 0 rgba(188, 116, 50, .22), 0 24px 38px rgba(38, 82, 108, .12); }
.quick.active span { color: #b5632d; }
.quick.signup { background: var(--mint); }
.quick.signup span { color: #22846d; }
.property-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.property-types a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #0d3a54;
  background: #eaf5f8;
  border: 1px solid #cee4ed;
  font-weight: 800;
}
.search-panel, .story, .add-listing, .contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 15px 35px rgba(29, 70, 95, .1);
}
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d8e2;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 104px; resize: vertical; grid-column: 1 / -1; }
form button { min-height: 48px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 14px;
}
.section-head span { color: var(--muted); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 71, 98, .12);
}
.property-media {
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
}
.property-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(8,34,59,.82);
  font-weight: 800;
}
.property-body { padding: 16px; }
.property-body h3 { margin: 0 0 8px; font-size: 20px; }
.property-body p { color: var(--muted); margin: 0 0 12px; }
.property-body div { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.property-body small { color: var(--brand); font-weight: 800; }
.property-body button { width: 100%; }
.details-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: center;
  color: var(--brand);
  background: #eaf5f8;
  font-weight: 800;
}
.promise-grid { display: grid; gap: 12px; }
.promise-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 8px;
  background: #eff8fb;
}
.promise-grid span { color: var(--muted); }
.contact { grid-template-columns: 1fr; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.bottom-nav a { display: grid; place-items: center; gap: 2px; color: var(--brand); font-size: 22px; }
.bottom-nav span { font-size: 11px; font-weight: 800; color: var(--ink); }
dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(8,34,59,.42); backdrop-filter: blur(3px); }
#closeModal {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  z-index: 40;
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes liftIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.auth-page, .form-page, .broadcast-page, .detail-page {
  max-width: 980px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 14px 70px;
}
.auth-page, .broadcast-page {
  display: grid;
  place-items: center;
}
.auth-card, .mobile-form-card, .broadcast-card, .lead-box {
  width: min(100%, 560px);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.auth-card h1, .form-hero h1, .broadcast-card h1 { color: var(--ink); font-size: clamp(34px, 7vw, 56px); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--brand); font-weight: 800; }
.back-link.light { color: #fff; position: absolute; z-index: 4; left: 18px; top: 16px; }
.stack-form { grid-template-columns: 1fr; }
.switch-link a { color: var(--brand); font-weight: 800; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dashboard-actions button, .secondary.dark {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.form-hero {
  padding: 24px 0;
}
.form-hero p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.mobile-form-card { width: 100%; }
.mobile-form-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.broadcast-card {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(220,239,231,.9)),
    radial-gradient(circle at top right, rgba(242,117,43,.18), transparent 38%);
}
.phone-preview {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 22px;
  background: #102d3e;
  box-shadow: inset 0 0 0 7px #0b1e2a;
}
.chat {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.chat.top { width: 100%; text-align: center; color: #fff; background: #1f7a65; }
.chat.alt { justify-self: end; color: #fff; background: #26885d; }
.whatsapp-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: #1f9d61;
  font-weight: 900;
}
.detail-page { max-width: 1180px; }
.detail-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.detail-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: .72;
}
.detail-overlay {
  position: absolute;
  left: clamp(18px, 5vw, 54px);
  right: 18px;
  bottom: clamp(24px, 6vw, 62px);
  color: #fff;
}
.detail-overlay h1 { font-size: clamp(36px, 7vw, 68px); }
.badge {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-2);
  font-weight: 900;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.detail-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 71, 98, .08);
}
.detail-summary strong { display: block; font-size: 26px; }
.detail-summary span { color: var(--muted); font-weight: 800; }
.detail-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.detail-content > div, .lead-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.amenities { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.amenities span {
  padding: 9px 12px;
  border-radius: 8px;
  background: #eaf5f8;
  color: var(--brand);
  font-weight: 800;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.lead-box { position: sticky; top: 86px; width: 100%; }
.lead-box form { grid-template-columns: 1fr; margin-bottom: 12px; }
@media (max-width: 920px) {
  .hero, .search-panel, .story, .add-listing { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .detail-content { grid-template-columns: 1fr; }
  .lead-box { position: static; }
}
@media (max-width: 620px) {
  .app-shell { padding-bottom: 76px; }
  .install-btn { display: none; }
  main { padding: 10px 10px 24px; }
  .hero {
    min-height: 560px;
    align-content: end;
    padding: 26px 18px;
    border-radius: 0 0 22px 22px;
  }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .hero-card { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px 8px; text-align: center; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 12px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick { min-height: 116px; padding: 12px 8px; border-radius: 14px; }
  .quick span { font-size: 31px; }
  .quick strong { font-size: 15px; }
  .quick small { font-size: 11px; }
  .search-panel, .story, .add-listing, .contact { padding: 20px 14px; }
  form, .cards { grid-template-columns: 1fr; }
  .mobile-form-card form, .detail-summary, .gallery { grid-template-columns: 1fr; }
  .detail-hero, .detail-hero img { min-height: 460px; height: 460px; }
  .section-head { align-items: start; flex-direction: column; }
  .bottom-nav { display: grid; }
}
