.geo-event {
    padding: 1rem;
    border-left: 4px solid #6b7280;
}

.geo-event h3 {
    margin: 0 0 0.5rem;
}

.geo-meta {
    margin: 0 0 0.5rem;
}

.geo-event p {
    margin: 0 0 0.5rem;
}

/* ─── Volcano Activity section ─────────────────────────────────────────────
 * Dedicated section above the earthquake list. Each volcano card is
 * stripe-colored by its aviation code so the whole page reads as a
 * traffic-light view even before the operator reads the name.
 */
.volcano-activity {
    margin: 0 auto 1rem auto;
    max-width: calc(100vw - 2rem);
}
.volcano-activity-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}
.volcano-activity-header h2 {
    margin: 0;
    font-size: 1.1rem;
}
.volcano-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 0.6rem;
}

/* Single-column variant inside the Map Room floating panel — the
 * panel is too narrow for the 20rem auto-fill grid. */
.volcano-grid--panel {
    grid-template-columns: 1fr;
    gap: 0.35rem;
}
.volcano-grid--panel .volcano-card {
    padding: 0.45rem 0.55rem 0.45rem 0.7rem;
    font-size: 0.78rem;
}
.volcano-grid--panel .volcano-card h3 {
    font-size: 0.82rem;
    margin: 0 0 0.15rem;
}

/* Compact, dimmer variant of the legend chips for inline rendering
 * inside the floating panel (vs the old full-card location). */
.volcano-legend--inline {
    margin: 0 0 0.4rem;
    font-size: var(--text-xs);
    gap: 0.3rem;
}
.volcano-legend--inline .volcano-legend-chip {
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.04);
}

.volcano-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 0.7rem;
    font-size: var(--text-sm);
}
.volcano-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--chip-bg);
    color: var(--muted);
}
.volcano-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}
.volcano-legend-dot[data-level="NORMAL"]   { background: #4ade80; }
.volcano-legend-dot[data-level="ADVISORY"] { background: #facc15; }
.volcano-legend-dot[data-level="WATCH"]    { background: #f97316; }
.volcano-legend-dot[data-level="WARNING"]  { background: #ef4444; }
.volcano-card {
    position: relative;
    padding: 0.7rem 0.9rem 0.7rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: var(--card);
    /* The aviation-code color shows up as a thick left edge; each card
       sets `--volcano-color` inline from the API's aviation_code. */
    border-left: 6px solid var(--volcano-color, #6b7280);
}
.volcano-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}
.volcano-card .volcano-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
}
.volcano-card .volcano-desc {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.35;
    color: var(--text);
}
.volcano-badge {
    display: inline-block;
    padding: 0.08rem 0.45rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--volcano-color, #6b7280);
    /* Aviation color codes all read fine against black text except RED, which
       we handle via a class override below. */
    color: #0a0a0a;
}
.volcano-badge.volcano-badge-red {
    color: #fff;
}
.volcano-card[data-aviation="UNASSIGNED"] { --volcano-color: #6b7280; }
.volcano-card[data-aviation="GREEN"]      { --volcano-color: #22c55e; }
.volcano-card[data-aviation="YELLOW"]     { --volcano-color: #facc15; }
.volcano-card[data-aviation="ORANGE"]     { --volcano-color: #f97316; }
.volcano-card[data-aviation="RED"]        { --volcano-color: #ef4444; }
/* GVP weekly items frequently lack a HANS code — paint them with a neutral
   slate so they read as "activity" without implying an alert tier. */
.volcano-card.volcano-source-gvp:not([data-aviation]) { --volcano-color: #64748b; }

/* Cards are clickable (overlay drill-down). Bump the affordance. */
.volcano-card {
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.volcano-card:hover,
.volcano-card:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    outline: none;
}

/* Map marker: upward-pointing triangle, colored by the same aviation code
   as the card stripe. `divIcon` renders this HTML instead of an <img>. */
.volcano-marker-triangle {
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 20px solid #64748b; /* default; inline style from JS overrides */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

/* Detail modal layout. The overlay itself reuses the existing .overlay /
   .overlay-content / .overlay-close classes from styles.css, so only the
   inner grid needs its own rules. */
.volcano-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.45rem 1.1rem;
    margin: 0.6rem 0 0.8rem;
    font-size: 0.88rem;
}
.volcano-detail-grid > div { display: flex; flex-direction: column; gap: 0.1rem; }
.volcano-detail-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}
.volcano-detail-section {
    border-top: 1px solid var(--border);
    padding-top: 0.7rem;
    margin-top: 0.4rem;
}
.volcano-detail-section h3 {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
}
.volcano-detail-section p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}
