/* Suggested Trees Styling */

.suggested-trees-body {
  background: rgb(246, 246, 246);
  padding: 20px;
  border-radius: 0px 0px 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* When there are no analogous trees, do not stretch to fill the viewport */
.suggested-trees-body--no-analogous {
  flex: 0 1 auto;
}

.suggested-trees-body--no-analogous .menu-holder {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .suggested-trees-body {
    flex: 0 1 auto;
  }

  .suggested-trees-body .menu-holder {
    margin-top: 1rem;
  }
}

.suggested-tree-card-holder {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  max-width: 100%;
  width: 100%;
  min-height: 160px;
  padding: 20px;
  gap: 20px;
}

.wood-types-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  gap: 12px;
  color: #555;
  font-size: 15px;
}

.wood-types-status--error p {
  margin: 0 0 4px;
  color: #333;
}

.suggested-tree-card-holder--empty {
  min-height: 0;
  padding: 10px 16px;
}

.wood-types-status--empty {
  min-height: 100px;
  padding: 6px 0;
  color: #666;
  font-style: italic;
}

/* iOS-style activity indicator (12 bars) */
.ios-spinner {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-block;
}

.ios-spinner span {
  position: absolute;
  left: 14.5px;
  top: 2px;
  width: 3px;
  height: 8px;
  border-radius: 1.5px;
  background-color: #03ac00;
  transform-origin: center 14px;
  transform: rotate(calc(var(--bar-index) * 30deg));
  opacity: 0.25;
  animation: ios-spinner-bar 1s linear infinite;
  animation-delay: calc(var(--bar-index) * -0.083s);
}

@keyframes ios-spinner-bar {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

.suggested-tree-img {
  max-height: 120px;
  width: auto;
  display: inline-block;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.suggested-tree-image {
  height: 130px;
  opacity: 0;
  animation: fadeInTree 0.5s ease-in forwards;
  padding: 5px;
}

.suggested-tree-image:hover {
  background-color: #f6f5f5;
  border-radius: 10px;
  padding: 5px;
}

.suggested-tree-title {
  font-size: 14px;
  color: #333;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.suggested-tree-title-english {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
  font-weight: 400;
  opacity: 0.8;
}

@keyframes fadeInTree {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
