/**
 * «Ищет дом» spotlight: left rail on PC (≥1200), feed slot on tablet/phone (like lucky wheel).
 * Scoped only. Does not touch custom.css.
 */
html body .tabs__content_left .cotinder-looking-home,
html body .index__post[data-looking-home-slot] .cotinder-looking-home {
  box-sizing: border-box;
}

html body .index__posts > .index__post[data-looking-home-slot],
html body .cotinder-index-feed .index__posts > .index__post[data-looking-home-slot] {
  box-sizing: border-box;
  align-self: stretch;
}

html body .index__posts > .index__post[data-looking-home-slot] > .cotinder-looking-home,
html body .cotinder-index-feed .index__posts > .index__post[data-looking-home-slot] > .cotinder-looking-home {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

html body .cotinder-looking-home .card-img-wrap {
  position: relative !important;
  overflow: visible !important;
}

/* Badge must stay TOP-LEFT on looking-home (beats feed right/bottom + custom bottom:100px). */
html body .cotinder-looking-home .card-img-wrap > .pet-photo-badge_search-home,
html body .tabs__content_left .cotinder-looking-home .card-img-wrap > .pet-photo-badge_search-home,
html body .index__post[data-looking-home-slot] .cotinder-looking-home .card-img-wrap > .pet-photo-badge_search-home,
html body .cotinder-index-feed .index__post[data-looking-home-slot] .card-img-wrap > .pet-photo-badge_search-home {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 8 !important;
  width: auto !important;
  height: auto !important;
  /* Full pill is ~300×89 (house+«Ищет дом»); 64px made the house look like a grey dot. */
  max-width: 148px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left top !important;
  pointer-events: none !important;
}

@media screen and (min-width: 1200px) {
  html body .index__posts > .index__post[data-looking-home-slot],
  html body .cotinder-index-feed .index__posts > .index__post[data-looking-home-slot] {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media screen and (max-width: 1199.98px) {
  html body .tabs__content_left .cotinder-looking-home,
  html body .tabs__content_left-wrapper .cotinder-looking-home {
    display: none !important;
  }
}
