.rvcc-campground-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e4da;
  border-radius: 17px;
  background: #fffdf9;
  color: #18382c;
  box-shadow: 0 5px 16px rgba(24, 56, 47, .08);
}

.rvcc-campground-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 12px;
  min-height: clamp(144px, 13vw, 178px);
  padding: 10px 14px 14px;
  background: #203b33 url('/campground-cover.webp') 64% center / cover no-repeat;
}

.rvcc-campground-cover::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 24, 19, .96), rgba(13, 24, 19, .68) 35%, transparent 78%);
  pointer-events: none;
}

.rvcc-campground-cover-label,
.rvcc-campground-photo-credit {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 5px;
  background: #203b33;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.rvcc-campground-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.rvcc-campground-cover:has(> .rvcc-campground-photo.is-loaded) {
  grid-template-rows: auto auto auto;
  gap: 6px;
  background: #203b33;
}

.rvcc-campground-cover:has(> .rvcc-campground-photo.is-loaded)::after {
  content: none;
}

.rvcc-campground-photo.is-loaded {
  position: static;
  grid-area: 2 / 1;
  height: clamp(170px, 20vw, 236px);
  min-width: 0;
  background: #142823;
  opacity: 1;
}

.rvcc-campground-photo.is-loaded ~ .card-title {
  grid-area: 3 / 1;
  text-shadow: none;
}

.rvcc-campground-photo-credit {
  justify-self: end;
  display: none;
}

.rvcc-campground-photo-credit a {
  color: inherit;
  text-decoration: underline;
}

.rvcc-campground-photo.is-loaded + .rvcc-campground-photo-credit {
  display: block;
}

.rvcc-campground-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  overflow-wrap: anywhere;
}

.rvcc-campground-cover .card-title {
  grid-area: 2 / 1;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 23px);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px #0d1813;
}

.rvcc-campground-cover .name-star.rv {
  color: #ffcf68;
}

.rvcc-campground-cover .name-star.guest {
  color: #a4daff;
}

.rvcc-campground-card-location {
  margin-top: 4px;
  color: #50665b;
  font-size: 13px;
}

.rvcc-campground-card .card-status {
  margin-top: 10px;
}

.rvcc-campground-card .compat-status {
  padding: 5px 9px;
  font-size: 12px;
}

.rvcc-campground-card .policy-badges {
  margin: 10px 0 0;
}

.rvcc-campground-card .policy-badge {
  white-space: normal;
}

.rvcc-campground-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.rvcc-campground-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.rvcc-campground-card-actions button {
  min-height: 42px;
  white-space: normal;
}

.rvcc-campground-card-actions button:focus-visible {
  outline: 2px solid #14694b;
  outline-offset: 2px;
}
