.lodgings__header {
  background-image: url("/images/lodgings-banner-m.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: -1px;
}

.lodgings__margin {
  width: 90%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.lodgings__main {
  background-color: #f1f1f1;
  padding-top: 20px;
  padding-bottom: 30px;
}

.lodgings__select {
  box-sizing: border-box;
  display: block;
  width: 90%;
  max-width: 400px;
  font-family: inherit;
  font-weight: 500;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: 0.3s border-color;
}

.lodgings__select:focus {
  outline: none;
  border-color: #6555C7;
}

.lodgings__cards-list {
  display: grid;
  grid-template-columns: 100%;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.lodgings__card figure {
  position: relative;
}

.lodgings__card figcaption {
  box-sizing: border-box;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: end;
  bottom: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  width: 100%;
  min-height: 60%;
  padding: 12px;
}

.lodgings__card figcaption span {
  display: block;
  box-sizing: border-box;
  background-color: #F8C808;
  padding: 5px 12px;
  font-weight: 700;
  color: #0C284D;
  width: fit-content;
  margin-left: -12px;
  border-radius: 0 8px 8px 0;
}

.lodgings__card img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.lodgings__card .small-line {
  font-size: 14px;
}

.lodgings__tags {
  margin-top: 5px;
  margin-bottom: 5px;
}

.lodgings__more-button {
  cursor: pointer;
  display: block;
  width: fit-content;
  font-size: inherit;
  font-family: inherit;
  font-weight: 700;
  background-color: #0867F8;
  padding: 12px;
  color: #fff;
  border: 1px solid #0867F8;
  border-radius: 8px;
  text-align: center;
  margin-top: 5px;
  transition: 0.3s background-color, 0.3s color;
}

.lodgings__more-button:hover {
  background-color: transparent;
  color: #0867F8;
}

@media only screen and (width > 768px) {
  .lodgings__header {
    background-image: url("/images/lodgings-banner-d.webp");
  }

  .lodgings__cards-list {
    grid-template-columns: repeat(2, 50%);
  }
}