/* ================================================================
   PRIYO STORY — MISSING PERSON ALERTS
   ================================================================ */

/* ---------------- report form ---------------- */
.ma-case{
  background:var(--bg, #f0f2f0);
  border-radius:11px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:16px;
}
.ma-case b{
  font-size:18px;
  color:var(--red, #e2231a);
  letter-spacing:.5px;
  font-family:ui-monospace, Menlo, Consolas, monospace;
}
.ma-case span{ display:block; font-size:14.5px; color:var(--muted, #6b7a72); margin-top:2px; }

.ma-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.ma-private{
  background:#eef4fb;
  border:1px solid #cbdcf0;
  border-radius:12px;
  padding:14px;
  margin-top:6px;
}
.ma-private-head{ font-size:16.5px; font-weight:800; color:#1e4b7a; margin-bottom:6px; }
.ma-private p{ font-size:15.5px; line-height:1.75; color:#1e4b7a; margin-bottom:10px; }
.ma-private .ma-drow span{ color:#1e4b7a; }

.ma-nid{
  margin-top:10px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #cbdcf0;
}
.ma-nid img{ width:100%; display:block; }

.ma-note{
  background:#fff6e5;
  border:1px solid #f0dcae;
  border-radius:11px;
  padding:13px 15px;
  font-size:15.5px; line-height:1.85;
  color:#7a5510;
  margin-top:14px;
}

/* ---------------- alert cards ---------------- */
.ma-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:16px;
}
.ma-card{
  background:var(--card, #fff);
  border:1px solid var(--border, #e2e8e4);
  border-radius:15px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.ma-card.found{ opacity:.86; }
.ma-photo{
  position:relative;
  aspect-ratio:4 / 3;
  background:#0e1512;
  cursor:pointer;
  overflow:hidden;
}
.ma-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.ma-flag{
  position:absolute; left:10px; top:10px;
  background:var(--red, #e2231a);
  color:#fff;
  font-size:14px; font-weight:800;
  padding:4px 11px; border-radius:20px;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.ma-flag.ok{ background:var(--green-dark, #0f5132); }

.ma-body{ padding:13px 15px 14px; flex:1; display:flex; flex-direction:column; min-width:0; }
.ma-case-no{
  font-size:14.5px; font-weight:700;
  color:var(--red, #e2231a);
  letter-spacing:.4px;
  font-family:ui-monospace, Menlo, Consolas, monospace;
}
.ma-name{ font-size:20px; font-weight:800; margin:3px 0 7px; line-height:1.35; }
.ma-age{ font-size:15.5px; font-weight:600; color:var(--muted, #6b7a72); }
.ma-line{
  font-size:16px; color:var(--text, #1f2a24);
  line-height:1.65;
  margin-bottom:3px;
  word-break:break-word;
}
.ma-dress{ color:var(--muted, #6b7a72); }
.ma-foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:auto; padding-top:11px;
}
.ma-time{ font-size:14.5px; color:var(--muted, #6b7a72); }

.ma-btn{
  border:none;
  background:var(--red, #e2231a);
  color:#fff;
  border-radius:9px;
  padding:9px 15px;
  font-family:inherit; font-size:16px; font-weight:700;
  cursor:pointer;
}
.ma-btn:hover{ opacity:.92; }
.ma-btn.ghost{ background:var(--bg, #f0f2f0); color:var(--text, #1f2a24); }

.ma-empty{
  grid-column:1 / -1;
  padding:34px 20px;
  text-align:center;
  color:var(--muted, #6b7a72);
  font-size:16.5px; line-height:1.8;
  border:1px dashed var(--border, #e2e8e4);
  border-radius:13px;
}

/* ---------------- detail ---------------- */
.ma-dphoto{
  position:relative;
  border-radius:13px;
  overflow:hidden;
  background:#0e1512;
  margin-bottom:12px;
  max-height:340px;
}
.ma-dphoto img{ width:100%; display:block; object-fit:contain; max-height:340px; }
.ma-dcase{
  font-size:15.5px; font-weight:700;
  color:var(--red, #e2231a);
  margin-bottom:12px;
  font-family:ui-monospace, Menlo, Consolas, monospace;
}
.ma-detail{
  border:1px solid var(--border, #e2e8e4);
  border-radius:12px;
  overflow:hidden;
}
.ma-drow{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px;
  padding:10px 13px;
  border-bottom:1px solid var(--border, #e2e8e4);
  font-size:16.5px;
  line-height:1.7;
}
.ma-drow:last-child{ border-bottom:none; }
.ma-drow span{ color:var(--muted, #6b7a72); flex-shrink:0; }
.ma-drow b{ text-align:right; word-break:break-word; }
.ma-contact{
  background:var(--green-light, #e8f5ee);
  border:1px solid #bfe3ce;
  border-radius:11px;
  padding:12px 14px;
  font-size:16px; line-height:1.75;
  color:var(--green-dark, #0f5132);
  margin-top:12px;
}
.ma-done{ flex:1; font-size:16.5px; font-weight:700; color:var(--green-dark, #0f5132); }

/* ---------------- map ---------------- */
.ma-svg{ width:100%; height:auto; display:block; }
.ma-land{
  fill:var(--green-light, #e8f5ee);
  stroke:var(--green, #1a7a4c);
  stroke-width:1.4;
  stroke-linejoin:round;
}
.ma-dot.quiet{ fill:#b9c7c0; }
.ma-dot.hot{ fill:var(--red, #e2231a); stroke:#fff; stroke-width:1.6; }
.ma-hit{ cursor:pointer; }
.ma-hit:hover .ma-dot.hot{ fill:#8f1410; }
.ma-dotnum{
  fill:#fff; font-size:12px; font-weight:800;
  text-anchor:middle;
  pointer-events:none;
  font-family:'Hind Siliguri', sans-serif;
}
.ma-dotname{
  fill:var(--red, #e2231a);
  font-size:12px; font-weight:700;
  text-anchor:middle;
  pointer-events:none;
  paint-order:stroke;
  stroke:#fff; stroke-width:3px; stroke-linejoin:round;
  font-family:'Hind Siliguri', sans-serif;
}

/* The marker is drawn at 0,0 inside a <g> that carries the position,
   so scaling happens around its own centre. Doing it on the circle
   itself needs transform-box, which some phone browsers get wrong —
   the pulse then flew off the map. */
.ma-pulse{
  fill:var(--red, #e2231a);
  opacity:.4;
  animation:mapulse 1.8s ease-out infinite;
}
.ma-pulse.two{ animation-delay:.9s; }
@keyframes mapulse{
  0%   { transform:scale(.5);  opacity:.55; }
  70%  { transform:scale(2.1); opacity:0; }
  100% { transform:scale(2.1); opacity:0; }
}

.ma-map-cap{
  font-size:14.5px;
  color:var(--muted, #6b7a72);
  line-height:1.7;
  margin-top:9px;
}

/* ---------------- home page strip ---------------- */
.ma-strip{
  display:flex; align-items:center; gap:11px;
  background:linear-gradient(135deg,#8f1410 0%, #e2231a 100%);
  color:#fff;
  border-radius:13px;
  padding:10px 13px;
  margin-bottom:16px;
  box-shadow:0 4px 16px rgba(226,35,26,.22);
  min-width:0;
}
.ms-tag{
  background:rgba(255,255,255,.22);
  font-size:13.5px; font-weight:800;
  padding:3px 9px; border-radius:20px;
  flex-shrink:0;
  letter-spacing:.3px;
}
.ms-pic{
  width:38px; height:38px; border-radius:9px;
  object-fit:cover; flex-shrink:0;
  background:rgba(255,255,255,.2);
}
.ms-text{
  flex:1; min-width:0;
  font-size:16px; line-height:1.5;
  overflow:hidden; text-overflow:ellipsis;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.ms-more{
  border:none;
  background:#fff;
  color:var(--red, #e2231a);
  border-radius:8px;
  padding:8px 13px;
  font-family:inherit; font-size:15.5px; font-weight:800;
  cursor:pointer; flex-shrink:0;
}
.ms-dots{ display:flex; gap:4px; flex-shrink:0; }
.ms-dots i{
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,.45);
  cursor:pointer;
}
.ms-dots i.on{ background:#fff; width:16px; border-radius:6px; }

/* ---------------- filter bar ---------------- */
.alert-filter-bar.ma-focus{
  outline:2px solid var(--red, #e2231a);
  outline-offset:3px;
  border-radius:12px;
}

/* ---------------- responsive ---------------- */
@media (max-width:900px){
  .ma-grid{ grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:13px; }
}
@media (max-width:700px){
  .ma-grid{ grid-template-columns:1fr; }
  .ma-grid2{ grid-template-columns:1fr; gap:0; }
  .ma-name{ font-size:19px; }
  .ma-strip{ flex-wrap:wrap; gap:9px; padding:10px; }
  .ms-text{ -webkit-line-clamp:3; font-size:15.5px; }
  .ms-more{ width:100%; order:5; }
  .ms-dots{ order:4; margin-left:auto; }
  .ma-drow{ flex-direction:column; gap:2px; }
  .ma-drow b{ text-align:left; }
}
@media (max-width:420px){
  .ma-photo{ aspect-ratio:1 / 1; }
  .ma-foot{ flex-direction:column; align-items:stretch; gap:8px; }
  .ma-btn{ width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .ma-pulse{ animation:none; opacity:.3; }
}

/* ================================================================
   FEATURED ALERT — the newest one, at the top
   ================================================================ */
.ma-feat{
  background:#fdf0ee;
  border:2px solid var(--red, #e2231a);
  border-radius:16px;
  overflow:hidden;
  margin-bottom:18px;
}
.ma-feat-tag{
  display:inline-flex; align-items:center; gap:5px;
  background:var(--red, #e2231a);
  color:#fff;
  font-size:15px; font-weight:800;
  padding:6px 14px;
  border-radius:0 0 12px 0;
  letter-spacing:.3px;
}
.ma-feat-in{
  display:flex; gap:18px;
  padding:6px 18px 18px;
  align-items:flex-start;
}
.ma-feat-pic{
  width:190px;
  aspect-ratio:1 / 1;
  border-radius:12px;
  overflow:hidden;
  background:#dbe4ef;
  flex-shrink:0;
  cursor:pointer;
}
.ma-feat-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.ma-feat-main{ flex:1; min-width:0; }
.ma-feat-main h3{
  font-size:27px; font-weight:800;
  line-height:1.3;
  margin-bottom:12px;
  word-break:break-word;
}
.ma-feat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px 20px;
  margin-bottom:11px;
}
.ma-feat-grid span,
.ma-feat-dress span{
  display:block;
  font-size:15px;
  color:var(--muted, #6b7a72);
  margin-bottom:1px;
}
.ma-feat-grid b,
.ma-feat-dress b{
  font-size:17.5px; font-weight:700;
  color:var(--text, #1f2a24);
  word-break:break-word;
}
.ma-feat-dress{ margin-bottom:12px; }
.ma-feat-lock{
  background:#fff;
  border:1px solid #f0d4d0;
  border-radius:10px;
  padding:11px 14px;
  font-size:16px;
  color:var(--muted, #6b7a72);
  margin-bottom:13px;
}
.ma-feat-acts{ display:flex; gap:9px; flex-wrap:wrap; }
.ma-feat-acts .ma-btn{ padding:11px 18px; font-size:16.5px; }

/* ================================================================
   FILTER BAR & MAP BUTTON
   ================================================================ */
.ma-mapbtn{
  border:1.5px solid var(--red, #e2231a);
  background:#fff;
  color:var(--red, #e2231a);
  border-radius:10px;
  padding:9px 16px;
  font-family:inherit; font-size:16.5px; font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
}
.ma-mapbtn:hover{ background:#fdecea; }

.ma-map-legend{
  display:flex; gap:18px; flex-wrap:wrap;
  margin-top:12px;
  font-size:15.5px;
  color:var(--muted, #6b7a72);
}
.ma-map-legend span{ display:flex; align-items:center; gap:6px; }
.ma-map-legend i{
  width:11px; height:11px; border-radius:50%;
  display:inline-block;
}
.ma-map-legend i.hot{ background:var(--red, #e2231a); }
.ma-map-legend i.quiet{ background:#b9c7c0; }

#maMapBig .ma-svg{ max-height:62vh; margin:0 auto; }

/* ---------------- responsive ---------------- */
@media (max-width:820px){
  .ma-feat-in{ flex-direction:column; gap:14px; padding:8px 14px 16px; }
  .ma-feat-pic{ width:100%; aspect-ratio:16 / 10; }
  .ma-feat-main h3{ font-size:22px; }
}
@media (max-width:520px){
  .ma-feat-grid{ grid-template-columns:1fr; gap:9px; }
  .ma-feat-main h3{ font-size:21px; }
  .ma-feat-acts{ flex-direction:column; }
  .ma-feat-acts .ma-btn{ width:100%; }
  .ma-mapbtn{ width:100%; }
}


/* ================================================================
   MAP SECTION — in the main column, so every screen gets it
   ================================================================ */
.ma-mapsec{
  background:var(--card, #fff);
  border-radius:15px;
  padding:16px 18px 18px;
  margin-bottom:16px;
  box-shadow:0 1px 3px rgba(15,81,50,.06);
}
.ma-mapsec-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:12px;
}
.ma-mapsec-head h2{ font-size:18px; font-weight:700; }
.ma-mapsec-toggle{
  border:none; background:transparent;
  color:var(--green-dark, #0f5132);
  font-family:inherit; font-size:14px; font-weight:700;
  cursor:pointer; padding:4px 6px;
}
.ma-mapsec-toggle:hover{ text-decoration:underline; }
.ma-mapsec-body[hidden]{ display:none; }

#maMap .ma-svg{
  max-width:440px;
  max-height:70vh;
  margin:0 auto;
}

.ma-map-side{
  font-size:14px;
  color:var(--muted, #6b7a72);
  line-height:1.7;
  margin-bottom:10px;
}

@media (max-width:700px){
  .ma-mapsec{ padding:14px; }
  .ma-mapsec-head h2{ font-size:17px; }
  #maMap .ma-svg{ max-height:62vh; }
}
