/* =========================
   Grid contenedor
   ========================= */
.lcp-vendors-grid {
  position: relative;
}

.lcp-vendors-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Responsive: 2 col >=560px, 3 col >=920px, 4 col >=1200px */
@media (min-width:560px) {
  .lcp-vendors-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:920px) {
  .lcp-vendors-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width:1200px) {
  .lcp-vendors-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   Card
   ========================= */
.lcp-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.lcp-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* Media */
.lcp-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
}

.lcp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Badge arriba izquierda */
.lcp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3b3b;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: .22rem .5rem;
  border-radius: 8px;
}

/* Overlay "demasiado lejos" */
.lcp-card.is-disabled .lcp-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.lcp-card.is-disabled .lcp-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0 12px;
}

/* Body (anclaje logo) */
.lcp-card__body {
  position: relative;
  padding: 10px 12px 12px;
}

/* Cabecera: título + logo */
.lcp-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Título */
.lcp-card__title {
  margin: 2px 0 6px !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.6em !important;
  letter-spacing: -0.022em !important;
}

.lcp-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Meta */
.lcp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #333;
  font-size: .92rem;
}

.lcp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
}

.lcp-rating-star {
  font-size: 1rem;
  line-height: 1;
}

/* Logo redondo a la derecha, sobresaliendo */
.lcp-card__logo {
  position: absolute;
  right: 12px;
  top: 0;
  transform: translateY(-50%);
  /* sobresale sobre el banner */
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid #fff;
  /* anillo blanco */
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  overflow: hidden;
  background: #fff;
}

.lcp-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Quitar posibles favoritos antiguos */
.lcp-card__fav {
  display: none !important;
}

/* =========================
   Skeletons de lista
   ========================= */
.lcp-skel {
  border-radius: 16px;
  overflow: hidden;
  background: #f6f7f8;
  position: relative;
}

.lcp-skel__media {
  aspect-ratio: 16 / 9;
  background: #eee;
}

.lcp-skel__body {
  padding: 10px 12px 12px;
}

.lcp-skel__line {
  height: 12px;
  background: #e6e6e6;
  border-radius: 6px;
  margin: 8px 0;
}

.lcp-skel__line.w80 {
  width: 80%;
}

.lcp-skel__line.w60 {
  width: 60%;
}

.lcp-skel__line.w40 {
  width: 40%;
}

.lcp-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 100%);
  animation: lcp-shimmer 1.25s infinite;
}

@keyframes lcp-shimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

/* =========================
   Toolbar: [ buscador ][ categorías ]
   ========================= */
.lcp-vendors-filter {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* buscador más ancho */
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

/* Buscador */
.lcp-vendors-filter__search {
  width: 100%;
  position: relative;
}

.lcp-vendors-filter__input {
  width: 100%;
  padding: 11px 14px 11px 42px !important;
  /* espacio para icono */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .02);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%2394a3b8' stroke-width='2'/%3E%3Cpath d='M20 20L17 17' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.lcp-vendors-filter__input:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.lcp-vendors-filter__input::placeholder {
  color: #94a3b8;
}

/* Categorías (select) */
.lcp-vendors-filter__control {
  min-width: 220px;
}

.lcp-vendors-filter__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  /* max-width: 360px; */
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: .95rem;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .02);
  background-image:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lcp-vendors-filter__select:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

@media (max-width: 599.98px) {
  .lcp-vendors-filter {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lcp-vendors-filter__control {
    width: 100%;
  }
}

/* =========================
   Estado sin enlace (core_link=0 en contexto core)
   ========================= */
.lcp-card.is-nolink {
  cursor: default;
}

.lcp-card.is-nolink:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.lcp-card.is-nolink .lcp-card__media {
  pointer-events: none;
}

.lcp-card.is-nolink .lcp-card__title a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

/* =========================
   Accesibilidad (reduced motion)
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .lcp-skel::after {
    animation: none !important;
  }
}
