/* Eturnal Rest -- the plot card (2026-11-03). One component for the "More
   plots" rail on a plot page and the /buy results grid (Sean approved the
   design). Markup: plotCardHtml in functions/_plot_render.js and its browser
   copy ER.plotCardHTML in web/js/components.js. */

.plot-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.plot-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}

.plot-card__img .listing__photo-badge {
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
}

.plot-card__type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.plot-card__price {
  font-weight: 700;
  margin-top: auto;
  padding-top: 4px;
}

.plot-card {
  scroll-snap-align: start;
  min-width: 0;
}

.plot-card__link:hover,
.plot-card__link:focus-visible {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}

.plot-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plot-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  flex: 1;
}

.plot-card__title {
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.plot-card__cem {
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.plot-card__img .plot-card__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--blue-900);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plot-card__img .listing__photo-badge {
  position: absolute;
  z-index: 1;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(29, 55, 68, 0.72);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
/* A card with a button under it (/buy): one bordered card, link on top. */
.plot-card--action {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  overflow: hidden;
}
.plot-card--action .plot-card__link {
  border: 0;
  border-radius: 0;
  flex: 1;
}
.plot-card--action:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}
.plot-card__actions {
  padding: 0 14px 14px;
}
.plot-card__actions .btn {
  width: 100%;
  justify-content: center;
}
