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

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

.lf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 12, 8, 0.08) 0%, rgba(30, 12, 8, 0.78) 100%);
}

.lf-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: #26333c;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

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

.lf-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.9);
}

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

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

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

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

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

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

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

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

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

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

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

.lf-segments button,
.lf-reset {
  min-height: 36px;
  border: 1px solid #d8d4ce;
  border-radius: 8px;
  background: #faf9f7;
  color: #26333c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

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

.lf-segments button.is-active {
  border-color: #f27a24;
  background: #f27a24;
  color: #fff;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.lf-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;
}

.lf-toggle input:checked + .lf-toggle-ui {
  background: #f27a24;
}

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

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

.lf-summary {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: #fff8f0;
  color: #5d3517;
  font-size: 14px;
  font-weight: 800;
}

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

.lf-card {
  min-width: 0;
  border: 1px solid #e4dfd9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.lf-card.is-top .lf-img {
  min-height: 100%;
  grid-row: 1 / span 3;
}

.lf-card.is-top .lf-avoid,
.lf-card.is-top .lf-actions {
  grid-column: 2;
}

.lf-card.is-top .lf-map-panel {
  grid-column: 2;
}

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

.lf-photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(38, 51, 60, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.lf-note-line {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f4f9ff;
  color: #244563;
  font-size: 13px;
  line-height: 1.4;
}

.lf-avoid {
  margin: 0 16px 13px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #fff8f0;
  color: #5d3517;
  font-size: 13px;
  line-height: 1.4;
}

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

.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #1866b4;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
}

.lf-btn:hover,
.lf-btn:focus {
  background: #145697;
  color: #fff;
  text-decoration: none;
}

.lf-btn-book {
  background: #f27a24;
}

.lf-btn-book:hover,
.lf-btn-book:focus {
  background: #d96317;
  color: #fff;
}

.lf-btn-secondary {
  background: #eef4f7;
  color: #26333c;
}

.lf-btn-secondary:hover,
.lf-btn-secondary:focus {
  background: #dfe8ee;
  color: #26333c;
}

.lf-btn:focus-visible {
  outline: 3px solid rgba(24, 102, 180, 0.32);
  outline-offset: 2px;
}

.lf-btn-book:focus-visible {
  outline-color: rgba(242, 122, 36, 0.38);
}

.lf-btn-secondary:focus-visible {
  outline-color: rgba(38, 51, 60, 0.2);
}

.lf-btn-map {
  background: #1d9771;
}

.lf-btn-map:hover,
.lf-btn-map:focus {
  background: #14735a;
  color: #fff;
}

.lf-btn-map:focus-visible {
  outline-color: rgba(29, 151, 113, 0.34);
}

.lf-map-panel {
  margin: 0 16px 16px;
  padding: 12px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #f7fbf9;
}

.lf-map-panel[hidden] {
  display: none;
}

.lf-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: #26333c;
  font-size: 13px;
}

.lf-map-head a,
.lf-map-panel p a {
  color: #14735a;
  font-weight: 800;
  text-decoration: none;
}

.lf-map-head a:hover,
.lf-map-panel p a:hover {
  text-decoration: underline;
}

.lf-map-panel iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
  background: #e8f0ec;
}

.lf-map-panel p {
  margin: 10px 0 0;
  font-size: 13px;
}

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

.lf-empty h3 {
  margin: 0 0 6px;
  color: #26333c;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  .lf-tool {
    padding: 16px;
  }

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

  .lf-guide-link,
  .lf-reset,
  .lf-note a {
    margin-top: 12px;
  }

  .lf-filter-grid,
  .lf-results,
  .lf-card.is-top,
  .lf-lists {
    grid-template-columns: 1fr;
  }

  .lf-card.is-top {
    display: flex;
  }

  .lf-card.is-top .lf-img {
    min-height: 210px;
  }

  .lf-map-head {
    display: block;
  }

  .lf-map-head a {
    display: inline-block;
    margin-top: 6px;
  }
}
