:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --accent: #e63946;
  --accent2: #2a9d8f;
  --line: #e5e7eb;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.brand .dot { color: var(--accent); }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; }
.navbtn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 14px;
}
.navbtn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero { text-align: center; padding: 46px 20px 30px; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); margin: 0 0 10px; }
.hero .sub { color: var(--muted); max-width: 620px; margin: 0 auto 20px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta {
  background: var(--accent); color: #fff; border: 0; padding: 12px 20px;
  border-radius: 12px; font-size: 16px; cursor: pointer; font-weight: 600;
}
.cta.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta.small { padding: 10px 14px; font-size: 14px; }
.searchbar {
  display: flex; gap: 10px; padding: 16px 22px; flex-wrap: wrap;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.searchbar input, .searchbar select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; flex: 1; min-width: 160px;
}
.areas { padding: 22px 22px 6px; }
.areas h2 { font-size: 18px; margin: 0 0 12px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips button {
  border: 1px solid var(--line); background: #fff; padding: 7px 13px;
  border-radius: 999px; cursor: pointer; font-size: 14px;
}
.area-chips button.active { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.listings {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; padding: 18px 22px 50px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { height: 160px; background: #dfe3e8 center/cover no-repeat; display: flex; align-items: flex-end; }
.card .thumb .tag { background: var(--accent); color: #fff; font-size: 12px; padding: 4px 9px; margin: 10px; border-radius: 8px; }
.card .body { padding: 14px; }
.card .title { font-weight: 700; margin: 0 0 4px; font-size: 16px; }
.card .meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.card .rent { font-size: 18px; font-weight: 800; color: var(--accent2); }
.card .desc { font-size: 13px; color: #374151; margin: 8px 0; }
.card .actions { display: flex; gap: 8px; margin-top: 8px; }
.card .actions a, .card .actions button {
  flex: 1; text-align: center; text-decoration: none; font-size: 13px;
  padding: 8px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer;
}
.card .actions .wa { background: #25d366; color: #fff; border-color: #25d366; }
.card .owner-tools { font-size: 12px; color: var(--muted); margin-top: 6px; }
.loading { color: var(--muted); padding: 20px; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex;
  align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 460px;
  max-height: 90vh; overflow: auto; position: relative;
}
.modal-card .close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.modal-card h2 { margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; }
form label { display: block; margin: 10px 0; font-size: 14px; }
form input, form select, form textarea {
  width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px;
}
form .cta { width: 100%; margin-top: 10px; }
.form-msg { font-size: 13px; margin: 8px 0 0; }
.form-msg.ok { color: var(--accent2); }
.form-msg.err { color: var(--accent); }
.stats .stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stats .stat b { font-size: 18px; color: var(--accent2); }
.site-footer { text-align: center; padding: 26px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.linkbtn { background: none; border: 0; color: var(--accent2); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }

/* ---- MAP ---- */
.map-section { padding: 24px 22px; }
.map-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.map-head h2 { margin: 0; font-size: 20px; }
.map-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.maptool { border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.maptool.active { background: var(--accent2); color: #fff; border-color: var(--accent2); }
#map { height: 440px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.map-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.tolet-pin { font-size: 20px; line-height: 24px; text-align: center; }

/* ---- EXPLAINER ---- */
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 8px 22px 40px; }
.explain-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.explain-block h2 { margin: 0 0 8px; font-size: 18px; }
.explain-block p { margin: 0; color: #374151; font-size: 14px; }

/* ---- DETAIL MODAL ---- */
.detail-photo { height: 200px; background: #dfe3e8 center/cover no-repeat; border-radius: 12px; margin: 12px 0; }

/* ---- LEGAL PAGES ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 18px; margin-top: 24px; }
.legal p { color: #374151; line-height: 1.6; }

/* ---- MOBILE NAV ---- */
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }
@media (max-width: 760px) {
  .topnav { display: none; flex-direction: column; width: 100%; }
  .topnav.open { display: flex; }
  .menu-toggle { display: block; }
  .site-header { flex-wrap: wrap; }
  #map { height: 340px; }
}

/* ---- MARKETING PSYCHOLOGY LAYER ---- */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.badge { background: #eef2f7; color: #243b53; font-size: 13px; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.badge.live { background: #e6f7ef; color: #0a7a4f; display: inline-flex; align-items: center; gap: 7px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: #18c08f; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(24,192,143,.6)} 70%{box-shadow:0 0 0 8px rgba(24,192,143,0)} 100%{box-shadow:0 0 0 0 rgba(24,192,143,0)} }
.hero h1 .hl { color: var(--accent); }
.hero-proof { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-proof b { color: var(--ink); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; padding: 4px 22px 30px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.why-ic { font-size: 26px; margin-bottom: 6px; }
.why-card h3 { margin: 0 0 6px; font-size: 16px; }
.why-card p { margin: 0; color: #374151; font-size: 14px; }

.comfort-bar { max-width: 720px; margin: 0 auto 6px; padding: 12px 18px; background: linear-gradient(135deg,#e8f5ff,#eafaf1); border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 14px; color: #16324f; }

.nri-bar { max-width: 720px; margin: 18px auto 0; padding: 10px 18px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; text-align: center; font-size: 14px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .empty-ic { font-size: 42px; }
.empty-state h3 { margin: 8px 0; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 0 auto 16px; font-size: 14px; }

/* drop-pin (map click feedback) */
.drop-pin { font-size: 22px; line-height: 28px; text-align: center; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }

/* Map pins — custom SVG teardrop with live pulse, no image dependency */
.rent-pin { background: none; border: none; position: relative; }
.rent-pin .pin-svg { display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); position: relative; z-index: 2; }
.rent-pin .pin-pulse {
  position: absolute; left: 50%; top: 40px; transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  opacity: .55; z-index: 1;
  animation: pinBlink 1.4s ease-out infinite;
}
.rent-pin .pin-price {
  position: absolute; left: 50%; top: 16px; transform: translate(-50%,-50%);
  color: var(--accent, #e63946); font-size: 9px; font-weight: 800; white-space: nowrap; z-index: 3;
  pointer-events: none;
}
@keyframes pinBlink {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: .6; }
  60%  { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .rent-pin .pin-pulse { animation: none; opacity: .3; } }

/* skeleton loader */
@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.skeleton { height: 150px; border-radius: var(--radius); margin: 0 22px 16px;
  background: linear-gradient(90deg, #eef0f3 25%, #e2e5ea 50%, #eef0f3 75%);
  background-size: 800px 100%; animation: shimmer 1.3s infinite; }

/* ---- DARK MODE ---- */
:root { color-scheme: light; }

/* ===== PHOTO UPLOAD (renter -> seeker) ===== */
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.pp-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
input[type="file"] { font-size: 14px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; width: 100%; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.detail-shot { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 760px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-shot { height: 110px; }
}

/* ===== MOBILE-FRIENDLY ENHANCEMENTS ===== */
@media (max-width: 760px) {
  /* shorter map so listings show above the fold on phones */
  #map { height: 300px !important; }
  .map-section { padding: 10px 12px 24px; }
  .map-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-head h2 { font-size: 17px; }
  .map-tools { gap: 6px; }
  .maptool { padding: 9px 13px; font-size: 13px; min-height: 38px; } /* bigger tap target */

  /* search bar: full-width stacked inputs */
  .searchbar { padding: 12px 14px; gap: 8px; }
  .searchbar input, .searchbar select { flex: 1 1 100%; min-width: 0; font-size: 16px; padding: 12px 14px; }
  #apply-filter { flex: 1 1 100%; padding: 13px; font-size: 16px; }

  /* hero CTAs full width */
  .hero-cta { flex-direction: column; padding: 0 16px; }
  .hero-cta .cta { width: 100%; }

  /* nav: sticky hamburger already toggles; make buttons taller when open */
  .topnav.open .navbtn { padding: 13px 14px; font-size: 15px; min-height: 44px; }

  /* listing cards single column, comfortable tap targets */
  .listings { grid-template-columns: 1fr; padding: 14px 14px 40px; gap: 14px; }
  .card .actions .wa, .card .actions button { padding: 11px 14px; font-size: 15px; min-height: 42px; }

  /* modals: near-fullscreen, comfortable on phone */
  .modal-card { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 20px 16px; overflow-y: auto; }
  .modal-card h2 { font-size: 20px; }
  .form-msg { font-size: 14px; }

  /* sticky bottom action bar for primary CTA on mobile */
  .site-header { position: sticky; top: 0; z-index: 50; }
}

/* extra-small phones */
@media (max-width: 380px) {
  #map { height: 260px !important; }
  .hero h1 { font-size: 24px; }
  .area-chips button { padding: 8px 11px; font-size: 13px; }
}
/* Trust band + area intro (SEO area pages + homepage) */
.trust-band {
  max-width: 1000px; margin: 14px auto; padding: 12px 18px;
  background: linear-gradient(90deg, #e8f7f0, #eafaf1);
  border: 1px solid #bfe6d6; border-radius: 12px; text-align: center;
}
.trust-band p { margin: 0; font-size: 15px; color: #14532d; }
.trust-band b { color: #0f7a52; }
.area-intro { max-width: 1000px; margin: 22px auto 0; padding: 0 18px; }
.area-intro h2 { font-size: 22px; margin: 0 0 8px; }
.area-intro p { margin: 0 0 8px; line-height: 1.6; color: var(--ink); }
