/* ── Current Conditions ── */
.igc-section {
  margin-bottom: 28px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  width: 100%;
  box-sizing: border-box;
}
.igc-section-header {
  background: var(--green-1, #5B8D6A);
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: center;
}
.igc-section-title {
  font-size: 1rem; font-weight: 900; color: #fff;
  margin: 0; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.igc-title-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,.22);
  flex-shrink: 0;
}

/* ── Scrollable area ── */
.igc-grid-wrap { background: #fff; }
.igc-grid-wrap.igc-scrollable {
  overflow-y: auto;
  max-height: 440px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
}
.igc-grid-wrap.igc-scrollable::-webkit-scrollbar { width: 4px; }
.igc-grid-wrap.igc-scrollable::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 4px; }

/* ── One row per location ── */
.igc-row-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid #e8e8e8;
  min-height: 110px;
}
.igc-row-wrap:last-child { border-bottom: none; }

/* ── Columns ── */
.igc-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 10px;
  border-right: 1px solid #ebebeb;
  box-sizing: border-box;
  min-width: 0;
}
.igc-col:last-child { border-right: none; }

/* Column title — sits at top of each column */
.igc-col-title {
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #888;
  margin-bottom: 7px; white-space: nowrap;
}

/* Column widths */
.igc-col-name    { flex: 0 0 130px; }
.igc-col-smokey  { flex: 0 0 220px; }
.igc-col-status  { flex: 1 1 140px; min-width: 130px; }
.igc-col-restr   { flex: 1 1 140px; min-width: 130px; }
.igc-col-prep    { flex: 1 1 145px; min-width: 130px; }
.igc-col-fw      { flex: 1 1 140px; min-width: 130px; }
.igc-col-raws    { flex: 1 1 150px; min-width: 140px; }
.igc-col-redflag { flex: 0 0 65px;  }

/* ── Name column ── */
.igc-col-name {
  background: var(--igc-danger-bg, #2e7d32);
  align-items: center;
  text-align: center;
  justify-content: center;
}
.igc-loc-name {
  font-size: .82rem; font-weight: 900; color: #fff;
  line-height: 1.25;
}
.igc-danger-label { display: none; }
.igc-redflag-badge {
  margin-top: 6px;
  background: #b71c1c; color: #fff;
  font-size: .57rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 6px; border-radius: 4px;
  animation: igc-pulse 2s infinite;
  line-height: 1.3;
  border: 2px solid rgba(255,255,255,.8);
}
@keyframes igc-pulse { 0%,100%{opacity:1;} 50%{opacity:.65;} }

/* ── Smokey ── */
.igc-col-smokey {
  align-items: center; justify-content: center;
  padding: 4px; background: #fafafa;
}
.igc-col-smokey img { width: 210px; height: auto; display: block; }

/* ── Red Flag column ── */
.igc-col-redflag {
  background: #b71c1c;
  align-items: center; justify-content: center;
}
.igc-redflag-col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; text-align: center; padding: 8px 4px;
  animation: igc-pulse 2s infinite;
}
.igc-redflag-icon { font-size: 1.2rem; color: #fff; line-height: 1; }
.igc-redflag-text {
  font-size: .58rem; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.3;
}

/* ── Season / Reg Use ── */
.igc-col-status { gap: 5px; }
.igc-status-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 600; line-height: 1.3;
  padding: 4px 7px; border-radius: 5px; border: 1px solid;
  flex: 1;
  max-height: 52px;
}
.igc-status-item.on  { background: rgba(183,28,28,.07); border-color: rgba(183,28,28,.25); color: #b71c1c; }
.igc-status-item.off { background: rgba(27,94,32,.07);  border-color: rgba(27,94,32,.25);  color: #1b5e20; }
.igc-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.igc-status-item.on  .igc-status-dot { background: #e53935; }
.igc-status-item.off .igc-status-dot { background: #43a047; }
.igc-since { font-size: .60rem; font-weight: 400; opacity: .75; display: block; margin-top: 1px; }

/* ── Fire Restrictions ── */
.igc-restrict-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px; margin-bottom: 4px;
  flex: 1;
}
.igc-restrict-row:last-child { margin-bottom: 0; }
.igc-restrict-label { font-size: .72rem; font-weight: 700; color: #444; flex-shrink: 0; }
.igc-chip {
  font-size: .64rem; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.igc-chip.active   { background: rgba(183,28,28,.1);  color: #b71c1c; border: 1px solid rgba(183,28,28,.3); }
.igc-chip.inactive { background: rgba(27,94,32,.09);  color: #1b5e20; border: 1px solid rgba(27,94,32,.25); }

/* ── Shared 2x2 grid (Prep / FW / RAWS) ── */
.igc-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.igc-data-box {
  text-align: center; padding: 5px 2px;
  border: 1px solid #e8e8e8; border-radius: 5px; background: #fafafa;
}
.igc-data-tag {
  font-size: .55rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: #999; margin-bottom: 2px;
}
.igc-data-val { font-size: 1rem; font-weight: 900; line-height: 1; color: #333; }
.igc-data-val-sm { font-size: .82rem; font-weight: 900; line-height: 1; color: #333; }
.igc-obs-note {
  font-size: .57rem; color: #bbb; text-align: center;
  margin-top: 4px; letter-spacing: .02em;
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .igc-row-wrap { flex-direction: column; }
  .igc-col { border-right: none; border-bottom: 1px solid #ebebeb; }
  .igc-col:last-child { border-bottom: none; }
  .igc-col-name, .igc-col-smokey, .igc-col-status, .igc-col-restr,
  .igc-col-prep, .igc-col-fw, .igc-col-raws { flex: none; }
  .igc-grid-wrap { max-height: none; }
}

/* ── Timestamps ── */
.igc-loc-updated {
  font-size: .67rem; color: rgba(255,255,255,.75);
  margin-top: 6px; letter-spacing: .02em; line-height: 1.3;
}


/* ── Restriction banners (like status items) ── */
.igc-restr-banner {
  display: flex; flex-direction: column;
  padding: 5px 8px; border-radius: 5px; border: 1px solid;
  margin-bottom: 5px; flex: 1; max-height: 52px;
}
.igc-restr-banner:last-child { margin-bottom: 0; }
.igc-restr-banner.active  { background: rgba(183,28,28,.07); border-color: rgba(183,28,28,.25); }
.igc-restr-banner.inactive { background: rgba(27,94,32,.07);  border-color: rgba(27,94,32,.25); }
.igc-restr-top {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.igc-restr-label { font-size: .72rem; font-weight: 700; color: #444; flex-shrink: 0; }
.igc-restr-since {
  font-size: .67rem; font-weight: 400; color: #888;
  margin-top: 3px; display: block;
}
