.block-reservations {
  padding: 75px 0;

  &:first-child {
    padding-top: 0;
  }

  h2 {
    color: var(--color-primary);
  }

  @media (min-width: 768px) {
    padding: 150px 0;
  }

  &:last-child {
    padding-bottom: 0;
  }
}

.block-reservations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.block-reservations-list-item {
  width: 100%;

  @media (min-width: 576px) {
    width: calc((100% - 1 * 20px) / 2);
  }

  @media (min-width: 992px) {
    width: calc((100% - 2 * 20px) / 3);
  }
  aspect-ratio: 1 / 1;
  position: relative;

  &.filled {
    pointer-events: none;
  }

  img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
  }

  &:hover, &:focus {
    &.open {
      .block-reservations-list-item-status {
        display: flex;
      }
    }
  }
}

.block-reservations-list-item-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--color-light);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 24px 28px;
  font-family: var(--font-family-title);
  font-size: 24px;

  @media (min-width: 1200px) {
    font-size: 32px;
  }

  &.open {
    background-color: rgba(127, 71, 44, 0.8);


    .block-reservations-list-item-status {
      display: none;
    }
  }

  &.filled {
    background-color: rgba(31, 35, 27, 0.8);
  }
}

.block-reservations-list-item-status {
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
  animation: micro-vibrate 0.1s ease-in-out 3;
}

@keyframes micro-vibrate {
0% { transform: translateX(0); }
25% { transform: translateX(-1px); }
75% { transform: translateX(1px); }
100% { transform: translateX(0); }
}

