/* ============================================================
   MUMBAI WALE ONLINE — Modern, mobile-first, non-sticky header
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e94560;
  --primary-dark: #c73550;
  --accent: #0f3460;
  --whatsapp: #25D366;
  --dark: #1a1a2e;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f8f9fb;
  --light-2: #eef1f6;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tr: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
main { min-height: 60vh; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.container.narrow { max-width: 720px; }
.muted { color: var(--muted); font-size: 0.88rem; }
.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem;
  border: 1px solid transparent; transition: all var(--tr);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--dark); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: var(--whatsapp); color: #fff; width: 100%; }
.btn-wa:hover { background: #1da851; color: #fff; }
.btn-wa-small { background: var(--whatsapp); color: #fff; padding: 8px 14px; font-size: 0.78rem; }
.btn-wa-small:hover { background: #1da851; color: #fff; }
.btn-large { padding: 15px 34px; font-size: 1rem; }
.btn-ghost {
  padding: 6px 12px; font-size: 0.78rem;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- HEADER (NON-STICKY) ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 20px;
}
.logo img { height: 42px; width: auto; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.hamburger {
  display: none; background: none; border: none;
  font-size: 1.7rem; color: var(--dark); padding: 4px 10px;
}

.header-nav { background: var(--dark); }
.nav-inner {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; padding: 0 20px;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: #cbd5e1; padding: 14px 16px;
  font-size: 0.88rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all var(--tr);
}
.nav-inner a:hover { color: #fff; border-bottom-color: var(--primary); }
.nav-inner .nav-cta {
  background: var(--primary); color: #fff;
  margin-left: auto; border-radius: 6px 6px 0 0; padding: 14px 20px;
}
.nav-inner .nav-cta:hover { background: var(--primary-dark); }

.header-search-bar {
  background: var(--light); border-bottom: 1px solid var(--border); padding: 12px 0;
}
.hsearch {
  display: flex; gap: 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; max-width: 800px; margin: 0 auto;
}
.hsearch input, .hsearch select {
  flex: 1; padding: 10px 14px; border: none;
  background: transparent; outline: none; font-size: 0.88rem; min-width: 0;
}
.hsearch select { max-width: 160px; border-left: 1px solid var(--border); }
.hsearch button {
  padding: 10px 22px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-weight: 600;
}
.hsearch button:hover { background: var(--primary-dark); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 55%, #e94560 130%);
  color: #fff; padding: 70px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(233,69,96,0.3), transparent 60%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 900px; margin: 0 auto 18px; position: relative; z-index: 2; }
.hero-sub {
  font-size: 1.1rem; opacity: 0.92; max-width: 700px;
  margin: 0 auto 32px; color: #e0e7ff; position: relative; z-index: 2;
}
.hero-search {
  display: flex; gap: 8px; max-width: 780px;
  margin: 0 auto 22px; background: #fff; padding: 8px;
  border-radius: 14px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.hero-search input, .hero-search select {
  flex: 1; padding: 14px 16px; border: none;
  background: transparent; outline: none; font-size: 1rem;
  color: var(--text); min-width: 0;
}
.hero-search select { max-width: 170px; border-left: 1px solid var(--border); }
.hero-search button {
  padding: 14px 30px; background: var(--primary); color: #fff;
  border: none; border-radius: 10px; font-weight: 700;
  font-size: 1rem; transition: all var(--tr);
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-tags {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 2;
}
.hero-tags a {
  background: rgba(255,255,255,0.15); color: #fff;
  padding: 8px 16px; border-radius: 20px; font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.2); transition: all var(--tr);
}
.hero-tags a:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--light); }
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 20px; margin-bottom: 32px;
}
.view-all {
  color: var(--primary); font-weight: 600;
  font-size: 0.88rem; white-space: nowrap;
}
.view-all:hover { color: var(--primary-dark); }

/* ---------- CATEGORY GRID ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.cat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 14px;
  text-align: center; transition: all var(--tr);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cat-card:hover {
  transform: translateY(-4px); border-color: var(--primary);
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.cat-name { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.cat-card:hover .cat-name { color: var(--primary); }
.cat-count { font-size: 0.78rem; color: var(--muted); }

/* ---------- CARD GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ---------- BUSINESS CARD ---------- */
.biz-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--tr); display: flex; flex-direction: column;
}
.biz-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.biz-img {
  position: relative; height: 180px; overflow: hidden;
  background: var(--light-2);
}
.biz-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.biz-card:hover .biz-img img { transform: scale(1.05); }

.badge {
  position: absolute; padding: 4px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-featured { top: 10px; left: 10px; background: var(--primary); color: #fff; }
.badge-verified { top: 10px; right: 10px; background: var(--success); color: #fff; }

.biz-body { padding: 16px; flex: 1; }
.biz-body h3 { font-size: 1rem; margin-bottom: 4px; }
.biz-body h3 a { color: var(--dark); }
.biz-body h3 a:hover { color: var(--primary); }
.biz-body p { margin-bottom: 3px; }
.rating { color: #f59e0b; font-weight: 600; font-size: 0.88rem; }

.biz-actions {
  display: flex; gap: 6px; padding: 0 16px 16px; flex-wrap: wrap;
}
.biz-actions .btn-ghost { flex: 1; text-align: center; }

/* ---------- AREA GRID ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.area-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 14px;
  text-align: center; font-weight: 600; font-size: 0.88rem;
  color: var(--dark); transition: all var(--tr);
}
.area-card:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary); transform: translateY(-2px);
}

/* ---------- PLACE CARD ---------- */
.place-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--tr);
}
.place-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.place-card img { width: 100%; height: 190px; object-fit: cover; }
.place-card h3 { padding: 14px 16px 6px; font-size: 1rem; }
.place-card p { padding: 0 16px 16px; color: var(--muted); font-size: 0.88rem; }

/* ---------- BROKER CARD ---------- */
.broker-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; transition: all var(--tr);
}
.broker-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.broker-card img {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--light-2);
}
.broker-card h3 { font-size: 1rem; margin-bottom: 4px; }
.broker-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- BLOG CARD ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.blog-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--tr);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card h3 { padding: 14px 16px 6px; font-size: 1rem; line-height: 1.35; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { padding: 0 16px 16px; color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #c73550 100%);
  color: #fff; padding: 70px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; background: rgba(255,255,255,0.08);
  border-radius: 50%; pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 26px; opacity: 0.95; }
.cta-banner .btn {
  background: #fff; color: var(--primary);
  padding: 15px 36px; font-size: 1rem;
}
.cta-banner .btn:hover { background: #f0f0f0; color: var(--primary-dark); }

/* ---------- FORMS ---------- */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 0.88rem; color: var(--dark);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; outline: none; background: #fff;
  transition: border var(--tr);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 0.9rem;
}
.alert-success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

/* ---------- NEWSLETTER ---------- */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem; outline: none; flex: 1;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form .btn { padding: 12px 24px; }
.form-message { font-size: 0.85rem; margin-top: 6px; min-height: 18px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--dark); color: #cbd5e1;
  padding-top: 60px; margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  gap: 40px; padding-bottom: 50px;
}
.footer-col h4 {
  color: #fff; margin-bottom: 16px;
  font-size: 1rem; font-weight: 700;
}
.footer-col p {
  font-size: 0.88rem; line-height: 1.7;
  margin-bottom: 16px; color: #94a3b8;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: #94a3b8; font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--primary); }

.social-links { display: flex; gap: 12px; font-size: 1.4rem; }
.social-links a { opacity: 0.8; }
.social-links a:hover { opacity: 1; }

.footer-newsletter .newsletter-form input {
  background: #0f172a; border-color: #334155; color: #fff;
}
.footer-newsletter .newsletter-form input::placeholder { color: #64748b; }

.footer-wa {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; color: var(--whatsapp);
  font-weight: 600; font-size: 0.88rem;
}
.footer-wa:hover { color: #1da851; }

.footer-bottom {
  background: #0f172a; padding: 20px 0; border-top: 1px solid #1e293b;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.88rem; color: #94a3b8;
}
.footer-meta a { color: #94a3b8; }
.footer-meta a:hover { color: var(--primary); }

.affiliate-disclosure {
  background: #0a0f1e; padding: 12px 0;
  font-size: 0.78rem; color: #64748b; text-align: center;
}

/* ---------- WHATSAPP WIDGET ---------- */
.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9998; }
.wa-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; border: none;
  font-size: 1.8rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.wa-toggle:hover { transform: scale(1.08); }
.wa-box {
  position: absolute; bottom: 75px; right: 0; width: 300px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: none;
}
.wa-box.active { display: block; animation: fadeUp 0.25s ease; }
.wa-header {
  background: var(--whatsapp); color: #fff;
  padding: 12px 16px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.88rem;
}
.wa-close { cursor: pointer; font-size: 1.4rem; line-height: 1; }
.wa-body { padding: 20px; }
.wa-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }

/* ---------- POPUP AD ---------- */
#mwo-popup {
  position: fixed; inset: 0;
  background: rgba(10,15,30,0.7); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px 32px 32px; max-width: 480px; width: 100%;
  text-align: center; position: relative;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup-x {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.9rem;
  color: var(--muted); cursor: pointer;
}
.popup-x:hover { color: var(--dark); }
.popup-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.popup-price {
  font-size: 2.8rem; font-weight: 800;
  color: var(--primary); margin: 10px 0; line-height: 1.1;
}
.popup-card p { color: var(--muted); margin-bottom: 18px; font-size: 0.88rem; }
.popup-card .btn { width: 100%; margin-bottom: 10px; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex; gap: 8px; font-size: 0.88rem;
  color: var(--muted); padding: 14px 0; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--border); }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex; justify-content: center;
  gap: 6px; padding: 30px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); transition: all var(--tr);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ---------- TABLES ---------- */
.table-wrap {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead { background: var(--light); }
.data-table th {
  text-align: left; padding: 12px 14px;
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase;
  color: var(--dark); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-top: 1px solid var(--border); }
.data-table tbody tr:hover { background: #fafbfc; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:first-child,
  .footer-grid .footer-newsletter { grid-column: span 3; }
}

@media (max-width: 900px) {
  .hamburger { display: block; }
  .header-actions { display: none; }
  .header-nav {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .header-nav.open { max-height: 500px; }
  .nav-inner { flex-direction: column; gap: 0; padding: 10px 0; }
  .nav-inner a {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px; width: 100%;
  }
  .nav-inner .nav-cta {
    margin: 10px 20px; border-radius: 6px; text-align: center;
  }
  .hero { padding: 55px 0 65px; }
  .hero-search { flex-direction: column; padding: 12px; }
  .hero-search select {
    max-width: 100%; border-left: none;
    border-top: 1px solid var(--border); padding-top: 14px;
  }
  .hero-search button { width: 100%; padding: 16px; }
  .section { padding: 45px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid .footer-col:first-child,
  .footer-grid .footer-newsletter { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .wa-box { width: calc(100vw - 48px); max-width: 320px; }
  .popup-card { padding: 32px 22px 24px; }
  .popup-price { font-size: 2.2rem; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}