/* ============================================================
   Skeleton — desktop = legacy horizontal, mobile = new vertical
   ============================================================ */

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.skeleton-image,
.skeleton-info-container > * {
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #e0e0e0 30%,
    #f0f0f0 60%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ---------- Desktop (legacy horizontal) ---------- */

#bar-list-desktop .skeleton-card {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  padding: 15px;
  margin: 0px 16px;
  max-width: 100%;
}

#bar-list-desktop .skeleton-info-container {
  width: calc(100% - 160px - 2rem);
  overflow: hidden;
}

#bar-list-desktop .skeleton-header {
  height: 30px;
  width: 100%;
}

#bar-list-desktop .skeleton-details {
  min-height: 100%;
  margin-top: 1rem;
}

#bar-list-desktop .skeleton-image {
  width: 160px;
  height: 130px;
}

/* ---------- Mobile (new vertical card) ---------- */

#bar-list-mobile .skeleton-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}

#bar-list-mobile .skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

#bar-list-mobile .skeleton-info-container {
  width: 100%;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

#bar-list-mobile .skeleton-header {
  height: 18px;
  width: 65%;
  border-radius: 4px;
}

#bar-list-mobile .skeleton-details {
  height: 14px;
  width: 90%;
  border-radius: 4px;
}

#bar-list-mobile .skeleton-button {
  height: 42px;
  width: 100%;
  border-radius: 10px;
  margin-top: 4px;
}
