/* Auction property spotlight — outlined card + corner ribbon */

.property-under-auction-table .auction-row--featured {
  --auction-green: #16643b;
  --auction-navy: #002060;
  --auction-cream: #f7fbf8;
  background: var(--auction-cream);
  box-shadow:
    inset 0 0 0 2px var(--auction-green),
    inset 0 0 0 5px rgba(180, 228, 15, 0.35);
  animation: auction-card-breathe 3.2s ease-in-out infinite;
}

.property-under-auction-table .auction-row--featured > th,
.property-under-auction-table .auction-row--featured > td {
  background: transparent !important;
  border-color: rgba(22, 100, 59, 0.28) !important;
  vertical-align: middle;
  position: relative;
}

.property-under-auction-table .auction-row--featured > th[scope="row"] {
  overflow: visible;
  color: var(--auction-green);
  font-weight: 800;
  white-space: nowrap;
}

.property-under-auction-table .auction-row--featured > th[scope="row"]::before {
  content: "👉";
  display: inline-block;
  margin-right: 0.25rem;
  animation: auction-hand-point 1.1s ease-in-out infinite;
}

.property-under-auction-table .auction-row--featured .auctions-state,
.property-under-auction-table .auction-row--featured .auctions-city {
  color: var(--auction-navy) !important;
}

.property-under-auction-table .auction-row--featured .auction-detail {
  padding: 0.5rem 0.15rem 0.35rem;
}

.property-under-auction-table .auction-row--featured .auction-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem !important;
  color: var(--auction-green);
}

.property-under-auction-table .auction-row__hand {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  animation: auction-hand-point 1.1s ease-in-out infinite;
}

.property-under-auction-table .auction-row__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  padding: 0.3rem 0.85rem 0.3rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--auction-green);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  animation: auction-ribbon-slide 2.8s ease-in-out infinite;
}

.property-under-auction-table .auction-row__badge::before {
  content: "👉";
  font-size: 0.95em;
  animation: auction-hand-point 1.1s ease-in-out infinite;
}

.property-under-auction-table .auction-row__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: auction-ribbon-shine 2.8s ease-in-out infinite;
}

.property-under-auction-table .auction-row--featured .auction-detail-text {
  color: #333;
}

.property-under-auction-table .auction-row--featured .auction-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--auction-green) !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(180, 228, 15, 0.95);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.property-under-auction-table .auction-row--featured .auction-detail-link::before {
  content: "👉";
  font-size: 1em;
  color: inherit;
  animation: auction-hand-point 1.1s ease-in-out infinite;
}

.property-under-auction-table .auction-row--featured .auction-detail-link:hover,
.property-under-auction-table .auction-row--featured .auction-detail-link:focus {
  color: #0f8a4b !important;
  border-bottom-color: #0f8a4b;
}

.property-under-auction-table .auction-row--featured > td:nth-child(5),
.property-under-auction-table .auction-row--featured > td:nth-child(6) {
  font-weight: 700;
  color: var(--auction-green);
  white-space: nowrap;
}

.property-under-auction-table .auction-row--featured > td:nth-child(5)::before,
.property-under-auction-table .auction-row--featured > td:nth-child(6)::before {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 100, 59, 0.7);
  margin-bottom: 0.15rem;
}

.property-under-auction-table .auction-row--featured > td:nth-child(5)::before {
  content: " ";
}

.property-under-auction-table .auction-row--featured > td:nth-child(6)::before {
  content: " ";
}

@keyframes auction-card-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 2px #16643b,
      inset 0 0 0 5px rgba(180, 228, 15, 0.28);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px #16643b,
      inset 0 0 0 6px rgba(180, 228, 15, 0.55);
  }
}

@keyframes auction-ribbon-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

@keyframes auction-ribbon-shine {
  0%,
  40% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes auction-hand-point {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-under-auction-table .auction-row--featured,
  .property-under-auction-table .auction-row__badge,
  .property-under-auction-table .auction-row__badge::after,
  .property-under-auction-table .auction-row__hand,
  .property-under-auction-table .auction-row--featured > th[scope="row"]::before,
  .property-under-auction-table .auction-row__badge::before,
  .property-under-auction-table .auction-row--featured .auction-detail-link::before {
    animation: none;
  }
}
