header.entry-header,
hr.featurette-divider {
  display: none;
}

#ht-hazards {
  margin: 0 0 1.5rem;
}

#ht-hazards #map-container {
  position: relative;
  height: min(58vh, 620px);
  min-height: 380px;
  width: 100%;
}

#ht-hazards #map {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1b2a35;
}

.ht-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ht-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 54px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(47, 68, 84, 0.94);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ht-search {
  flex: 1 1 220px;
  min-width: 0;
}

.ht-toolbar-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ht-radius-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
  height: 36px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.ht-radius-field input {
  width: 64px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #1b2a35;
  font-size: 13px;
}

.ht-radius-unit {
  color: rgba(255, 255, 255, 0.8);
}

.ht-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.ht-btn:hover,
.ht-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.ht-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.ht-btn-clear:not(:disabled):hover {
  background: #a21502;
}

.ht-btn i {
  font-size: 15px;
}

.ht-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  max-width: calc(100% - 24px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(47, 68, 84, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ht-legend {
  position: absolute;
  left: 12px;
  bottom: 52px;
  z-index: 1000;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  max-width: min(460px, calc(100% - 24px));
  max-height: min(48vh, 360px);
  overflow: auto;
  padding: 12px 14px;
  background: rgba(47, 68, 84, 0.96);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
}

.ht-legend.is-open {
  display: grid;
}

.ht-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ht-legend-item img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.ht-swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
}

.ht-swatch.high-fire {
  background: rgba(255, 0, 0, 0.85);
}

.ht-swatch.medium-fire {
  background: rgba(255, 165, 0, 0.85);
}

.ht-swatch.earthquake {
  background: rgba(139, 69, 19, 0.85);
}

.ht-legend .legend-text {
  line-height: 1.3;
}

#ht-hazards .select2-container {
  width: 100% !important;
  color: #1b2a35;
}

#ht-hazards .select2-container--classic .select2-selection--single {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

#ht-hazards .select2-container--classic .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  padding-left: 12px;
  color: #1b2a35;
}

#ht-hazards .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  color: #667785;
}

#ht-hazards .select2-container--classic .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.select2-container--classic .select2-dropdown {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2000;
  background: #fff;
  color: #1b2a35;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
  color: #1b2a35;
  background: #fff;
}

.select2-container--classic .select2-results__option,
.select2-container--classic .select2-results__message {
  color: #1b2a35;
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
  background: #3d6d8c;
  color: #fff;
}

#ht-hazards .leaflet-control-zoom a {
  background: rgba(47, 68, 84, 0.94);
  color: #fff;
  border: 0;
}

#ht-hazards .leaflet-control-zoom a:hover {
  background: #3d6d8c;
  color: #fff;
}

#ht-hazards .leaflet-bar {
  border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#ht-hazards .leaflet-control-attribution {
  background: rgba(47, 68, 84, 0.8);
  color: rgba(255, 255, 255, 0.75);
}

#ht-hazards .leaflet-control-attribution a {
  color: #9ec3ff;
}

.ht-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ht-dialog-place {
  font-size: 16px;
  font-weight: 600;
}

.ht-dialog-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.ht-dialog-radius {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.ht-dialog-radius-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ht-dialog-radius input {
  width: 100px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
}

div.vex-content {
  width: min(420px, 92vw) !important;
  background: #2f4454 !important;
  color: #fff;
  border-radius: 12px !important;
  font-size: 15px !important;
}

.vex-dialog-message,
.vex-dialog-input {
  color: #fff;
}

.vex-dialog-button-primary {
  background: #3d6d8c !important;
}

.hidden {
  display: none;
}

.ht-results {
  margin-top: 18px;
  color: #fff;
}

.ht-results-empty {
  padding: 28px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  opacity: 0.95;
}

.ht-results-section {
  margin-bottom: 8px;
}

.ht-results-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 2px 4px;
}

.ht-results-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ht-results-head h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ht-count-pill {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 209, 232, 0.16);
  color: #0cd1e8;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.ht-fire-filter {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.ht-fire-filter button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ht-fire-filter button.is-active {
  background: rgba(12, 209, 232, 0.22);
  color: #0cd1e8;
}

.ht-fire-filter-empty {
  padding: 12px 4px 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.ht-event-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.ht-event-card-fire {
  border-left: 3px solid rgba(255, 80, 80, 0.85);
}

.ht-event-card-fire.confidence-2 {
  border-left-color: rgba(255, 165, 0, 0.9);
}

.ht-event-card-quake {
  border-left: 3px solid rgba(196, 132, 80, 0.95);
}

.ht-event-card-other {
  border-left: 3px solid rgba(12, 209, 232, 0.7);
}

.ht-event-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ht-event-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.15rem;
}

.ht-event-icon img {
  width: 28px;
  height: 28px;
}

.ht-event-icon.fire-c2 {
  background: rgba(255, 165, 0, 0.92);
}

.ht-event-icon.fire-c3 {
  background: rgba(220, 50, 50, 0.95);
}

.ht-event-icon.quake {
  background: rgba(139, 69, 19, 0.92);
}

.ht-event-icon.other {
  background: rgba(12, 209, 232, 0.18);
}

.ht-event-meta {
  flex: 1;
  min-width: 0;
}

.ht-event-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
}

.ht-event-subtitle {
  margin-top: 3px;
  font-size: 0.88rem;
  opacity: 0.82;
  line-height: 1.3;
}

.ht-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ht-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
}

.ht-chip-c2 {
  background: rgba(255, 165, 0, 0.2);
  color: #ffcc80;
}

.ht-chip-c3 {
  background: rgba(244, 67, 54, 0.22);
  color: #ff8a80;
}

.ht-event-distance {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0cd1e8;
}

.ht-event-actions {
  display: flex;
  gap: 8px;
}

.ht-event-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #0cd1e8;
  color: #16323a;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.ht-event-actions button[data-action="locate"] {
  background: transparent;
  color: #0cd1e8;
  border: 1px solid rgba(12, 209, 232, 0.55);
}

.ht-event-actions button:hover {
  filter: brightness(1.08);
}

@media screen and (max-width: 720px) {
  #ht-hazards #map-container {
    height: min(52vh, 520px);
    min-height: 320px;
  }

  .ht-toolbar {
    right: 54px;
  }

  .ht-btn-text,
  .ht-radius-label {
    display: none;
  }

  .ht-legend {
    grid-template-columns: 1fr;
    bottom: 48px;
  }

  .ht-status {
    font-size: 12px;
  }
}
