.pl-section-local-recommendations {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pl-local-reco-carousel {
  position: relative;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: 3rem;
  box-sizing: border-box;
}

.pl-local-reco-viewport {
  min-width: 0;
  overflow: hidden;
}

.pl-local-reco-grid {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  transition: opacity 0.12s ease;
}

.pl-local-reco-grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  html:not(.no-js) .pl-local-reco-grid[data-ready="false"] {
    visibility: hidden;
  }
}

.pl-local-reco-card {
  min-width: 0;
  flex: 0 0 calc((100% - (2 * 0.7rem)) / 3);
  scroll-snap-align: start;
}

.pl-local-reco-card__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--pl-content-border);
  background: var(--pl-content-surface);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pl-local-reco-card__link:hover {
  border-color: var(--pl-accent-soft-safe-border-hover);
  background: var(--pl-accent-soft-safe-bg-hover);
  transform: translateY(-1px);
}

.pl-local-reco-card__link:active {
  border-color: var(--pl-accent-soft-safe-border-active);
  background: var(--pl-accent-soft-safe-bg-active);
}

.pl-local-reco-card__link:focus-visible {
  outline: 2px solid var(--pl-focus-ring);
  outline-offset: 2px;
}

.pl-local-reco-card__media {
  position: absolute;
  inset: 0;
  background: var(--pl-content-surface-alt);
}

.pl-local-reco-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pl-local-reco-card__initial {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pl-accent-soft-safe-fg);
  background: var(--pl-accent-soft-safe-bg);
}

.pl-local-reco-card__media.is-fallback .pl-local-reco-card__initial {
  display: flex;
}

.pl-local-reco-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0.8rem 0.85rem;
  color: var(--pl-accent-safe-fg-hover, #fff);
  background: linear-gradient(to top, color-mix(in srgb, var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce)) 97%, transparent), color-mix(in srgb, var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce)) 90%, transparent) 72%, transparent 100%);
}

.pl-local-reco-card__title,
.pl-local-reco-card__activity,
.pl-local-reco-card__city {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.pl-local-reco-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
}

.pl-local-reco-card__activity,
.pl-local-reco-card__city {
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pl-local-reco-card__city {
  font-weight: 600;
}

.pl-local-reco-card__link-indicator {
  position: absolute;
  right: 0.8rem;
  bottom: 0.85rem;
  display: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--pl-accent-safe-fg-hover, #fff);
}

.pl-local-reco-card__link-indicator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pl-local-reco-chevron {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--pl-content-accent);
  border-radius: 999px;
  color: #fff;
  background: var(--pl-content-accent);
  cursor: pointer;
  transform: translateY(-50%);
}

.pl-local-reco-chevron--prev {
  left: 0;
}

.pl-local-reco-chevron--next {
  right: 0;
}

.pl-local-reco-chevron svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pl-local-reco-chevron:disabled {
  opacity: 0.35;
  cursor: default;
}

.pl-local-reco-chevron:focus-visible {
  outline: 2px solid var(--pl-focus-ring);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .pl-local-reco-carousel {
    display: block;
    width: 100%;
    padding-inline: 0;
  }

  .pl-local-reco-viewport {
    overflow: visible;
  }

  .pl-local-reco-grid {
    width: calc(100% + 0.8rem);
    margin-right: -0.8rem;
    padding-right: 0.8rem;
    visibility: visible !important;
  }

  .pl-local-reco-card {
    flex-basis: 82vw;
  }

  .pl-local-reco-card__content {
    gap: 0.22rem;
    padding: 1.35rem 3.5rem 1.15rem 1rem;
    background: linear-gradient(to top, color-mix(in srgb, var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce)) 98%, transparent), color-mix(in srgb, var(--pl-accent-safe-bg, var(--pl-content-accent, #0b63ce)) 93%, transparent) 68%, transparent 100%);
  }

  .pl-local-reco-card__title {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .pl-local-reco-card__activity,
  .pl-local-reco-card__city {
    font-size: 1rem;
    line-height: 1.3;
  }

  .pl-local-reco-card__link-indicator {
    display: inline-flex;
    right: 1rem;
    bottom: 1.15rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .pl-local-reco-chevron {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-local-reco-grid,
  .pl-local-reco-card__link {
    scroll-behavior: auto;
    transition: none;
  }
}
