@charset "utf-8";

.domovi {
  max-width: var(--widthMax);
  margin: 20px auto 40px auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 20px;
}

.dom {
  text-decoration: none;
  background-color: white;
  padding: 10px;
  display: flex;
  border-radius: 8px;
  box-shadow: var(--shadow-elevation-high);
  transition: 0.2s ease;
  max-width: 100%;
}

.dom:hover {
  box-shadow: var(--shadow-elevation-medium);
  transform: translateY(2px);
}

.domLogo {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domLogo img {
  max-width: 80px;
  max-height: 80px; 
  width: auto;
  height: auto;
  object-fit: contain;
}

.domListInfo {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.domListInfo h3 {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.domListInfo p {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.noLogo {
  width: 80px;
  height: 80px;
  background-color: var(--bgPageDark);
  background-image: url(/images/icons/nophoto.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40% auto;
  box-shadow: none;
  opacity: 0.3;
}

.domoviOstali {
  max-width: var(--widthMax);
  margin: 20px auto 40px auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.domOstali {
  text-decoration: none;
  background-color: var(--bgPageDark);
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-elevation-medium);
  transition: 0.2s ease;
  opacity: 0.6;
}

.domOstali:hover {
  box-shadow: var(--shadow-elevation-low);
  transform: translateY(2px);
}

.domOstali h3 {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.domOstali p {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media only screen and (max-width: 1080px) {}

@media only screen and (max-width: 780px) {

  .domovi {
    gap: 30px 20px;
  }

  .domoviOstali {
    max-width: var(--widthMax);
    margin: 20px auto 40px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .domOstali p {
    font-size: 0.8rem;
  }
}

@media only screen and (max-width: 340px) {}