/* Find cards - portrait layout: image left, map+details right */
.find-preview-card {
  align-self: flex-end;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  width: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: row;
  height: 220px;
  flex-shrink: 0;
}

.find-preview-photo {
  width: 45%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-medium);
  position: relative;
}

.find-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.find-preview-photo .find-preview-user {
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.find-preview-photo .find-preview-time {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--accent);
  font-size: 0.7rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  text-align: right;
}

.find-preview-photo-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.find-preview-photo-meta .find-preview-location {
  color: var(--accent);
  font-size: 0.7rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.find-preview-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.find-preview-map {
  height: 60%;
  background: var(--bg-medium);
  cursor: pointer;
  position: relative;
}

.find-preview-map img,
.find-preview-map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
}

.find-preview-info {
  height: 40%;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.find-preview-brewery {
  font-size: 0.7rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.find-preview-beer {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2px 0 4px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.find-preview-beer .recognizing {
  font-style: italic;
  color: var(--text-medium);
  font-weight: 400;
}

.find-preview-meta {
  font-size: 0.75rem;
  color: var(--amber-dark);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 4px;
}

.find-preview-user {
  color: var(--amber-dark);
  font-weight: 500;
  font-size: 0.75rem;
}

.find-preview-time {
  color: var(--amber-dark);
  font-size: 0.75rem;
}

.find-preview-location {
  font-size: 0.75rem;
  color: var(--amber-dark);
}

/* Rating row - full width touchable stars */
.find-preview-rating-row {
  display: flex;
  align-items: center;
  padding: 2px 0 0;
  margin-top: auto;
}

.star-slider {
  display: flex;
  flex: 1;
  height: 26px;
  justify-content: space-between;
}

.star-slot {
  flex: 1;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.star-slot:hover {
  transform: scale(1.1);
}

.star-slot svg {
  width: 22px;
  height: 22px;
  transition: fill 0.15s;
}

.star-slot.filled svg { fill: var(--accent); }
.star-slot.empty svg { fill: var(--bg-dark); }

.rating-hint {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-left: 8px;
  white-space: nowrap;
}

/* Star display for non-interactive rating */
.find-preview-rating {
  display: flex;
  gap: 2px;
}

.star {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.star svg {
  width: 100%;
  height: 100%;
}

.star.full svg { fill: var(--accent); }
.star.half svg { fill: url(#starHalfGradient); }
.star.empty svg { fill: var(--bg-medium); }

/* Pending find card styles */
.find-preview-card.pending .recognizing {
  color: var(--text-light);
  font-style: italic;
  animation: pulse-find 1.5s ease-in-out infinite;
}

@keyframes pulse-find {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.find-preview-card.pending {
  border: 2px dashed var(--amber);
}

.find-preview-card.saved {
  border: 2px solid var(--amber);
}

.star-display {
  display: flex;
  gap: 2px;
}
