/* ═══════════════════════════════════════════════════════════
   mohaliaerotropolis.com — site.css  v2  (mobile + PWA)
═══════════════════════════════════════════════════════════ */

/* 2026-11-18: self-hosted fonts (was a render-blocking @import of Google Fonts). IBM Plex: Latin subset
   (Latin-1, punctuation, rupee, arrows) of only the weights in use; Noto Devanagari/Gurmukhi (hi/pa pages)
   are Google's variable cuts. Fallback faces use size-adjust/ascent/descent overrides measured against
   Arial (desktop, iOS) and Roboto (Android) so the swap to Plex does not move the layout. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-sans-400-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-sans-500-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plex-sans-600-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-mono-400-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-mono-500-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plex-mono-600-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/noto-deva-devanagari.woff2?v=1') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/noto-deva-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Gurmukhi'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/noto-guru-gurmukhi.woff2?v=1') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0A01-0A76, U+200C-200D, U+20B9, U+25CC, U+262C, U+A830-A839; }
@font-face { font-family: 'Noto Sans Gurmukhi'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/noto-guru-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica'), local('Liberation Sans'), local('Arimo'); size-adjust: 100.14%; ascent-override: 102.36%; descent-override: 27.46%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback Roboto'; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 101.22%; ascent-override: 101.26%; descent-override: 27.17%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Sans Fallback Linux'; src: local('DejaVu Sans'), local('DejaVuSans'); size-adjust: 89.33%; ascent-override: 114.75%; descent-override: 30.79%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'), local('Cousine'), local('Roboto Mono'), local('Droid Sans Mono'), local('DejaVu Sans Mono'); size-adjust: 100%; ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }

/* ── Tokens ──────────────────────────────────────── */
:root {
  --accent-on-dark: #e8520d;   /* 2026-11-18: brand orange for TEXT on dark backgrounds (5.11:1 on #111010); #b83c09 stays on light */
  --bg:      #f5f2eb;
  --bg2:     #ede9e0;
  --bg3:     #e4dfd3;
  --ink:     #1a1814;
  --ink2:    #3d3a34;
  --ink3:    #6b6760;
  --accent:  #b83c09;
  --accent2: #e8520d;
  --rule:    #c4bfb5;
  --green:   #1a6b2e;
  --red:     #a01c1c;
  --blue:    #1a3a6b;
  --mono:    'IBM Plex Mono', 'IBM Plex Mono Fallback', monospace;
  --sans:    'IBM Plex Sans', 'IBM Plex Sans Fallback', 'IBM Plex Sans Fallback Roboto', 'IBM Plex Sans Fallback Linux', sans-serif;
  --deva:    'Noto Sans Devanagari', sans-serif;
  --guru:    'Noto Sans Gurmukhi', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bot);
}
body.lang-hi { font-family: var(--deva); }
body.lang-pa { font-family: var(--guru); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ── Language visibility ─────────────────────────── */
.hi-text, .pa-text { display: none; }
.hi-span, .pa-span { display: none; }
body.lang-hi .en-text { display: none; }
body.lang-hi .hi-text { display: block !important; }
body.lang-hi .en-span { display: none; }
body.lang-hi .hi-span { display: inline !important; }
body.lang-pa .en-text { display: none; }
body.lang-pa .pa-text { display: block !important; }
body.lang-pa .en-span { display: none; }
body.lang-pa .pa-span { display: inline !important; }
body:not(.lang-hi):not(.lang-pa) .en-text { display: block; }
body:not(.lang-hi):not(.lang-pa) .en-span  { display: inline; }

/* ── Top status bar ──────────────────────────────── */
#topbar {
  background: var(--ink);
  color: #f5f2eb;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  flex-wrap: wrap;
  gap: 4px;
}
#topbar-left { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
#topbar-left span { color:#a09a90; }
#topbar-left b    { color:#f5f2eb; }
.live-dot {
  width:6px; height:6px; border-radius:50%;
  background:#3a3; display:inline-block;
  margin-right:4px; animation:blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Site header ─────────────────────────────────── */
#site-header {
  border-bottom: 3px solid var(--ink);
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
#site-title {
  font-family: var(--mono);
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
#site-title a { color: var(--ink); text-decoration: none; }
#site-title span { color: var(--accent); }
#site-subtitle {
  font-family: var(--mono);
  font-size: clamp(9px, 2vw, 11px);
  color: var(--ink3);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Language switcher ───────────────────────────── */
#lang-switcher { display:flex; gap:2px; }
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  cursor: pointer;
  color: var(--ink2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lang-btn:active  { background: var(--bg3); }
.lang-btn.active  { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Price ticker ────────────────────────────────── */
#ticker {
  background: var(--accent);
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
#ticker-inner { display:inline-block; animation:marquee 30s linear infinite; }
#ticker:hover #ticker-inner { animation-play-state: paused; }
@keyframes marquee { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }
.tick-item {
  display: inline-block;
  padding: 0 20px;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.2);
}
/* Override global anchor colour inside ticker */
#ticker a.tick-item,
#ticker a.tick-item:visited {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}
#ticker a.tick-item:hover { color: #ffd0b0; text-decoration: none; }
.tick-item .pocket { color:#ffd0b0; font-weight:600; }
.tick-item .chg    { color:#90ffb0; }
.tick-item .chg.dn { color:#ffb0b0; }

/* ── Main navigation ─────────────────────────────── */
#site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 0 12px;
  display: flex;
  gap: 0;
  background: var(--bg2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
#site-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  padding: 7px 10px;
  border-right: 1px solid var(--rule);
  flex-shrink: 0;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.nav-link:first-child { border-left: 1px solid var(--rule); }
.nav-link:hover,
.nav-link:active      { background: var(--bg3); color: var(--accent); text-decoration: none; }
.nav-link.active      { background: var(--ink); color: var(--bg); }

/* ── Breadcrumb ──────────────────────────────────── */
#breadcrumb {
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  border-bottom: 1px solid var(--bg3);
  background: var(--bg2);
  white-space: nowrap;
  overflow-x: auto;
}
#breadcrumb a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── Page body grid ──────────────────────────────── */
#page-body {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  min-height: calc(100vh - 160px);
}
.col { padding: 10px; }
.col + .col { border-left: 1px solid var(--rule); }
#col-center { padding: 10px 14px; }

/* ── Site footer ─────────────────────────────────── */
#site-footer {
  border-top: 2px solid var(--ink);
  padding: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  background: var(--bg2);
}
#site-footer a        { color: var(--ink3); }
#site-footer a:hover  { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Shared components ───────────────────────────── */
.section-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-head a {
  font-size: 10px; font-weight: 400;
  color: var(--blue); text-transform: none; letter-spacing: 0;
}

.status-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 9px;
  padding: 1px 5px; border: 1px solid;
  letter-spacing: .05em; text-transform: uppercase;
}
.s-active  { color:var(--green);  border-color:var(--green);  background:#e8f5ec; }
.s-pending { color:#7a5a00;       border-color:#c49a00;       background:#fdf6e0; }
.s-soon    { color:var(--ink3);   border-color:var(--rule); }

.stat-row {
  display: flex; justify-content: space-between;
  padding: 3px 0; border-bottom: 1px dotted var(--bg3); font-size: 11px;
}
.stat-row .lbl { color: var(--ink3); }
.stat-row .val { font-family: var(--mono); font-weight: 500; }
.stat-row .val.up  { color: var(--green); }
.stat-row .val.dn  { color: var(--red); }
.stat-row .val.hot { color: var(--accent); }

/* News items */
.news-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px; padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
  align-items: start;
}
.news-item:hover,
.news-item:active { background:var(--bg2); margin:0 -8px; padding:4px 8px; }
.news-time    { font-family:var(--mono); font-size:10px; color:var(--ink3); padding-top:1px; white-space:nowrap; }
.news-title   { font-size:12px; color:var(--ink); line-height:1.4; }
.news-title a { color:var(--ink); }
.news-title a:hover { color:var(--accent); }
.news-summary { font-size:10px; color:var(--ink3); margin-top:2px; }
.news-tag {
  font-family:var(--mono); font-size:9px;
  padding:1px 4px; border:1px solid var(--rule);
  color:var(--ink3); white-space:nowrap; align-self:start;
}
.news-date-head {
  font-family:var(--mono); font-size:10px;
  color:var(--ink3); background:var(--bg2);
  padding:2px 6px; margin-bottom:4px; letter-spacing:.08em;
}
.t-invest { border-color:#1a6b2e; color:#1a6b2e; background:#e8f5ec; }
.t-govt   { border-color:#1a3a6b; color:#1a3a6b; background:#e8eef8; }
.t-legal  { border-color:#7a3a00; color:#7a3a00; background:#fdf0e0; }
.t-build  { border-color:var(--accent); color:var(--accent); background:#fdf0eb; }
.t-nri    { border-color:#4a0a7a; color:#4a0a7a; background:#f5eaff; }

/* Price table */
.price-table { width:100%; border-collapse:collapse; font-size:11px; margin-bottom:4px; }
.price-table th {
  font-family:var(--mono); font-size:10px; font-weight:600;
  text-align:left; padding:4px 8px;
  background:var(--ink); color:var(--bg);
  letter-spacing:.05em; text-transform:uppercase;
}
.price-table td { padding:4px 8px; border-bottom:1px solid var(--bg3); font-family:var(--mono); }
.price-table tr:hover td { background:var(--bg2); }
.price-table td:first-child { font-weight:600; color:var(--accent); font-size:13px; }
.price-table .up { color:var(--green); font-size:10px; }
.price-table .dn { color:var(--red);   font-size:10px; }

/* LOI listings */
.listing-item { padding:6px 0; border-bottom:1px dotted var(--rule); }
.listing-item:hover,
.listing-item:active { background:var(--bg2); margin:0 -4px; padding:6px 4px; }
.listing-meta  { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:2px; }
.listing-title { font-size:12px; font-weight:500; color:var(--ink); }
.listing-price { font-family:var(--mono); font-size:12px; font-weight:600; color:var(--accent); }
.listing-detail { font-size:10px; color:var(--ink3); font-family:var(--mono); }

/* Notice items */
.notice-item { padding:5px 0; border-bottom:1px dotted var(--rule); cursor:pointer; }
.notice-item:hover,
.notice-item:active { background:var(--bg2); margin:0 -4px; padding:5px 4px; }
.notice-date  { font-family:var(--mono); font-size:9px; color:var(--ink3); }
.notice-title { font-size:11px; color:var(--ink); line-height:1.3; }
.notice-title::before { content:"[PDF] "; font-family:var(--mono); color:var(--accent); font-size:9px; }

/* Info card */
.info-card { background:var(--ink); color:var(--bg); padding:8px 10px; margin-bottom:10px; }
.info-card .ic-head { font-family:var(--mono); font-size:10px; color:#9a9690; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.info-card .ic-val  { font-family:var(--mono); font-size:20px; font-weight:600; color:#fff; line-height:1; }
.info-card .ic-sub  { font-family:var(--mono); font-size:10px; color:#9a9690; margin-top:2px; }

/* Quick links */
.qlink-list { list-style:none; }
.qlink-list li { padding:2px 0; border-bottom:1px dotted var(--bg3); }
.qlink-list a  { font-size:11px; color:var(--blue); }
.qlink-list a::before { content:"› "; color:var(--accent); font-family:var(--mono); }

/* Alert box */
.alert-box { border:2px solid var(--ink); padding:10px; margin-bottom:16px; background:var(--bg2); }
.alert-box-head {
  font-family:var(--mono); font-size:11px; font-weight:600;
  text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:8px; display:flex;
  justify-content:space-between; align-items:center;
}
.alert-box-head small { font-size:10px; font-weight:400; color:var(--ink3); }
.alert-form { display:flex; gap:6px; flex-wrap:wrap; }
.alert-form input[type=email],
.alert-form select {
  flex:1; min-width:100px;
  padding:6px 8px; border:1px solid var(--rule);
  background:var(--bg); font-family:var(--mono);
  font-size:11px; color:var(--ink);
  -webkit-appearance: none;
  border-radius: 0;
}
.alert-form input[type=email]:focus { outline:2px solid var(--accent); }
.alert-form button {
  padding:6px 12px; background:var(--ink); color:var(--bg);
  border:none; font-family:var(--mono); font-size:11px;
  font-weight:600; cursor:pointer; text-transform:uppercase;
  min-height:36px; touch-action:manipulation;
}
.alert-form button:active { background:var(--accent); }

/* Chatbox */
.chatbox { border:1px solid var(--rule); margin-top:16px; }
.chat-head {
  background:var(--ink); color:var(--bg);
  padding:6px 10px; font-family:var(--mono);
  font-size:11px; font-weight:600; letter-spacing:.05em;
  display:flex; justify-content:space-between; align-items:center;
}
.chat-head .chat-status { font-size:10px; font-weight:400; color:#9a9; }
.chat-msgs {
  height:160px; overflow-y:auto;
  padding:8px 10px; background:var(--bg);
  display:flex; flex-direction:column; gap:6px;
  -webkit-overflow-scrolling: touch;
}
.msg          { max-width:92%; line-height:1.4; }
.msg.bot      { align-self:flex-start; }
.msg.user     { align-self:flex-end; }
.msg .who     { font-family:var(--mono); font-size:9px; color:var(--ink3); margin-bottom:2px; }
.msg.bot  .bubble { background:var(--bg2); border:1px solid var(--rule); padding:5px 9px; font-size:11px; }
.msg.user .bubble { background:var(--ink); color:var(--bg); padding:5px 9px; font-size:11px; }
.chat-input-row   { display:flex; border-top:1px solid var(--rule); }
.chat-input {
  flex:1; padding:8px 10px; border:none;
  background:var(--bg2); font-family:var(--sans);
  font-size:14px; color:var(--ink);
  -webkit-appearance: none;
}
.chat-input:focus { outline:none; background:var(--bg); }
.chat-send {
  padding:0 16px; background:var(--accent); color:white;
  border:none; font-family:var(--mono); font-size:11px;
  font-weight:600; cursor:pointer; min-width:56px;
  min-height:42px; touch-action:manipulation;
}
.chat-send:active { background:var(--accent2); }

/* Pocket rows */
.pocket-row {
  display:grid; grid-template-columns:28px 1fr auto;
  align-items:center; padding:5px 0;
  border-bottom:1px dotted var(--bg3); gap:6px; cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.pocket-row:active { background:var(--bg2); margin:0 -4px; padding:5px 4px; }
.pocket-id   { font-family:var(--mono); font-size:16px; font-weight:600; color:var(--accent); line-height:1; }
.pocket-name { font-size:12px; font-weight:500; color:var(--ink); }
.pocket-meta { font-size:10px; color:var(--ink3); font-family:var(--mono); }
.pocket-rate { font-family:var(--mono); font-size:10px; color:var(--ink2); text-align:right; }
.pocket-rate .rate { font-size:11px; font-weight:600; color:var(--ink); display:block; }

.more-link { font-family:var(--mono); font-size:11px; color:var(--accent); display:block; margin:6px 0; }

/* ── PWA install banner ───────────────────────────── */
#pwa-banner {
  display: none;
  position: fixed;
  bottom: calc(0px + var(--safe-bot));
  left: 0; right: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 1000;
  align-items: center;
  gap: 12px;
  border-top: 2px solid var(--accent);
}
#pwa-banner.show { display: flex; }
#pwa-banner .pwa-text { flex: 1; line-height: 1.4; }
#pwa-banner .pwa-text strong { color: var(--accent-on-dark); display: block; font-size: 13px; margin-bottom:2px; }
#pwa-install-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  touch-action: manipulation;
}
#pwa-dismiss-btn {
  background: none; border: none;
  color: var(--ink3); font-size: 18px;
  cursor: pointer; padding: 4px;
  line-height: 1;
}

/* ── Mobile bottom nav ───────────────────────────── */
#mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 2px solid var(--accent);
  padding-bottom: var(--safe-bot);
  z-index: 999;
}
.mob-nav-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  color: #9a9690;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  gap: 3px;
}
.mob-nav-item:hover,
.mob-nav-item.active { color: var(--accent); text-decoration: none; }
.mob-nav-icon { font-size: 18px; line-height: 1; }
.mob-nav-label { letter-spacing: .03em; }

/* ── Mobile spacing adjustment ───────────────────── */
body.mobile-nav-active {
  padding-bottom: calc(58px + var(--safe-bot));
}

/* ════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════════════ */

/* Tablet: 900px — hide right column */
@media (max-width: 900px) {
  #page-body { grid-template-columns: 170px 1fr; }
  #col-right { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 640px — single column */
@media (max-width: 640px) {
  #topbar { font-size: 10px; }
  #topbar-right { display: none; }

  #site-header { padding: 8px 10px; }
  #site-subtitle { display: none; }

  #page-body {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .col + .col { border-left: none; border-top: 1px solid var(--rule); }
  #col-left    { display: none; }
  #col-right   { display: none; }
  #col-center  { padding: 10px 10px; }

  /* Show mobile bottom nav */
  #mobile-nav { display: block; }

  /* Slightly larger tap targets */
  .news-item  { padding: 6px 0; }
  .nav-link   { padding: 8px 10px; font-size: 11px; }

  /* Price table: hide less important columns on mobile */
  .price-table th:nth-child(4),
  .price-table th:nth-child(5),
  .price-table td:nth-child(4),
  .price-table td:nth-child(5) { display: none; }

  /* Alert form stacks */
  .alert-form { flex-direction: column; }
  .alert-form input,
  .alert-form select { min-width: unset; width: 100%; }
  .alert-form button { width: 100%; padding: 10px; }

  /* Footer simplify */
  .footer-grid { display: none; }
  #site-footer { padding: 10px 12px; }

  /* Fix chat input for mobile keyboards */
  .chat-input { font-size: 16px; } /* prevents iOS zoom */

  /* Pocket rows bigger tap targets */
  .pocket-row { padding: 8px 0; }
}

/* Very small: 380px */
@media (max-width: 380px) {
  #site-title { font-size: 15px; }
  .lang-btn   { padding: 3px 6px; font-size: 10px; }
  .tick-item  { padding: 0 14px; font-size: 10px; }
}

/* Landscape phone */
@media (max-width: 812px) and (orientation: landscape) {
  .chat-msgs { height: 100px; }
  #mobile-nav { display: none; }
  body.mobile-nav-active { padding-bottom: 0; }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
  #topbar { padding-top: max(4px, var(--safe-top)); }
}

/* High contrast / accessibility */
@media (prefers-contrast: high) {
  :root {
    --rule: #888;
    --ink3: #444;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #ticker-inner { animation: none; }
  .live-dot     { animation: none; }
  * { transition: none !important; }
}


/* ══ MOBILE — 640px and below ═══════════════════════════════════════════ */
@media(max-width:640px){
  /* Hide sidebars, go single column */
  #page-body{
    grid-template-columns:1fr!important;
    grid-template-areas:'main'!important;
  }
  #col-left,#col-right{display:none!important}

  /* Full width content */
  #col-center,#col-news,#col-main{
    padding:10px!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /* Ticker wrapping */
  #ticker-wrap{font-size:11px}

  /* Homepage price table */
  .price-table{font-size:11px}
  .price-table td,.price-table th{padding:4px 6px}

  /* News cards */
  .news-card{padding:10px}
  .news-card .nc-title{font-size:13px}

  /* Listing cards */
  .listing-card{padding:10px}

  /* Bottom nav padding */
  body.mobile-nav-active main,
  body.mobile-nav-active #page-body{
    padding-bottom:70px!important;
  }

  /* Article page */
  #article-body{padding:10px!important;font-size:13px}
  #article-body h1{font-size:20px}
  #article-body h2{font-size:16px}

  /* Tables scroll horizontally */
  .compare-tbl,.tax-table,.price-table{
    display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;
  }

  /* Calculator grids */
  .calc-grid,.two-col,.info-grid,.conv-result-grid,.about-grid{
    grid-template-columns:1fr!important;
  }
  .country-grid{grid-template-columns:1fr 1fr!important}
  .stat-highlight{grid-template-columns:1fr 1fr!important}

  /* Tabs wrap */
  .guide-tabs,.nri-tabs{
    flex-wrap:wrap;
    gap:2px;
  }
  .gt,.nt{
    font-size:10px!important;
    padding:5px 8px!important;
    margin-bottom:2px;
  }

  /* Charts get explicit height */
  canvas{max-width:100%}
  .chart-wrap{height:180px!important}

  /* Hide desktop-only elements */
  .desktop-only{display:none!important}
}

/* ══ TABLET — 641px to 900px ═════════════════════════════════════════════ */
@media(min-width:641px) and (max-width:900px){
  #page-body{grid-template-columns:1fr!important}
  #col-left,#col-right{display:none!important}
  #col-center{padding:12px!important}
}

/* ── Leaflet map guard (added 2026-07-08) ─────────────────────────────
   The global rule on line ~45  img{max-width:100%;height:auto;display:block}
   crushes Leaflet map tiles (white bands) and markers (stretched blob).
   Restore Leaflet's own image sizing. Applies to every OSM/Leaflet map:
   listing.php, projects, corridor, tricity, pocket, location, contact, etc. */
.leaflet-container img,
.leaflet-container img.leaflet-tile,
.leaflet-pane img,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  max-width: none !important;
}
.leaflet-container { background: #e8e8e8; }
