/* Home featured photo cards. Last-loaded lock.
   Image + white info panel. Published grade + vis range only.
   Gradient is a thin accent line and a faint grade-badge ring.
   Never display:contents on .map-frame. Never invent vis. */

.home-directory .home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-directory .spot-feature {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 12px 36px rgba(10, 37, 64, 0.09);
}

.home-directory .spot-feature-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.home-directory .spot-feature-link:focus-visible {
  outline: 2px solid rgba(31, 111, 255, 0.4);
  outline-offset: 3px;
}

.home-directory .spot-feature-photo,
.home-directory .spot-feature-fallback {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a2540;
}

.home-directory .spot-feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-directory .spot-feature-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.home-directory .spot-feature-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 20px 16px 22px;
  background: #fff;
}

.home-directory .spot-feature.is-no-vis .spot-feature-body {
  grid-template-columns: minmax(0, 1fr);
}

.home-directory .spot-feature-body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ee13ba 0%, #a64bd8 34%, #0075df 68%, #13baee 100%);
}

.home-directory .spot-feature-copy {
  min-width: 0;
  padding-right: 12px;
}

.home-directory .spot-feature-copy h3 {
  margin: 0;
  color: #0a2540;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-directory .spot-feature-place {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  color: #6b7c8f;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.25;
}

.home-directory .spot-feature-place svg {
  flex: 0 0 auto;
  color: #8a9aab;
}

.home-directory .spot-feature-place span {
  min-width: 0;
}

.home-directory .spot-feature-vis-col,
.home-directory .spot-feature-grade-col {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0 10px;
  text-align: center;
}

.home-directory .spot-feature-vis-col::before,
.home-directory .spot-feature-grade-col::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 1px;
  background: rgba(10, 37, 64, 0.08);
}

.home-directory .spot-feature-vis-icon {
  display: grid;
  color: #0a2540;
  line-height: 0;
}

.home-directory .spot-feature-vis-label,
.home-directory .spot-feature-grade-status {
  color: #6b7c8f;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-directory .spot-feature-vis {
  color: #0a2540;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.home-directory .spot-feature-vis.is-empty {
  color: #8a9aab;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: normal;
}

.home-directory .spot-feature-grade-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ee13ba 0%, #a64bd8 34%, #0075df 68%, #13baee 100%);
  box-shadow: 0 0 14px rgba(166, 75, 216, 0.22);
}

.home-directory .spot-feature-grade {
  display: grid;
  place-items: center;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 50%;
  background: #fff;
  color: #0a2540;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.home-directory .spot-feature-grade-col.is-empty .spot-feature-grade-wrap {
  width: 40px;
  height: 40px;
  background: rgba(10, 37, 64, 0.08);
  box-shadow: none;
}

.home-directory .spot-feature-grade-col.is-empty .spot-feature-grade {
  color: #8a9aab;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-directory .home-search-empty {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .home-directory .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .home-directory .spot-feature-copy h3 {
    font-size: 1.28rem;
  }

  .home-directory .spot-feature-body {
    padding: 22px 18px 24px;
  }
}

@media (max-width: 640px) {
  .home-directory .home-featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-directory .spot-feature-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(90px, 1fr) 64px;
    grid-template-areas: none;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    min-height: 105px;
    max-height: 125px;
    height: 110px;
    padding: 18px 16px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .home-directory .spot-feature.is-no-vis .spot-feature-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-directory .spot-feature-body::before {
    height: 3px;
    background: linear-gradient(90deg, #ed15b9, #a94fd7, #527fdc, #16b8df);
  }

  .home-directory .spot-feature-copy {
    min-width: 0;
    padding-right: 8px;
  }

  .home-directory .spot-feature-copy h3 {
    overflow: hidden;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-directory .spot-feature-place {
    min-width: 0;
    margin-top: 4px;
    font-size: 14px;
  }

  .home-directory .spot-feature-place span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-directory .spot-feature-vis-col,
  .home-directory .spot-feature-grade-col {
    min-width: 0;
    align-content: center;
    gap: 2px;
    padding: 0 4px;
  }

  .home-directory .spot-feature-grade-col {
    padding: 0;
  }

  .home-directory .spot-feature-vis-label,
  .home-directory .spot-feature-grade-status {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .home-directory .spot-feature-vis {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
  }

  .home-directory .spot-feature-vis.is-empty {
    overflow: hidden;
    max-width: 100%;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-directory .spot-feature-grade-wrap {
    width: 56px;
    height: 56px;
  }

  .home-directory .spot-feature-grade {
    font-size: 1.25rem;
  }

  .home-directory .spot-feature-grade-col.is-empty .spot-feature-grade-wrap {
    width: 48px;
    height: 48px;
  }
}
