/* Firozabad city guide: Jummah/Eid timings, colleges & hospitals, directory. Website + app. */

.cg-wrap { max-width: 1080px; margin: 0 auto; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cg-grid-mj { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.cg-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--ic-line, #e2d4b8);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(14, 42, 34, 0.05), 0 10px 26px rgba(14, 42, 34, 0.06);
}
.cg-card[hidden] { display: none; }
.cg-card-head { display: flex; gap: 0.8rem; align-items: flex-start; }
.cg-card-head h2,
.cg-card-head h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--ic-navy, #0e2a22); }
.cg-card-head p { margin: 0.2rem 0 0; color: var(--ic-muted, #5e564b); font-size: 0.9rem; }
.cg-ic,
.cg-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e8f1ec;
  color: var(--ic-walnut, #1a5c45);
}
.cg-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cg-avatar { border-radius: 50%; font-weight: 700; font-size: 1.15rem; background: var(--ic-navy, #0e2a22); color: var(--ic-gold-light, #e8c96a); }

.cg-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cg-tags span { padding: 0.12rem 0.55rem; border-radius: 999px; background: #f6eed9; color: #6b5414; font-size: 0.78rem; font-weight: 600; }
.cg-tags span.is-soft { background: #f1f3f1; color: var(--ic-muted, #5e564b); font-weight: 500; }

.cg-area,
.cg-detail,
.cg-note { margin: 0; color: var(--ic-muted, #5e564b); font-size: 0.92rem; }
.cg-area { display: flex; gap: 0.35rem; align-items: flex-start; }
.cg-area svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 0.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cg-note { padding: 0.55rem 0.7rem; background: #faf6ee; border-radius: 10px; }
.cg-phone { margin: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--ic-navy, #0e2a22); }

.cg-jummah {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ic-navy, #0e2a22), var(--ic-walnut, #1a5c45));
  color: #fff;
}
.cg-jummah small { font-size: 0.85rem; opacity: 0.85; }
.cg-jummah strong { font-size: 1.5rem; color: var(--ic-gold-light, #e8c96a); letter-spacing: 0.01em; }
.cg-eids { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cg-eids div { padding: 0.6rem 0.75rem; border-radius: 12px; background: #faf6ee; border: 1px solid #efe4cc; }
.cg-eids small { display: block; font-size: 0.78rem; color: var(--ic-muted, #5e564b); }
.cg-eids b { font-size: 1.05rem; color: var(--ic-navy, #0e2a22); }
.cg-eids b.is-soon { font-size: 0.92rem; font-weight: 600; color: #8a6d1d; }

.cg-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; }
.cg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ic-line, #e2d4b8);
  background: #fff;
  color: var(--ic-navy, #0e2a22);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.cg-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-btn:hover { border-color: var(--ic-walnut, #1a5c45); }
.cg-btn.is-call { background: var(--ic-walnut, #1a5c45); border-color: var(--ic-walnut, #1a5c45); color: #fff; }
.cg-btn.is-wa { background: #dcf5e6; border-color: #b8e8cb; color: #0f7a40; }
.cg-updated { margin-left: auto; font-size: 0.78rem; color: var(--ic-muted, #5e564b); }

.cg-today {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.2rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ic-line, #e2d4b8);
  font-weight: 600;
  color: var(--ic-navy, #0e2a22);
}
.cg-today svg { width: 18px; height: 18px; fill: none; stroke: var(--ic-gold, #c9a227); stroke-width: 1.8; }

.cg-jump { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.cg-jump a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--ic-line, #e2d4b8); color: var(--ic-navy, #0e2a22); font-weight: 600; text-decoration: none;
}
.cg-jump svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cg-jump em,
.cg-chips em { font-style: normal; font-size: 0.78rem; padding: 0 0.4rem; border-radius: 999px; background: #f1ead6; color: #6b5414; }

.cg-block { scroll-margin-top: 90px; }
.cg-block + .cg-block { margin-top: 2.2rem; }
.cg-block-title { margin: 0 0 0.8rem; font-size: 1.45rem; color: var(--ic-navy, #0e2a22); }

.cg-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0 0 1rem; }
.cg-chips button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ic-line, #e2d4b8); background: #fff; color: var(--ic-navy, #0e2a22);
  font: inherit; font-size: 0.9rem; font-weight: 600;
}
.cg-chips button.is-on { background: var(--ic-navy, #0e2a22); border-color: var(--ic-navy, #0e2a22); color: #fff; }
.cg-chips button.is-on em { background: rgba(255, 255, 255, 0.18); color: #fff; }

.cg-search {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.9rem; padding: 0.2rem 0.95rem;
  background: #fff; border: 1px solid var(--ic-line, #e2d4b8); border-radius: 999px;
}
.cg-search svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--ic-muted, #5e564b); stroke-width: 1.8; }
.cg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0.7rem 0; font: inherit; font-size: 1rem; }

.cg-none,
.cg-help { text-align: center; color: var(--ic-muted, #5e564b); font-size: 0.9rem; margin: 1.2rem auto 0; max-width: 640px; }

.cg-empty { max-width: 460px; margin: 0 auto; text-align: center; padding: 2rem 1.2rem; background: #fff; border: 1px dashed var(--ic-line, #e2d4b8); border-radius: 18px; }
.cg-empty span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e8f1ec; color: var(--ic-walnut, #1a5c45); }
.cg-empty svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cg-empty h2 { margin: 0.8rem 0 0.3rem; font-size: 1.2rem; }
.cg-empty p { margin: 0; color: var(--ic-muted, #5e564b); }

.cg-person.is-sos { border-color: #f2d6d2; }
.cg-person.is-sos .cg-avatar { border-radius: 14px; color: #fff; background: linear-gradient(135deg, #d6453b, #a3221b); }
.cg-person.is-sos .cg-avatar svg { width: 22px; height: 22px; }
.cg-person.is-sos .cg-tags span { background: #fbe7e4; color: #a3221b; }
.cg-person.is-sos .cg-phone { color: #a3221b; font-size: 1.25rem; }

/* ---------- App surface (Views/app/*, built on app-pages.css apv-* parts) ---------- */
.cga-row[hidden],
[data-cg-none][hidden] { display: none !important; }
.cga-masjid { margin-bottom: 0; }
.cga-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cga-top h2 { margin: 0 !important; font-family: Merriweather, Georgia, serif; font-size: 1.05rem; line-height: 1.3; color: var(--g-700); }
.cga-top p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.cga-ic { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.cga-ic svg { width: 24px; height: 24px; }
.cga-jummah {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  color: #fff;
  background: linear-gradient(135deg, var(--g-600), var(--g-800));
  box-shadow: 0 10px 22px rgba(14, 42, 34, 0.22);
}
.cga-jummah small { font-size: 0.8rem; font-weight: 700; opacity: 0.85; }
.cga-jummah strong { font-size: 1.45rem; color: var(--gold-2); }
.cga-masjid .apv-info-list b { font-size: 1rem; color: var(--g-700); }
.cga-soon { font-style: normal; font-weight: 700; color: #9a7412; }
.cga-masjid .apv-actions { align-items: center; }
.cga-updated { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.cga-help { margin-top: 16px !important; text-align: center; }

.cga-row { align-items: center; }
.cga-row .apv-row-body strong { -webkit-line-clamp: 3; }
.cga-avatar { font: 800 1.1rem/1 var(--sys); color: var(--gold-2) !important; background: linear-gradient(135deg, var(--g-600), var(--g-800)) !important; }
.cga-row.is-sos .cga-avatar { color: #fff !important; background: linear-gradient(135deg, #d6453b, #a3221b) !important; }
.cga-row.is-sos .cga-avatar svg { width: 22px; height: 22px; }
.cga-row.is-sos .apv-row-meta { color: #a3221b; }
.cga-row.is-sos .cga-phone { font-size: 1rem; color: #a3221b; }
.cga-phone { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.02em; color: var(--g-600); }
.cga-acts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.cga-act {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--g-600);
  background: rgba(26, 92, 69, 0.08);
  transition: transform 0.15s ease;
}
.cga-act:active { transform: scale(0.92); }
.cga-act svg { width: 19px; height: 19px; }
.cga-act.is-call { color: #fff; background: linear-gradient(135deg, var(--g-600), var(--g-800)); box-shadow: 0 6px 14px rgba(14, 42, 34, 0.22); }
.cga-act.is-wa { color: #128c4b; background: #dcf5e6; }

.cga-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.cga-search svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--muted); }
.cga-search input { flex: 1; min-width: 0; min-height: 50px; border: 0; outline: 0; background: transparent; font: 600 0.95rem/1.2 var(--sys); color: var(--ink); }

@media (max-width: 560px) {
  .cg-grid { grid-template-columns: 1fr; }
  .cg-jummah strong { font-size: 1.3rem; }
}
