/* Business public page — You may also like promo carousel */

.cx-pub-you-may-like {
  margin: 1.35rem auto 0.85rem;
  padding: 0 clamp(12px, 3vw, 24px);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
}

.cx-pub-you-may-like__head {
  margin-bottom: 0.85rem;
  max-width: min(1600px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.cx-pub-you-may-like__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 700;
  color: var(--text-color);
}

.cx-pub-you-may-like__sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--secondary-text-color, #64748b);
}

.cx-pub-you-may-like__viewport {
  overflow: hidden;
  width: 100%;
  max-width: min(1600px, 100%);
  margin: 0 auto;
}

.cx-pub-you-may-like__stage {
  min-height: 300px;
}

.cx-pub-you-may-like__slide {
  width: 100%;
}

.cx-pub-you-may-like__slide.is-entering {
  animation: cxPubYmlSlideIn 0.55s ease forwards;
}

.cx-pub-you-may-like__slide.is-leaving {
  animation: cxPubYmlSlideOut 0.48s ease forwards;
}

@keyframes cxPubYmlSlideIn {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cxPubYmlSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-36px);
  }
}

.cx-pub-you-may-like__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  justify-items: stretch;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 769px) and (max-width: 1520px) {
  .cx-pub-you-may-like__row {
    grid-template-columns: repeat(var(--cx-yml-cols, 3), minmax(400px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .cx-pub-you-may-like__row--count-1 {
    grid-template-columns: minmax(400px, 1fr);
    max-width: min(100%, 520px);
  }

  .cx-pub-you-may-like__row--count-2 {
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    max-width: min(100%, calc(2 * 400px + 10px));
  }

  .cx-pub-promo-card {
    min-width: 400px;
  }
}

@media (min-width: 1521px) {
  .cx-pub-you-may-like__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .cx-pub-you-may-like__row--count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 25%;
    margin-left: auto;
    margin-right: auto;
  }

  .cx-pub-you-may-like__row--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 50%;
  }

  .cx-pub-you-may-like__row--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 75%;
  }
}

.cx-pub-promo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.cx-pub-promo-card__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

.cx-pub-promo-card__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.cx-pub-promo-card__meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
}

.cx-pub-promo-card__business {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-pub-promo-card__proximity {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  white-space: nowrap;
}

.cx-pub-promo-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.cx-pub-promo-card__preview {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 300px;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #0f172a;
}

.cx-pub-promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cx-pub-promo-card__img--placeholder {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.88));
}

.cx-pub-promo-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 22%;
  padding: 0.85rem 0.95rem 0.9rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.88) 38%,
    rgba(0, 0, 0, 0.55) 68%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.cx-pub-promo-card__overlay-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.28rem;
  width: 100%;
}

.cx-pub-promo-card__desc {
  margin: 0.12rem 0 0;
  width: 100%;
  font-size: 0.84rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .cx-pub-you-may-like__stage {
    min-height: 300px;
  }

  .cx-pub-promo-card__preview {
    min-height: 300px;
    height: 300px;
  }

  .cx-pub-promo-card__overlay {
    top: 18%;
    padding: 0.75rem 0.85rem 0.85rem;
  }

  .cx-pub-promo-card__business {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-pub-you-may-like__slide.is-entering,
  .cx-pub-you-may-like__slide.is-leaving {
    animation: none;
  }
}
