/* LAM_OTHER_PHOTOS_20261130: miniature compatte, solo nel blocco Altri annunci. */
#altri-annunci {
  --lam-other-photo-width: 76px;
  --lam-other-photo-height: 100px;
}

#altri-annunci .lam-other-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

#altri-annunci a.lam-other-card {
  display: grid;
  grid-template-columns: var(--lam-other-photo-width) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 12px;
  border: 1px solid #e8d3dc;
  border-radius: 16px;
  background: #fff;
  color: #382f34;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(104, 29, 54, .035);
  transition: border-color .18s ease, box-shadow .18s ease;
}

#altri-annunci a.lam-other-card:hover {
  border-color: #c78ca4;
  box-shadow: 0 5px 18px rgba(104, 29, 54, .09);
}

#altri-annunci a.lam-other-card:focus-visible {
  outline: 3px solid #8b2851;
  outline-offset: 3px;
}

#altri-annunci .lam-other-thumb {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--lam-other-photo-width);
  height: var(--lam-other-photo-height);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f0f3;
  line-height: 1;
}

#altri-annunci .lam-other-thumb > img.lam-other-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
}

#altri-annunci .lam-other-thumb > img.lam-other-watermark {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: block;
  width: 52%;
  max-width: 50px;
  height: auto;
  max-height: 28px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
}

#altri-annunci .lam-other-photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 5px;
  background: #f7f0f3;
  color: #806674;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

#altri-annunci .lam-other-photo-fallback > img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}

#altri-annunci .lam-other-photo-fallback > span {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#altri-annunci .lam-other-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--lam-other-photo-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#altri-annunci .lam-other-copy > strong {
  display: block;
  width: 100%;
  margin: 0;
  color: #76233f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

#altri-annunci .lam-other-copy > .lam-other-title {
  display: -webkit-box;
  width: 100%;
  margin: 5px 0 7px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: #44383e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

#altri-annunci .lam-other-copy > .lam-other-city {
  display: block;
  width: 100%;
  margin: auto 0 0;
  padding-top: 4px;
  color: #806b76;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}

#altri-annunci [hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  #altri-annunci {
    --lam-other-photo-width: 88px;
    --lam-other-photo-height: 116px;
  }

  #altri-annunci .lam-other-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  #altri-annunci .lam-other-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  #altri-annunci {
    --lam-other-photo-width: 96px;
    --lam-other-photo-height: 128px;
  }

  #altri-annunci .lam-other-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
