.hf-wrap {
  max-width: 1160px;
  margin: 0 auto 48px;
  padding: 0 18px;
}

.hf-hero {
  min-height: 430px;
  margin: 36px 0 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 27, 0.1) 0%, rgba(6, 18, 27, 0.76) 100%);
}

.hf-hero-back {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #173047;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.hf-hero-panel {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 30px 34px;
  color: #fff;
}

.hf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hf-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 46px;
  line-height: 1.03;
  letter-spacing: 0;
}

.hf-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hf-tool {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 45, 62, 0.08);
}

.hf-tool-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px;
}

.hf-tool-head h2 {
  margin: 0 0 4px;
  color: #173047;
  font-size: 24px;
  line-height: 1.2;
}

.hf-tool-head p {
  margin: 0;
  color: #5c6870;
  font-size: 15px;
  line-height: 1.5;
}

.hf-status-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #173047;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.hf-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hf-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hf-filter legend {
  margin: 0 0 7px;
  color: #293a44;
  font-size: 13px;
  font-weight: 800;
}

.hf-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hf-segments button,
.hf-reset {
  min-height: 36px;
  border: 1px solid #cdd8de;
  border-radius: 8px;
  background: #f7fafb;
  color: #243946;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.hf-segments button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}

.hf-segments button.is-active {
  border-color: #1d9771;
  background: #1d9771;
  color: #fff;
}

.hf-segments[data-filter="island"] button[data-value="oahu"] i {
  color: #f27a24;
}

.hf-segments[data-filter="island"] button[data-value="maui"] i {
  color: #1866b4;
}

.hf-segments[data-filter="island"] button[data-value="big-island"] i {
  color: #c3232f;
}

.hf-segments[data-filter="island"] button[data-value="kauai"] i {
  color: #1d9771;
}

.hf-segments[data-filter="island"] button[data-value="oahu"].is-active {
  border-color: #f27a24;
  background: #f27a24;
}

.hf-segments[data-filter="island"] button[data-value="maui"].is-active {
  border-color: #1866b4;
  background: #1866b4;
}

.hf-segments[data-filter="island"] button[data-value="big-island"].is-active {
  border-color: #c3232f;
  background: #c3232f;
}

.hf-segments[data-filter="island"] button[data-value="kauai"].is-active {
  border-color: #1d9771;
  background: #1d9771;
}

.hf-segments[data-filter="island"] button.is-active i {
  color: #fff;
}

.hf-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8ec;
}

.hf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #243946;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.hf-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hf-toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d9e1e5;
  position: relative;
  transition: background 0.15s ease;
}

.hf-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
}

.hf-toggle input:checked + .hf-toggle-ui {
  background: #1d9771;
}

.hf-toggle input:checked + .hf-toggle-ui::after {
  transform: translateX(20px);
}

.hf-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.hf-summary {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: #f2f7f5;
  color: #214236;
  font-size: 14px;
  font-weight: 800;
}

.hf-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
}

.hf-card {
  min-width: 0;
  border: 1px solid #dce5e9;
  border-top: 4px solid var(--hf-island, #dce5e9);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hf-card[data-island="oahu"] {
  --hf-island: #f27a24;
}

.hf-card[data-island="maui"] {
  --hf-island: #1866b4;
}

.hf-card[data-island="big-island"] {
  --hf-island: #c3232f;
}

.hf-card[data-island="kauai"] {
  --hf-island: #1d9771;
}

.hf-card.is-top {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
}

.hf-img {
  min-height: 178px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hf-img-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hf-img-link:focus-visible {
  outline: 3px solid rgba(24, 102, 180, 0.38);
  outline-offset: -5px;
}

.hf-card.is-top .hf-img {
  min-height: 100%;
}

.hf-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(23, 48, 71, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hf-body {
  padding: 16px;
  min-width: 0;
}

.hf-card h3 {
  margin: 0 0 6px;
  color: #173047;
  font-size: 20px;
  line-height: 1.22;
}

.hf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 11px;
}

.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef4f7;
  color: #344c5c;
  font-size: 12px;
  font-weight: 800;
}

.hf-island-pill {
  color: #fff;
}

.hf-island-oahu {
  background: #f27a24;
}

.hf-island-maui {
  background: #1866b4;
}

.hf-island-big-island {
  background: #c3232f;
}

.hf-island-kauai {
  background: #1d9771;
}

.hf-card p {
  margin: 0 0 12px;
  color: #4e5e68;
  font-size: 14px;
  line-height: 1.5;
}

.hf-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 13px;
}

.hf-detail {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafb;
}

.hf-detail span {
  display: block;
  margin: 0 0 2px;
  color: #73808a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hf-detail strong {
  color: #223844;
  font-size: 13px;
  line-height: 1.3;
}

.hf-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hf-lists h4 {
  margin: 0 0 5px;
  color: #173047;
  font-size: 13px;
  line-height: 1.2;
}

.hf-lists ul {
  margin: 0;
  padding-left: 18px;
  color: #566670;
  font-size: 13px;
  line-height: 1.42;
}

.hf-note-line {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #fff8ed;
  color: #64451f;
  font-size: 13px;
  line-height: 1.4;
}

.hf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: auto 16px 16px;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #1866b4;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hf-btn-secondary {
  background: #eef4f7;
  color: #243946;
}

.hf-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #cbd8de;
  border-radius: 8px;
  background: #f8fafb;
  text-align: center;
}

.hf-empty h3 {
  margin: 0 0 6px;
  color: #173047;
}

.hf-empty p {
  margin: 0;
  color: #60717d;
}

.hf-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 8px;
  background: #173047;
  color: #fff;
}

.hf-note h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}

.hf-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.5;
}

.hf-note a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fff;
  color: #173047;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hf-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-card.is-top {
    grid-column: 1 / -1;
  }
}

@media (min-width: 721px) {
  .hf-hero {
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  .hf-wrap {
    padding: 0 12px;
  }

  .hf-hero {
    margin-top: 24px;
    min-height: 360px;
  }

  .hf-hero-panel {
    padding: 0 20px 24px;
  }

  .hf-hero h1 {
    font-size: 36px;
  }

  .hf-hero p {
    font-size: 16px;
  }

  .hf-tool {
    padding: 16px;
  }

  .hf-tool-head,
  .hf-extra-row,
  .hf-note {
    display: block;
  }

  .hf-status-link,
  .hf-reset,
  .hf-note a {
    margin-top: 12px;
  }

  .hf-filter-grid,
  .hf-results,
  .hf-card.is-top,
  .hf-lists {
    display: block;
  }

  .hf-filter + .hf-filter,
  .hf-card + .hf-card {
    margin-top: 16px;
  }

  .hf-card.is-top .hf-img {
    min-height: 190px;
  }

  .hf-detail-grid {
    grid-template-columns: 1fr;
  }
}
